On this page
Before you start
This page is easier if you are comfortable with:
What Solving ax + b = c means
This is a two-step equation. Undo the operations in the reverse order to how they were applied: first the “plus b ”, then the “times a ”.
Subtract b from both sides to get a x = c − b , then divide both sides by a .
This pattern covers most of the linear equations you meet at GCSE. The simpler forms are solving ax = b and solving x + a = b, a fraction version is solving x/a + b = c , and unknowns on both sides need solving ax + b = cx + d .
This page is part of Linear equations in Algebra . Topics that work alongside it: Solving ax = b , Solving ax + b = cx + d , Solving a(x + b) = c , Solving x + a = b , Solving x/a + b = c and Solving (x + a)/b = c .
What is it used for? A two-step equation: first undo the addition or subtraction, then undo the multiplication.
Finding a missing quantity in bills with a fixed charge plus a price per unit, such as £12 call-out plus £8 an hour. Solving word problems that translate into two-step equations. Preparing for equations with x on both sides.
How to use solving ax + b = c
Write the equation a x + b = c . Subtract b from both sides. Divide both sides by a . Substitute back to check.
Graph Solving 2x + 3 = 11 on a graph x = 4 -1 0 1 2 3 4 5 6 7 -2 0 2 4 6 8 10 12 14 16 Solving 2x + 3 = 11 on a graph x y y = 2x + 3 y = 11 Graph with x from -1 to 7 and y from -2 to 16. Shows the curve y = 2x + 3; the curve y = 11; point x = 4 at (4, 11). The line y = 2x + 3 meets y = 11 at x = 4, which is the solution.
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: a whole-number answer Solve 3 x + 5 = 20 .
Try this in the solver: 3x+5=20
Linear equation Answer checked
The equation
Solving for x .
3 x + 5 = 20
Move everything to one side
3 x + 5 − ( 20 ) = 0
Simplify
3 x − 15 = 0
Isolate x
Subtract the constant from both sides.
3 x = 15
Divide both sides by 3
x = 5
Check by substituting back
x = 5 ✓
Example 2: with a minus sign Solve 2 x − 7 = 9 .
Try this in the solver: 2x-7=9
Linear equation Answer checked
The equation
Solving for x .
2 x − 7 = 9
Move everything to one side
2 x − 7 − ( 9 ) = 0
Simplify
2 x − 16 = 0
Isolate x
Subtract the constant from both sides.
2 x = 16
Divide both sides by 2
x = 8
Check by substituting back
x = 8 ✓
Example 3: a subtracted constant Solve 4x − 3 = 17.
Try this in the solver: 4x-3=17
Linear equation Answer checked
The equation
Solving for x .
4 x − 3 = 17
Move everything to one side
4 x − 3 − ( 17 ) = 0
Simplify
4 x − 20 = 0
Isolate x
Subtract the constant from both sides.
4 x = 20
Divide both sides by 4
x = 5
Check by substituting back
x = 5 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Two steps 3x + 5 = 20: x = 5
Subtract 5, then divide by 3.
With a minus 2x − 7 = 9: x = 8
Add 7, then divide by 2.
A negative answer 5x + 8 = −7: x = −3
Subtract 8 first.
A fraction answer 4x + 1 = 10: x = 2.25
The answer may be a decimal.
Word problems
To solve ax + b = c, first undo the + b, then divide by a: x = (c − b) ÷ a.
Two steps Solve 3x + 5 = 20.
Subtract 5 3x = 15 Divide by 3 x = 5 Check: 3 × 5 + 5 = 20 ✓ x = 5.
With a minus Solve 2x − 7 = 9.
Add 7 2x = 16 Divide by 2 x = 8 Check: 2 × 8 − 7 = 9 ✓ x = 8.
A taxi Higher A taxi costs £3 plus £2 per km. A journey costs £15. How many km?
Write the equation 2x + 3 = 15 Subtract 3 2x = 12 Divide by 2 x = 6 Check: 2 × 6 + 3 = 15 ✓ 6 km.
A negative answer Higher Solve 5x + 8 = −7.
Subtract 8 5x = −15 Divide by 5 x = −3 Check: 5 × (−3) + 8 = −7 ✓ x = −3.
Common mistakes
Dividing before subtracting only one term 3x + 5 = 20 gives x + 5 = 6.67 ✗
subtract 5 first: x = 5 ✓
Divide every term, or subtract first.
Adding instead of subtracting 3x = 25 ✗
3x = 15 ✓
Undo + 5 by subtracting.
Sign error with minus 2x − 7 = 9 gives 2x = 2 ✗
2x = 16 ✓
Undo − 7 by adding.
Not checking no substitution ✗
substitute back ✓
It catches slips.
Exam tips
Undo + or − first.
Then divide.
x = (c − b) ÷ a.
Both sides.
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 2x + 3 = 11 Foundation x = 4
2. Solve 4x + 1 = 21 Foundation x = 5
3. Solve 3x − 2 = 13 Foundation x = 5
4. Solve 5x − 9 = 16 Higher x = 5
5. Solve 6x + 4 = −8 Higher x = −2
6. Solve 4x + 1 = 10 Higher x = 2.25
Practice generator Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Foundation Higher Mixed New question
Solve: …
The practice generator needs JavaScript.
Key terms
Two-step equation An equation needing two operations to solve. Coefficient The number multiplying x. Constant The number added or subtracted. Inverse operation Undoes another operation. Solution The value of x. Substitute Replace letters with numbers.
Frequently asked questions
How do you solve 3x + 5 = 20? Subtract 5 then divide by 3 to get x = 5.
Which step comes first? Undo the addition or subtraction.
How do I solve 2x − 7 = 9? Add 7 then divide by 2 to get x = 8.
Can the answer be negative? Yes.
Which page has x on both sides? solving ax + b = cx + d.
Which page has brackets? solving a(x + b) = c.