Gauss-Jordan Elimination Calculator

Free Gauss-Jordan elimination calculator with step-by-step row operations. Solve systems of equations, find RREF, or compute matrix inverse. Fractions & decimals.

x
y
z
b

Enter the augmented matrix [A|b] for your system of equations.

Solution

x

2.000000

y

3.000000

z

-1.000000

det = -1
rank = 3
Unique

Verification

Substituting back into original equations

2x + y - z = 8
LHS = 8, RHS = 8
Pass
- 3x - y + 2z = -11
LHS = -11, RHS = -11
Pass
- 2x + y + 2z = -3
LHS = -3, RHS = -3
Pass

RREF Matrix

Reduced Row Echelon Form

1
0
0
2
0
1
0
3
0
0
1
-1

Step-by-Step Solution

13 steps to reach the result

1Starting augmented matrix
2
1
-1
8
-3
-1
2
-11
-2
1
2
-3
2Swap R1 ↔ R2 (partial pivoting)

R1 ↔ R2

-3
-1
2
-11
2
1
-1
8
-2
1
2
-3
3Scale R1 by 1/-3 to make pivot = 1

R1 = R1 × (1/-3)

1
1/3
-2/3
11/3
2
1
-1
8
-2
1
2
-3
4Eliminate column 1 from row 2

R2 = R2 - (2) × R1

1
1/3
-2/3
11/3
0
1/3
1/3
2/3
-2
1
2
-3
5Eliminate column 1 from row 3

R3 = R3 - (-2) × R1

1
1/3
-2/3
11/3
0
1/3
1/3
2/3
0
5/3
2/3
13/3
6Swap R2 ↔ R3 (partial pivoting)

R2 ↔ R3

1
1/3
-2/3
11/3
0
5/3
2/3
13/3
0
1/3
1/3
2/3
7Scale R2 by 1/5/3 to make pivot = 1

R2 = R2 × (1/5/3)

1
1/3
-2/3
11/3
0
1
2/5
13/5
0
1/3
1/3
2/3
8Eliminate column 2 from row 1

R1 = R1 - (1/3) × R2

1
0
-4/5
14/5
0
1
2/5
13/5
0
1/3
1/3
2/3
9Eliminate column 2 from row 3

R3 = R3 - (1/3) × R2

1
0
-4/5
14/5
0
1
2/5
13/5
0
0
1/5
-1/5
10Scale R3 by 1/1/5 to make pivot = 1

R3 = R3 × (1/1/5)

1
0
-4/5
14/5
0
1
2/5
13/5
0
0
1
-1
11Eliminate column 3 from row 1

R1 = R1 - (-4/5) × R3

1
0
0
2
0
1
2/5
13/5
0
0
1
-1
12Eliminate column 3 from row 2

R2 = R2 - (2/5) × R3

1
0
0
2
0
1
0
3
0
0
1
-1
13Solution: x = 2, y = 3, z = -1
1
0
0
2
0
1
0
3
0
0
1
-1

What is Gauss-Jordan Elimination?

A systematic algorithm for solving linear systems in one pass

[A|b]

Augmented matrix

Coefficients + constants in one grid

RREF

Target form

Diagonal of 1s, zeros everywhere else

O(n³)

Complexity

Efficient for systems up to 6×6

Gauss-Jordan elimination extends Gaussian elimination by reducing an augmented matrix all the way to Reduced Row Echelon Form (RREF). Standard Gaussian elimination stops at an upper-triangular matrix and requires back-substitution; Gauss-Jordan eliminates entries both above and below each pivot, so the solution can be read directly from the final matrix.

Three use cases in one tool: solve a system of equations (Ax = b), reduce any matrix to RREF, or find the inverse A⁻¹ via [A|I] → [I|A⁻¹]. Switch modes in the input panel.

How does the algorithm work?

Three elementary row operations, applied systematically

Swap rows

Ri ↔ Rj

Partial pivoting for stability

Scale a row

Ri → (1/pivot) · Ri

Makes the pivot equal to 1

Row replacement

Ri → Ri − k · Rj

Zeros out above & below

Worked example — 3×3 system:

  • 2x + y − z = 8, −3x − y + 2z = −11, −2x + y + 2z = −3
  • Form augmented matrix [2 1 −1 | 8; −3 −1 2 | −11; −2 1 2 | −3]
  • After Gauss-Jordan elimination → [1 0 0 | 2; 0 1 0 | 3; 0 0 1 | −1]
  • Solution: x = 2, y = 3, z = −1

The key difference from Gaussian elimination: after making each pivot equal to 1, you eliminate all other entries in that column — not just the ones below. This produces a diagonal of 1s with zeros everywhere else, so no back-substitution is needed.

Finding the inverse via Gauss-Jordan

Augment with the identity, reduce, and read off A⁻¹

Inverse transformation

[A | I] ⟶ row operations ⟶ [I | A⁻¹]

Only works when det(A) ≠ 0

Augment the n×n matrix A with the n×n identity matrix I to form a n×2n block [A|I]. Apply Gauss-Jordan elimination to the left half. If A is invertible, the left block becomes I and the right block becomes A⁻¹. If A is singular (det = 0), a row of zeros appears on the left — no inverse exists.

Cofactor method

O(n! × n²)

Gauss-Jordan method

O(n³)

Gauss-Jordan is far more efficient than cofactor expansion for matrices larger than 3×3, and naturally incorporates partial pivoting for numerical stability.

Common mistakes to avoid

Pitfalls that trip up students and practitioners

Skipping partial pivoting

Always swap in the row with the largest absolute value in the pivot column. Small pivots amplify rounding errors, especially in 5×5 and 6×6 matrices.

Only eliminating below the pivot

That produces Gaussian (upper triangular), not Gauss-Jordan (RREF). You must zero out entries above the pivot too.

Misreading a zero row as an error

A row [0 0 ... 0 | 0] means a dependent equation and infinitely many solutions — not a broken system.

Ignoring inconsistent rows

A row [0 0 ... 0 | c] where c ≠ 0 means 0 = c, which is impossible. The system has no solution.

Not verifying the solution

Plug the solution back into the original equations. Our calculator does this automatically in Solve mode.

Wrong augmented matrix dimensions

For solving Ax = b, the augmented matrix is n × (n+1). For inverse, it’s n × 2n. Mixing them up produces garbage.

Pro tips

Get the most out of this calculator

Use fraction mode for exact answers

Decimal output rounds; fraction mode preserves exact values like 1/3 or 7/11 that would otherwise lose precision.

Check the determinant first

If det = 0, the system is either dependent (infinite solutions) or inconsistent (no solution). The inverse doesn’t exist.

Share via URL

Every input is encoded in the URL. Copy the address bar to share an exact problem setup with a classmate or professor.

Frequently Asked Questions

Common questions about Gauss-Jordan elimination and RREF

Embed Gauss-Jordan Elimination Calculator

Add this calculator to your website or blog for free.

Last updated May 1, 2026