MatrixStep

Guides6 min

Rank and Reduced Row Echelon Form (RREF) Explained

Reduced row echelon form (RREF) is the simplest shape a matrix can be reduced to. Once you have it, the rank, the pivot columns and the solutions of a linear system can all be read off at a glance.

The four conditions for RREF

A matrix is in reduced row echelon form when all of the following hold.

  1. Rows consisting entirely of zeros are at the bottom.
  2. The first nonzero entry of each row (the pivot, or leading 1) is 1.
  3. Each pivot lies to the right of the pivot in the row above, giving a staircase shape.
  4. Every other entry in a pivot column is 0.

Conditions 1–3 alone define row echelon form (REF); some textbooks do not even require the pivot to be 1. A matrix has many possible REFs, but exactly one RREF. Whatever order of row operations you use, you end at the same RREF.

Example: reducing to RREF

Let's reduce a 3×4 matrix.

A =12−132410−1−221
  1. 01
    Start from the given matrix.
    12−132410−1−221
  2. 02
    Make every other entry of column 1 zero.
    R₂ ← R₂ − 2R₁R₃ ← R₃ + R₁
    12−13003−60014
  3. 03
    Move a nonzero entry of column 3 up to row 2 to use as the pivot.
    R₂ ↔ R₃
    12−130014003−6
  4. 04
    Make every other entry of column 3 zero.
    R₁ ← R₁ + R₂R₃ ← R₃ − 3R₂
    12070014000−18
  5. 05
    Divide row 3 by the pivot so the pivot becomes 1.
    R₃ ← (−1/18)R₃
    120700140001
  6. 06
    Make every other entry of column 4 zero.
    R₁ ← R₁ − 7R₃R₂ ← R₂ − 4R₃
    120000100001

The final result:

RREF(A) =120000100001

Reading the result

In column 2 every entry below the first row was already 0, so no pivot could be chosen there. In that case skip the column and look for a pivot in the next one.

What the rank tells you

The rank is the number of linearly independent rows (equivalently, columns) of the matrix.

One caution when finding a basis of the column space: take the pivot column numbers from the RREF, but use the columns of the original matrix A. Here columns 1, 3 and 4 of A form a basis of the column space. The columns of the RREF itself span a different space.

Common mistakes

FAQ

Can a matrix have rank 0?

Only the zero matrix. It has no pivots at all.

What is RREF used for?

Solving linear systems, computing rank, finding bases of the null space and column space, and inverting matrices are all RREF computations.

How does this relate to solving linear systems?

Reduce the augmented matrix to RREF and read off the solution. The linear systems guide continues from here.

Related guides