Skip to content
LoveToCalc

System of equations calculator

Type two equations in two unknowns, or three in three, and see the system solved step by step by the method you choose.

EquationsEquations

One equation per field, with as many unknowns as equations. The multiplication sign can be left out: 2x, 3(x + y).

MethodMethod
Try:

Line (1)Line (2)

Drag to move the graph; pinch or scroll to zoom. With the keyboard: arrow keys move, + and − zoom, 0 resets.

Solution and working

Solution

  • x equals 2
  • y equals 1

Working

  1. (1) (2 times x) plus (3 times y) equals 7; (2) x minus y equals 1

  2. Solve equation (2) for x.

    (2) x minus y equals 1

  3. Add y to both sides.

    x equals y plus 1

  4. Put x equals y plus 1 into equation (1).

    (2 times (y plus 1)) plus (3 times y) equals 7

  5. Expand the brackets.

    ((2 times y) plus 2) plus (3 times y) equals 7

  6. Simplify.

    (5 times y) plus 2 equals 7

  7. Subtract 2 from both sides.

    5 times y equals 5

  8. Divide both sides by 5.

    y equals 1

  9. Put y equals 1 into the expression for x.

    x equals 1 plus 1

  10. Work out the numbers.

    x equals 2

How to use it

Two methods, one answer

Substitution solves one equation for one unknown and puts that expression into the other. What is left is an equation in one unknown, solved the usual way. The calculator picks the unknown that is easiest to isolate, ideally one that already stands alone without a coefficient.

Elimination multiplies the equations so that one unknown has the same coefficient in both, then adds or subtracts them so that unknown drops out. Each new equation gets a number, (4), (5) and so on, so you can follow which rows were combined.

Both methods always give the same answer. Substitution is often shorter when an unknown already stands alone, elimination when the coefficients look ready to cancel.

Worked examples

Substitution. 2x + 3y = 7 and x − y = 1. Solve the second for x: x = y + 1. Put it into the first: 2(y + 1) + 3y = 7, so 5y + 2 = 7 and y = 1. Back in x = y + 1: x = 2, y = 1.

Elimination, same system. Multiply the second equation by 2: 2x − 2y = 2. Subtract it from the first: 5y = 5, so y = 1. Put it into x − y = 1: x = 2.

Three unknowns. x + y + z = 6, 2x − y + z = 3 and x + 2y − z = 2. (1) − (2) removes z and gives (4) −x + 2y = 3. (1) + (3) removes z again and gives (5) 2x + 3y = 8. 2·(4) + (5) gives 7y = 14, so y = 2. Back in (4): x = 1, and in (1): x = 1, y = 2, z = 3.

The graph

Two equations in two unknowns are two straight lines, and the solution is the point where they cross. The calculator draws both lines and marks that point. A vertical line, such as x = 3, is not a function of x and is not drawn; the page says so when that happens. To draw more curves on one plane, use the graphing calculator.

When there is no single answer

No solution. x + y = 1 and x + y = 2 cannot both hold. The working ends in something that is never true, such as 1 = 2, and on the graph the lines are parallel.

Infinitely many solutions. x + y = 1 and 2x + 2y = 2 are the same line twice. The working ends in 0 = 0, and every point on the line solves the system. With three equations the same happens when one equation is a combination of the other two.

What it does not solve it says plainly: equations that are not linear, such as xy = 2 or x² + y = 1, an unknown in a denominator or inside a function, and more or fewer unknowns than equations. For a single equation in one unknown, use the equation solver.

Last reviewed September 24, 2026 ·How pages are reviewed

The formula behind this

All math calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.