How-to guides · 6 min read
How to Solve Systems of Equations Step by Step

What a system of equations is
One equation with two unknowns, such as x + y = 10, has infinitely many solutions: (1, 9), (2, 8), (5, 5) and so on. A second equation narrows this down. Together, the two equations form a system, and the solution is the pair of values that satisfies both at once.
Geometrically, each linear equation is a straight line. The solution is where the lines cross. Three things can happen: the lines cross at one point (one solution), they are parallel (no solution), or they are the same line (infinitely many solutions).
There are three standard methods: substitution, elimination and graphing. All give the same answer, so choose the one that makes the arithmetic easiest. If you need a refresher, start with solving linear equations.
Method 1: substitution
Use substitution when one equation already has a variable isolated, or can be rearranged easily. Solve y = 2x − 1 and 3x + 2y = 12.
- The first equation is already solved for y: y = 2x − 1.
- Substitute into the second: 3x + 2(2x − 1) = 12.
- Expand: 3x + 4x − 2 = 12, so 7x − 2 = 12.
- Add 2: 7x = 14, so x = 2.
- Put x = 2 back into y = 2x − 1: y = 3.
The solution is (2, 3). Check both equations: 3(2) + 2(3) = 12 ✓ and 2(2) − 1 = 3 ✓.
Method 2: elimination
Use elimination (also called the addition method) when both equations are in the form ax + by = c. The idea is to add or subtract the equations so that one variable cancels. Solve 2x + 3y = 12 and 4x − 3y = 6.
- The y terms are 3y and −3y, which cancel when added.
- Add the equations: (2x + 4x) + (3y − 3y) = 12 + 6, so 6x = 18.
- Divide by 6: x = 3.
- Substitute x = 3 into 2x + 3y = 12: 6 + 3y = 12, so y = 2.
The solution is (3, 2). When the coefficients do not match, multiply one or both equations first. For x + 2y = 7 and 3x + y = 11, multiply the second by 2 to get 6x + 2y = 22, then subtract the first equation to cancel y: 5x = 15, so x = 3 and y = 2.
Method 3: graphing
Graph each equation and read off the intersection. This is good for seeing what is going on and for checking, but it is only as accurate as your graph, so it is best when the answer is a whole number.
Try your own pair with the function grapher. For a computed route, the matrix calculator can solve a system by inverting the coefficient matrix.
Which method should I use?
| Situation | Best method |
|---|---|
| One variable already isolated (y = …) | Substitution |
| Both equations in ax + by = c form | Elimination |
| Coefficients with opposite signs | Elimination (add) |
| You want a visual or a quick estimate | Graphing |
| Three or more unknowns | Elimination or matrices |
Special cases: no solution and infinitely many
| System | What happens | Result |
|---|---|---|
| x + y = 4 and 2x + 2y = 10 | Multiply the first by 2: 2x + 2y = 8, which contradicts 2x + 2y = 10 | No solution (parallel lines) |
| x + y = 4 and 2x + 2y = 8 | The second is twice the first | Infinitely many solutions (same line) |
| x + y = 4 and x − y = 2 | Adding gives 2x = 6 | One solution: (3, 1) |
When elimination makes both variables vanish, look at what is left. A false statement such as 0 = 2 means there is no solution; a true statement such as 0 = 0 means the two equations describe the same line.
There is a shortcut for the system a₁x + b₁y = c₁ and a₂x + b₂y = c₂. Compute the determinant a₁b₂ − a₂b₁. If it is not zero there is exactly one solution. If it is zero, the lines are parallel or identical.
A word problem
A theatre sells adult tickets at 12 and child tickets at 8. It sells 50 tickets for a total of 480. How many of each? Let a be adult tickets and c child tickets. Then a + c = 50 and 12a + 8c = 480.
- From the first equation, c = 50 − a.
- Substitute: 12a + 8(50 − a) = 480.
- Expand: 12a + 400 − 8a = 480, so 4a = 80.
- Solve: a = 20, then c = 30.
Check the money: 20 × 12 + 30 × 8 = 480. ✓ Always check against the original wording as well as the equations.
Mistakes to avoid
- Solving for only one variable. The answer is a pair (x, y).
- Not distributing a negative when subtracting equations. Subtracting 3y − 2 means −3y + 2.
- Multiplying only one term when scaling an equation. Multiply every term, including the right-hand side.
- Not checking in both equations. A solution must satisfy both.
Practise first on simple systems, then check each with the steps in the linear equation solver for each single equation. If algebra errors keep appearing, read common algebra mistakes.
Frequently asked questions
What is the easiest way to solve a system of equations?
If a variable is already isolated, use substitution. If both equations are in ax + by = c form, elimination is usually quickest. Graphing is best for a visual check.
What does it mean if a system has no solution?
The two lines are parallel and never meet. Algebraically, you end up with a false statement such as 0 = 2.
What does infinitely many solutions mean?
The two equations describe the same line, so every point on that line is a solution. Algebraically you end up with a true statement such as 0 = 0.
Can I solve a system with a calculator?
Yes, a matrix calculator can solve it by inversion, but you still need to know the methods for tests and to understand the result.
Keep reading
How to Solve Linear Equations Step by Step (With Examples)
Learn to solve linear equations in x with a repeatable method: undo operations, balance both sides, handle brackets, fractions and special cases.
Study tipsHow to Solve Math Word Problems: A Four-Step Method
A repeatable four-step method for math word problems — read, define, calculate, check — with percentage and speed examples.
Study tips10 Common Algebra Mistakes (With Numbers That Prove They’re Wrong)
The ten algebra errors students make most often, each disproved with a quick numerical check — (a+b)² ≠ a²+b², √(a+b) ≠ √a+√b, and more.
How-to guidesHow to Solve Inequalities Step by Step (With Examples)
Solve inequalities like 3x + 5 > 20 using the same steps as equations, plus one new rule: flip the sign when you multiply or divide by a negative.