Solving Systems by Elimination, Step by Step
A step-by-step guide to elimination, with multipliers, rearranging, special cases, checks and the reason the method works.
Key takeaways
- Line up both equations in the same order, usually ax + by = c.
- Add the equations when a variable has opposite coefficients, and subtract when the coefficients match.
- Multiply every term of an equation, including the constant, when you need to create a match.
- If both variables vanish, a false result means no solution and a true one means infinitely many.
- Always check the pair in both original equations.
Elimination solves a system by adding or subtracting its equations so that one variable cancels out. You are left with one equation in one unknown, you solve it, and you substitute the value back to find the other.
The only preparation is arranging for one variable to have matching or opposite coefficients, which you can always do by multiplying an equation by a suitable nonzero number.
The case that needs no preparation
Look at this system.
2x + 3y = 12
4x - 3y = 6 The y terms are 3y and -3y. Add the left sides together and the right sides together.
6x = 18
x = 3 Substitute x = 3 into the first equation: 6 + 3y = 12, so y = 2. The solution is (3, 2). Check it in the second equation: 12 - 6 = 6.
Why may you add equations? Each equation states that two quantities are equal. Adding equal amounts to equal amounts gives equal totals, so any pair satisfying both originals must also satisfy the sum.
The full procedure
Pick the variable that is cheapest to remove. If the y coefficients are 3 and 6, one multiplication is enough. If the x coefficients are 7 and 5, you will need two.
Multiplying one equation
3x + 2y = 16
x + y = 7 Multiply the second equation by -2 so that its y term becomes -2y.
3x + 2y = 16
-2x - 2y = -14
x = 2 Then 2 + y = 7 gives y = 5. Check in the first: 6 + 10 = 16.
You could instead multiply by +2 and subtract. Many people find that adding with a negative multiplier causes fewer sign errors, because subtraction has to be applied to every term, and the constant on the right is easy to miss.
The most frequent mistake at this stage is multiplying only the left side. The line -2x - 2y = 7 is simply a different equation, and it will lead to a wrong pair.
Multiplying both equations
3x + 4y = 10
5x + 6y = 16 Neither coefficient divides the other. Aim for a common multiple. The x coefficients 3 and 5 meet at 15, while the y coefficients 4 and 6 meet at 12, so removing y keeps the numbers smaller.
first × 3: 9x + 12y = 30
second × -2: -10x - 12y = -32
add: -x = -2
x = 2 Now 3(2) + 4y = 10 gives y = 1. The solution is (2, 1), and the second equation confirms it: 10 + 6 = 16.
Using the least common multiple is not required. Any common multiple works. It only keeps the arithmetic lighter.
Rearranging before you start
Equations do not always arrive in matching order. Here is a system in mixed form.
4y = 3x - 1
2x + 3y = 22 Move the variables of the first equation to one side: -3x + 4y = -1. Now eliminate x using the multiplier 2 on the first and 3 on the second.
first × 2: -6x + 8y = -2
second × 3: 6x + 9y = 66
add: 17y = 64 That gives y = 64/17, a perfectly valid but awkward answer. Fractions like this are normal, and nothing has gone wrong just because the numbers are not round.
Before multiplying, also simplify any equation whose terms share a factor. The equation 6x + 10y = 14 is easier to use as 3x + 5y = 7. If your system contains fractions or decimals, clear them first, as shown in systems with fraction and decimal coefficients.
Eliminating twice to avoid ugly substitution
When the first value is a messy fraction, substituting it back is unpleasant. Start over and eliminate the other variable.
7x + 3y = 5
2x + 5y = 3
Remove y: 35x + 15y = 25
6x + 15y = 9 subtract: 29x = 16, x = 16/29
Remove x: 14x + 6y = 10
14x + 35y = 21 subtract: 29y = 11, y = 11/29 Check in the first equation: 7(16/29) + 3(11/29) = (112 + 33)/29 = 145/29 = 5. In the second: (32 + 55)/29 = 87/29 = 3.
The same number, 29, appears in both denominators. It equals 7 · 5 - 3 · 2, the determinant of the coefficients. That pattern is the basis of Cramer's rule.
Adding or subtracting: which to do
The rule depends on the signs of the matched terms. If they are opposites, such as 7y and -7y, add. If they are identical, such as 7y and 7y, subtract. A short memory aid is that you want the matched terms to total zero.
Subtraction is where most errors happen, so write it out once with parentheses.
5x + 2y = 20
5x - 4y = 2
(5x + 2y) - (5x - 4y) = 20 - 2
5x + 2y - 5x + 4y = 18
6y = 18
y = 3 Then 5x + 6 = 20 gives x = 14/5. Check in the second equation: 14 - 12 = 2.
Notice that 2y - (-4y) became 6y, not -2y. If this step feels risky, multiply the second equation by -1 first, giving -5x + 4y = -2, and add instead. The arithmetic is identical, but each sign is written where you can see it.
You may subtract in either order. Taking the second equation minus the first gives -6y = -18, which leads to the same y = 3. Whichever order you choose, use it on both sides.
When both variables disappear
Consider 2x - 4y = 6 with -x + 2y = -3. Multiplying the second by 2 gives -2x + 4y = -6, and adding produces 0 = 0. The second equation was the first in disguise. There are infinitely many solutions, namely all pairs on the line x - 2y = 3.
Change the second equation to -x + 2y = 1. Multiplying by 2 gives -2x + 4y = 2, and adding produces 0 = 8. That is false, so there is no solution. The lines are parallel.
Neither outcome means the method failed. It has told you something definite about the system, a theme explored in consistent, inconsistent and dependent systems.
Elimination with letters
The same moves solve systems whose coefficients are letters. Take ax + y = 1 and x + ay = 1, where a is a constant. To remove y, multiply the first equation by a and subtract the second.
a²x + ay = a
x + ay = 1
(a² - 1)x = a - 1 If a is neither 1 nor -1, divide by a² - 1 = (a - 1)(a + 1) to get x = 1/(a + 1). By the symmetry of the system, y has the same value. For a = 2, both equal 1/3, and indeed 2/3 + 1/3 = 1.
The two excluded values need a separate look. When a = 1 the equations are both x + y = 1, so there are infinitely many solutions. When a = -1 they read -x + y = 1 and x - y = 1. Adding gives 0 = 2, so there is none. Dividing without checking for zero would have hidden both cases.
Why the answers cannot change
When you replace the second equation with "second plus k times first" and keep the first, you can reverse the step by subtracting k times the first. So a pair satisfies the new system exactly when it satisfies the old one. Multiplying an equation by a nonzero number is reversible too, by dividing.
This is why you should keep one original equation alongside the new combined one. The single combined equation, taken alone, has more solutions than the system.
Elimination also scales up well. For three or more unknowns, you remove one variable from all equations but one, then repeat on the smaller system. Organized as a table of numbers, this is Gaussian elimination. The three-variable version by hand is in three equations in three unknowns.
A short applied example
A theater sells adult and child tickets. Suppose 5 adult and 3 child tickets cost 84 dollars, while 2 adult and 4 child tickets cost 56 dollars. Let a and c be the two prices.
5a + 3c = 84
2a + 4c = 56 divide by 2: a + 2c = 28
multiply that by -5: -5a - 10c = -140
add to the first: -7c = -56
c = 8
a = 28 - 2(8) = 12 Adult tickets cost 12 dollars and child tickets 8. Check both purchases: 60 + 24 = 84, and 24 + 32 = 56.
Noticing that the second equation could be halved turned a two-multiplier problem into a one-multiplier problem.
Three unknowns in brief
To see how the idea grows, take these equations.
x + y + z = 6
x - y + z = 2
x + y - z = 0 Subtract the second from the first to remove x and z together: 2y = 4, so y = 2. Subtract the third from the first: 2z = 6, so z = 3. Then x = 6 - 2 - 3 = 1. The solution is (1, 2, 3), and it fits all three: 1 + 2 + 3 = 6, 1 - 2 + 3 = 2, and 1 + 2 - 3 = 0.
Real systems rarely collapse this quickly. The reliable plan is to remove the same variable using two different pairs of equations, which leaves two equations in two unknowns, and then to apply the method you already know.
Checking the whole job
A finished solution deserves one last pass. Substitute both values into the original equations, not into a multiplied or combined version, because an arithmetic slip made while preparing the equations would be copied into the check. If the first equation works and the second does not, look closely at the step where you recovered the second variable.
Mistakes to avoid
- Forgetting the constant when multiplying an equation.
- Subtracting only the first term. Subtracting -3y means adding 3y.
- Combining unlike terms because the equations were not lined up.
- Multiplying by zero, which wipes out an equation.
- Reporting one number. Finish with both values.
If you are unsure whether elimination is the best route for a particular system, compare the signs described in substitution or elimination.