Matrix Rank Calculator

Find the rank of a matrix — the number of linearly independent rows (or columns). Computed via Reduced Row Echelon Form (RREF).

Loading calculator…

Notes

What is Matrix Rank?

The rank of a matrix is the maximum number of linearly independent rows or columns. It equals the number of pivot rows (non-zero rows) in the RREF of the matrix.

Example: Find the Rank via Row Reduction

Starting matrix A:

123
246
012

R2 → R2 − 2·R1 (eliminates second row):

123
000
012

Swap R2 ↔ R3, then RREF:

10-1
012
000

Two non-zero rows → rank(A) = 2.

💡A square n×n matrix has full rank (rank = n) if and only if its determinant is nonzero — i.e., it is invertible.

Frequently Asked Questions

What is the maximum possible rank of an m×n matrix?

The rank is at most min(m, n) — you cannot have more independent rows than you have rows, and similarly for columns.

What does rank 0 mean?

Rank 0 means every entry of the matrix is zero. The zero matrix has rank 0.

What is the nullity?

By the rank-nullity theorem, rank + nullity = n (number of columns). Nullity measures the dimension of the null space (solution space of Ax = 0).