Introduction
This Gaussian Elimination Calculator solves systems of linear equations step by step. You type in your numbers, and it shows the row operations that turn your matrix into row echelon form (REF) or reduced row echelon form (RREF).
Start by picking how many equations and variables you have. Then fill in the augmented matrix [ A | b ]. You can enter whole numbers, decimals like -2.5, or fractions like 3/4. Blank boxes count as zero. Press Solve to see the answer.
The calculator tells you if the system has one solution, many solutions, or no solution at all. For a single answer, it checks the work by plugging the values back into each equation. If there are free variables, it writes the answer in parametric form.
You can also rename the variables to x, y, and z, show answers as exact fractions or decimals, and hide the steps if you just want the result. Use it to check homework, or to watch how Gauss-Jordan elimination works one row at a time.
How to use our Gaussian Elimination Calculator
Type the numbers from your system of equations into the augmented matrix, and the calculator will row reduce it, show each row operation, and give you the solution.
Equations / Rows: Pick how many equations your system has. This sets the number of rows in the matrix.
Variables / Columns: Pick how many variables your system has. This sets the number of coefficient columns.
Decimal Precision: Choose how many decimal places to show. This only matters when fraction output is turned off.
Reduction Mode: Choose Gaussian (REF) to stop at row echelon form, or Gauss-Jordan (RREF) to fully reduce the matrix and read the answer right off it.
Show results as exact fractions: Check this box to see answers like 3/7 instead of rounded decimals.
Show step-by-step row operations: Check this box to see every swap, scaling, and row replacement with the matrix after each step.
Variable Names: Type your own names, like x, y, and z. Leave a box empty to keep the default x₁, x₂, x₃.
Augmented Matrix [ A | b ]: Fill in each coefficient and each constant on the right side. You can enter whole numbers, decimals like -2.5, or fractions like 5/7. Empty cells count as 0.
Solve: Row reduces the matrix and shows the solution, the final matrix, and a check of your answer.
Load Example: Fills the grid with a sample system that works with your chosen size.
Randomize: Fills the grid with random numbers for practice.
Clear All: Empties every cell and clears the results.
Reset: Puts all settings and the matrix back to the starting 3 × 3 example.
What Is Gaussian Elimination?
Gaussian elimination is a step-by-step method for solving a system of linear equations. You write the equations as a grid of numbers called an augmented matrix, then change the rows until the answer is easy to read.
The Augmented Matrix
A system like:
2x + y − z = 8 −3x − y + 2z = −11 −2x + y + 2z = −3
becomes this matrix [ A | b ], where each row is one equation and the last column holds the numbers after the equals sign:
[ 2 1 −1 | 8 ] [ −3 −1 2 | −11 ] [ −2 1 2 | −3 ]
The Three Row Operations
Only three moves are allowed. None of them change the answer:
- Swap: trade the places of two rows.
- Scale: multiply or divide a whole row by a number that is not zero.
- Replace: add or subtract a multiple of one row to another row.
REF and RREF
The goal is to make zeros below the leading numbers, called pivots.
- Row Echelon Form (REF) is the "staircase" shape. Every entry below a pivot is 0. You then work backward, plugging answers in one at a time. This is Gaussian elimination.
- Reduced Row Echelon Form (RREF) goes further. Each pivot is 1, and the entries above and below it are 0. The answers sit right in the last column. This is Gauss-Jordan elimination.
Three Possible Outcomes
- One solution: every variable has its own pivot. There is exactly one set of values that works.
- Infinitely many solutions: some variables have no pivot. These are free variables. You can pick any value for them, so the answer is written as a formula with parameters.
- No solution: a row reads 0 = 5 (or any nonzero number). That can never be true, so the equations fight each other. The system is called inconsistent.
Why It Matters
Gaussian elimination is the base method behind much of linear algebra. It is used to find the rank of a matrix, invert matrices, compute determinants, and solve real problems in engineering, physics, computer graphics, economics, and machine learning. Computers use this same process to solve systems with thousands of equations.
Tips for Getting It Right
- Use fractions instead of decimals when you can. Rounding errors build up fast.
- If a pivot spot holds a 0, swap in a row below it that has a nonzero number there.
- A whole row of zeros is fine. It just means one equation repeated information from the others.
- Always check your answer by putting the values back into the original equations.