Matrix Rank Calculator

Find the rank of a matrix by counting the pivots after row reduction.

Matrix A
Rows
3
Columns
3

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You enteredrank⁡(100010001)\operatorname{rank}\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

3\displaystyle 3

Row echelon form

(100010001)\displaystyle \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

Nullity

0\displaystyle 0
Show the work
  1. Gauss-Jordan elimination

    The matrix is already in reduced row echelon form, so no row operation is needed. The rank is the number of non-zero rows that remain.

    A=(100010001)A = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}
  2. Count the non-zero rows

    The rank is the number of non-zero rows in the reduced matrix, which is the number of pivots. The pivots are in row 1, column 1; row 2, column 2; row 3, column 3.

    Using rank⁡(A)=number of non-zero rows\operatorname{rank}\left(A\right) = \text{number of non-zero rows}

    rank⁡(A)=rank⁡(100010001)=3\operatorname{rank}\left(A\right) = \operatorname{rank}\begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} = 3
  3. Rank and nullity

    The nullity counts the columns with no pivot, that is, the free directions: the number of columns minus the rank. Here AA has 3 columns.

    Using rank⁡(A)+nullity⁡(A)=number of columns\operatorname{rank}\left(A\right) + \operatorname{nullity}\left(A\right) = \text{number of columns}

    nullity⁡(A)=3−3=0\begin{aligned} \operatorname{nullity}\left(A\right) &= 3 - 3 \\ &= 0 \end{aligned}
  4. Result

    So the rank of AA is 33. It is at most the smaller of 3 rows and 3 columns.

Worked examples