Skip to content
ihateDesmos

System of equations calculator

Type your equations, one per line, and get the exact solution with every elimination step. It tells you when there is no solution or infinitely many, and draws two-variable systems as crossing lines.

Solution
x = 2, y = 1
x
2
y
1
Steps, by elimination
  1. Divide equation 1 by 2: x + 3/2 y = 7/2
  2. Subtract 1 × equation 1 from equation 2 to remove x: −5/2 y = −5/2
  3. Divide equation 2 by −5/2: y = 1
  4. Subtract 3/2 × equation 2 from equation 1 to remove y: x = 2
−4−3−2−112345678−2−11234
Each equation is a line, and the solution is where they cross: (2, 1).

How to use it

  1. 1
    Type one equation per line, like 2x + 3y = 7. Use any letters for the variables, and terms can be on either side.
  2. 2
    The solution appears as you type, in exact fractions.
  3. 3
    Follow the steps to see the elimination, and check the graph for two-variable systems.

Solving by elimination

Elimination combines equations so that a variable cancels. To solve 2x + 3y = 7 and x − y = 1:

  1. Multiply the second equation by 3: 3x − 3y = 3.
  2. Add it to the first, so the y terms cancel: 5x = 10, which gives x = 2.
  3. Put x = 2 back into x − y = 1: 2 − y = 1, which gives y = 1.

The solution is x = 2, y = 1. Check it in the other equation: 2(2) + 3(1) = 7. This calculator uses the same idea in a systematic form that works for any number of variables.

Solving by substitution

Rearrange one equation for a variable and put that into the other. From x − y = 1, x = y + 1. Then 2(y + 1) + 3y = 7, so 5y = 5 and y = 1, which gives x = 2. It is the same answer. Substitution is handy when a variable already stands alone, while elimination tends to be tidier when no coefficient is 1.

One solution, none, or infinitely many

SolutionsThe two lines…Example
OneCross at a single pointx + y = 3 and x − y = 1
NoneAre parallel and never meetx + y = 1 and x + y = 2
Infinitely manyAre the same linex + y = 1 and 2x + 2y = 2

Solving by graphing

Each linear equation in two variables is a line, and the solution is where they cross. Graphing shows at a glance how many solutions there are, though reading exact values from a graph can be hard. Solving systems by graphing explains the method, and the graphing calculator marks the crossing point for you.

Frequently asked questions

How do you solve a system of three equations?
Use elimination to remove one variable from two pairs of equations. That leaves two equations in two variables, which you solve as usual, then substitute back. Type all three above to see the steps.
Can it solve non-linear systems?
This tool handles linear equations. For a system like y = x² and y = x + 2, type both into the graphing calculator, and it marks where they intersect.
Are the answers exact?
Yes. Everything stays in exact fractions, so 1/3 is never rounded to 0.333.
How many variables can it handle?
Up to 8, with any number of equations. Fewer equations than variables usually means infinitely many solutions.
What does “no solution” mean?
The equations contradict each other. Eliminating the variables leaves a false statement like 0 = 1.

Related tools and guides

Try the system of equations calculator

It opens instantly, with no account and nothing to install.

Open the calculator