Rank of Matrix Calculator
Find the rank and nullity of any square or rectangular matrix by reducing to row echelon form and counting independent pivot rows.
Understanding Matrix Rank and Nullity
The rank of a matrix is one of the most fundamental concepts in linear algebra. It represents the number of dimensions in the output space spanned by the matrix columns (its column space or range).
\(\text{Rank}(A) + \text{Nullity}(A) = n\)
Where \(n\) is the total number of columns in matrix A.How Rank is Calculated
To find the rank of any matrix:
- Perform Gaussian elimination to reduce the matrix to Row Echelon Form (REF).
- Count the number of non-zero rows (rows that have at least one non-zero entry).
- The number of non-zero rows (pivots) is precisely equal to \(\text{Rank}(A)\).
Solved Rank Examples with Echelon Reduction
Find the rank of matrix \(A\):
\(A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 0 & 1 \end{bmatrix}\)
Step 1: Eliminate below Row 1:
- \(R_2 \leftarrow R_2 - 2R_1 \implies \begin{bmatrix} 0 & 0 & 0 \end{bmatrix}\)
- \(R_3 \leftarrow R_3 - 1R_1 \implies \begin{bmatrix} 0 & -2 & -2 \end{bmatrix}\)
Step 2: Move zero row to bottom: Swap \(R_2 \leftrightarrow R_3\):
\(\text{REF}(A) = \begin{bmatrix} 1 & 2 & 3 \\ 0 & -2 & -2 \\ 0 & 0 & 0 \end{bmatrix}\)
Conclusion: There are 2 non-zero rows (pivots in col 1 and 2). Therefore \(\text{Rank}(A) = 2\). The nullity is \(3 - 2 = 1\).
Compute the rank of \(B = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}\):
Matrix \(B\) is already in upper triangular echelon form. Both rows contain non-zero pivots (3 and 2).
Therefore \(\text{Rank}(B) = 2\). Because the rank equals the dimension of the square matrix, \(B\) is of full rank and invertible.
Rank & Inverses Connection
Discover why only matrices with full rank have two-sided inverses.
Read our student tutorial: How to Find the Inverse of a Matrix →