On this page
Before you start
This page is easier if you are comfortable with:
What Solving ax = b means
a x means a multiplied by x . To undo multiplication, divide both sides by a .
The answer may be a fraction or decimal, for example 4 x = 10 gives x = 2 5 .
Dividing by a negative number changes the sign of the answer. The next equations are solving ax + b = c and solving x/a + b = c , and the simplest is solving x + a = b. It also helps to know Solving ax + b = cx + d , which uses the same ideas.
This page is part of Linear equations in Algebra . Topics that work alongside it: Solving x + a = b , Solving ax + b = c , Solving x/a + b = c , Solving a(x + b) = c , Solving (x + a)/b = c and Solving ax + b = cx + d .
What is it used for? When x is multiplied by a number, you divide both sides by that number to get x on its own.
Finding a unit price, speed or rate from a total, such as 5 notebooks cost £12.50. Solving the last step of longer equations. Converting between units where one quantity is a multiple of another.
How to use solving ax = b
Write the equation a x = b . Divide both sides by a . Simplify the fraction b / a . Check by substituting back.
Graph Solving 2x = 10 x = 5 -1 0 1 2 3 4 5 6 7 8 0 2 4 6 8 10 12 14 Solving 2x = 10 x y y = 2x y = 10 Graph with x from -1 to 8 and y from -1 to 14. Shows the curve y = 2x; the curve y = 10; point x = 5 at (5, 10). The line y = 2x meets y = 10 where x = 5.
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 = 21 .
Try this in the solver: 3x=21
Linear equation Answer checked
The equation
Solving for x .
3 x = 21
Move everything to one side
3 x − ( 21 ) = 0
Simplify
3 x − 21 = 0
Isolate x
Subtract the constant from both sides.
3 x = 21
Divide both sides by 3
x = 7
Check by substituting back
x = 7 ✓
Example 2: a fraction answer Solve 4 x = 10 .
Try this in the solver: 4x=10
Linear equation Answer checked
Answer
x = 5 2 x = \frac{5}{2} x = 2 5 x ≈ 2.5
The equation
Solving for x .
4 x = 10
Move everything to one side
4 x − ( 10 ) = 0
Simplify
4 x − 10 = 0
Isolate x
Subtract the constant from both sides.
4 x = 10
Divide both sides by 4
x = 2 5
Check by substituting back
x = 2 5 ✓
Example 3: a negative answer Solve 5 x = − 35 .
Try this in the solver: 5x=-35
Linear equation Answer checked
The equation
Solving for x .
5 x = − 35
Move everything to one side
5 x − ( − 35 ) = 0
Simplify
5 x + 35 = 0
Isolate x
Subtract the constant from both sides.
5 x = − 35
Divide both sides by 5
x = − 7
Check by substituting back
x = − 7 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
A whole-number answer 3x = 21: x = 7
Divide both sides by 3.
A fraction answer 4x = 10: x = 2.5
The answer need not be whole.
A negative answer 5x = −35: x = −7
A negative divided by a positive is negative.
A negative coefficient −2x = 8: x = −4
Divide by −2.
Word problems
To solve ax = b, divide both sides by a: x = b ÷ a.
A whole-number answer Solve 3x = 21.
Divide both sides by 3 x = 21 ÷ 3 Calculate x = 7 Check: 3 × 7 = 21 ✓ x = 7.
A fraction answer Solve 4x = 10.
Divide by 4 x = 10 ÷ 4 Calculate x = 2.5 Check: 4 × 2.5 = 10 ✓ x = 2.5.
Pens Higher 6 pens cost £15. Find the cost of one pen.
Write the equation 6x = 15 Divide by 6 x = 2.5 Check: 6 × 2.5 = 15 ✓ £2.50.
A negative answer Higher Solve 5x = −35.
Divide by 5 x = −35 ÷ 5 Calculate x = −7 Check: 5 × (−7) = −35 ✓ x = −7.
Common mistakes
Multiplying instead of dividing 3x = 21 gives x = 63 ✗
x = 21 ÷ 3 = 7 ✓
Undo multiplication by dividing.
Dividing the wrong way x = 3 ÷ 21 ✗
x = 21 ÷ 3 ✓
The coefficient goes underneath.
Losing the negative sign 5x = −35 gives x = 7 ✗
x = −7 ✓
Keep the sign.
Subtracting the coefficient 3x = 21 gives x = 18 ✗
divide, not subtract ✓
3x means 3 times x.
Exam tips
Divide by the coefficient.
Both sides.
Keep the sign.
Check by multiplying back.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Solve 2x = 18 Foundation x = 9
2. Solve 5x = 40 Foundation x = 8
3. Solve 7x = 63 Foundation x = 9
4. Solve 4x = 6 Higher x = 1.5
5. Solve 6x = −30 Higher x = −5
6. Solve −3x = 12 Higher x = −4
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
Coefficient The number multiplying x. Inverse operation Division undoes multiplication. Solution The value of x. Equation Two expressions that are equal. Fraction A part of a whole. Negative number A number below zero.
Frequently asked questions
How do you solve 3x = 21? Divide both sides by 3 to get x = 7.
What if the answer is not a whole number? Write it as a fraction or decimal.
What do I do with a negative coefficient? Divide by it, and watch the sign.
What is the inverse of multiplication? Division.
Which page adds one more step? solving ax + b = c.
Which page covers x + a = b? solving x + a = b.