Home/Guides/Systems of equations
Algebra

Systems of Equations: Substitution vs Elimination

Two equations, two unknowns. Both standard methods always work — but one is usually much faster, and picking the right one takes about three seconds once you know what to look for.

What you're actually finding

Each linear equation in two variables draws a straight line. Solving the system means finding the point where those lines cross — the single (x, y) pair that satisfies both equations at once.

That picture explains the three possible outcomes immediately: lines usually cross once (one solution), but parallel lines never cross (no solution), and identical lines overlap everywhere (infinitely many). More on those at the end.

Method 1: substitution

Best when one variable is already alone, or easy to get alone.

y = 2x + 1     3x + y = 11
  1. Find an isolated variable. The first equation already gives y on its own: y = 2x + 1.
  2. Substitute it into the other equation. Replace y in 3x + y = 11 to get 3x + (2x + 1) = 11. Note it goes into the other equation — substituting back into the same one just gives 0 = 0.
  3. Solve for the one remaining variable. 5x + 1 = 11, so 5x = 10 and x = 2.
  4. Back-substitute. Put x = 2 into the simplest equation: y = 2(2) + 1 = 5.
  5. Check in both originals. y = 2(2)+1 = 5 ✓ and 3(2) + 5 = 11 ✓
x = 2,   y = 5

Method 2: elimination

Best when both equations are in the tidy form ax + by = c, and especially when a variable's coefficients already match or are opposites.

2x + 3y = 12     4x − 3y = 6
  1. Look for a variable that will cancel. Here the y terms are +3y and −3y — they're already opposites, so adding the equations kills y outright.
  2. Add (or subtract) the equations. (2x + 4x) + (3y − 3y) = 12 + 6, which gives 6x = 18.
  3. Solve. x = 3.
  4. Back-substitute. 2(3) + 3y = 12, so 3y = 6 and y = 2.
  5. Check in both originals. 2(3)+3(2) = 12 ✓ and 4(3)−3(2) = 6 ✓
x = 3,   y = 2
When nothing cancels yet

Multiply one or both equations by a constant first. For 3x + 2y = 7 and 2x + 5y = 12, multiply the first by 2 and the second by 3 — both now start with 6x, so subtracting eliminates x. Multiplying an entire equation by a non-zero number never changes its solutions.

Which one to use

  1. Is a variable already alone? (y = …, or x = …) Use substitution. You've skipped the hardest step.
  2. Does a variable have coefficient 1 or −1? Substitution is still easy — isolate that one, no fractions needed.
  3. Are coefficients already matching or opposite? Use elimination. It's one line of work.
  4. Everything messy? Elimination, after scaling. Substitution here forces fractions, and fractions cause mistakes.

The underlying principle: both methods reduce two equations to one equation in one unknown. Choose whichever route gets there with the least arithmetic.

No solution, or infinitely many

Sometimes the variables all vanish. That's not a mistake — it's the answer, and what remains tells you which case you're in.

No solution

x + y = 2     x + y = 5

Subtracting gives 0 = −3, which is false. A false statement means no solution: the lines are parallel and never meet. The same sum can't be 2 and 5 at once.

Infinitely many solutions

x + y = 2     2x + 2y = 4

The second equation is just the first doubled. Eliminating gives 0 = 0, which is always true, so there are infinitely many solutions — the two equations describe the same line. Answers are usually written as a relationship, like y = 2 − x.

Read the leftovers carefully

0 = 0 means infinitely many solutions. 0 = (any non-zero number) means none. Students regularly mix these up, and they're opposite answers.

Whichever method you use, substituting your answer into both original equations costs about fifteen seconds and catches nearly every sign error — see how to check if your answer is right.

Check your working in seconds

Scan a system with Aheadia and compare your steps against a verified solution — with every answer checked by real math engines.

Download free on iOS