You may view an r × c matrix as a collection of r row vectors each of length c, or as a collection of c column vectors each of length r. The concept of rank measures how many of those row or column vectors are linearly independent.
The rank of a matrix is the maximum number of linearly independent column vectors in the matrix or, equivalently, the maximum number of linearly independent row vectors in the matrix. Both definitions give the same value for any matrix.
The two standard methods to determine the rank of a matrix are (i) row-reduction to an echelon form and (ii) finding the largest non-zero minor (largest order of a non-zero determinant of a square submatrix). For practical computations, row-reduction is usually preferred.
Elementary row operations do not change the linear relations among rows and therefore do not change the number of linearly independent rows. Transform the matrix to a row echelon form (or reduced row echelon form) using elementary row operations; the number of non-zero rows in that echelon form equals the rank.

Suppose the row echelon form Aref of matrix A has two non-zero rows. Then rank(A) = 2.
One can check the linear dependence among the original rows. For the matrix illustrated above, Row 3 is a linear combination of Row 1 and Row 2; specifically,
Row 3 = 3 × (Row 1) + 2 × (Row 2).
Hence only two rows are independent and the rank is 2.
The rank of a matrix equals the order (size) of the largest non-zero square submatrix (minor). In particular, for a square matrix of order n, if det(A) ≠ 0 then rank(A) = n (the matrix is full rank). For rectangular matrices, find the largest k for which some k × k minor has non-zero determinant; that k is the rank.
A matrix is full rank when all its rows (if r ≤ c) or all its columns (if c ≤ r) are linearly independent. Equivalently, rank(A) = min(r, c).

In the first matrix shown in the figure, Row 2 is a scalar multiple of Row 1 (Row 2 = 2 × Row 1). Therefore rows 1 and 2 are linearly dependent and the matrix has rank 1; it is not full rank.
In the second matrix shown, all three rows are linearly independent. Therefore the rank of that matrix is 3 and it is full rank.
Transform A to an echelon form using elementary row operations and count the non-zero rows. A typical sequence of steps is as follows.
Use a non-zero pivot in the first column; if the entry in the first row is zero swap with a lower row that has a non-zero entry in that column.
Use the pivot row to eliminate entries below the pivot (make them zero) by adding suitable multiples of the pivot row to the rows below.
Move to the next pivot column (to the right) and repeat the selection of a non-zero pivot and elimination below it until the matrix is in row echelon form.
Count the number of non-zero rows in the resulting echelon matrix; this count is the rank of A.
Summary
The rank of a matrix is the number of linearly independent rows or columns and is equal to the number of non-zero rows in its row echelon form. It is bounded above by min(r, c) for an r × c matrix, invariant under transposition, and determined either by row-reduction or by the largest non-zero minor. For square matrices, a non-zero determinant implies full rank.
| 1. What is the rank of a matrix? | ![]() |
| 2. How is the rank of a matrix calculated? | ![]() |
| 3. How does the rank of a matrix relate to its invertibility? | ![]() |
| 4. Can the rank of a matrix be greater than its dimensions? | ![]() |
| 5. How can the rank of a matrix be used in solving systems of linear equations? | ![]() |