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.
- Rows consisting entirely of zeros are at the bottom.
- The first nonzero entry of each row (the pivot, or leading 1) is 1.
- Each pivot lies to the right of the pivot in the row above, giving a staircase shape.
- 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.
- 01Start from the given matrix.12−132410−1−221
- 02Make every other entry of column 1 zero.
R₂ ← R₂ − 2R₁R₃ ← R₃ + R₁12−13003−60014 - 03Move a nonzero entry of column 3 up to row 2 to use as the pivot.
R₂ ↔ R₃12−130014003−6 - 04Make every other entry of column 3 zero.
R₁ ← R₁ + R₂R₃ ← R₃ − 3R₂12070014000−18 - 05Divide row 3 by the pivot so the pivot becomes 1.
R₃ ← (−1/18)R₃120700140001 - 06Make every other entry of column 4 zero.
R₁ ← R₁ − 7R₃R₂ ← R₂ − 4R₃120000100001
The final result:
Reading the result
- The pivot columns are columns 1, 3 and 4.
- The rank is the number of pivots: 3.
- Column 2 has no pivot, so it is a free variable column. In a linear system, that variable can take any value.
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.
- The rank of an m×n matrix is at most min(m, n).
- Row rank equals column rank: rank(A) = rank(Aᵀ).
- An n×n matrix with rank n is invertible and has a nonzero determinant.
- Rank-nullity theorem: rank(A) + nullity(A) = number of columns. Here 3 + 1 = 4, so the solution space of Ax = 0 (the null space) is one-dimensional.
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
- Stopping before scaling the pivots to 1. That is REF, not RREF.
- Forgetting to clear the entries above each pivot. RREF needs zeros above and below.
- Giving up at a zero column. Move on to the next column and look for a pivot there.
- Using the RREF's columns as a basis of the column space. Use the columns of the original A.
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