Matrices.org
Home › Linear Algebra › Gauss-Jordan Elimination Calculator

Gauss-Jordan Elimination Calculator

Reduce any matrix to reduced row echelon form (RREF) with this free Gauss-Jordan elimination calculator. Enter a matrix or an augmented system to calculate its pivots, rank and final reduced form. Follow every row operation step by step, including row swaps, pivot normalization and elimination above and below each pivot.

Gauss-Jordan Matrix Calculator

Choose a calculation mode, enter your matrix and click Calculate. Integers, decimals and fractions such as 3/4 are supported.

Matrix mode: enter the entries of any matrix. The calculator will reduce the entire matrix to RREF.
x y z
R1
R2
R3

What Is Gauss-Jordan Elimination?

Gauss-Jordan elimination is a method in linear algebra used to simplify a matrix through a sequence of elementary row operations. Its goal is to transform the original matrix into reduced row echelon form (RREF).

Unlike ordinary Gaussian elimination, which generally stops at row echelon form and requires back substitution, Gauss-Jordan elimination continues until all entries above and below each pivot are zero.

How the Gauss-Jordan Method Works

The algorithm processes the matrix column by column, searching for a usable pivot. It then normalizes the pivot and eliminates the other entries in that column.

  1. Find a nonzero pivot in the current column.
  2. Swap rows when necessary to move the pivot into position.
  3. Divide the pivot row by its pivot value to make the pivot equal to 1.
  4. Eliminate every other entry in that pivot column.
  5. Continue with the next pivot column until no more pivots can be found.

The Three Elementary Row Operations

Each operation preserves the row-equivalence of the matrix. These operations are the foundation of Gauss-Jordan elimination.

1. Interchanging two rows

R₁ ↔ R₂

Two rows can be swapped to move a useful nonzero entry into the pivot position.

2. Multiplying a row by a nonzero number

R₁ → kR₁, where k ≠ 0

Multiplying an entire row by a nonzero constant changes its scale without changing the relationships represented by the matrix. It is commonly used to turn a pivot into 1.

3. Adding a multiple of one row to another

R₂ → R₂ + kR₁

This operation eliminates unwanted entries in a pivot column. It is applied above and below each pivot during the Gauss-Jordan process.

What Is Reduced Row Echelon Form?

A matrix is in reduced row echelon form when it satisfies the following conditions:

Every matrix has exactly one reduced row echelon form, even though different sequences of valid row operations may be used to reach it.

Example of Gauss-Jordan Elimination

Consider the following system of equations:

x + y = 5
2x − y = 1

Its augmented matrix is:

[ 1   1  |  5 ]
[ 2  −1  |  1 ]

First, subtract twice the first row from the second row. Then normalize the second row and eliminate the remaining entry above its pivot.

[ 1  0  |  2 ]
[ 0  1  |  3 ]

The final matrix gives the solution directly: x = 2 and y = 3.

Gauss-Jordan Elimination vs. Gaussian Elimination

Both methods use elementary row operations, but they differ in their stopping points.

Applications of Gauss-Jordan Elimination

Gauss-Jordan elimination is useful for:

To calculate an inverse using row reduction, one can start with the augmented matrix [A | I]. If the left side can be reduced to the identity matrix, the right side becomes A⁻¹. This calculator's current modes focus on RREF and augmented-system solutions.

Frequently Asked Questions

What is Gauss-Jordan elimination?

Gauss-Jordan elimination is a matrix row-reduction technique that transforms a matrix into reduced row echelon form by normalizing pivots and eliminating all other entries in each pivot column.

What is the difference between Gaussian and Gauss-Jordan elimination?

Gaussian elimination generally stops at row echelon form and uses back substitution. Gauss-Jordan elimination continues until the matrix reaches reduced row echelon form.

Can Gauss-Jordan elimination work with rectangular matrices?

Yes. The method works with rectangular matrices as well as square matrices. A matrix does not need to have the same number of rows and columns.

What is a pivot in a matrix?

A pivot is the leading nonzero entry of a row during elimination. In reduced row echelon form, every pivot equals 1 and is the only nonzero entry in its column.

Can a system have infinitely many solutions?

Yes. If a system is consistent but has fewer pivot columns than variables, it contains one or more free variables and infinitely many solutions.

Can a system have no solution?

Yes. An inconsistent system produces a row with zero variable coefficients and a nonzero constant, representing an impossible equation such as 0 = 4.

Can I enter fractions?

Yes. You can enter fractions such as 1/2, -3/4, and 5/3, as well as integers, decimals and scientific notation.

Why does the calculator swap rows?

Row swapping can move a larger nonzero entry into the pivot position. Partial pivoting helps avoid division by very small numbers and can reduce numerical errors.

Is the reduced row echelon form unique?

Yes. Every matrix has exactly one reduced row echelon form, regardless of the valid sequence of elementary row operations used to obtain it.

Related Matrix Calculators

Continue working with matrices and systems of equations using these related Matrices.org calculators.