Algebra & Functions · Grades 7–9

How to Solve Linear Equations Step by Step

How to Solve Linear Equations Step by Step — illustration
Short answer: Collect the x terms on one side and the numbers on the other, then divide by the coefficient of x. For 3x + 5 = 2x − 7 the answer is x = −12.

The golden rule: balance

An equation is a balance. Whatever you do to one side, do to the other. Subtract 2x from both sides to move x terms together; subtract 5 from both sides to move the numbers across.

A full example

3x + 5 = 2x − 7 becomes x = −12, written x = −12. Always check by substituting back.

3x + 5 = 2x − 7
Answerx = −12
Step-by-step working 4 steps
  1. 1
    Write the equation
    3x + 5 = 2x − 7
  2. 2
    Collect the x terms on the left
    3x − 2x = −7 − 5
    x = −12

    Subtract the smaller x term and the constant from both sides, so x is alone on the left and numbers are on the right.

  3. 3
    Divide by the coefficient of x
    x = −12 ÷ 1 = −12
  4. 4
    Check by substituting back
    Left: 3(−12) + 5 = −31
    Right: 2(−12) − 7 = −31

    Both sides match, so the solution is correct.

No solution

If the x terms cancel and the numbers disagree, no x works: 2x + 3 = 2x + 5 gives “No solution”.

Parallel lines never meet
AnswerNo solution
  • The sides can never be equal.
Step-by-step working 3 steps
  1. 1
    Write the equation
    2x + 3 = 2x + 5
  2. 2
    Collect the x terms on the left
    2x − 2x = 5 − 3
    0x = 2

    Subtract the smaller x term and the constant from both sides, so x is alone on the left and numbers are on the right.

  3. 3
    Result

    0 = 2 is never true, so there is no solution.

Infinitely many solutions

If both sides are identical the equation is always true: 2x + 3 = 2x + 3 gives “Infinitely many solutions”.

Common mistakes

Changing a sign incorrectly

Subtracting a term from both sides is safer than “moving” it.

Dividing only one side

Divide both sides by the coefficient.

Skipping the check

Substitute your answer back into the original equation.

Put it into practice. Try your own numbers in the Linear Equation Solver and compare each step with the method above.

Frequently asked questions

What if x has a fraction coefficient?

Multiply both sides by the denominator, or by the reciprocal of the fraction.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Related articles