Rank of a Matrix: Definition, Methods & Examples

Rank of a Matrix: Definition, Methods & Examples

TL;DR

The rank of a matrix is the number of linearly independent rows (equal to the number of independent columns) it has — the true amount of information the matrix carries. This article covers the echelon-form and minor methods of finding rank, the properties (rank ≤ min(m, n)), and how rank tells you whether a system has a solution.

What the Rank of a Matrix Is

The rank of a matrix is the maximum number of linearly independent rows it contains — which, remarkably, is always equal to the maximum number of linearly independent columns. It is written ( \rho(A) ) or ( \text{rank}(A) ). Linearly independent means no row (or column) can be built as a combination of the others. The rank is the dimension of the space those rows or columns span, so it measures the genuine information content of the matrix.

For a matrix ( A ) of order ( m \times n ), the rank cannot exceed the smaller of ( m ) and ( n ):

[ \rho(A) \leq \min(m, n) ]

The only matrix with rank 0 is the zero matrix — every entry is 0, so there is no independent row at all. Every other matrix has rank at least 1. The size of the matrix, its order, sets the ceiling; the dependencies among rows set the actual value.

How Do You Find the Rank of a Matrix?

Two methods dominate. The echelon-form method is the workhorse; the minor method is the definition made concrete.

The echelon-form method

Convert the matrix to row echelon form using elementary row operations (swapping rows, scaling a row, adding a multiple of one row to another). Then count the non-zero rows — that count is the rank.

[ \rho(A) = \text{number of non-zero rows in row echelon form} ]

This is the method to reach for in practice, because row operations are systematic and cheap even for large matrices.

The minor method

A minor is the determinant of a square submatrix. The rank is the order of the largest non-zero minor:

The minor method connects rank directly to the determinant, but for a large matrix it means checking many submatrices, which is why echelon form usually wins.

Variable glossary. ( A ) is the matrix; ( m ) is its number of rows; ( n ) its number of columns; ( \rho(A) ) or ( \text{rank}(A) ) is the rank; a minor of order ( r ) is the determinant of an ( r \times r ) submatrix.

What Are the Properties of Rank?

A handful of properties make rank predictable and useful.

These connect rank to ideas you have already met: a non-zero determinant on a square matrix means full rank, which means an inverse exists.

Examples of Rank of a Matrix

Example 1

Find the rank of ( \begin{bmatrix} 1 & 2 \ 3 & 4 \end{bmatrix} ).

The determinant is (1)(4)−(2)(3)=4−6=−2≠0. A non-zero ( 2 \times 2 ) minor exists, so the rank equals the order. Final answer: ( \rho(A) = 2 ).

Example 2

Find the rank of ( \begin{bmatrix} 1 & 2 \ 2 & 4 \end{bmatrix} ).

The determinant is (1)(4)−(2)(2)=0, so there is no non-zero ( 2 \times 2 ) minor. But a ( 1 \times 1 ) minor — any single non-zero entry, such as 1 — is non-zero. The largest non-zero minor has order 1. Final answer: ( \rho(A) = 1 ).

Example 3 (where students lose the mark)

Find the rank of ( \begin{bmatrix} 1 & 2 & 3 \ 2 & 4 & 6 \ 3 & 6 & 9 \end{bmatrix} ).

Wrong attempt. A student sees a ( 3 \times 3 ) matrix with no zeros, no obvious repeats, and writes rank 3 — "it is full size, so it must be full rank."

Correct. Row-reduce: subtract 2×Row 1 from Row 2, and 3×Row 1 from Row 3:

[ \begin{bmatrix} 1 & 2 & 3 \ 0 & 0 & 0 \ 0 & 0 & 0 \end{bmatrix} ]

One non-zero row remains. Final answer: ( \rho(A) = 1 ).

Example 4

Find the rank of ( \begin{bmatrix} 1 & 2 & 3 \ 2 & 4 & 6 \ 1 & 1 & 1 \end{bmatrix} ) by row reduction.

Subtract 2×Row 1 from Row 2, and Row 1 from Row 3:

[ \begin{bmatrix} 1 & 2 & 3 \ 0 & 0 & 0 \ 0 & -1 & -2 \end{bmatrix} ]

Swap Row 2 and Row 3 to reach echelon form:

[ \begin{bmatrix} 1 & 2 & 3 \ 0 & -1 & -2 \ 0 & 0 & 0 \end{bmatrix} ]

Two non-zero rows remain. Final answer: ( \rho(A) = 2 ).

Example 5

Find the rank of the ( 3 \times 4 ) matrix ( \begin{bmatrix} 1 & 0 & 2 & 1 \ 0 & 1 & 3 & 2 \ 0 & 0 & 0 & 0 \end{bmatrix} ).

The matrix is already in echelon form: two non-zero rows. The ceiling: for a ( 3 \times 4 ) matrix, ( \rho(A) \leq 3 ), and 2 sits comfortably below it. Final answer: ( \rho(A) = 2 ).

Example 6

For which value of ( k ) does ( \begin{bmatrix} 1 & 2 \ 3 & k \end{bmatrix} ) have rank 1?

Rank drops below 2 only when the determinant is zero. Set ( \det A = 0 ):

(1)(k)−(2)(3)=0 → ( k−6=0 ) → ( k=6 ).

When ( k=6 ), the second row is 3×Row 1 and the rank falls to 1; for any other ( k ) the rank is 2. Final answer: ( k=6 ).

Why Rank Matters — "how much a matrix really knows"

The idea grew out of solving systems of linear equations. Rank is the precise count of how many of those equations actually pull their weight, and it is what tells you whether a system can be solved at all.

Where Things Go Sideways With Rank

Mistake 1: Assuming rank equals the number of rows

Where it slips in: Any matrix with no zero entries that looks "full."

Don't do this: Reading the rank off the matrix's size. A ( 3 \times 3 ) matrix does not automatically have rank 3.

The correct way: Reduce to echelon form and count non-zero rows, or check the largest non-zero minor.

Mistake 2: Stopping row reduction too early

Where it slips in: Counting rows before the matrix is truly in echelon form.

Don't do this: Counting a row as non-zero when more reduction would have zeroed it out.

Mistake 3: Hunting minors in the wrong order

Where it slips in: Using the minor method on a larger matrix.

Don't do this: Concluding the rank is low after checking only a few small minors, or testing minors at random.

Key Takeaways

Practice Questions on Rank of a Matrix

Work through these, then check your answers below.

  1. Find the rank of ( \begin{bmatrix} 2 & 4 \ 1 & 2 \end{bmatrix} ).
  2. Row-reduce ( \begin{bmatrix} 1 & 1 & 1 \ 1 & 2 & 3 \ 1 & 3 & 5 \end{bmatrix} ) and count the non-zero rows.
  3. Find the value of ( k ) that makes ( \begin{bmatrix} 1 & k \ 4 & 8 \end{bmatrix} ) have rank 1.
  4. State the rank of the ( \begin{bmatrix} 1 & 0 & 3 & 0 \ 0 & 0 & 0 & 0 \end{bmatrix} ).

Answer to Question 1: The largest non-zero minor has order 1, so ( \rho(A) = 1 ). Answer to Question 2: Two non-zero rows remain, so ( \rho(A) = 2 ). Answer to Question 3: When ( k=2 ), the rank falls to 1. Answer to Question 4: Only the first row is non-zero, so ( \rho(A) = 1 ).