Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Gauss-Jordan Elimination Calculator

Equation 1: coefficient of x: enter a number. Prefilled example: 2.

Equation 1: coefficient of y: enter a number. Prefilled example: 1.

Equation 1: coefficient of z: enter a number. Prefilled example: -1.

Equation 2: coefficient of x: enter a number. Prefilled example: -3.

Equation 2: coefficient of y: enter a number. Prefilled example: -1.

Equation 2: coefficient of z: enter a number. Prefilled example: 2.

Equation 3: coefficient of x: enter a number. Prefilled example: -2.

Equation 3: coefficient of y: enter a number. Prefilled example: 1.

Equation 3: coefficient of z: enter a number. Prefilled example: 2.

Equation 1: right-hand side: enter a number. Prefilled example: 8.

Equation 2: right-hand side: enter a number. Prefilled example: -11.

Equation 3: right-hand side: enter a number. Prefilled example: -3.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Equation 1: coefficient of x: enter a number.
  2. Equation 1: coefficient of y: enter a number.
  3. Equation 1: coefficient of z: enter a number.
  4. Equation 2: coefficient of x: enter a number.
  5. Equation 2: coefficient of y: enter a number.
  6. Equation 2: coefficient of z: enter a number.
  7. Equation 3: coefficient of x: enter a number.
  8. Equation 3: coefficient of y: enter a number.
  9. Equation 3: coefficient of z: enter a number.
  10. Equation 1: right-hand side: enter a number.
  11. Equation 2: right-hand side: enter a number.
  12. Equation 3: right-hand side: enter a number.
  13. 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

  1. Det=a11×(a22×a33−a23×a32)−a12×(a21×a33−a23×a31)+a13×(a21×a32−a22×a31)
  2. X={b1×(a22×a33−a23×a32)−a12×(b2×a33−a23×b3)+a13×(b2×a32−a22×b3)Det+0if Det≠010otherwise
Symbols used in the formula
SymbolMeaning
a11Equation 1: coefficient of x
a12Equation 1: coefficient of y
a13Equation 1: coefficient of z
a21Equation 2: coefficient of x
a22Equation 2: coefficient of y
a23Equation 2: coefficient of z
a31Equation 3: coefficient of x
a32Equation 3: coefficient of y
a33Equation 3: coefficient of z
b1Equation 1: right-hand side
b2Equation 2: right-hand side
b3Equation 3: right-hand side
DetDeterminant of the coefficients
Xx

Worked example

Equation 1: coefficient of x2
Equation 1: coefficient of y1
Equation 1: coefficient of z-1
Equation 2: coefficient of x-3
Equation 2: coefficient of y-1
Equation 2: coefficient of z2
Equation 3: coefficient of x-2
Equation 3: coefficient of y1
Equation 3: coefficient of z2
Equation 1: right-hand side8
Equation 2: right-hand side-11
Equation 3: right-hand side-3
Determinant of the coefficients-1
Solution typeOne unique solution
y3
z-1
  1. Det=2×(−1×2−2×1)−1×(−3×2−2×−2)+−1×(−3×1−−1×−2)=−1
  2. X=8×(−1×2−2×1)−1×(−11×2−2×−3)+−1×(−11×1−−1×−3)−1+0=2

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.

Related calculators