Matrix Rank Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter a 3×3 matrix to get its rank and its determinant. For a 2×2 matrix, leave row 3 and column 3 at 0.
Result
Rank
Determinant
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Row 1, column 1: enter a number.
- Row 1, column 2: enter a number.
- Row 1, column 3: enter a number.
- Row 2, column 1: enter a number.
- Row 2, column 2: enter a number.
- Row 2, column 3: enter a number.
- Row 3, column 1: enter a number.
- Row 3, column 2: enter a number.
- Row 3, column 3: enter a number.
- Read the result: Rank; the panel also shows Determinant.
How this calculator works
The rank is the largest number of linearly independent rows (or columns). It equals the size of the largest square sub-matrix whose determinant (minor) is not zero.
So the rank is 3 when the determinant is not 0; otherwise 2 if one of the nine 2×2 minors is not 0; otherwise 1 if any entry is not 0; and 0 for the zero matrix. Values closer to 0 than 10⁻⁹ count as 0.
Worked example
| Row 1, column 1 | 1 |
|---|---|
| Row 1, column 2 | 2 |
| Row 1, column 3 | 3 |
| Row 2, column 1 | 4 |
| Row 2, column 2 | 5 |
| Row 2, column 3 | 6 |
| Row 3, column 1 | 7 |
| Row 3, column 2 | 8 |
| Row 3, column 3 | 9 |
| Determinant | 0 |
|---|---|
| Rank | 2 |
Frequently asked questions
What is the rank of the matrix 1 2 3 / 4 5 6 / 7 8 9?
2. Its determinant is 0 (row 3 = 2 × row 2 − row 1), but the minor 1×5 − 2×4 = −3 is not 0.
What does full rank mean?
The rank equals the number of rows: for a square matrix this means the determinant is not 0 and the matrix has an inverse.