Systems of Equations: Substitution, Elimination & Graphing

A single equation with one variable gives you one answer. But what happens when you have two unknowns? One equation is not enough — you need a second equation, a second clue. Together, those two equations form a system, and the goal is to find the values that satisfy both equations at the same time.

Systems of equations show up everywhere: comparing phone plans, mixing solutions in chemistry, balancing forces in physics, splitting costs between friends. If you have ever asked "which option is the better deal?" you have intuitively set up a system. This article teaches you three methods to solve them — graphing, substitution, and elimination — with enough examples that you will know which tool to reach for on any problem.

What Is a System of Equations?

A system of equations is a set of two or more equations with the same variables. A solution to the system is a pair (or set) of values that makes every equation true simultaneously.

Equation 1: ax + by = c
Equation 2: dx + ey = f
A solution (x, y) must satisfy both equations at the same time.

For example, consider the system: x + y = 10 and x − y = 4. The solution is x = 7 and y = 3, because 7 + 3 = 10 and 7 − 3 = 4. Both equations are satisfied.

Graphically, each linear equation represents a line. The solution to the system is the point where the two lines intersect. That intersection point is the only (x, y) pair that lies on both lines.

Types of Solutions: One, None, or Infinite

Not every system has exactly one solution. There are three possibilities:

TypeWhat HappensGraphicallyExample
One solutionLines cross at one pointTwo intersecting linesx + y = 5, x − y = 1 → (3, 2)
No solutionEquations contradict each otherTwo parallel lines (never meet)2x + y = 5, 2x + y = 8
Infinite solutionsEquations are the same lineTwo lines lie on top of each otherx + y = 3, 2x + 2y = 6

A system with exactly one solution is called independent and consistent. A system with no solution is inconsistent — the lines are parallel (same slope, different y-intercept). A system with infinitely many solutions is dependent — one equation is just a multiple of the other.

💡 Quick Parallel Check

If both equations have the same slope but different y-intercepts, the system has no solution. If they have the same slope AND the same y-intercept, there are infinite solutions. Convert both equations to slope-intercept form (y = mx + b) to check quickly.

Method 1: Solving by Graphing

The graphing method is the most visual. You plot both equations on the same coordinate plane and look for where the lines cross.

✏️ Example: Solve by Graphing

System: y = 2x − 1 and y = −x + 5
Line 1: Slope 2, y-intercept −1. Starts at (0, −1), goes up 2 right 1.
Line 2: Slope −1, y-intercept 5. Starts at (0, 5), goes down 1 right 1.
Intersection: The lines cross at (2, 3).
Check: 3 = 2(2) − 1 = 3 ✓ and 3 = −2 + 5 = 3 ✓
Solution: (2, 3)

⚠️ Limitation of Graphing

Graphing only gives exact answers when the intersection happens at integer coordinates. If the solution is (2.7, −1.3), you probably will not read that accurately off a graph. Use substitution or elimination for exact answers, and save graphing for visualization and estimation.

Method 2: Solving by Substitution

Substitution works by solving one equation for one variable, then plugging that expression into the other equation. This reduces a two-variable problem to a one-variable problem that you already know how to solve.

✏️ Example: Solve by Substitution

System: y = 3x − 2 and 2x + y = 8
Step 1: Equation 1 already gives y = 3x − 2.
Step 2: Substitute into Equation 2: 2x + (3x − 2) = 8
Step 3: Simplify: 5x − 2 = 8 → 5x = 10 → x = 2
Step 4: Back-substitute: y = 3(2) − 2 = 4
Check: 2(2) + 4 = 8 ✓
Solution: (2, 4)

✏️ Example: Substitution with Rearranging First

System: 3x + y = 7 and 5x − 2y = 4
Step 1: From Equation 1, solve for y: y = 7 − 3x
Step 2: Substitute into Equation 2: 5x − 2(7 − 3x) = 4
Step 3: Distribute: 5x − 14 + 6x = 4 → 11x = 18 → x = 18/11
Step 4: y = 7 − 3(18/11) = 77/11 − 54/11 = 23/11
Solution: (18/11, 23/11) ≈ (1.636, 2.091)

💡 When to Choose Substitution

Substitution is ideal when one equation already has a variable isolated (like y = 3x + 1) or when a variable has a coefficient of 1 or −1, making it easy to isolate. If both equations have messy coefficients, elimination is usually faster.

Method 3: Solving by Elimination

Elimination (also called the addition method) works by adding or subtracting the equations to eliminate one variable. You may need to multiply one or both equations by a constant first so that a variable has opposite coefficients.

✏️ Example: Simple Elimination

System: x + y = 10 and x − y = 4
Add the equations: (x + y) + (x − y) = 10 + 4 → 2x = 14 → x = 7
Back-substitute: 7 + y = 10 → y = 3
Solution: (7, 3)

✏️ Example: Elimination with Multiplying

System: 3x + 2y = 16 and 5x − 4y = −2
Strategy: Multiply Equation 1 by 2 to make y-coefficients opposite:
6x + 4y = 32
5x − 4y = −2
Add: 11x = 30 → x = 30/11
Back-substitute: 3(30/11) + 2y = 16 → 90/11 + 2y = 176/11 → 2y = 86/11 → y = 43/11
Solution: (30/11, 43/11) ≈ (2.727, 3.909)

✏️ Example: What "No Solution" Looks Like

System: 2x + 3y = 6 and 4x + 6y = 15
Multiply Equation 1 by −2: −4x − 6y = −12
Add to Equation 2: (−4x − 6y) + (4x + 6y) = −12 + 15 → 0 = 3
0 = 3 is a contradiction → No solution. The lines are parallel.

Which Method Should You Use?

MethodBest WhenProsCons
GraphingYou want a visual; integer solutions are expectedIntuitive; shows all solution typesImprecise for non-integer answers
SubstitutionOne variable is already isolated or has coefficient 1Straightforward; works well with one "easy" equationGets messy with large coefficients
EliminationBoth equations are in standard form; coefficients line upSystematic; handles messy coefficients cleanlyRequires multiplying; more setup steps

In practice, many students develop a habit: try substitution if one equation already has a variable alone, otherwise default to elimination. Both methods always work — it is purely a matter of which produces less arithmetic for a given problem.

Word Problems That Create Systems

The real power of systems appears when you translate real-world scenarios into two equations with two unknowns. The key is identifying two different relationships and writing one equation for each.

Mixture Problems

✏️ Example: Coffee Blend

Problem: A shop mixes $8/lb coffee with $14/lb coffee to make a 30-lb blend that sells for $10/lb. How much of each type is used?
Variables: Let x = pounds of $8 coffee, y = pounds of $14 coffee.
Equation 1 (weight): x + y = 30
Equation 2 (cost): 8x + 14y = 10 × 30 = 300
Substitution: x = 30 − y → 8(30 − y) + 14y = 300 → 240 − 8y + 14y = 300 → 6y = 60 → y = 10
x = 30 − 10 = 20
20 pounds of $8 coffee and 10 pounds of $14 coffee.

Speed/Distance Problems

✏️ Example: With and Against the Wind

Problem: A plane flies 600 miles with a tailwind in 2 hours, and the same 600 miles against the wind in 3 hours. Find the speed of the plane and the wind.
Variables: Let p = plane speed, w = wind speed.
With wind: (p + w) × 2 = 600 → p + w = 300
Against wind: (p − w) × 3 = 600 → p − w = 200
Add: 2p = 500 → p = 250 mph
Back-substitute: 250 + w = 300 → w = 50 mph
Plane speed = 250 mph, wind speed = 50 mph.

Money and Coin Problems

✏️ Example: Ticket Sales

Problem: A theater sold 400 tickets. Adult tickets cost $12 and child tickets cost $7. Total revenue was $3,800. How many of each were sold?
Variables: a = adult tickets, c = child tickets.
Equation 1: a + c = 400
Equation 2: 12a + 7c = 3800
From Eq 1: c = 400 − a. Substitute: 12a + 7(400 − a) = 3800
12a + 2800 − 7a = 3800 → 5a = 1000 → a = 200
c = 400 − 200 = 200
200 adult tickets and 200 child tickets.

Practice unlimited systems of equations problems with our interactive algebra engine — substitution, elimination, and word problems with step-by-step solutions.

Practice Systems Now

Bonus: 3-Variable Systems

Sometimes you have three unknowns, which requires three equations. The strategy is to use elimination (or substitution) to reduce the system to two equations with two unknowns, and then solve that smaller system.

✏️ Example: 3-Variable System

System: x + y + z = 6, 2x − y + z = 3, x + 2y − z = 5
Add Eq 1 + Eq 3: 2x + 3y = 11 ... (call this Eq A)
Add Eq 2 + Eq 3: 3x + y = 8 ... (call this Eq B)
From Eq B: y = 8 − 3x. Substitute into Eq A: 2x + 3(8 − 3x) = 11
2x + 24 − 9x = 11 → −7x = −13 → x = 13/7
y = 8 − 3(13/7) = 56/7 − 39/7 = 17/7
z = 6 − 13/7 − 17/7 = 42/7 − 30/7 = 12/7
Solution: x = 13/7, y = 17/7, z = 12/7

Solved Practice Problems

✏️ Problem 1: Substitution

Solve: y = 4x + 1 and 3x + 2y = 13
Substitute: 3x + 2(4x + 1) = 13 → 3x + 8x + 2 = 13 → 11x = 11 → x = 1
y = 4(1) + 1 = 5
Solution: (1, 5)

✏️ Problem 2: Elimination

Solve: 4x − 3y = 5 and 2x + 3y = 13
Add: 6x = 18 → x = 3
2(3) + 3y = 13 → 3y = 7 → y = 7/3
Solution: (3, 7/3)

✏️ Problem 3: No Solution

Solve: 3x − y = 4 and 6x − 2y = 5
Multiply Eq 1 by −2: −6x + 2y = −8. Add to Eq 2: 0 = −3
Contradiction → No solution. Lines are parallel (both have slope 3).

✏️ Problem 4: Infinite Solutions

Solve: x − 2y = 3 and 3x − 6y = 9
Multiply Eq 1 by −3: −3x + 6y = −9. Add to Eq 2: 0 = 0
Identity → Infinitely many solutions. Both equations represent the same line.

✏️ Problem 5: Word Problem — Number Puzzle

Problem: The sum of two numbers is 28 and their difference is 4. Find the numbers.
x + y = 28 and x − y = 4. Add: 2x = 32 → x = 16. Then y = 12.
The numbers are 16 and 12.

✏️ Problem 6: Investment Problem

Problem: You invest $5,000 in two accounts: one pays 3% and the other 7%. Total interest after one year is $270. How much is in each account?
Equations: x + y = 5000 and 0.03x + 0.07y = 270
From Eq 1: x = 5000 − y. Substitute: 0.03(5000 − y) + 0.07y = 270
150 − 0.03y + 0.07y = 270 → 0.04y = 120 → y = 3000
x = 5000 − 3000 = 2000
$2,000 at 3% and $3,000 at 7%.

5 Common System Mistakes

1. Solving both equations independently. A system requires you to use information from both equations together. Solving each equation by itself gives you infinitely many (x, y) pairs for each — you need the pair that works in both.

2. Forgetting to distribute when substituting. If y = 3x − 2 and you substitute into 4x − 2y = 10, you must write 4x − 2(3x − 2) = 10, not 4x − 2 × 3x − 2 = 10. The parentheses around the entire substituted expression are critical. Distribute the −2 to both 3x and −2.

3. Multiplying only one side of an equation. When preparing for elimination, if you multiply Equation 1 by 3, every term — including the constant on the right side — must be multiplied by 3. Missing the constant is one of the most common arithmetic errors.

4. Declaring "no solution" prematurely. Getting a complicated fraction does not mean there is no solution. Only 0 = (nonzero number) means no solution. If you get 0 = 0, that means infinite solutions. Any other result (even a messy fraction) is a valid, unique solution.

5. Not checking your answer. After solving, plug your (x, y) values back into both original equations. This takes 30 seconds and catches sign errors, distribution mistakes, and division errors. On a test, this single habit can save you from losing easy points.

Wrapping Up

Systems of equations are where algebra starts solving real problems. Two unknowns, two equations, one answer. Whether you graph them to see where the lines meet, substitute one into the other, or add them together to eliminate a variable, the destination is the same: the point that satisfies every condition simultaneously.

The best approach is to be comfortable with all three methods and choose based on the problem. Substitution for equations that already have a variable isolated. Elimination for equations lined up in standard form. Graphing for visualization and estimation. With practice, you will pick the fastest path without even thinking about it.

For related topics, explore our guides on linear equations, slope and rate of change, and quadratic equations for when systems go nonlinear.

Practice