Linear algebra

Matrix rank

The rank of a matrix is the dimension of its column space, equal to the dimension of its row space.

Ask the Linear algebra assistant 1 min read · Updated September 9, 2026

Definition

The rank of a matrix is the dimension of its column space, equal to the dimension of its row space.

Intuition

Rank counts how many independent output directions the matrix can produce.

Worked example

The matrix with rows (1, 2) and (2, 4) has rank 1 because one row is twice the other.

The math

For an m×nm\times n matrix, rank⁡(A)≤min⁡(m,n)\operatorname{rank}(A)\leq\min(m,n).

In machine learning

Rank helps detect redundant measurements, singular systems, and the dimension of a low-rank approximation.

Go deeper

Sources

More in Linear algebra

Assembled from the ReLU.chat curated knowledge base. These explanations are concise on purpose; check the sources for anything important.