Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Rank—

Determinant —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Matrix Rank Calculator

Row 1, column 1: enter a number. Prefilled example: 1.

Row 1, column 2: enter a number. Prefilled example: 2.

Row 1, column 3: enter a number. Prefilled example: 3.

Row 2, column 1: enter a number. Prefilled example: 4.

Row 2, column 2: enter a number. Prefilled example: 5.

Row 2, column 3: enter a number. Prefilled example: 6.

Row 3, column 1: enter a number. Prefilled example: 7.

Row 3, column 2: enter a number. Prefilled example: 8.

Row 3, column 3: enter a number. Prefilled example: 9.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Row 1, column 1: enter a number.
  2. Row 1, column 2: enter a number.
  3. Row 1, column 3: enter a number.
  4. Row 2, column 1: enter a number.
  5. Row 2, column 2: enter a number.
  6. Row 2, column 3: enter a number.
  7. Row 3, column 1: enter a number.
  8. Row 3, column 2: enter a number.
  9. Row 3, column 3: enter a number.
  10. 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 11
Row 1, column 22
Row 1, column 33
Row 2, column 14
Row 2, column 25
Row 2, column 36
Row 3, column 17
Row 3, column 28
Row 3, column 39
Determinant0
Rank2

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.

Related calculators