Matrix Rank Calculator
The rank of a matrix is the number of linearly independent rows (or columns), and this calculator finds it by reducing the matrix to row echelon form. Shows RREF, identifies all pivot columns, and computes nullity = cols − rank.
Matrix Rank Calculator
Rank via RREF with pivot identification
What is Matrix Rank?
The rank of a matrix is the maximum number of linearly independent rows (or columns). It equals the number of non-zero rows in the RREF of the matrix.
Rank-Nullity Theorem
Interpretations
- Full column rank: rank = n (columns are linearly independent)
- Full row rank: rank = m (rows are linearly independent)
- Full rank: rank = min(m, n)
- rank(A) = rank(Aᵀ) always
Worked Example
For A = [[1,2],[2,4]]: the second row is exactly 2 times the first row, so it adds no new information. This matrix has rank 1, even though it's a 2×2 matrix — because only one row is truly independent.
How It's Calculated
This calculator uses row reduction (RREF) to simplify the matrix, then counts the number of non-zero rows remaining. Each non-zero row after simplification represents one independent direction in the matrix.
Applications
- Determining whether a system of equations has a unique solution
- Checking whether a matrix can be inverted (only full-rank square matrices have inverses)
- Data compression and dimensionality reduction in machine learning
Frequently Asked Questions
Related Calculators
- RREF Calculator — rank is calculated via row reduction
- Linear System Solver — rank determines how many solutions a system has