This site is a work in progress. New lessons are added regularly. Contact us

Solving Systems by Elimination

Learning goals

  • Add or subtract equations so one variable cancels
  • Scale one or both equations to match the coefficients
  • Justify the method from the properties of equality
  • Back-substitute for the second variable, then check both
  • Read 0=k0 = k as no solution and 0=00 = 0 as infinitely many
  • Prefer elimination in standard form, substitution when one is isolated

Adding equations to cancel a variable

A system of two linear equations asks for the pair (x,y)(x, y) that satisfies both equations at the same time. Substitution found that pair by isolating a variable and replacing it. Elimination finds it by combining the two equations so that one variable cancels outright.

Start with a system whose coefficients are already arranged for it:

x+y=5,xy=1.x + y = 5, \qquad x - y = 1.

Look at the yy terms. The first equation has +y+y, the second has y-y, and those are opposites. So if you add the equations column by column, the yy terms sum to zero and drop out. Add the left sides, add the right sides:

(x+y)+(xy)=5+1.(x + y) + (x - y) = 5 + 1.

The +y+y and y-y cancel, and what remains has only xx in it:

2x=6,x=3.2x = 6, \qquad x = 3.

One variable is solved already. Recover the other by putting x=3x = 3 back into either original equation, say x+y=5x + y = 5:

3+y=5,y=2.3 + y = 5, \qquad y = 2.

The candidate solution is (3,2)(3, 2). Check it in both equations, exactly as you did with substitution: 3+2=53 + 2 = 5 and 32=13 - 2 = 1, both true. So (3,2)(3, 2) solves the system.

The move that did the work was adding two equations to cancel a variable. It succeeds whenever a variable’s coefficients are opposites, because opposite numbers sum to zero. If instead the coefficients are equal, subtracting one equation from the other cancels the variable just as well. Adding and subtracting are the two faces of elimination. The only remaining question is what to do when the coefficients are neither opposite nor equal.

The elimination method step by step

Every system yields to the same routine.

  1. Line up the equations in standard form ax+by=cax + by = c, so like terms sit in columns.
  2. Match a variable’s coefficients. Pick the variable to eliminate, then multiply one or both equations by nonzero constants so its coefficients become opposites (to add) or equal (to subtract).
  3. Add or subtract the equations to remove that variable, leaving one equation in one unknown.
  4. Solve the one-variable equation.
  5. Back-substitute the value into an original equation to find the other variable.
  6. Check the pair in both original equations.

When a variable already has opposite coefficients, step 2 costs nothing and you go straight to adding.

Worked example 1 Solve 2x+y=72x + y = 7 and 3xy=83x - y = 8

Scan the columns for a variable ready to cancel. The first equation has +y+y and the second has y-y, opposites, so adding the equations eliminates yy with no setup:

(2x+y)+(3xy)=7+8.(2x + y) + (3x - y) = 7 + 8.

The yy terms cancel and the xx terms combine:

5x=15,x=3.5x = 15, \qquad x = 3.

Back-substitute x=3x = 3 into an original equation. Using 2x+y=72x + y = 7:

2(3)+y=7,6+y=7,y=1.2(3) + y = 7, \qquad 6 + y = 7, \qquad y = 1.

So the candidate is (3,1)(3, 1). Check it in both equations, not just the one you used:

2(3)+1=7 ,3(3)1=8 .2(3) + 1 = 7 \ \checkmark, \qquad 3(3) - 1 = 8 \ \checkmark.

Both hold, so the solution is (3,1)(3, 1).

Check your understanding

To solve 3x+4y=103x + 4y = 10 and 5x4y=65x - 4y = 6 by elimination, you add the two equations. Which variable is eliminated, and what equation results?

Answer choices

Why adding equations keeps every solution

Elimination keeps one of the two equations and replaces the other with a combined equation, then solves that smaller system. It is worth seeing why this is trustworthy: the new system is made of the equation you kept and the combined equation. That new system has exactly the same solution pairs as the original, so no common solution is lost and none is invented.

Why combining the equations preserves the solution set#

A system asks for every pair (x,y)(x, y) that makes both equations true at once, and that collection of pairs is its solution set. Two properties of equality do all the work. The addition property says that if L1=R1L_1 = R_1 and L2=R2L_2 = R_2 are both true, then adding them gives another true statement, L1+L2=R1+R2L_1 + L_2 = R_1 + R_2. The multiplication property says that if L=RL = R is true, then kL=kRkL = kR is true for any number kk. Scaling an equation and adding two equations are exactly the moves elimination uses.

First, no common solution is lost. Elimination keeps one original equation, say the first, and replaces the second with a combined equation built as mm times the first plus nn times the second. Suppose a pair (x0,y0)(x_0, y_0) solves the original system, so it makes both equations true. By the multiplication property, scaling the first equation by mm and the second by nn keeps each true for this pair. By the addition property, their sum is then true for this pair as well. That sum is exactly the combined equation, so the pair satisfies it. The pair also still satisfies the kept first equation, so it solves the new system made of the first equation and the combined equation. Every solution of the original system survives into the new one.

Second, no new common solution is invented. The replacement is reversible. The combined equation is mm times the first plus nn times the second. Subtracting mm times the first equation from that combined equation, and then dividing by nn, gives back the second equation exactly. This undoing is valid because the multiplier nn on the second equation is not zero. That is guaranteed, since you never eliminate by multiplying an equation by zero, which would only erase it. So from the new system, the first equation together with the combined equation, you can rebuild the original second equation. Any pair that solves the new system therefore also satisfies the second equation, and so it solves the original system too.

The new system is the first equation paired with the combined equation. The two directions together show that this new system has exactly the same solution set as the original. Elimination therefore trades the system for an equivalent one in which a variable is already gone. This also explains the unusual outcomes. When the combined equation still carries a variable, it pins that variable to a single value and the system has one solution. When both variables cancel and leave a false statement such as 0=80 = 8, no pair can satisfy the equations, so the lines are parallel and there is no solution. When both cancel and leave a statement that is always true such as 0=00 = 0, the second equation was a multiple of the first all along. The two equations therefore describe the same line, and every point on that line solves the system.

Matching the coefficients: multiply, then eliminate

Most systems do not hand you opposite coefficients. You create them. Multiplying an entire equation by a nonzero constant produces an equation with the same solutions, by the multiplication property of equality. The new equation carries rescaled coefficients, and you can aim those at a match.

Two situations arise. Sometimes one variable’s coefficient in one equation is a multiple of its coefficient in the other, so multiplying just one equation lines them up. When neither coefficient is a multiple of the other, multiply both equations, scaling the chosen variable’s coefficients up to their least common multiple. Make one of those coefficients positive and the other negative, so they cancel on adding.

Worked example 2 Multiply one equation: solve x+2y=11x + 2y = 11 and 3xy=53x - y = 5

Aim to eliminate yy. The first equation has +2y+2y and the second has y-y. Doubling the second turns its y-y into 2y-2y, the opposite of the +2y+2y above it. Multiply every term of 3xy=53x - y = 5 by 22:

6x2y=10.6x - 2y = 10.

Now add this to the first equation, x+2y=11x + 2y = 11:

(x+2y)+(6x2y)=11+10.(x + 2y) + (6x - 2y) = 11 + 10.

The yy terms cancel:

7x=21,x=3.7x = 21, \qquad x = 3.

Back-substitute x=3x = 3 into x+2y=11x + 2y = 11:

3+2y=11,2y=8,y=4.3 + 2y = 11, \qquad 2y = 8, \qquad y = 4.

The solution is (3,4)(3, 4). Check the second equation too: 3(3)4=94=53(3) - 4 = 9 - 4 = 5, correct. Notice that only one equation needed multiplying, because the coefficient 22 was already a multiple of the 11 on the y-y.

Check your understanding

You want to solve 3x+2y=73x + 2y = 7 and x+y=3x + y = 3 by elimination. If you multiply the second equation by 2-2 and add it to the first, which variable is eliminated?

Answer choices

When neither coefficient divides the other, you scale both equations. Aim the variable you are eliminating at the least common multiple of its two coefficients.

Worked example 3 Multiply both equations: solve 2x+3y=72x + 3y = 7 and 3x+2y=83x + 2y = 8

Eliminate xx. Its coefficients are 22 and 33, and neither divides the other, so scale both up to their least common multiple, 66. Multiply the first equation by 33 and the second by 22:

6x+9y=21,6x+4y=16.6x + 9y = 21, \qquad 6x + 4y = 16.

Both now carry 6x6x. Since the xx coefficients are equal rather than opposite, subtract the second equation from the first so the 6x6x terms cancel. Subtracting flips every sign in the second equation:

(6x+9y)(6x+4y)=2116,5y=5,y=1.(6x + 9y) - (6x + 4y) = 21 - 16, \qquad 5y = 5, \qquad y = 1.

Back-substitute y=1y = 1 into 2x+3y=72x + 3y = 7:

2x+3(1)=7,2x=4,x=2.2x + 3(1) = 7, \qquad 2x = 4, \qquad x = 2.

The solution is (2,1)(2, 1), and 3(2)+2(1)=83(2) + 2(1) = 8 confirms the second equation. You could instead have multiplied the second equation by 2-2 to get 6x4y=16-6x - 4y = -16 and then added; the result is identical. Making coefficients equal and subtracting, or opposite and adding, are two routes to the same cancellation.

When a variable cancels to a number: no solution and infinitely many

Usually elimination leaves a one-variable equation that pins a value down. Once in a while both variables cancel together and you are left with a bare numerical statement. As with substitution, that is not a dead end; it is the system telling you how the two lines lie.

Worked example 4 A system with no solution

Solve

2x+y=5,4x+2y=3.2x + y = 5, \qquad 4x + 2y = 3.

Eliminate xx. Multiply the first equation by 2-2 so its 2x2x becomes 4x-4x, opposite the 4x4x below:

4x2y=10.-4x - 2y = -10.

Add this to 4x+2y=34x + 2y = 3:

(4x2y)+(4x+2y)=10+3.(-4x - 2y) + (4x + 2y) = -10 + 3.

Both variables cancel at once, and what is left is

0=7.0 = -7.

This is false: no values of xx and yy can make 00 equal 7-7. So the system has no solution. The two lines have the same steepness but different heights, so they are parallel and never meet.

Worked example 5 A system with infinitely many solutions

Solve

x3y=2,2x6y=4.x - 3y = 2, \qquad 2x - 6y = 4.

Eliminate xx by doubling the first equation so its xx becomes 2x2x:

2x6y=4.2x - 6y = 4.

This is now identical to the second equation, so subtracting them gives

0=0.0 = 0.

Every term has cancelled and the statement left over is always true. That means every pair solving the first equation already solves the second, so the system has infinitely many solutions. The second equation is just the first multiplied by 22, so the two describe the same line. Each point on that line, written (x,y)(x, y) with x3y=2x - 3y = 2, is a solution.

Check your understanding

Eliminating a variable from a system, you reach 0=60 = 6. What does this tell you?

Answer choices

Substitution or elimination?

Both methods return the same pair, so the choice is about convenience. Reach for elimination when both equations are already in standard form ax+by=cax + by = c. Elimination fits especially well when a variable shares a coefficient or an easy multiple across the two equations, so a single add or subtract clears it. Reach for substitution when one equation already has a variable isolated, like y=3x2y = 3x - 2, because you can drop that expression straight into the other equation. Many systems accept either method comfortably; with a little practice you will glance at a system and pick the route that needs fewer steps.

Seeing the cancellation

The whole method comes down to lining up like terms and adding so that a column cancels. Here is the first worked example laid out that way. The yy column holds +y+y directly above y-y, opposite terms that sum to zero, so adding the two equations erases yy and leaves a single equation in xx.

Elimination shown as aligned column additionThe equations 2x + y = 7 and 3x - y = 8 stacked so like terms line up. The y-terms +y and -y are opposites in a highlighted column; adding the equations cancels y and gives 5x = 15.2x+y=73x-y=85x=15opposite terms cancel
Elimination as column addition. The first worked example, 2x + y = 7 and 3x - y = 8, is stacked so like terms align. The y column holds +y above -y, opposites that sum to zero, so adding the equations cancels y and leaves 5x = 15.

Every elimination problem is this picture. When the canceling column is not already in place, you multiply one or both equations first to force it there, then add.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)
A bit of history (Optional)

A farmer brings in three grades of grain. Three bundles of the best grade, two of the middle and one of the poorest together fill a known measure. Two other mixtures fill two other known measures. How much does one bundle of each grade hold?

That problem is about two thousand years old. It comes from a Chinese classic, The Nine Chapters on the Mathematical Art. The book gathers hundreds of questions from daily life, and the methods that answer them. Its eighth chapter is called Fangcheng, and every problem in it is a system of linear equations.

The method given there is the one you have just learned. The numbers of each equation go into a column of their own, set side by side. Then one column is scaled and taken away from the next. You pick the scaling so that a single unknown falls away. Repeat, and the unknowns vanish one at a time until one stands alone. Work backwards to recover the rest.

Nothing there needs the equals sign, or the letter xx, or even the habit of writing an equation on one line. None of them existed yet. The bookkeeping was different. The move was the same as yours.

Today the routine usually carries the name of Carl Friedrich Gauss. This German mathematician used it in the early 1800s to track a newly found minor planet. He never claimed to have invented it. The name was attached long after his death. When you scale one equation and subtract it from another to knock out a variable, you are running a method eighteen centuries older than its name.