Linear equation solver with steps

A linear equation has the unknown to the power one only, so it can always be solved by undoing operations in the right order. Type yours below and the working is written out the way an examiner expects to see it.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What this topic covers

An equation is a balance: whatever you do to one side you must do to the other. Undo the operations in the reverse order to how they were applied until the unknown is on its own, expanding brackets with expanding a single bracket and combining terms with collecting like terms first.

Each part of this topic has its own page with the formula, worked examples and a solver: Solving x + a = b, Solving ax = b, Solving ax + b = c, Solving ax + b = cx + d, Solving a(x + b) = c, Solving x/a + b = c, Solving (x + a)/b = c.

Closely related topics: Simultaneous equations, Inequality solver, Rearranging formulae (changing the subject).

What is it used for?

A linear equation says two expressions are equal, with the unknown only to the power one. Solving it means finding the one value that keeps the balance.

How to solve it

  1. Expand any brackets first, and collect like terms on each side.
  2. Move the unknown terms to one side by adding or subtracting the same thing from both sides.
  3. Move the plain numbers to the other side in the same way.
  4. Divide both sides by the number multiplying the unknown.
  5. Substitute your answer back into the original equation to check that both sides match.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: 2x + 3 = 11

Worked out by the solver on this page. Press the button to try it yourself.

Linear equation Answer checked
Answer
x=4x = 4
  1. The equation
    Solving for .
  2. Move everything to one side
  3. Simplify
  4. Isolate
    Subtract the constant from both sides.
  5. Divide both sides by
  6. Check by substituting back
    ✓

Example 2: 5x - 7 = 2x + 8

Worked out by the solver on this page. Press the button to try it yourself.

Linear equation Answer checked
Answer
x=5x = 5
  1. The equation
    Solving for .
  2. Move everything to one side
  3. Simplify
  4. Isolate
    Subtract the constant from both sides.
  5. Divide both sides by
  6. Check by substituting back
    ✓

Example 3: 3(x + 4) = 2x + 17

Worked out by the solver on this page. Press the button to try it yourself.

Linear equation Answer checked
Answer
x=5x = 5
  1. The equation
    Solving for .
  2. Move everything to one side
  3. Simplify
  4. Isolate
    Subtract the constant from both sides.
  5. Divide both sides by
  6. Check by substituting back
    ✓

Example 4: (x + 1)/3 = 4

Worked out by the solver on this page. Press the button to try it yourself.

Linear equation Answer checked
Answer
x=11x = 11
  1. The equation
    Solving for .
  2. Move everything to one side
  3. Simplify
  4. Isolate
    Subtract the constant from both sides.
  5. Divide both sides by
  6. Check by substituting back
    ✓

Example 5: 4 - 2x = 10

Worked out by the solver on this page. Press the button to try it yourself.

Linear equation Answer checked
Answer
x=−3x = -3
  1. The equation
    Solving for .
  2. Move everything to one side
  3. Simplify
  4. Isolate
    Subtract the constant from both sides.
  5. Divide both sides by
  6. Check by substituting back
    ✓

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

One step

x + 7 = 12: x = 5

Subtract 7 from both sides.

Two steps

2x + 3 = 11: x = 4

Subtract 3, then divide by 2.

Both sides

5x − 7 = 2x + 8: x = 5

Collect the x terms on the left.

No solution

2x + 1 = 2x + 5

The x terms cancel and 1 ≠ 5.

Word problems

To solve a linear equation, undo the operations in reverse order, doing the same to both sides each time.

Two steps

Solve 2x + 3 = 11.

  1. Subtract 32x = 8
  2. Divide by 2x = 4
  3. Check: 2 × 4 + 3 = 11 ✓4

Both sides

Solve 5x − 7 = 2x + 8.

  1. Subtract 2x3x − 7 = 8
  2. Add 73x = 15
  3. Divide by 3x = 5
  4. Check: 5 × 5 − 7 = 18 = 2 × 5 + 8 ✓5

A bracket Higher

Solve 3(x + 4) = 2x + 17.

  1. Expand3x + 12 = 2x + 17
  2. Subtract 2x and 12x = 5
  3. Check: 3 × 9 = 27 = 2 × 5 + 17 ✓5

A negative answer Higher

Solve 4 − 2x = 10.

  1. Subtract 4−2x = 6
  2. Divide by −2x = −3
  3. Check: 4 − 2 × (−3) = 10 ✓-3

Common mistakes

Changing only one side

subtract 3 on the left only ✗

subtract 3 from both sides ✓

Both sides change together.

Not expanding every term

3(x + 4) = 3x + 4 ✗

3x + 12 ✓

Multiply every term in the bracket.

Sign error when moving a term

2x − 7 = 9 gives 2x = 2 ✗

2x = 16 ✓

Undo − 7 by adding 7.

Not checking

no substitution ✗

substitute back ✓

It catches slips.

Exam tips

  1. Expand brackets first.
  2. Collect like terms.
  3. Do the same to both sides.
  4. Divide last.
  5. Check by substituting.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Solve 4x + 1 = 21 Foundation

5

2. Solve 3x − 2 = 13 Foundation

5

3. Solve 6x + 4 = 4x + 14 Foundation

5

4. Solve 2(x + 3) = 14 Higher

4

5. Solve 5x + 8 = −7 Higher

-3

6. Solve (x + 5)/2 = 6 Higher

7

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Linear equation
An equation where the unknown has power 1.
Unknown
The letter to find.
Coefficient
The number multiplying the unknown.
Inverse operation
Undoes another operation.
Solution
The value that makes it true.
Like terms
Terms with the same letter part.

Frequently asked questions

What is a linear equation?

One where the unknown appears only to the power one.

What do I do first?

Expand brackets and collect like terms.

What if x is on both sides?

Subtract the smaller x term from both sides; see solving ax + b = cx + d.

Which page covers two-step equations?

solving ax + b = c.

Which page covers one-step equations?

solving ax = b and solving x + a = b.

Which page covers equations with fractions?

solving x/a + b = c.

More in Algebra and the formula sheets.