How to find the rank of a matrix
5 min read
Short answer
The rank of a matrix is the number of pivots in its row echelon form, which equals the number of independent rows and also the number of independent columns. To find it: row reduce, then count the nonzero rows. Rank tells you how many dimensions the matrix really uses, and the rank-nullity theorem says number of columns.
Why rows and columns agree
Row operations only replace rows by combinations of rows, so they do not change how many rows are independent. After reduction, the pivot rows are clearly independent and the pivot columns are too. The same number counts both, which is why a matrix and its transpose have the same rank.
What rank tells you
For an matrix, rank (full rank) means invertible, determinant nonzero, and a unique solution to . Lower rank means some information is lost: the columns span less than the whole space and the equation has non-zero solutions.
Worked example
Find the rank of .
Row 2 minus row 1 gives . Row 3 minus row 1 gives . Swapping rows to tidy: Two nonzero rows, so . With 3 columns, the nullity is (and indeed ).
Try it yourself
What is the rank of , and what does it mean for the solutions of ?
Show the answer
Row 2 row 1 is zero, so the rank is 1. Nullity is , so has a line of solutions, spanned by .
Keep going with practice
Rank and row reduction are practiced in Vidi's Linear Algebra & Probability course, and the matrix calculator shows the rank of any matrix you enter.