Row Echelon Form Calculator

Enter your matrix values and this Row Echelon Form Calculator reduces it using Gaussian elimination. Specify the number of rows and columns (up to 4×4), fill in your matrix entries, and choose between standard Row Echelon Form (REF) or Reduced Row Echelon Form (RREF). You get back the transformed matrix, the matrix rank, and a step-by-step breakdown of each row operation applied.

Select how many rows your matrix has (max 4).

Select how many columns your matrix has (max 4).

Results

Matrix Rank

--

Result Row 1

--

Result Row 2

--

Result Row 3

--

Result Row 4

--

Number of Pivots

--

System Consistency

--

Pivot vs Zero Rows

Results Table

Frequently Asked Questions

What is Row Echelon Form (REF)?

Row Echelon Form is a structured form of a matrix where all zero rows are at the bottom, and each non-zero row has a leading entry (called a pivot) that is strictly to the right of the pivot in the row above. This triangular-like structure makes solving systems of linear equations much simpler.

What is the difference between Row Echelon Form and Reduced Row Echelon Form?

In Row Echelon Form (REF), each pivot must be to the right of the pivot above it, but the pivot itself doesn't need to be 1 and entries above it can be non-zero. Reduced Row Echelon Form (RREF) goes further: every pivot must equal 1, and all entries above and below each pivot must be zero, yielding a unique result.

What is Gaussian elimination?

Gaussian elimination is the systematic process of applying elementary row operations — swapping rows, multiplying a row by a non-zero scalar, and adding a multiple of one row to another — to transform a matrix into Row Echelon Form. It's the standard algorithm used in linear algebra to solve systems of equations and find matrix rank.

What can you use Row Echelon Form for?

Row Echelon Form is used to solve systems of linear equations via back-substitution, to determine the rank of a matrix, to check whether a system is consistent (has solutions) or inconsistent (has no solution), and to find the null space or column space of a matrix.

How do I calculate Row Echelon Form manually?

Start from the leftmost non-zero column and select a non-zero entry as the pivot. Use row swaps if needed to bring it to the top. Then eliminate all entries below the pivot by subtracting appropriate multiples of the pivot row. Repeat this process for each subsequent row and column until the matrix is in triangular form.

What is the rank of a matrix?

The rank of a matrix is the number of non-zero rows in its Row Echelon Form, which equals the number of pivot positions. It tells you the dimension of the column space (or row space) of the matrix and determines whether a system of equations has a unique solution, infinitely many solutions, or no solution.

When is a system of linear equations consistent?

A system is consistent when it has at least one solution. In Row Echelon Form, the system is inconsistent if there is a row where all coefficient entries are zero but the right-hand side (augmented column) is non-zero — this represents a contradiction like 0 = 5. Otherwise, the system is consistent.

What are elementary row operations?

There are three elementary row operations: (1) swapping two rows, (2) multiplying a row by a non-zero constant, and (3) adding a scalar multiple of one row to another row. These operations change the form of the matrix without changing the solution set of the corresponding linear system.

More Math Tools