Gauss-Jordan Elimination Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the coefficients of three equations a₁x + a₂y + a₃z = b to get the solution (x, y, z).
Result
x
Determinant of the coefficients
- Solution type
- y
- z
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Equation 1: coefficient of x: enter a number.
- Equation 1: coefficient of y: enter a number.
- Equation 1: coefficient of z: enter a number.
- Equation 2: coefficient of x: enter a number.
- Equation 2: coefficient of y: enter a number.
- Equation 2: coefficient of z: enter a number.
- Equation 3: coefficient of x: enter a number.
- Equation 3: coefficient of y: enter a number.
- Equation 3: coefficient of z: enter a number.
- Equation 1: right-hand side: enter a number.
- Equation 2: right-hand side: enter a number.
- Equation 3: right-hand side: enter a number.
- Read the result: x; the panel also shows Determinant of the coefficients, Solution type, y and z.
How this calculator works
Gauss-Jordan elimination writes the system as the augmented matrix [A | b] and uses row operations (swap rows, scale a row, add a multiple of one row to another) until A becomes the identity matrix; the last column is then the solution (x, y, z).
When the determinant of A is not 0, that solution is unique, and it equals the one given by Cramer's rule, x = det(Aₓ) ÷ det(A), which this calculator uses to compute it. When the determinant is 0, elimination produces a row of zeros: the system has no solution or infinitely many.
The formula
| Symbol | Meaning |
|---|---|
| Equation 1: coefficient of x | |
| Equation 1: coefficient of y | |
| Equation 1: coefficient of z | |
| Equation 2: coefficient of x | |
| Equation 2: coefficient of y | |
| Equation 2: coefficient of z | |
| Equation 3: coefficient of x | |
| Equation 3: coefficient of y | |
| Equation 3: coefficient of z | |
| Equation 1: right-hand side | |
| Equation 2: right-hand side | |
| Equation 3: right-hand side | |
| Determinant of the coefficients | |
| x |
Worked example
| Equation 1: coefficient of x | 2 |
|---|---|
| Equation 1: coefficient of y | 1 |
| Equation 1: coefficient of z | -1 |
| Equation 2: coefficient of x | -3 |
| Equation 2: coefficient of y | -1 |
| Equation 2: coefficient of z | 2 |
| Equation 3: coefficient of x | -2 |
| Equation 3: coefficient of y | 1 |
| Equation 3: coefficient of z | 2 |
| Equation 1: right-hand side | 8 |
| Equation 2: right-hand side | -11 |
| Equation 3: right-hand side | -3 |
| Determinant of the coefficients | -1 |
|---|---|
| Solution type | One unique solution |
| y | 3 |
| z | -1 |
x 2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the difference between Gaussian and Gauss-Jordan elimination?
Gaussian elimination stops at a triangular (row echelon) form and finishes by back substitution; Gauss-Jordan continues to the reduced form where each variable is read off directly.
What does a determinant of 0 mean?
The equations are dependent or contradictory, so there is no single solution.
What is the solution of the default system?
x = 2, y = 3, z = −1. Check the first equation: 2 × 2 + 3 − (−1) = 8.