How to Solve a System of Equations: Substitution vs Elimination
To solve a system of equations, use substitution or elimination. Both give the same answer. Use substitution when one variable is already isolated or has a coefficient of 1, for example y = 2x - 1. Use elimination when both equations are in standard form (Ax + By = C), by adding or subtracting them to cancel a variable. For example, the system 2x + y = 11 and x - y = 1 solves to (4, 3) with either method.
A system of equations is two or more equations that share the same variables, and solving it means finding the values that make all of them true at once. For two equations with x and y, the solution is the point where their lines cross.
There are two standard methods, substitution and elimination, and they always give the same answer. The only real question is which one is faster for the system in front of you. This guide works through both with examples, shows a simple rule for choosing, and covers the cases where a system has no solution or infinitely many.
What Is a System of Equations?
A system of equations is a set of equations solved together. The solution is the set of values that satisfies every equation in the system at the same time. For two linear equations in x and y, that solution is the single point (x, y) where the two lines intersect.
Most systems have exactly one solution, but two others are possible: a system can have no solution (the lines are parallel and never meet) or infinitely many solutions (the two equations describe the same line). More on those below.
The Substitution Method
Substitution means solving one equation for a single variable, then substituting that expression into the other equation. It works best when one variable is already isolated or easy to isolate.
- Solve one equation for a variable. Pick the one where a variable is easiest to get by itself.
- Substitute that expression into the other equation, so it has only one variable.
- Solve the resulting single-variable equation.
- Back-substitute to find the other variable.
- Check your answer.
Example: solve y = 2x - 1 and 3x + y = 9
The first equation is already solved for y, so substitute 2x - 1 in place of y in the second:
3x + (2x - 1) = 9
Simplify and solve:
5x - 1 = 9, so 5x = 10, which gives x = 2.
Back-substitute into y = 2x - 1: y = 2(2) - 1 = 3.
Solution: (2, 3). Check: 3(2) + 3 = 9. Correct.
The Elimination Method
Elimination means adding or subtracting the two equations to remove one variable entirely. Sometimes you first multiply one or both equations by a constant so a variable's coefficients match or become opposites. It works best when both equations are in standard form.
- Line up the equations so like terms are aligned.
- Match a variable's coefficients by multiplying one or both equations by a constant.
- Add or subtract the equations to eliminate that variable.
- Solve the remaining single-variable equation.
- Back-substitute and check.
Example: solve 3x + 4y = 10 and 2x + y = 5
To eliminate y, multiply the second equation by 4 so both have 4y:
2x + y = 5 becomes 8x + 4y = 20.
Now subtract the first equation from this new one:
(8x + 4y) - (3x + 4y) = 20 - 10, which gives 5x = 10, so x = 2.
Back-substitute into 2x + y = 5: 2(2) + y = 5, so y = 1.
Solution: (2, 1). Check: 3(2) + 4(1) = 10 and 2(2) + 1 = 5. Both correct.
Which Method Should You Use?
Both methods always reach the same answer, so pick the one that takes less work for your system:
- Use substitution when one variable is already isolated or has a coefficient of 1, or when the equations are in slope-intercept form (y = mx + b).
- Use elimination when both equations are in standard form (Ax + By = C), especially when the coefficients match or scale easily. It helps you avoid fractions.
To see that they agree, take the system 2x + y = 11 and x - y = 1. By elimination, adding the two equations cancels y and gives 3x = 12, so x = 4 and then y = 3. By substitution, x = y + 1 leads to 2(y + 1) + y = 11, so 3y + 2 = 11, giving y = 3 and x = 4. Either way, the solution is (4, 3).
When a System Has No Solution or Infinitely Many
Not every system has one clean solution. When you solve and both variables disappear, look at what is left:
No solution. If the variables cancel and you are left with a false statement, the system has no solution. The lines are parallel. For example, x + y = 2 and x + y = 5: subtracting gives 0 = -3, which is never true, so there is no solution.
Infinitely many solutions. If the variables cancel and you are left with a true statement, every point on the line is a solution. The two equations describe the same line. For example, x + y = 2 and 2x + 2y = 4: the second is just the first doubled, so they are the same line and share infinitely many solutions.
How to Check Your Answer
Substitute both values back into both original equations, not just one. A correct solution makes every equation in the system true. Checking only one equation can hide an error, so always confirm both.
Common Mistakes to Avoid
- Solving for only one variable. A full solution needs both x and y, so do not stop after finding the first.
- Sign errors in elimination. Subtracting equations flips the signs of every term in the one you subtract, which is where mistakes creep in.
- Not multiplying every term. When you scale an equation for elimination, multiply the whole equation, both sides and every term.
- Checking only one equation. Verify your values in both original equations.
- Forgetting the special cases. If the variables cancel, the system may have no solution or infinitely many, not one.
Learn Systems of Equations with Gauth AI Course
Gauth is an all-in-one AI study platform, and its AI Course library includes more than 200 AI-powered math courses covering every U.S. high school math topic, from Algebra I through AP Calculus, including systems of equations.
Each lesson breaks a complex idea into highly contextualized visuals and explains it through examples, then reinforces it with mindmaps, frameworks, and quizzes for active recall. You can pause a lesson at any point and ask the built-in AI Tutor to explain a step another way, or create your own course on the exact topic you want to focus on.
Frequently Asked Questions
What are the two main methods for solving a system of equations? The two standard methods are substitution and elimination. Substitution solves one equation for a variable and plugs it into the other, while elimination adds or subtracts the equations to cancel a variable. Both always give the same answer.
When should you use substitution instead of elimination? Use substitution when one variable is already isolated or has a coefficient of 1, or when the equations are in slope-intercept form (y = mx + b). Use elimination when both equations are in standard form (Ax + By = C), since it lets you cancel a variable without working with fractions.
How do you solve a system by substitution? Solve one equation for a single variable, substitute that expression into the other equation, solve the resulting single-variable equation, then back-substitute to find the other variable. For y = 2x - 1 and 3x + y = 9, this gives the solution (2, 3).
How do you solve a system by elimination? Line up the equations, multiply one or both by a constant so a variable's coefficients match or become opposite, then add or subtract to eliminate that variable and solve. For 3x + 4y = 10 and 2x + y = 5, this gives the solution (2, 1).
What does it mean when a system has no solution? It means the two lines are parallel and never intersect. When you solve, the variables cancel and you are left with a false statement, such as 0 = -3, so no pair of values satisfies both equations.