Row Echelon Form (REF) Calculator

Convert any matrix to Row Echelon Form (REF) using Gaussian elimination. Compare REF to RREF and view detailed step-by-step row operations.

×

Matrix A

Step-by-Step Row Working

What is Row Echelon Form (REF)?

A matrix is in Row Echelon Form (REF) when it represents the output of standard Gaussian elimination. REF is a simplified, upper triangular structure that makes back-substitution straightforward. A matrix is defined to be in REF if it meets three primary criteria:

  1. All rows containing only zeros are positioned at the bottom of the matrix.
  2. The leading entry (the first non-zero number from the left, also called a pivot) of any row is strictly to the right of the leading entry of the row above it.
  3. All entries in a column below a leading entry are zero.

Note that in REF, the leading entry does not have to be 1 (though many solvers scale it to 1 for simplicity), and there can be non-zero numbers above the leading entries. This is the main difference between REF and RREF.

REF vs RREF: Key Differences

It is common for students of linear algebra to confuse Row Echelon Form with Reduced Row Echelon Form. Here is a side-by-side comparison:

Property Row Echelon Form (REF) Reduced Row Echelon Form (RREF)
Entries below pivots Must be zero Must be zero
Entries above pivots Can be any number Must be zero
Pivot values Can be any non-zero value Must be exactly 1
Uniqueness Not unique (multiple forms possible) Unique (only one RREF exists per matrix)

How is REF Used to Solve Equations?

REF is highly efficient for computing determinants and solving systems of equations by hand. Once a system's augmented matrix is reduced to REF, the corresponding system of equations is upper triangular. You can solve it using a process called back-substitution:

  1. Solve the last equation for the last variable (since it is the only variable in that equation).
  2. Substitute that value back into the equation above to solve for the second-to-last variable.
  3. Continue this process moving upwards until all variables are solved.

Because REF requires fewer row operations than RREF (since we do not need to eliminate values above the pivots), it is computationally cheaper and represents the first phase of the Gauss-Jordan elimination algorithm.

Frequently Asked Questions

What is the difference between REF and RREF?

Row Echelon Form (REF) only requires that entries below each pivot are zero. Reduced Row Echelon Form (RREF) is more restrictive, requiring that entries both below and above each pivot are zero, and that all pivot values are scaled exactly to 1. RREF is unique for any given matrix, while REF is not.

What is RREF (Reduced Row Echelon Form)?

Reduced Row Echelon Form (RREF) is a standardized matrix layout achieved via Gaussian elimination. A matrix is in RREF if: all zero rows are at the bottom, the leading entry (pivot) of each non-zero row is 1, each pivot is to the right of the pivot in the row above, and all entries in a pivot's column are 0 except the pivot itself.

Is RREF unique for every matrix?

Yes, the Reduced Row Echelon Form (RREF) of any matrix is mathematically unique. No matter what sequence of elementary row operations you use to reduce the matrix, you will always arrive at the exact same RREF matrix. This is not true for Row Echelon Form (REF).

What is back-substitution?

Back-substitution is a method used to solve a system of equations that has been reduced to upper triangular form (REF). You solve for the last variable first, then plug it into the row above, and solve upwards.