Simultaneous equations solver

Simultaneous equations are two equations that share the same unknowns. You are looking for the one pair of values that makes both true at once. Separate the two equations with a semicolon.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What this topic covers

Eliminate one unknown by making its coefficients match and adding or subtracting the equations, or substitute one equation into the other. For two linear equations Cramer’s rule gives each unknown as a ratio of determinants, and a line and a curve are solved by substituting the line into the curve.

Each part of this topic has its own page with the formula, worked examples and a solver: Simultaneous equations: linear and quadratic, Cramer’s rule (closed form for simultaneous equations), Line and circle: substitute y = mx + c into x² + y² = r².

Closely related topics: Linear equations, Quadratic equations, Matrix calculator: determinant, inverse, multiplication.

What is it used for?

Simultaneous equations are two or more equations that must be true at the same time. For two linear equations the solution is the point where the two lines cross.

How to solve it

  1. Label the equations (1) and (2).
  2. Multiply one or both equations so that one unknown has the same coefficient in each.
  3. Add or subtract the equations to eliminate that unknown, and solve for the other.
  4. Substitute the value back into one of the original equations to find the second unknown.
  5. Check the pair in the equation you did not use for substitution.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: x + y = 10; x - y = 2

Worked out by the solver on this page. Press the button to try it yourself.

System of equations Answer checked
Answer
x=6,  y=4x = 6,\; y = 4
  1. The system
  2. Label the equations
  3. Make the coefficients match
    Multiply (1) by and (2) by .
  4. Subtract to eliminate
  5. Solve for
  6. Substitute back into (1) to find
  7. Check
    Substituting the solution into every original equation gives true statements ✓

Example 2: 2x + y = 11; x - y = 1

Worked out by the solver on this page. Press the button to try it yourself.

System of equations Answer checked
Answer
x=4,  y=3x = 4,\; y = 3
  1. The system
  2. Label the equations
  3. Make the coefficients match
    Multiply (1) by and (2) by .
  4. Subtract to eliminate
  5. Solve for
  6. Substitute back into (1) to find
  7. Check
    Substituting the solution into every original equation gives true statements ✓

Example 3: 3x + 2y = 16; x + y = 6

Worked out by the solver on this page. Press the button to try it yourself.

System of equations Answer checked
Answer
x=4,  y=2x = 4,\; y = 2
  1. The system
  2. Label the equations
  3. Make the coefficients match
    Multiply (1) by and (2) by .
  4. Subtract to eliminate
  5. Solve for
  6. Substitute back into (1) to find
  7. Check
    Substituting the solution into every original equation gives true statements ✓

Example 4: 5x - 2y = 4; 3x + 4y = 18

Worked out by the solver on this page. Press the button to try it yourself.

System of equations Answer checked
Answer
x=2,  y=3x = 2,\; y = 3
  1. The system
  2. Label the equations
  3. Make the coefficients match
    Multiply (1) by and (2) by .
  4. Subtract to eliminate
  5. Solve for
  6. Substitute back into (1) to find
  7. Check
    Substituting the solution into every original equation gives true statements ✓

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

Elimination

x + y = 10 and x − y = 2: x = 6

Add the equations to remove y.

Substitution

y = 2x and x + y = 12: x = 4

Replace y in the second equation.

Parallel lines

x + y = 3 and x + y = 5

No solution: the lines never meet.

Same line

x + y = 3 and 2x + 2y = 6

Infinitely many solutions.

Word problems

To solve two simultaneous equations, remove one unknown by elimination or substitution, solve for the other, then substitute back.

Elimination

Solve x + y = 10 and x − y = 2.

  1. Add the equations2x = 12
  2. Divide by 2x = 6
  3. Substitute backy = 4
  4. Check: 6 − 4 = 2 ✓6

Scaling one equation

Solve 3x + 2y = 16 and x + y = 6.

  1. Multiply the second by 22x + 2y = 12
  2. Subtractx = 4
  3. Find yy = 2
  4. Check: 12 + 4 = 16 ✓4

Substitution Higher

Solve y = 2x and x + y = 12.

  1. Replace yx + 2x = 12
  2. Solve3x = 12, x = 4
  3. Find yy = 8
  4. Check: 4 + 8 = 12 ✓8

A word problem Higher

Two teas and one coffee cost £7; one tea and one coffee cost £4.50. Find the price of a tea.

  1. Equations2t + c = 7 and t + c = 4.5
  2. Subtractt = 2.5
  3. Check: 5 + 2 = 7 ✓2.5

Common mistakes

Adding when you should subtract

x + y = 10 and x − y = 2: subtracting loses y wrongly ✗

add to eliminate y ✓

Choose the operation that cancels.

Changing only one term when scaling

multiply x + y = 6 by 2 to get 2x + y = 12 ✗

2x + 2y = 12 ✓

Multiply every term.

Finding only one unknown

x = 6 and stop ✗

also find y and check ✓

Two unknowns, two answers.

Not checking in the other equation

no check ✗

substitute into both ✓

It catches slips.

Exam tips

  1. Match one coefficient, then add or subtract.
  2. Substitution is quick when one unknown is already isolated.
  3. Find both unknowns.
  4. Check in both equations.
  5. Parallel lines: no solution.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Solve x + y = 9 and x − y = 3 (find x) Foundation

6

2. Solve 2x + y = 11 and x − y = 1 (find x) Foundation

4

3. Solve 3x + 2y = 16 and x + y = 6 (find y) Foundation

-2

4. Solve x + y = 7 and 2x + y = 11 (find x) Higher

4

5. Solve 5x − 2y = 4 and 3x + 4y = 18 (find x) Higher

2

6. Solve y = 3x and x + y = 20 (find x) Higher

5

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Simultaneous equations
Equations true together.
Elimination
Cancelling an unknown.
Substitution
Replacing one unknown.
Intersection
The point where lines meet.
Unique solution
Exactly one answer.
Consistent
Has at least one solution.

Frequently asked questions

Which method should I use?

Elimination for two linear equations; substitution when one unknown is isolated.

What if the lines are parallel?

There is no solution.

What if the equations are multiples of each other?

They are the same line, with infinitely many solutions.

Which page covers Cramer’s rule?

Cramer’s rule.

Which page covers a line and a curve?

simultaneous equations, linear and quadratic.

Which page covers a line and a circle?

a line and a circle.

More in Algebra and the formula sheets.