Systems of Equations

The Elimination Method: Solving Systems of Equations

The elimination method adds or subtracts two equations so that one variable cancels, leaving a single equation you can solve. Then you substitute that value back to find the other variable.

x=ed−bfad−bc,y=af−ecad−bcx=\frac{ed-bf}{ad-bc},\quad y=\frac{af-ec}{ad-bc}

Try it with your numbers

Show every step

It works directly on equations in standard form Ax+By=CAx+By=C, so there is no rearranging and no early fractions. When one equation already has a variable isolated, substitution is usually quicker, and a later section gives a clean rule for choosing.

How does the elimination method work?

The method rests on one fact: if A=BA=B and C=DC=D, then A+C=B+DA+C=B+D. At the solution, each equation of the system is a true statement, so adding them gives another true statement at that same solution. Multiplying an equation by a nonzero number keeps it true as well. Elimination is a choice of multipliers that makes the total coefficient of one variable zero.

Geometrically, each equation is a line, and every combination of the two is another line through the same intersection point. Cancelling yy produces a vertical line x=kx=k through that point, and cancelling xx produces a horizontal one. You are building the lines that pin down the intersection that graphing can only estimate.

Solve 2x+3y=122x+3y=12 and 4x−3y=64x-3y=6. The yy-coefficients are 33 and −3-3, so they are already opposites. Add straight down:

2x+3y=124x−3y=66x=18\begin{aligned} 2x+3y&=12\\ 4x-3y&=6\\ \hline 6x&=18 \end{aligned}

So x=3x=3. Substitute into the first equation: 6+3y=126+3y=12, so 3y=63y=6 and y=2y=2. Check the equation you did not use for substitution: 4(3)−3(2)=12−6=64(3)-3(2)=12-6=6. The solution is (3,2)(3,2).

Quick check

Add the equations x+2y=9x+2y=9 and 3x−2y=73x-2y=7. What is xx?

How do you use elimination when nothing cancels?

Most systems do not arrive with matching coefficients, so you create them. Multiply every term of one or both equations (the right side too) by numbers that make one variable’s coefficients equal in size.

  1. Write both equations in standard form with like terms lined up in columns.
  2. Pick the variable with the smaller least common multiple of its two coefficients.
  3. Multiply each equation by the number that raises its coefficient to that multiple.
  4. Add if the signs are opposite, subtract if they match.
  5. Solve for the remaining variable, substitute back, and check.

Step 2 is the shortcut most lessons skip. Take 2x+3y=72x+3y=7 and 5x−4y=65x-4y=6. The xx-coefficients (22 and 55) have a least common multiple of 1010. The yy-coefficients (33 and 44) need 1212. Choose xx, because the numbers stay smaller.

5(2x+3y)=5(7)→10x+15y=352(5x−4y)=2(6)→10x−8y=12\begin{aligned} 5(2x+3y)&=5(7) &\rightarrow\quad 10x+15y&=35\\ 2(5x-4y)&=2(6) &\rightarrow\quad 10x-8y&=12 \end{aligned}

Subtract the second from the first: 23y=2323y=23, so y=1y=1. Then 2x+3=72x+3=7 gives x=2x=2. Check in the second original equation: 5(2)−4(1)=65(2)-4(1)=6. The solution is (2,1)(2,1). For more systems of this type, work through the elimination method practice problems.

Add or subtract? The sign trap in elimination

Wrong versus right subtraction of a negative constant when eliminating x from two equations
Subtracting x − 2y = −6 from x + 3y = 4 gives 5y = 10, because 4 − (−6) = 10.

The rule is short. If the coefficients of the target variable have opposite signs, add. If they have the same sign, subtract. The points are lost on the constants: when the right side is negative, subtracting it flips its sign, and students often forget.

Solve x+3y=4x+3y=4 and x−2y=−6x-2y=-6. The xx-coefficients match, so subtract the second equation from the first, every term including the right side:

(x−x)+(3y−(−2y))=4−(−6)5y=10\begin{aligned} (x-x)+(3y-(-2y))&=4-(-6)\\ 5y&=10 \end{aligned}

So y=2y=2. Then x+6=4x+6=4 gives x=−2x=-2. Check: −2−2(2)=−6-2-2(2)=-6. The solution is (−2,2)(-2,2). The usual error is writing 4−6=−24-6=-2, which gives 5y=−25y=-2 and a wrong answer that still looks plausible.

Subtract by adding

Subtracting an equation is the same as adding −1-1 times it. Multiply the whole second equation by −1-1 first, so x−2y=−6x-2y=-6 becomes −x+2y=6-x+2y=6, and then add. Every sign flips at once, including the constant.

Elimination method with fractions and decimals

Fractions and decimals do not change the method, but clearing them first removes the main source of arithmetic slips. Multiply each equation by its least common denominator (or by 1010 or 100100 for decimals), then proceed as usual. Do this to every term, including the constant.

Sometimes you do not even need to. In x2+y3=4\frac{x}{2}+\frac{y}{3}=4 and x4−y3=−1\frac{x}{4}-\frac{y}{3}=-1, the yy-terms are already opposites, so add:

x2+x4=3x4=3⇒x=4\frac{x}{2}+\frac{x}{4}=\frac{3x}{4}=3 \quad\Rightarrow\quad x=4

Then 2+y3=42+\frac{y}{3}=4 gives y=6y=6. Check in the second equation: 1−2=−11-2=-1. If you prefer whole numbers, multiply the first equation by 66 and the second by 1212 to get 3x+2y=243x+2y=24 and 3x−4y=−123x-4y=-12. Subtracting gives 6y=366y=36, the same y=6y=6.

The habit worth building is to look for a cancellation before reaching for a multiplier. Clearing denominators is a tool, not a ritual, and a quick scan of the coefficients can save a full line of work.

What happens when both variables disappear?

Two graphs showing parallel lines with no solution and one repeated line with infinite solutions
A false leftover like 0 = 2 means parallel lines, while 0 = 0 means both equations draw the same line.

Sometimes elimination removes xx and yy together. That is not a mistake. It tells you something about the lines, and the leftover statement decides the case.

Take 2x+4y=82x+4y=8 and x+2y=3x+2y=3. Multiply the second by 22 to get 2x+4y=62x+4y=6, then subtract from the first:

0=20=2

This is false, so no pair (x,y)(x,y) satisfies both equations. Written as y=−x2+2y=-\frac{x}{2}+2 and y=−x2+32y=-\frac{x}{2}+\frac{3}{2}, the lines share the slope −12-\frac{1}{2} but have different intercepts, so they are parallel. Change the second equation to x+2y=4x+2y=4 and the same steps give 0=00=0. That is always true, because both equations describe one line, so every point on it is a solution. The full comparison is in no solution vs infinitely many solutions, and reading slopes quickly is easier in slope-intercept form.

The trap is to assume an arithmetic error and start over. When both variables vanish after correct multiplication, stop and read the leftover statement.

Quick check

Eliminate a variable from 3x−6y=93x-6y=9 and x−2y=3x-2y=3. How many solutions does the system have?

Where does Cramer’s rule come from?

Run elimination on a general system and a formula falls out. Start with

ax+by=ecx+dy=f\begin{aligned} ax+by&=e\\ cx+dy&=f \end{aligned}

Multiply the first equation by dd and the second by bb so the yy-terms match: adx+bdy=edadx+bdy=ed and bcx+bdy=bfbcx+bdy=bf. Subtract the second from the first:

(ad−bc) x=ed−bf⇒x=ed−bfad−bc(ad-bc)\,x=ed-bf \quad\Rightarrow\quad x=\frac{ed-bf}{ad-bc}

Doing the same for yy (multiply by cc and aa, then subtract) gives y=af−ecad−bcy=\frac{af-ec}{ad-bc}. This is Cramer’s rule in disguise, and the denominator ad−bcad-bc is the determinant of the 2×2 matrix of coefficients.

Test it on 2x+3y=72x+3y=7 and 5x−4y=65x-4y=6, so a=2a=2, b=3b=3, e=7e=7, c=5c=5, d=−4d=-4, f=6f=6. Then ad−bc=−8−15=−23ad-bc=-8-15=-23, and x=7(−4)−3(6)−23=−46−23=2x=\frac{7(-4)-3(6)}{-23}=\frac{-46}{-23}=2 and y=2(6)−7(5)−23=−23−23=1y=\frac{2(6)-7(5)}{-23}=\frac{-23}{-23}=1. These match the earlier answer.

The formula also explains the special cases. When ad−bc=0ad-bc=0, you cannot divide, and the system has either no solution or infinitely many, exactly the two outcomes from the previous section.

Elimination or substitution: which should you use?

Both methods give the same answer, so the choice is about effort. A quick look at the coefficients usually decides it.

What you see Faster choice
A variable already isolated, like y=3x−2y=3x-2 Substitution
Both equations in Ax+By=CAx+By=C form Elimination
Fractions or decimals Elimination, after clearing
A matching squared term in both equations Elimination
Three or more variables Elimination

Elimination is not limited to linear equations. If a term matches in both equations, it can cancel just as well. When the equations are not matched, substitution practice problems show where isolating a variable wins.

Elimination can cancel squares

In x2+y=7x^2+y=7 and x2−y=1x^2-y=1, add to get 2x2=82x^2=8, so x=±2x=\pm 2. Then y=7−4=3y=7-4=3, and both (2,3)(2,3) and (−2,3)(-2,3) work.

How do you check an elimination answer?

Always check in the original equations, not the multiplied or combined ones. If you slip while multiplying, the new equations carry the error with them and will happily agree with a wrong answer.

Three checks catch nearly everything:

  • Substitute the pair into both original equations and confirm each is true.
  • After back-substituting into one equation, test the other one. That is the only way to confirm the elimination step itself.
  • Eliminate the other variable as a second route and compare the results.

The second route is a strong test. For 2x+3y=72x+3y=7 and 5x−4y=65x-4y=6, eliminate yy this time: multiply the first by 44 and the second by 33 to get 8x+12y=288x+12y=28 and 15x−12y=1815x-12y=18. Adding gives 23x=4623x=46, so x=2x=2. It agrees with the first solution, found by removing xx, so the answer is almost certainly right.

Try this: Solve x+y=7x+y=7 and 3x−y=53x-y=5 by adding the equations. Then solve it again by eliminating xx (multiply the first equation by 33 and subtract). Both routes should land on (3,4)(3,4).

Elimination in word problems and three variables

Word problems become systems once you name two unknowns with units. A cafe sells 3 coffees and 2 muffins for $13.50, and 2 coffees and 4 muffins for $15.00. With cc for a coffee and mm for a muffin:

3c+2m=13.52c+4m=15\begin{aligned} 3c+2m&=13.5\\ 2c+4m&=15 \end{aligned}

Multiply the first equation by 22 to get 6c+4m=276c+4m=27, then subtract the second: 4c=124c=12, so c=3c=3. Then 9+2m=13.59+2m=13.5 gives m=2.25m=2.25. Check: 2(3)+4(2.25)=6+9=152(3)+4(2.25)=6+9=15. A coffee costs $3.00 and a muffin $2.25.

With three variables, the same idea works in two rounds. Choose one variable, eliminate it from two different pairs of equations, and you get two equations in two unknowns. Solve that smaller system, then substitute back. Solving a system of three equations walks through the bookkeeping. The same approach scales up to mixture problems, circuit currents and balancing chemical equations.

Elimination does not carry over to inequalities in the same way, because multiplying by a negative flips the inequality sign and adding two inequalities only gives a weaker result. For those, graph the regions instead, as in systems of linear inequalities.

Quick check

Subtract x−y+z=2x-y+z=2 from x+y+z=6x+y+z=6. What is yy?

Practice problems

0 of 5 solved

  1. Solve by elimination: x+y=10x+y=10 and x−y=2x-y=2.

  2. Solve by elimination: 3x+2y=163x+2y=16 and x−2y=0x-2y=0.

  3. Solve by elimination: 3x+y=113x+y=11 and x+2y=7x+2y=7.

  4. Solve by elimination: 4x+3y=14x+3y=1 and 3x+5y=93x+5y=9.

  5. Solve by elimination: x3+y2=3\frac{x}{3}+\frac{y}{2}=3 and x2−y4=52\frac{x}{2}-\frac{y}{4}=\frac{5}{2}.

Common questions

What is the elimination method?

It is a way to solve a system of equations by adding or subtracting the equations so that one variable cancels. You solve the resulting one-variable equation, then substitute that value back to find the other variable.

When should you use elimination instead of substitution?

Use elimination when both equations are in the form Ax+By=CAx+By=C and no variable is already isolated. Use substitution when one equation has a variable alone, such as y=3x−2y=3x-2, or has a coefficient of 11 that is easy to isolate.

Do you add or subtract in the elimination method?

Add when the coefficients of the variable you want to remove are opposites, such as 3y3y and −3y-3y. Subtract when they are equal, such as 2y2y and 2y2y. If subtracting feels risky, multiply one equation by −1-1 and add instead.

What does it mean if both variables cancel when you eliminate?

You get a statement with no variables. A false one like 0=20=2 means no solution (parallel lines). A true one like 0=00=0 means infinitely many solutions (the same line twice).

Can the elimination method solve three equations?

Yes. Eliminate the same variable from two different pairs of equations to get a system of two equations in two unknowns, solve that, then substitute back to find the third variable.

Why is the elimination method also called the addition method?

Most textbook versions arrange the equations so that one variable has opposite coefficients, and then you add the equations. Subtraction is the same move written differently, since subtracting an equation equals adding −1-1 times it.

Up next