Skip to main content

System of Equations Calculator

Try an example:

This system of equations calculator solves two or three linear equations together and shows every step. Choose elimination or substitution, and for two equations see the graph as well. It is free and part of our math solver.

How to Use the System of Equations Calculator

Enter Your Equations

Type them with a comma between, such as 2x+3y=12, x-y=1. The letters can be in any order. You can use up to three unknowns.

Pick a Method

Use the buttons to switch between elimination and substitution. Both lead to the same answer.

Read the Steps

The last step puts the values back into every equation, so you can see that they all hold.

What Is a System of Linear Equations?

A system is two or more equations that must be true at the same time. The solution is the set of values that works in all of them. With two unknowns, each linear equation is a straight line, and the solution is the point where the lines cross.

A system of linear equations calculator like this one works only on straight lines: no squares, and no letters multiplied together.

Methods This Systems of Equations Solver Uses

Here is the same system, 2x+3y=122x+3y=12 and x−y=1x-y=1, solved three ways.

Elimination

Make one letter cancel.

  1. Multiply the second equation by 3: 3x−3y=33x-3y=3.
  2. Add it to the first: 5x=155x=15, so x=3x=3.
  3. Put x=3x=3 into x−y=1x-y=1: y=2y=2.

Substitution

Replace one letter.

  1. From the second equation, x=y+1x=y+1.
  2. Put that into the first: 2(y+1)+3y=122(y+1)+3y=12.
  3. Solve: 5y+2=125y+2=12, so y=2y=2 and x=3x=3.

Graphing

Draw both lines. They cross at (3,2)(3,2). A graph shows the idea well, but it is hard to read exact fractions from it.

Which one should you choose? If a letter already stands alone, or has 1 in front of it, substitute. Otherwise, eliminate. Use a graph to see what is going on.

For bigger systems, the same elimination steps can be written on a grid of numbers called an augmented matrix. That is row reduction: elimination without rewriting the letters.

How Many Solutions Can a System Have?

A linear system has one solution, no solution or infinitely many. Lines that cross once give one solution. Parallel lines never meet, so they give none. Two equations for the same line share every point, so they give infinitely many. No other number is possible.

SolutionsNameLinesWhat you see when you solve
OneConsistent, independentCross onceA value for each letter
NoneInconsistentParallelSomething false, like 0=30=3
Infinitely manyConsistent, dependentThe same lineSomething always true, like 0=00=0

System of equations calculator graphs: crossing lines, parallel lines and two lines that are the same

Worked Examples

Example 1: Two Equations by Elimination

Solve x+y=10x+y=10 and x−y=4x-y=4.

  1. Add the equations. The yy terms cancel: 2x=142x=14, so x=7x=7.
  2. Put x=7x=7 into x+y=10x+y=10: y=3y=3.

Real-life version: two numbers add to 10 and differ by 4. They are 7 and 3.

Example 2: Three Equations

Solve x+y+z=6x+y+z=6, x−y=0x-y=0 and y+z=5y+z=5.

  1. The third equation says y+z=5y+z=5. Put that into the first: x+5=6x+5=6, so x=1x=1.
  2. From x−y=0x-y=0, y=x=1y=x=1.
  3. From y+z=5y+z=5, z=4z=4.

Check: 1+1+4=61+1+4=6.

Example 3: Infinitely Many Solutions

Solve x+2y=4x+2y=4 and 2x+4y=82x+4y=8.

  1. Multiply the first equation by 2: 2x+4y=82x+4y=8.
  2. That is the second equation. Subtracting gives 0=00=0.

Every point on the line works: x=4−2yx=4-2y, where yy can be any number.

Common Mistakes to Check

Multiplying Only One Side

When you multiply an equation by 3, multiply every term, including the number on the right.

Finding One Letter and Stopping

x=3x=3 alone is not the answer. Put it back in to find yy, and write both.

Assuming There Is Always One Answer

If the letters disappear, look at what is left. A false line means no solution. A true line means infinitely many.

Practice Problems

  1. Solve y=2xy=2x and x+y=9x+y=9.
  2. Solve 3x+2y=163x+2y=16 and x−y=2x-y=2.
  3. Solve x+y=3x+y=3 and x+y=5x+y=5.
  4. Solve x+y+z=6x+y+z=6, x−y+z=2x-y+z=2 and x+y−z=0x+y-z=0.
  5. Solve x+2y=4x+2y=4 and x+2y=7x+2y=7.
Show the answers
  1. x=3x=3, y=6y=6
  2. x=4x=4, y=2y=2
  3. No solution (the lines are parallel)
  4. x=1x=1, y=2y=2, z=3z=3
  5. No solution

Related Calculators

Learn More

FAQ

Is Elimination or Substitution Better?

Neither is always better. Substitution is quick when one letter is already alone. Elimination is tidier when every letter has a number in front.

What Does No Solution Look Like on a Graph?

Two parallel lines. They have the same slope but different starting points, so they never meet.

What Are Simultaneous Equations?

It is another name for a system: equations that must be true at the same time. A simultaneous equations calculator does the same job as this page.

How Many Equations Do You Need for Three Unknowns?

Usually three. With fewer, at least one letter stays free, so you get either infinitely many solutions or none.

Can It Solve Nonlinear Systems?

Not yet. If a letter is squared or two letters are multiplied, it will say it can't. A single curved equation works in the equation solver.

Can Determinants Solve a System?

Yes, with a method called Cramer's rule, when the determinant is not zero. The determinant calculator finds the determinants you need.


Next step: solve one system by hand with each method, then check both against the system of equations calculator above.