Solving Ax + b = c Equation Solver with Worked Examples

To solve , subtract then divide by : . Type an equation such as and the solver shows each step.

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 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 ”, then the “times ”.

Subtract from both sides to get , then divide both sides by .

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.

How to use solving ax + b = c

  1. Write the equation .
  2. Subtract from both sides.
  3. Divide both sides by .
  4. Substitute back to check.

Graph

Solving 2x + 3 = 11 on a graphx = 4-101234567-20246810121416Solving 2x + 3 = 11 on a graphxyy = 2x + 3y = 11Graph 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 .

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 2: with a minus sign

Solve .

Linear equation Answer checked
Answer
x=8x = 8
  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: a subtracted constant

Solve 4x − 3 = 17.

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
    ✓

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.

  1. Subtract 53x = 15
  2. Divide by 3x = 5
  3. Check: 3 × 5 + 5 = 20 ✓x = 5.

With a minus

Solve 2x − 7 = 9.

  1. Add 72x = 16
  2. Divide by 2x = 8
  3. 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?

  1. Write the equation2x + 3 = 15
  2. Subtract 32x = 12
  3. Divide by 2x = 6
  4. Check: 2 × 6 + 3 = 15 ✓6 km.

A negative answer Higher

Solve 5x + 8 = −7.

  1. Subtract 85x = −15
  2. Divide by 5x = −3
  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

  1. Undo + or − first.
  2. Then divide.
  3. x = (c − b) ÷ a.
  4. Both sides.
  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 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.

Solve: …

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.

More in Algebra and the formula sheets.