On this page
Before you start
This page is easier if you are comfortable with:
what an equation is adding and subtracting whole numbers, decimals and negatives the idea of an inverse operation
What Solving x + a = b means
An equation is a balance. Whatever you do to one side you must do to the other. To get x on its own, undo the “plus a ” by subtracting a from both sides.
The same idea works when numbers are decimals or negative, and it is the first step in solving every harder linear equation.
Check your answer by substituting it back into the original equation. The multiplicative version is solving ax = b , the two-step version is solving ax + b = c , and a formula is rearranged in rearranging y = mx + c for x . A closely connected idea is 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 = c , Rearranging y = mx + c for x , Solving a(x + b) = c , Solving x/a + b = c and Solving (x + a)/b = c .
What is it used for? The simplest type of equation: one operation has been added to x, and you undo it by doing the opposite to both sides.
Finding a missing number in everyday sums, such as “I had some money, spent £7 and have £12 left”. Building the skill that every other equation method relies on. Checking an answer by putting it back into the equation.
How to use solving x + a = b
Write the equation x + a = b . Subtract a from both sides. Simplify to get x = b − a . Substitute back to check.
Graph Solving x + 3 = 8 x = 5 -1 0 1 2 3 4 5 6 7 8 0 2 4 6 8 10 Solving x + 3 = 8 x y y = x + 3 y = 8 Graph with x from -1 to 8 and y from -1 to 11. Shows the curve y = x + 3; the curve y = 8; point x = 5 at (5, 8). The line y = x + 3 meets y = 8 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 x + 7 = 12 .
Try this in the solver: x+7=12
Linear equation Answer checked
The equation
Solving for x .
x + 7 = 12
Move everything to one side
x + 7 − ( 12 ) = 0
Simplify
x − 5 = 0
Isolate x
Subtract the constant from both sides.
x = 5
Divide both sides by 1
x = 5
Check by substituting back
x = 5 ✓
Example 2: subtracting a number Solve x − 3 = 10 . Here you add 3 to both sides.
Try this in the solver: x-3=10
Linear equation Answer checked
The equation
Solving for x .
x − 3 = 10
Move everything to one side
x − 3 − ( 10 ) = 0
Simplify
x − 13 = 0
Isolate x
Subtract the constant from both sides.
x = 13
Divide both sides by 1
x = 13
Check by substituting back
x = 13 ✓
Example 3: with decimals Solve x + 2.5 = 9 .
Try this in the solver: x+2.5=9
Linear equation Answer checked
The equation
Solving for x .
x + 2 5 = 9
Move everything to one side
x + 2 5 − ( 9 ) = 0
Simplify
x − 2 13 = 0
Isolate x
Subtract the constant from both sides.
x = 2 13
Divide both sides by 1
x = 2 13
Check by substituting back
x = 6.5 ✓
Special cases
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Subtract to undo adding x + 7 = 12: x = 12 − 7 = 5
Subtract 7 from both sides.
Add to undo subtracting x − 3 = 10: x = 10 + 3 = 13
Add 3 to both sides.
Decimals x + 2.5 = 9: x = 6.5
Same method with decimals.
A negative answer x + 12 = 5: x = −7
The answer can be negative.
Word problems
To solve x + a = b, do the opposite of what has been done to x. Whatever you do to one side, do to the other.
A whole-number answer Solve x + 7 = 12.
Subtract 7 from both sides x = 12 − 7 Calculate x = 5 Check: 5 + 7 = 12 ✓ x = 5.
Subtracting a number Solve x − 3 = 10.
Add 3 to both sides x = 10 + 3 Calculate x = 13 Check: 13 − 3 = 10 ✓ x = 13.
A word problem Higher A number plus 18 is 45. Find the number.
Write the equation x + 18 = 45 Subtract 18 x = 27 Check: 27 + 18 = 45 ✓ The number is 27.
With decimals Higher Solve x + 2.5 = 9.
Subtract 2.5 x = 9 − 2.5 Calculate x = 6.5 Check: 6.5 + 2.5 = 9 ✓ x = 6.5.
Common mistakes
Adding when you should subtract x + 7 = 12 gives x = 19 ✗
x = 12 − 7 = 5 ✓
Do the inverse.
Changing one side only x = 12 and the 7 vanishes ✗
subtract 7 from both sides ✓
Keep the balance.
Sign error with subtraction x − 3 = 10 gives x = 7 ✗
x = 10 + 3 = 13 ✓
Undo minus by adding.
Not checking no substitution ✗
substitute back ✓
It takes seconds.
Exam tips
Do the inverse operation.
Both sides every time.
Check by substituting.
Negative answers are fine.
Write each step on a new line.
Practice questions
Try each one on paper, then open the answer. Use the solver above to see the full working.
1. Solve x + 4 = 11 Foundation x = 11 − 4 = 7
2. Solve x + 9 = 20 Foundation x = 20 − 9 = 11
3. Solve x − 6 = 5 Foundation x = 5 + 6 = 11
4. Solve x − 8 = 3 Higher x = 3 + 8 = 11
5. Solve x + 3.5 = 10 Higher x = 10 − 3.5 = 6.5
6. Solve x + 12 = 5 Higher x = 5 − 12 = −7
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
Equation Two expressions joined by an equals sign. Solution The value that makes it true. Inverse operation An operation that undoes another. Balance Both sides stay equal. Unknown The letter to find. Substitute Put a value in place of a letter.
Frequently asked questions
How do you solve x + 7 = 12? Subtract 7 from both sides to get x = 5.
How do you solve x − 3 = 10? Add 3 to both sides to get x = 13.
What is the inverse of addition? Subtraction.
What is the golden rule of solving equations? Do the same to both sides.
How do I check my solution? Substitute it back into the original equation.
What is the next step up? solving ax = b.