Arithly

← All maths topics

Simultaneous equations: two equations, two unknowns

Two unknowns need two equations. The elimination method adds or subtracts the equations to wipe out one unknown; substitution rearranges one equation and feeds it into the other. Both give the same pair of values, and the pair must satisfy BOTH equations — that is your built-in check.

Elimination or substitution? Choose by shape

Elimination is fastest when a pair of terms already matches or nearly matches. Substitution wins when one equation is already written as y = … or x = …, because the rearranging is done for you. The mistake to avoid is mixing the two mid-solution: pick one route, finish it, then substitute back for the second value.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

Solve: x + y = 9 and x − y = 3

  1. Equations: (1) x + y = 9 and (2) x - y = 3.
  2. The y coefficients are 1 and -1 — equal in size — so add the equations to eliminate y: (x + y = 9) + (x - y = 3) gives 2x = 12.
  3. So x = 12 ÷ 2 = 6.
  4. Substitute x = 6 into equation (1) (x + y = 9): the x term becomes 1 × 6 = 6, so y = 9 − 6 = 3.

Answer: x = 6, y = 3

Worked note — substitution, because y is ready

Solve: 2x + y = 12 and y = x + 3

  1. The second equation already says y = x + 3, so substitute it into the first: 2x + (x + 3) = 12.
  2. Solve: 3x + 3 = 12, so 3x = 9 and x = 3.
  3. Then y = x + 3 = 3 + 3 = 6.

Answer: x = 3, y = 6

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

Related topics

Algebra hub

All of Arithly's algebra topics, from linear equations to quadratics.

Simultaneous Equations: Linear & Quadratic

When one equation is a curve: substitution meets a quadratic.

Point Slope Form Calculator

The equation of a line through a point with a given gradient.

Linear Equations in Two Variables

How many solutions can a pair of lines have — none, one, or infinitely many?

Solve for x Calculator

Single linear equations, solved in full — the skill substitution relies on.

More topics: all maths topics · Next topic: Simple and compound interest — and the difference between them

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.