On this page
Rank tells you whether a system of linear equations can be solved before you try to solve it. Here is the method, then one 3x3 system pushed to all three possible endings.
What is the rank of a matrix?
The rank of a matrix is the maximum number of linearly independent rows it has, and this always equals the maximum number of linearly independent columns (rank, definitions and proofs). Put simply, rank counts the rows that carry new information. An equivalent definition is the order of the largest non-zero minor, but testing minors is slow; row reduction is faster.
How do you reduce a matrix to row echelon form?
You may use three kinds of elementary row operations, and none of them changes the rank:
Swap two rows (R1 ↔ R2).
Multiply a row by a non-zero number (R2 → 3R2).
Add a multiple of one row to another (R3 → R3 − 2R1).
A matrix is in row echelon form when every all-zero row sits at the bottom and the first non-zero entry of each row, its pivot, lies to the right of the pivot in the row above. The pivots form a staircase, which is where the word echelon (a step) comes from.
Once you are there, the rank equals the number of pivots, which is also the number of non-zero rows (rank from row echelon forms). The routine: clear everything below the pivot of row 1, then below the pivot of row 2, and so on.
Worked example: one 3x3 system, three endings
Start with this system:
x + y + z = 6
x + 2y + 3z = 14
2x + 3y + 5z = 23
Write the augmented matrix [A | b], with the constants after the bar, and reduce it:
Start: [1 1 1 | 6], [1 2 3 | 14], [2 3 5 | 23].
R2 → R2 − R1 and R3 → R3 − 2R1: [1 1 1 | 6], [0 1 2 | 8], [0 1 3 | 11].
R3 → R3 − R2: [1 1 1 | 6], [0 1 2 | 8], [0 0 1 | 3].
There are three pivots, so rank A = 3 and rank [A | b] = 3. Back-substitute: z = 3, then y = 8 − 2(3) = 2, then x = 6 − 2 − 3 = 1. Check the third equation: 2 + 6 + 15 = 23. One solution.
Now change only the third equation to 2x + 3y + 4z = 20. The same operations leave a last row of [0 0 0 | 0]. Now rank A = 2 and rank [A | b] = 2, with three unknowns. Let z = t; then y = 8 − 2t and x = t − 2. Every value of t works, so there are infinitely many solutions.
Change it once more, to 2x + 3y + 4z = 21. The last row becomes [0 0 0 | 1], which says 0 = 1. Now rank A = 2 but rank [A | b] = 3. No solution.
How does rank tell you if a system has a solution?
The Rouché–Capelli theorem says a system of linear equations has a solution if and only if the coefficient matrix A and the augmented matrix [A | b] have the same rank (statement and examples). The same source gives the rest of the decision for a system with n unknowns:
rank A < rank [A | b]: no solution; the system is inconsistent.
rank A = rank [A | b] = n: exactly one solution.
rank A = rank [A | b] < n: infinitely many solutions, described by n − rank A free variables.
In the second version of the example, n − rank A = 3 − 2 = 1, which is why a single parameter, t, described every solution. Reduce [A | b] once: rank A comes from the columns left of the bar. Our guide to finding a matrix inverse with elementary row operations uses the same moves, and Gilbert Strang's free MIT lecture Solving Ax = b: row reduced form R goes further.
Which mistakes cost marks with rank?
Counting non-zero entries instead of non-zero rows. [0 0 1] is a non-zero row; it counts once.
Stopping before echelon form. Rows that look different can still be dependent.
Using column operations on an augmented matrix. When solving, use row operations only.
Dividing by an expression that might be zero. In a question with a parameter k, a step such as R2 → R2/(k − 1) quietly assumes k ≠ 1. Handle that case separately.
Reading rank A alone. rank A = 2 with three unknowns does not mean infinitely many solutions; the augmented matrix decides between infinitely many and none.
How should you practise this?
Practise in families, as the example does: change one coefficient or constant at a time and predict the ending from the ranks before you solve. For the whole chapter, see our note on how to prepare matrices and determinants for JEE Advanced.
If you get stuck partway through a reduction, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer, so you can see which row operation comes next and why. If linear independence itself feels shaky, the Fermi Concept Library gives each mathematics concept its own lesson.



