Matrix Rank Calculator
Find the rank of any matrix using row reduction to row-echelon form with every row operation shown step by step.
Find the rank of any matrix by reducing it to row-echelon form, with every row swap, scaling, and elimination step shown along the way.
How Matrix Rank Calculator Works
The calculator performs Gaussian elimination with partial pivoting: for each column, it picks the row with the largest absolute value in that column as the pivot (for numerical stability), swaps it into position if needed, scales that row so the pivot becomes 1, and then eliminates every entry below it in that column using row subtraction.
This repeats column by column until no more pivots can be found. The rank of the matrix is simply the number of non-zero rows remaining once this row-echelon form is reached — equivalently, the number of pivot positions located during elimination.
The nullity (number of "free" directions with no pivot) is then reported as columns − rank, following the rank-nullity theorem, along with a verdict of whether the matrix is "full rank" (rank equals the smaller of its row/column count) or "rank-deficient."
See It In Action
Who Uses Matrix Rank Calculator and Why
- Determining how many equations in a system are truly independent before attempting to solve it.
- Checking whether a set of vectors is linearly independent by finding the rank of the matrix they form.
- Diagnosing why a system has infinitely many solutions by identifying that its coefficient matrix is rank-deficient.
- Confirming a matrix is full rank before relying on operations, like inversion, that require it.
Mistakes to Avoid
- Assuming rank always equals the number of rows — a row that's a multiple of, or a combination of, another row reduces the rank below the full row count, as in a matrix where row 2 is exactly twice row 1.
- Confusing rank with the determinant — rank is defined even for non-square or singular matrices, where a determinant either doesn't apply or is simply zero.
- Overlooking that "full rank" for a non-square matrix means the rank equals the smaller of its row or column count, not necessarily both.
Tips for Best Results
- Use a rank lower than the row count as a direct explanation for redundant equations in a system, rather than treating it as an unexpected result.
- Check the reported nullity (columns − rank) to understand how many free (unconstrained) directions the matrix leaves in a related system.
Fixing Common Problems
The rank came out lower than the number of rows I entered. — This means at least one row is linearly dependent on the others (a multiple or combination of them) — this is a valid result, not an error, and reflects genuine redundancy in your data.
I'm not sure if my matrix is full rank. — Compare the reported rank to the smaller of the row count or column count — if they match, the matrix is full rank; if the rank is lower, it's rank-deficient.
Terms Explained
Rank: The number of linearly independent rows (or columns) in a matrix, found as the number of non-zero rows after row reduction.
Rank-nullity theorem: The rule stating rank + nullity always equals the number of columns in a matrix.