Matrix Rank Calculator

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

Matrix A
Rows
2
Columns
2

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

Try

Result

You enteredrank⁡(1224)\operatorname{rank}\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}

1\displaystyle 1

Row echelon form

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

Nullity

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

    The rank is unchanged by row operations, so reduce the matrix to reduced row echelon form. Work column by column: make a pivot (a leading 1) with a swap or a scaling, then clear every other entry in its column.

    A=(1224)A = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}
  2. Row operation: add a multiple of one row to another

    Subtract 22 times R1R_1 from R2R_2 to turn the entry in row 2, column 1 into 0.

    R2→R2−2R1(1200)R_2 \to R_2 - 2R_1 \quad \begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix}
  3. 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.

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

    rank⁡(A)=rank⁡(1200)=1\operatorname{rank}\left(A\right) = \operatorname{rank}\begin{pmatrix} 1 & 2 \\ 0 & 0 \end{pmatrix} = 1
  4. 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 2 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)=2−1=1\begin{aligned} \operatorname{nullity}\left(A\right) &= 2 - 1 \\ &= 1 \end{aligned}
  5. Result

    So the rank of AA is 11. It is at most the smaller of 2 rows and 2 columns, and it is smaller here because some rows (or columns) are combinations of the others.

Worked examples