Skip to content
GATEiit

GATE EC, AE, IN, MN · Linear Algebra

Rank of a Matrix

Row reduction to echelon form, pivot counting, largest non-zero minor test, rank-nullity theorem, and fundamental rank inequalities.

Before you start

  • Matrices and determinants →

    Determining matrix rank via largest non-zero minor and elementary row operations builds directly on determinant rules.

  • Elementary row reduction

    Gaussian row operations reduce any matrix to echelon form without changing its rank.

This topic comes before: Eigenvalues, Eigenvectors, Diagonalisation and Cayley–Hamilton, Systems of Linear Equations, Vector Spaces, Basis and Linear Independence

Concept notes

1. What rank means

The rank of an m×n matrix A, written ρ(A) or r(A), is the maximum number of linearly independent rows. Four definitions give the same number:

  • maximum number of linearly independent rows;
  • maximum number of linearly independent columns (row rank = column rank);
  • the order of the largest non-zero minor (a square submatrix with non-zero determinant);
  • the number of non-zero rows (pivots) in a row echelon form.

Basic facts:

  • 0≤ρ(A)≤min⁡(m,n), and ρ(A)=0 only for the zero matrix.
  • ρ(AT)=ρ(A).
  • An n×n matrix has full rank n exactly when det⁡A≠0, that is, when A is invertible. A singular matrix has rank less than n.
  • If every row is a multiple of one non-zero row, ρ(A)=1.

Geometrically, rank is the dimension of the column space: the number of independent directions the map x↦Ax can reach. A 3×3 matrix of rank 2 squashes all of space onto a plane.

For GATE, rank questions are usually one of three kinds: compute the rank of a given matrix, find a parameter that drops the rank, or use rank to decide the nature of solutions of Ax=b.

2. Finding rank: echelon form and minors

Elementary row operations do not change rank: swapping rows, multiplying a row by a non-zero constant, adding a multiple of one row to another. (The same holds for column operations.)

Echelon method (use for anything bigger than 3×3):

  1. Reduce A to row echelon form: each leading non-zero entry (pivot) is to the right of the one above, and zero rows are at the bottom.
  2. Count the non-zero rows. That count is the rank.

Minor method (quick for small or parametric matrices): ρ(A)=r if some r×r minor is non-zero and every (r+1)×(r+1) minor is zero. For a square matrix with a parameter k, set det⁡A=0 to find the values of k that drop the rank below n; then check a 2×2 minor to see if it drops further.

Shortcuts worth spotting:

  • Two proportional rows, or a row that is a sum of others: the rank drops.
  • A=uvT with non-zero column vectors u,v (an outer product) has rank exactly 1.
  • A matrix with aij=f(i)+g(j) is a sum of two rank-one matrices, so its rank is at most 2.
  • A diagonal or triangular matrix: rank is at least the number of non-zero diagonal entries; for diagonal matrices it is exactly that number.
21304012510003600000pivot in column 1pivot in column 2pivot in column 4zero rowonly zeros below the dashed staircaserank = number of pivots = 3
A row echelon form with three pivots and one zero row: the rank is 3

3. Rank inequalities and rank–nullity

For matrices of compatible sizes:

Result Statement
Product ρ(AB)≤min⁡(ρ(A),ρ(B))
Sum ρ(A+B)≤ρ(A)+ρ(B)
Invertible factor ρ(PA)=ρ(AQ)=ρ(A) if P,Q are invertible
Gram matrix ρ(ATA)=ρ(AAT)=ρ(A) for real A
Sylvester ρ(AB)≥ρ(A)+ρ(B)−n, where n is the inner dimension

Rank–nullity theorem. For an m×n matrix (n columns, that is n unknowns),

ρ(A)+nullity(A)=n

where the nullity is the dimension of the null space {x:Ax=0}, the number of free variables.

Rank and eigenvalues (square A):

  • 0 is an eigenvalue exactly when ρ(A)<n, and the eigenspace of 0 has dimension n−ρ(A).
  • For a diagonalisable matrix (for example any real symmetric matrix), ρ(A) equals the number of non-zero eigenvalues, counted with multiplicity.
  • A rank-one matrix uvT has eigenvalue vTu (its trace) once and 0 repeated n−1 times. So the n×n all-ones matrix has eigenvalues n,0,…,0.

Careful: for a non-diagonalisable matrix the count of non-zero eigenvalues can be less than the rank. has rank 1 but both eigenvalues are 0.

4. Rank–nullity theorem and rank inequalities

For any m×n matrix A, the nullity ν(A) is the dimension of the null space {x∈Rn:Ax=0}. The rank–nullity theorem states: rank⁡(A)+nullity⁡(A)=n(number of columns).

Important rank inequalities frequently tested in GATE:

  • Product: rank⁡(AB)≤min⁡(rank⁡(A),rank⁡(B)). Multiplying by an invertible matrix preserves rank exactly.
  • Sylvester's inequality (if A is m×k and B is k×n): rank⁡(A)+rank⁡(B)−k≤rank⁡(AB).
  • Sum: rank⁡(A+B)≤rank⁡(A)+rank⁡(B).
  • Idempotent matrices: if A2=A, then rank⁡(A)=tr⁡(A).

Formulas to remember

Bounds on rank
0≤ρ(Am×n)≤min⁡(m,n),ρ(AT)=ρ(A)
Rank of a product
ρ(AB)≤min⁡(ρ(A),ρ(B))
Rank of a sum
ρ(A+B)≤ρ(A)+ρ(B)
Sylvester's inequality
ρ(Am×nBn×p)≥ρ(A)+ρ(B)−n
Rank–nullity
ρ(A)+nullity(A)=n (number of columns)
Consistency testUnique if this common rank equals the number of unknowns
Ax=b consistent  ⟺  ρ(A)=ρ([A∣b])
Rank-one matrixFor non-zero vectors u,v
ρ(uvT)=1,λ=vTu,0,…,0
Rank–nullity theoremn is number of columns
rank⁡(A)+nullity⁡(A)=n
Gram matrix rankReal matrices
rank⁡(ATA)=rank⁡(AAT)=rank⁡(A)

Common mistakes

  • Using the number of rows instead of the number of columns (unknowns) in rank–nullity.
  • Concluding the rank is n − 1 as soon as the determinant is zero; check whether a smaller minor also vanishes.
  • Counting non-zero eigenvalues to get the rank of a matrix that is not diagonalisable.
  • Assuming rank(A + B) equals rank(A) + rank(B); it is only an upper bound.
  • Deciding a system has infinitely many solutions from rank(A) < n alone, without checking that the augmented matrix has the same rank.
  • Using rank⁡(A)+nullity⁡(A)=m (rows) instead of n (columns).

Worked examples

Try each step yourself, then reveal the working.

Example 1: Rank of a parametric matrix

numerical

Find the rank of for every real k.

  1. Step 1: Look for proportional rows first.

    Try it on paper first.

Example 2: A matrix of the form f(i) + g(j)

conceptual

The 4×4 matrix A has entries aij=i+j for i,j=1,…,4. Find ρ(A) without full row reduction.

  1. Step 1: Split the entry into two parts.

    Try it on paper first.

Example 3: Rank of an outer-product sum

numerical

Let u=[1,1,1]T and A=uuT+2I3. Find rank⁡(A).

  1. Step 1: Write out A explicitly or examine its eigenvalues.

    Try it on paper first.

Example 4: Choosing a parameter for infinitely many solutions

numerical

For the system x+y+z=6, x+2y+3z=14, 2x+3y+4z=λ, find λ for which the system is consistent, and the number of free parameters then.

  1. Step 1: Find the rank of the coefficient matrix.

    Try it on paper first.

Previous year questions

1 official GATE Engineering Mathematics question mapped to this topic across published papers, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE Engineering Mathematics (EC, AE, IN, MN) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.