Part 19 of 36 · EquationsSee the whole course

How to solve a system by elimination

Short answer

Elimination solves a system by adding or subtracting the two equations so that one letter cancels. That leaves one equation with one unknown. Solve it, put the answer back into either equation to find the other letter, and check in both.

Why adding two equations is allowed

An equation says two amounts are equal. If you add equal amounts to equal amounts, the results are still equal. So if x + y = 7 and x − y = 1, then (x + y) + (x − y) = 7 + 1 is a true equation too. The point of the move is that the y terms are +y and −y, and they cancel.

On a graph, both equations are lines, and the solution is the one point where they cross. (If that picture is new, start with solving a system by graphing.) Elimination finds that point with algebra and no drawing.

The steps

  1. Line up both equations so that the x terms, the y terms and the numbers are in columns, like standard form: Ax + By = C.
  2. Make one letter match. If a letter has opposite numbers (+y and −y), or the same number (2x and 2x), go on. If not, multiply one or both equations to make them match.
  3. Cancel. Add the equations if the numbers are opposites. Subtract if they are the same.
  4. Solve the one equation that is left.
  5. Put the answer back into either original equation to find the other letter.
  6. Check the pair in both equations.

Try all three kinds below. Press the step buttons to see each stage on the graph.

x + y = 7, x − y = 1
  1. x + y = 7 and x − y = 1
The y terms are +y and −y. Add the equations and they cancel.

Example 1: add, x + y = 7 and x − y = 1

The y terms are +y and −y, so add the equations:
(x + y) + (x − y) = 7 + 1, so 2x = 8 and x = 4
Put x = 4 into x + y = 7: 4 + y = 7, so y = 3
Check in x − y = 1: 4 − 3 = 1 ✓
The solution is (4, 3).

Example 2: subtract, 2x + 3y = 12 and 2x − y = 4

This time the x terms are the same (2x and 2x), so subtract the second equation from the first. Subtract everything, including the signs: minus (−y) becomes plus y.

(2x + 3y) − (2x − y) = 12 − 4
2x − 2x = 0 and 3y + y = 4y, so 4y = 8 and y = 2
Put y = 2 into 2x + 3y = 12: 2x + 6 = 12, so x = 3
Check in 2x − y = 4: 6 − 2 = 4 ✓
The solution is (3, 2).

Example 3: multiply first, 2x + 3y = 13 and 3x − 2y = 0

Nothing matches here: 2x and 3x, 3y and −2y. Make the y terms match. The numbers 3 and 2 both go into 6, so multiply the first equation by 2 and the second by 3. Every term gets multiplied, including the number on the right.

First × 2: 4x + 6y = 26
Second × 3: 9x − 6y = 0
The y terms are +6y and −6y, so add: 13x = 26, and x = 2
Put x = 2 into 2x + 3y = 13: 4 + 3y = 13, so 3y = 9 and y = 3
Check in 3x − 2y = 0: 6 − 6 = 0 ✓
The solution is (2, 3).

What if both letters cancel?

Sometimes adding or subtracting removes x and y at the same time. If what is left is false, like 0 = 5, the lines are parallel and there is no solution. If what is left is always true, like 0 = 0, the two equations are the same line and there are infinitely many solutions. See no solution or infinitely many solutions for the pictures.

Which method should you pick?

Watch it explained in under a minute

The same idea, narrated step by step. Square version for sharing: download the 1:1 video.
Read the video transcript

Two equations, two letters. x + y = 7. x − y = 1.

+y and −y cancel. So add the equations. x + x = 2x. 7 + 1 = 8.

Now one letter is left. 2x = 8. Divide by 2, and x = 4.

Put 4 into the first equation. 4 + y = 7. So y = 3. The lines cross at (4, 3).

Check with the other equation. 4 − 3 = 1. It works.

Want practice questions and more examples? Full guide: pipmath.app/blog

The five mistakes to avoid

Try it yourself

Solve each system. Tap a question to see the answer.

1. x + y = 10 and x − y = 4

Add: 2x = 14, so x = 7. Then 7 + y = 10 gives y = 3. (7, 3). Check: 7 − 3 = 4 ✓.

2. 3x + y = 11 and x + y = 5

The y terms are the same, so subtract: 2x = 6, so x = 3. Then 3 + y = 5 gives y = 2. (3, 2). Check: 9 + 2 = 11 ✓.

3. 3x + 2y = 16 and x − y = 2

Multiply the second equation by 2: 2x − 2y = 4. Add it to the first: 5x = 20, so x = 4. Then 4 − y = 2 gives y = 2. (4, 2). Check: 12 + 4 = 16 ✓.

Where this fits in

You now have three ways to solve a system: graphing, substitution and elimination. Next in this course: what happens when the lines never meet, or are the same line, in no solution or infinitely many solutions.

Quick answers

Questions about this topic

What is the elimination method?

Elimination solves a system of equations by adding or subtracting the two equations so that one letter cancels. You then solve the one equation that is left and put the answer back to find the other letter.

When do you add and when do you subtract?

Add the equations when the numbers in front of the letter you want to remove are opposites, like +y and −y. Subtract when they are the same, like 2x and 2x.

What if no letter matches?

Multiply one or both equations by a number so that one letter has matching or opposite numbers. Multiply every term, including the number on the right of the equals sign.

How do you know the answer is right?

Put the pair (x, y) into both original equations. If both are true, the pair is the solution, and it is the point where the two lines cross.

Keep going

Learn it by playing

Pip: Math Adventure is a math game for iPhone where functions, lines, equations and calculus are puzzles you solve by playing. It is coming soon to the App Store.

Join the list and we will tell you the day Pip is out.