subtracting the second equation from the first

Subtracting the Second Equation From the First: The Elimination Method, Step by Step

Short answerp. 1

Subtracting the second equation from the first means subtracting left side from left side and right side from right side, term by term, so that matching coefficients cancel and one variable disappears. For 8x+3y=148x+3y=14 minus 4x+3y=84x+3y=8, the yy-terms cancel and the result is 4x=64x=6, leaving one variable to solve directly.

On this page
  1. The instruction, decoded
  2. Line by line: the subtraction, with the signs kept honest
  3. Interactive: subtract your own two equations
  4. When to subtract and when to add
  5. When the coefficients do not match: multiply first
  6. Worked 2x2 systems, start to finish
  7. Elimination vs substitution vs graphing: which to use on a test
  8. Sign errors that cost marks (and how to catch them)
  9. No solution and infinitely many: what elimination tells you
  10. Practice: ten systems with answers
  11. If the whole problem set is elimination

The instruction, decoded

A worksheet or a solved-answer page hands you that sentence — "subtract the second equation from the first" — without saying what it authorizes you to do. It means this: take the left side of the first equation minus the left side of the second, and the right side of the first minus the right side of the second, term by term. The goal is always the same: make one variable's combined coefficient hit zero.

Here's a typical textbook pair: 8x+3y=148x+3y=14 and 4x+3y=84x+3y=8.

The yy-terms cancel because both coefficients are +3+3. That leaves 4x=64x=6, so x=1.5x=1.5. Substitute back into the first equation: 8(1.5)+3y=14→12+3y=14→y=238(1.5)+3y=14 \rightarrow 12+3y=14 \rightarrow y=\dfrac23. Check the second equation: 4(1.5)+3(23)=6+2=84(1.5)+3\left(\dfrac23\right)=6+2=8 — it holds. This is exactly what Common Core standard HSA-REI.C.5 expects an Algebra 1 student to be able to do with a linear combination of two equations. If the systems unit ends in a timed test, prep for a timed algebra test builds practice sets around this exact move; if a twenty-system worksheet is due tonight, you can send the full assignment and get every line worked.

Line by line: the subtraction, with the signs kept honest

Most answers online state the rule and stop; the mechanics of why it's legal, and where it goes wrong, are the part worth slowing down for.

Subtracting like terms only

Subtracting equations from each other only ever combines matching terms: xx-terms with xx-terms, yy-terms with yy-terms, constants with constants. You never subtract an xx-term from a yy-term — each column of the stacked equations stays in its own lane, the same way subtracting like terms works in any algebra problem.

Distributing the minus sign across the whole second equation

The trap sits here. Subtracting the second equation from the first means distributing a minus sign across every term on both sides of that second equation, not just the first one you see. If the second equation carries a negative coefficient — say −3y-3y — then subtracting it means 4y−(−3y)=4y+3y=7y4y-(-3y)=4y+3y=7y, not 4y−3y4y-3y. Dropping that sign flip is the single most common way this technique goes wrong; the full worked case appears below under "a case that needs a sign flip."

The result is still a true equation - why you are allowed to do this

Subtracting equal quantities from both sides of a true equation always produces another true equation — that's the same rule that lets you add or subtract any number from both sides of a one-variable equation. Here, you're subtracting an entire equation (itself a claim about equal quantities) instead of a single number, which is why the result is still a valid, solvable equation.

Interactive: subtract your own two equations

Enter the coefficients

Type in the six coefficients of a 2×22\times2 system — a1,b1,c1a_1, b_1, c_1 for the first equation, a2,b2,c2a_2, b_2, c_2 for the second — and the stepper lines them up the way a textbook prints them, ready to subtract.

Watch the sign on each term

Each term's sign is tracked separately as the subtraction runs, so a coefficient that flips from negative to positive (or the reverse) is highlighted instead of silently corrected.

See whether adding would have been the shorter route

The stepper also states, in plain words, whether adding the two equations would have eliminated a variable in fewer moves than subtracting did. That add-or-subtract verdict is the one feature no static answer page provides.

Interactive helper

Elimination stepper: enter a1, b1, c1, a2, b2, c2

Worked example from this page

Static example (what the tool shows before you enter your own system):

System: 8x+3y=148x+3y=14 and 4x+3y=84x+3y=8

Stacked subtraction:

Eliminated variable: yy (both coefficients were +3+3, so subtracting canceled it)

Verdict: Subtracting was the shorter route here. Since both yy-coefficients share the same sign and magnitude, adding would have produced 12x+6y=2212x+6y=22 instead — nothing cancels, and a scaling step would still be needed. Subtract when the target coefficients match in sign; add when they're opposite.

When to subtract and when to add

When to subtract vs. add
Coefficients on the target variableMove
Same sign, same magnitudeSubtract
Opposite signs, same magnitudeAdd

Same sign, same coefficient: subtract

When both equations carry the same coefficient with the same sign — like the +3y+3y and +3y+3y above — subtracting cancels that variable directly.

Opposite signs, same magnitude: add

When the coefficients are equal in size but opposite in sign — like +3+3 and −3-3 — adding is what cancels them; subtracting would double the term instead of removing it.

The one-sentence decision rule

If the coefficients you're targeting share a sign, subtract; if they don't, add — either move exists to force that variable's combined coefficient to zero.

Adding and subtracting algebraic equations side by side on the same system

Take 3x+2y=73x+2y=7 and −3x+y=−1-3x+y=-1, which share the solution x=1, y=2x=1,\ y=2. Adding them: (3x+(−3x))+(2y+y)=7+(−1)→3y=6→y=2(3x+(-3x))+(2y+y)=7+(-1) \rightarrow 3y=6 \rightarrow y=2; then 3x+2(2)=7→x=13x+2(2)=7 \rightarrow x=1 — solved in two lines. Subtracting them instead: (3x−(−3x))+(2y−y)=7−(−1)→6x+y=8(3x-(-3x))+(2y-y)=7-(-1) \rightarrow 6x+y=8 — nothing cancels, because the xx-coefficients were opposite in sign to begin with. Run both on the same system and the correct choice is obvious immediately.

When the coefficients do not match: multiply first

This is where most students actually stall, and it's the step the elimination method needs before subtraction (or addition) can do anything.

Scaling one equation

For 2x+y=72x+y=7 and x+3y=11x+3y=11, the xx-coefficients are 2 and 1 — not equal, so subtracting as-is does nothing useful. Scale the second equation by 2: 2x+6y=222x+6y=22. Now subtract the first: (2x−2x)+(6y−y)=22−7→5y=15→y=3(2x-2x)+(6y-y)=22-7 \rightarrow 5y=15 \rightarrow y=3. Back-substitute: 2x+3=7→x=22x+3=7 \rightarrow x=2. Check: 2+3(3)=112+3(3)=11 — confirmed.

Scaling both (least common multiple of the coefficients)

For 3x+2y=183x+2y=18 and 5x−3y=115x-3y=11, neither coefficient matches the other on either variable. Scale to the least common multiple of the yy-coefficients, 6: multiply the first equation by 3 (9x+6y=549x+6y=54) and the second by 2 (10x−6y=2210x-6y=22). The yy-terms are now opposite in sign and equal in magnitude, so add: 19x=76→x=419x=76 \rightarrow x=4. Back-substitute: 3(4)+2y=18→y=33(4)+2y=18 \rightarrow y=3. Check: 5(4)−3(3)=20−9=115(4)-3(3)=20-9=11 — confirmed.

A worked 3x + 2y / 5x - 3y system

That's the full worked 3x+2y=18, 5x−3y=113x+2y=18,\ 5x-3y=11 system above: scale both equations to a common yy-coefficient of 6, then combine. The linear combination that results — 19x=7619x=76 — is a direct application of what mathematicians call Gaussian elimination, run by hand on a two-variable case. A circuit with two loop currents produces the same shape of system, and the physics desk works a two-loop circuit solved with Kirchhoff's laws with real resistances and voltages in place of arbitrary coefficients.

Worked 2x2 systems, start to finish

Solving systems algebraically always ends the same way: one variable eliminated, the other found by back-substitution, and both checked in the original equations — not the simplified ones.

A clean subtraction case

5x+2y=165x+2y=16 and 5x−3y=15x-3y=1. The xx-coefficients match exactly, so subtract:

y=3y=3. Back-substitute: 5x+2(3)=16→5x=10→x=25x+2(3)=16 \rightarrow 5x=10 \rightarrow x=2. Check both: 5(2)+2(3)=165(2)+2(3)=16 ✓ and 5(2)−3(3)=10−9=15(2)-3(3)=10-9=1 ✓.

A case that needs a sign flip

5x+4y=75x+4y=7 and 5x−3y=215x-3y=21. The xx-coefficients match, so subtract — carefully, since the second equation's yy-term is negative:

Note the yy-row: 4y−(−3y)=7y4y-(-3y)=7y, not 4y−3y4y-3y — the sign flip is the whole trick. So y=−2y=-2. Back-substitute: 5x+4(−2)=7→5x=15→x=35x+4(-2)=7 \rightarrow 5x=15 \rightarrow x=3. Check both: 5(3)+4(−2)=15−8=75(3)+4(-2)=15-8=7 ✓ and 5(3)−3(−2)=15+6=215(3)-3(-2)=15+6=21 ✓.

A case that needs scaling

2x+3y=132x+3y=13 and 4x−y=194x-y=19. Neither variable's coefficients match, so scale the second equation by −3-3 first: −12x+3y=−57-12x+3y=-57. Now the yy-coefficients match, so subtract:

x=5x=5. Back-substitute: 2(5)+3y=13→3y=3→y=12(5)+3y=13 \rightarrow 3y=3 \rightarrow y=1. Check both: 2(5)+3(1)=132(5)+3(1)=13 ✓ and 4(5)−1=194(5)-1=19 ✓.

Back-substituting to get the second variable

In every case above, elimination only finds one variable. Take that value straight back into either original equation — whichever has simpler numbers — and solve normally for the second variable, exactly as shown three times over.

Checking the pair in both original equations

The pair isn't confirmed until both original equations accept it, not just the one used for back-substitution. All three worked systems above check clean in both equations — that double check is what separates a finished answer from a guessed one.

Elimination vs substitution vs graphing: which to use on a test

Choosing a method under time pressure
SituationBest method
Coefficients on one variable already match or scale easilyElimination
One equation already has a variable isolated (like x=y+4x=y+4)Substitution
You just need a rough visual check, not a graded answerGraphing

Pick elimination when coefficients line up

If a quick glance shows matching or easily-scaled coefficients, elimination is usually the fastest route on paper.

Pick substitution when a variable is already isolated

For x=y+4x=y+4 and x+y=10x+y=10, the substitution method is faster than elimination: substitute directly, (y+4)+y=10→2y=6→y=3(y+4)+y=10 \rightarrow 2y=6 \rightarrow y=3, then x=7x=7. The same goes for a system that pairs a line with a direct variation such as y = 3x: for y=3xy=3x and x+y=8x+y=8, substitution gives 4x=84x=8, so x=2x=2 and y=6y=6.

Graphing: fine for a check, slow for a grade

For x+y=5x+y=5 and x−y=1x-y=1, the graphing method shows two lines crossing at (3,2)(3,2) — a useful sanity check, but plotting two lines by hand is rarely faster than either algebraic method on a timed test. Finding where two lines cross is also the skill behind coordinate-geometry problems.

Sign errors that cost marks (and how to catch them)

Four sign errors that cost marks
ErrorWhat it looks like on paperWrong result it producesHow to catch it
Forgetting to subtract the constantKeeps the first equation's constant unchanged instead of subtracting the second2y=112y=11 instead of 2y=42y=4Substitute the "solution" back — it fails one original equation
Subtracting only the left sideCancels the matching variable but leaves the other variable's coefficient untouched5x+2y=45x+2y=4 instead of 2y=42y=4The variable that should have vanished is still sitting in the result
Losing the minus on a negative coefficientWrites 4y−3y4y-3y instead of 4y−(−3y)4y-(-3y)y=−14y=-14 instead of y=−2y=-2Re-check the sign of every term in the second equation before subtracting
Distributing the minus sign across only part of the equationFlips the sign on the variable terms but not the constant, or the reverseA result off by exactly twice the missed termRewrite the subtraction as adding the negative of every term, one at a time

Scroll the table sideways to see every column.

Forgetting to subtract the constant

Using 5x+3y=115x+3y=11 and 5x+y=75x+y=7: subtracting correctly gives 2y=42y=4, so y=2y=2. Forgetting to subtract algebraic equations' constants correctly — leaving 2y=112y=11 — hands back y=5.5y=5.5, which fails the check against either original equation.

Subtracting only the left side

The same pair, subtracted incorrectly by canceling only the yy-terms and leaving the xx-terms untouched, produces 5x+2y=45x+2y=4 — a line, not a solved value, because a variable that should have vanished didn't.

Losing the minus on a negative coefficient

This is the sign-flip trap from the worked system above: 4y−(−3y)4y-(-3y) must become 7y7y, not yy. Losing that minus sign is the single most common way to subtract algebraic equations with variables incorrectly.

The 30-second check that catches all three

Substitute both values back into both original equations, not the simplified ones. If either fails, the error happened during the subtraction step, not the back-substitution — go back and re-check every sign in the second equation before touching anything else.

No solution and infinitely many: what elimination tells you

When both variables vanish and you get 0 = 5

x+2y=8x+2y=8 and x+2y=3x+2y=3. Subtracting: (x−x)+(2y−2y)=8−3→0=5(x-x)+(2y-2y)=8-3 \rightarrow 0=5 — a false statement. Both variables vanished and nothing survived to solve for, so this is an inconsistent system: no solution exists.

When both vanish and you get 0 = 0

x+2y=8x+2y=8 and 2x+4y=162x+4y=16. Scale the first equation by 2: 2x+4y=162x+4y=16. Subtracting: (2x−2x)+(4y−4y)=16−16→0=0(2x-2x)+(4y-4y)=16-16 \rightarrow 0=0 — always true. This is a consistent, dependent system: the two equations describe the same line, so there are infinitely many solutions. A market's supply and demand curves are the more familiar version of a two-equation system; see accounting, finance and economics homework for that application, while the least-squares systems behind a regression line are statistics-desk work.

Practice: ten systems with answers

Ten systems to solve by elimination (cover the right column and try each one first)
#SystemTypeAnswer
1x+y=10, x−y=2x+y=10,\ x-y=2Clean subtractionx=6, y=4x=6,\ y=4
23x+y=9, 3x−y=33x+y=9,\ 3x-y=3Clean subtractionx=2, y=3x=2,\ y=3
32x+3y=7, 2x−y=−12x+3y=7,\ 2x-y=-1Sign flipx=0.5, y=2x=0.5,\ y=2
4x+2y=8, 3x+2y=16x+2y=8,\ 3x+2y=16Clean subtractionx=4, y=2x=4,\ y=2
54x+y=15, x+y=64x+y=15,\ x+y=6Clean subtractionx=3, y=3x=3,\ y=3
62x+5y=11, 2x−5y=−92x+5y=11,\ 2x-5y=-9Needs addingx=0.5, y=2x=0.5,\ y=2
7x+y=4, 2x+2y=8x+y=4,\ 2x+2y=8DependentInfinitely many solutions
8x+y=3, x+y=7x+y=3,\ x+y=7InconsistentNo solution
93x−2y=4, x+2y=83x-2y=4,\ x+2y=8Needs addingx=3, y=2.5x=3,\ y=2.5
102x+y=8, x+3y=92x+y=8,\ x+3y=9Needs scalingx=3, y=2x=3,\ y=2

Scroll the table sideways to see every column.

If the whole problem set is elimination

Twenty systems, each one a fresh set of coefficients to check for signs and scaling, is close to ninety minutes of careful arithmetic — and one dropped sign on system 14 costs the same mark as skipping it outright. That's the point where a lot of students go looking for someone to work the whole systems set instead of rechecking every sign by hand.

GradeDraft's math desk, part of our do my homework service, solves systems problem sets, from clean-subtraction items through the scaling and sign-flip cases above, with the elimination shown line by line the same way it's shown here, priced from $25 per problem after a quick look at the set.

Send the assignment or a photo of it. You'll get a per-problem quote back within 2 hours (8 am–11 pm ET) and full worked steps with the delivery.

Get your systems problem set solved

If a single equation is the sticking point rather than a pair, start with what value makes a single equation true. Once x2x^2 shows up in one of the equations, see the three forms a quadratic can take. Students working the CPM curriculum should also see CPM Core Connections systems problems, which drills this exact elimination method in that textbook's own notation. Free lessons on CK-12 and Homework.Study.com walk through the same mechanics if you want more practice before checking your own work here.

FAQ

Common questions about adding and subtracting equations

Replies within 2 hours, 8 am–11 pm ET, 7 days a week

01

What is the result of subtracting the second equation from the first?

A new, simpler equation in which one variable's coefficient has been reduced to zero — the matching terms cancel, leaving a single-variable equation you can solve directly and then back-substitute.

02

When do you add equations and when do you subtract them?

Subtract when the coefficients on the variable you want to eliminate have the same sign; add when they have opposite signs and the same magnitude. Either move is aimed at the same goal: forcing that variable's combined coefficient to zero.

03

How do you subtract two equations?

Subtract the left side of the second equation from the left side of the first, and the right side of the second from the right side of the first, term by term, keeping every sign — including the ones on negative coefficients and constants.

04

Why does subtracting eliminate a variable?

Because subtracting equal coefficients from each other always produces zero. If both equations share the exact same coefficient on a variable, subtracting cancels that variable's term entirely, leaving one equation with only the other variable in it.

05

What if the coefficients do not match?

Scale one or both equations first — multiply every term in an equation by the same number — until the target variable's coefficients match in magnitude. Then subtract or add as usual, as shown in the "multiply first" section above.

06

Is elimination faster than substitution on a test?

Usually, when the coefficients already match or scale in one step. When a variable is already isolated — like x=y+4x=y+4 — substitution is typically faster, since elimination would need an unnecessary scaling step first.

Published price from$25 per problem
See my price