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.
Enter the augmented matrix [A|b] for your system of equations.
x
2.000000
y
3.000000
z
-1.000000
Verification
Substituting back into original equations
RREF Matrix
Reduced Row Echelon Form
Step-by-Step Solution
13 steps to reach the result
R1 ↔ R2
R1 = R1 × (1/-3)
R2 = R2 - (2) × R1
R3 = R3 - (-2) × R1
R2 ↔ R3
R2 = R2 × (1/5/3)
R1 = R1 - (1/3) × R2
R3 = R3 - (1/3) × R2
R3 = R3 × (1/1/5)
R1 = R1 - (-4/5) × R3
R2 = R2 - (2/5) × R3
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.
You Might Also Like
Related calculators from other categories
Last updated May 1, 2026