Skip to content
SoftwareSolutions.net
Calculators & Converters

Linear Equation Solver

Solve linear equations with one or two unknowns.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Linear Equation Solver

A linear equation solver finds the value or values that satisfy a straight-line equation, or a pair of them. A linear equation has no squared terms, so its graph is a straight line. Linear equations are the first equations most people learn, and they appear in budgeting, unit conversion, mixing problems and any situation where one quantity changes at a steady rate.

Enter one equation with one unknown, or two equations with two unknowns. The solver returns the solution and checks it against the original equations. It also reports when there is no solution or when there are infinitely many.

How to use Linear Equation Solver

  1. Enter a single equation to solve for one unknown, or two equations for two unknowns.
  2. Enter each coefficient and constant in the correct place, including negative signs.
  3. Read the solution in the result panel.
  4. Substitute the solution into each original equation to confirm it.
  5. Use Reset to clear the equations and try another system.

One unknown

To solve a single linear equation, collect the terms with the unknown on one side and the constants on the other, then divide by the coefficient of the unknown. For 4x minus 7 equals 9, add 7 to both sides to get 4x equals 16, then divide by 4 to get x equals 4. Each step keeps both sides equal, which is the principle behind every linear solution.

Equations that contain fractions are easier to solve after clearing the denominators. Multiply every term by the lowest common denominator, which removes the fractions and leaves a simple equation to solve. Multiplying each term, not just one side, is the step most often forgotten.

Two equations and two unknowns

A pair of linear equations describes two lines. Their intersection is the point that satisfies both at once. Consider 2x plus y equals 7 and x minus y equals 2. Adding the two equations removes y and leaves 3x equals 9, so x is 3. Substituting back into the first equation gives 6 plus y equals 7, so y is 1. The check, 3 minus 1 equals 2, confirms the answer.

Two lines can meet at one point, run parallel and never meet, or lie on top of each other. Parallel lines have no solution, which shows up as a contradiction such as 0 equals 5 during the working. Identical lines have infinitely many solutions, which shows up as 0 equals 0. Recognising these cases prevents wasted effort on a system that cannot be solved.

Substitution is an alternative to addition. Solve one equation for a single variable, then replace that variable in the other equation. Both methods give the same answer, so pick whichever keeps the numbers simpler for the problem in front of you.

Frequently asked questions

What does it mean if there is no solution?

The equations describe parallel lines, or the working produced a false statement such as 0 equals 5. No set of values satisfies both at once.

How do I solve for a variable other than x?

Use the same method with any letter. Label the unknown as you would on paper, and the solution will be given for that letter.

Can I enter decimals and fractions?

Yes. Enter decimals directly, and enter a fraction in brackets, such as (1/2), so the division is read correctly.

Why is my answer slightly different from the expected one?

Rounding during the working can change the last digit. Keep full precision until the final step and round only the answer.

Related tools

Tools that pair well with this one.