Everyday tool

System of Equations Calculator

Enter each equation as coefficients of x, y, z and its right-hand value.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

System of Equations Calculator made simple.

Gaussian elimination checks the rank of the coefficient and augmented matrices, so dependent and inconsistent systems are reported separately.

Guide

Using System of Equations Calculator

The System of Equations Calculator solves two or three linear equations that share the same unknowns. You type each equation as a row of numbers: the coefficient of x, the coefficient of y, the coefficient of z if you have one, and the value on the right of the equals sign. The tool uses Gaussian elimination and then says if there is one solution, no solution, or infinitely many. It handles straight-line equations only, and it shows no steps.

How to use it

  1. Write each equation as numbers separated by commas, for example 2x + 3y = 12 becomes 2, 3, 12.
  2. For two unknowns, x and y, type three numbers per row. For three unknowns, x, y and z, type four numbers per row. Every row must have the same count.
  3. Fill Equation 1 and Equation 2. Fill Equation 3 only if you have a third equation.
  4. Press Calculate. The answer is one line: a unique solution with the values, no solution, or infinitely many solutions.
  5. Use Copy result to keep the line, or Clear to empty the boxes.

Worked examples

Two unknowns with one clear answer

You enter
Equation1
2, 3, 12
Equation2
1, -1, 1
You get
Result
Unique solution: x = 3, y = 2

The rows mean 2x + 3y = 12 and x - y = 1. Putting x = 3 and y = 2 in both gives 6 + 6 = 12 and 3 - 2 = 1, so both equations hold.

Run through the tool’s own code.

Three unknowns with one clear answer

You enter
Equation1
1, 1, 1, 6
Equation2
0, 2, 5, -4
Equation3
2, 5, -1, 27
You get
Result
Unique solution: x = 5, y = 3, z = -2

Check each row: 5 + 3 - 2 is 6, then 6 - 10 is -4, and 10 + 15 + 2 is 27. All three equations are met by the same x, y and z.

Run through the tool’s own code.

Two lines that never meet

You enter
Equation1
1, 1, 2
Equation2
1, 1, 3
You get
Result
No solution: the equations are inconsistent.

The same sum x + y cannot be 2 and 3 at once. The left sides match but the right sides differ, so no pair of numbers can satisfy both rows.

Run through the tool’s own code.

Two rows that describe the same line

You enter
Equation1
1, 1, 2
Equation2
2, 2, 4
You get
Result
Infinitely many solutions: at least one variable is free.

The second row is the first row doubled. It adds no new information, so many pairs such as 0 and 2 or 1 and 1 satisfy both. The tool does not list them.

Run through the tool’s own code.

When it helps

  • Check a homework answer for a pair or a trio of linear equations.
  • Find where two straight lines cross when each line is given as an equation.
  • Solve a small word problem about prices, mixtures or speeds after you turn it into equations.
  • Test whether a set of equations is consistent before you try to solve it by hand.
  • Compare your own elimination work with a second result.

Limits to keep in mind

  • Only two or three linear equations work. Squares, products of unknowns and other powers are not supported.
  • Use three numbers per row for x and y, or four for x, y and z. Two rows with four numbers each are treated as three unknowns, which can never give one solution.
  • The page starts with 1, 1, 0, 3 and 1, -1, 0, 1. Because each row has four numbers, z counts as an unknown and the tool reports infinitely many solutions, even though x = 2 and y = 1 fit.
  • A unique answer is shown with up to 6 decimals and no fractions. The tool does not show steps and does not list the family of solutions when there are many.
  • Very small numbers are treated as zero in the elimination, so a system with huge and tiny coefficients may be classified wrongly.

Tips

  • Write each equation with all unknowns on the left and the plain number on the right before you type it.
  • Put a 0 for any unknown that is missing from an equation, such as 1, 0, 5 for x = 5.
  • Check the answer by putting the values back into your original equations.
  • If you see infinitely many solutions for a pair, count the numbers in each row first.

Sources

Common questions

About System of Equations Calculator.

How do I enter an equation such as 2x + 3y = 12?

Type its numbers in order: the number with x, the number with y, then the number on the right. Here that is 2, 3, 12. Use a minus sign for negative numbers, and a 0 for any unknown that is not in the equation.

Why do I get infinitely many solutions when I expected one?

Most often each row has four numbers, so the tool counts x, y and z as unknowns, and two equations are not enough for three unknowns. For two unknowns type only three numbers per row. Another cause is two equations that are really the same line.

How does the tool decide between the three outcomes?

It reduces the rows by Gaussian elimination. If a row ends up as all zeros on the left but a non-zero on the right, there is no solution. If there are fewer useful rows than unknowns, there are many solutions. Otherwise it is a unique solution.

Can it solve a system with three equations and two unknowns?

Yes. Give three rows with three numbers each. If all three lines pass through one point it shows a unique solution. If they do not agree it says there is no solution.

What does at least one variable is free mean?

It means one unknown can take any value, and the other values then follow from it. The tool tells you this happens, but it does not write out the general form of the answers.

Does it show the steps of the elimination?

No. It gives only the final line. If you need steps for school work, write the elimination by hand and use this tool to check the answer.

Can I use fractions, or letters other than x, y and z?

Type each coefficient as a decimal number, not as a fraction. The tool always calls the unknowns x, y and z in the order of the columns, whatever letters your own problem uses.

Are the answers exact?

They come from ordinary decimal arithmetic and are rounded to six decimals when shown. A result such as 0.333333 stands for one third. Very small coefficients are read as zero, so test odd cases by putting the values back.

Are my numbers uploaded?

No. The sums run in your browser, and the numbers you type are not uploaded. Nothing is sent to a server, so you can use private figures from your own work.

How do I use Systems of equations?

Enter each equation as coefficients of x, y, z and its right-hand value.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.