How-to guides · 6 min read

How to Solve Systems of Equations Step by Step

How to Solve Systems of Equations Step by Step — illustration
In short: A system of equations is two or more equations that share unknowns. To solve x + y = 10 and x − y = 2, add them to eliminate y, giving 2x = 12, so x = 6 and y = 4. The solution is the point (6, 4) where both lines meet.

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.

0358101234y = 2x − 13x + 2y = 12x
The two lines cross at (2, 3), the solution found by substitution above.

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?

SituationBest method
One variable already isolated (y = …)Substitution
Both equations in ax + by = c formElimination
Coefficients with opposite signsElimination (add)
You want a visual or a quick estimateGraphing
Three or more unknownsElimination or matrices

Special cases: no solution and infinitely many

SystemWhat happensResult
x + y = 4 and 2x + 2y = 10Multiply the first by 2: 2x + 2y = 8, which contradicts 2x + 2y = 10No solution (parallel lines)
x + y = 4 and 2x + 2y = 8The second is twice the firstInfinitely many solutions (same line)
x + y = 4 and x − y = 2Adding gives 2x = 6One 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.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading