Calculator · Level 2
System of equations calculator with steps
Enter the coefficients of 2 to 6 linear equations and get the solution with every step. The calculator eliminates one variable after another, works with exact fractions and tells you when a system has no solution or infinitely many.
Free for teaching and learning (terms (in German)). Ad-free in class: Classroom view · Do you teach?
How to use the calculator
Choose the number of equations and variables, from 2 to 6. Write each equation in the form ax + by + cz = d, with all variables on the left in the same order and the constant on the right. Then type the coefficients into the grid. If a variable does not appear in an equation, its coefficient is 0; for x − z = 4 in a system with x, y and z, type 1, 0, −1 and 4.
Coefficients can be integers, decimals (0.5), fractions (3/4) or large numbers with commas (1,000). The answer is exact: fractions stay fractions, and the decimal value is shown next to them.
How the calculator solves a system
The calculator uses elimination, the same idea as the elimination method from algebra class, organized in an augmented matrix: one row per equation, one column per variable and a last column for the right-hand side. Rows are named R₁, R₂ and so on. Three kinds of row operations are allowed, because none of them changes the solution:
- swap two rows;
- divide a row by a number that is not 0;
- subtract a multiple of one row from another row.
Step by step, each variable is eliminated from all equations but one, until every row tells you the value of one variable. This procedure is called Gauss-Jordan elimination.
Switch on “Show every row operation as a matrix” under “More options” to see the matrix after each step.
Word problems
Not every system has whole-number answers. The system 2x − y + z = 3, x + 3y + z = 8, x + y + 4z = 9 has the solution x = 37/23 ≈ 1.6087, y = 38/23 ≈ 1.6522 and z = 33/23 ≈ 1.4348, and the fractions are exact.
No solution or infinitely many solutions
A linear system has exactly one solution, no solution or infinitely many solutions.
- No solution: x + y = 2 and 2x + 2y = 5. Subtracting 2 · R₁ from R₂ leaves 0 = 1, a contradiction. The lines are parallel; the system is called inconsistent.
- Infinitely many solutions: x + y = 2 and 2x + 2y = 4. The second equation is just twice the first. The calculator answers x = 2 − y, where y is a free variable: every value of y gives a solution.
The page on the number of solutions explains how to recognize these cases before you start.
Frequently asked questions
Can I solve by substitution or graphing instead?
By hand, yes; all methods give the same solution. The calculator always uses elimination because it works the same way for 2 or 6 variables. The lesson on systems of equations shows substitution and graphing too.
What if an equation has fractions or decimals?
Type them as they are. For 0.5x + 1.25y = 4 and 2x − y = 1, the solution is x = 7/4 = 1.75 and y = 5/2 = 2.5.
What does “R₂ − 2 · R₁” mean?
Subtract two times row 1 from row 2, term by term, and write the result as the new row 2.
Can the calculator solve nonlinear systems?
No. It solves linear systems, where every variable appears only to the first power and variables are not multiplied together. Equations such as x² + y = 5 or xy = 6 cannot be entered.
What if I have fewer equations than variables?
The calculator always uses as many equations as variables. For 2 equations with 3 variables, choose 3 and enter 0 = 0 (all zeros) as the third equation; the answer then shows the free variable.
Keep learning
- The lesson on systems of equations covers substitution, elimination and graphing.
- One equation at a time: linear equations.
- Equations with x²: quadratic formula calculator.
Spotted a mistake or have a request? Send us a short message and we will take care of it.