Nilpotent Matrix: Definition, Examples & Index

#Algebra
TL;DR
A nilpotent matrix is a square matrix that becomes the zero matrix when raised to some positive integer power, and the smallest power that does this is its index. Because of that single fact, every nilpotent matrix has determinant zero, trace zero, and all eigenvalues equal to zero, so it is always singular and can never be inverted.
MV
Madhukar VLast updated on September 9, 202612 min read

What Is A Nilpotent Matrix?

A nilpotent matrix is a square matrix AA for which some positive integer power equals the zero matrix, written Ak=0A^k = 0. The smallest power kk that makes this true is called the index (or degree) of nilpotency.

The simplest non-trivial case is a 2×22 \times 2 matrix with a single entry above the diagonal:

A=[01 00],A2=[01 00][01 00]=[00 00]A = \begin{bmatrix} 0 & 1 \ 0 & 0 \end{bmatrix}, \qquad A^{2} = \begin{bmatrix} 0 & 1 \ 0 & 0 \end{bmatrix}\begin{bmatrix} 0 & 1 \ 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 \ 0 & 0 \end{bmatrix}

Here AA itself is not the zero matrix, but A2A^2 is, so AA is nilpotent with index 22. Note the two requirements baked into the definition: the matrix must be a square matrix, and the power that returns zero must be a whole number. The zero matrix counts too, as the trivial case with index 11.

What Are Some Examples Of A Nilpotent Matrix?

Nilpotent matrices are not always as obvious as a single stray entry above the diagonal. This 2×22 \times 2 matrix looks ordinary, yet it is nilpotent:

B=[2−4 1−2]B = \begin{bmatrix} 2 & -4 \ 1 & -2 \end{bmatrix}

Square it, entry by entry using row-by-column multiplication:

B2=[(2)(2)+(−4)(1)(2)(−4)+(−4)(−2) (1)(2)+(−2)(1)(1)(−4)+(−2)(−2)]=[00 00]B^{2} = \begin{bmatrix} (2)(2)+(-4)(1) & (2)(-4)+(-4)(-2) \ (1)(2)+(-2)(1) & (1)(-4)+(-2)(-2) \end{bmatrix} = \begin{bmatrix} 0 & 0 \ 0 & 0 \end{bmatrix}

So B2=0B^2 = 0 and BB has index 22. Its determinant is (2)(−2)−(−4)(1)=0(2)(-2)-(-4)(1) = 0 and its trace is 2+(−2)=02 + (-2) = 0, the two fingerprints every nilpotent matrix carries. The lesson: you cannot judge nilpotency by appearance, you have to test the powers.

How Do You Find The Index Of A Nilpotent Matrix?

To find the index, raise the matrix to successive powers until you first hit the zero matrix, and record that exponent. Take this 3×33 \times 3 matrix with entries only above the diagonal:

C=[012 003 000]C = \begin{bmatrix} 0 & 1 & 2 \ 0 & 0 & 3 \ 0 & 0 & 0 \end{bmatrix}

Square it first:

C2=[003 000 000]C^{2} = \begin{bmatrix} 0 & 0 & 3 \ 0 & 0 & 0 \ 0 & 0 & 0 \end{bmatrix}

C2C^2 is not zero, so the index is not 22. Multiply once more:

C3=C2,C=[000 000 000]C^{3} = C^{2},C = \begin{bmatrix} 0 & 0 & 0 \ 0 & 0 & 0 \ 0 & 0 & 0 \end{bmatrix}

Now C3=0C^3 = 0, so the index of CC is 33. There is a ceiling on how large the index can get: for any n×nn \times n nilpotent matrix (a matrix of order nn), the index is at most nn. That bound comes from the Cayley-Hamilton theorem, which forces An=0A^{n} = 0 once every eigenvalue is zero.

How Do You Check Whether A Matrix Is Nilpotent?

The decisive test is short: for an n×nn \times n matrix, compute AnA^{n}, and if it equals the zero matrix the matrix is nilpotent. This works because the index can never exceed nn, so if raising the matrix to the nn-th power has not reached zero, no higher power will either.

Before grinding through the powers, three quick screens can rule a matrix out, since each is a necessary condition:

  • Trace check: the trace (sum of the diagonal) must be 00.

  • Determinant check: the determinant must be 00, so the matrix must be singular.

  • Eigenvalue check: every eigenvalue must be 00.

If any screen fails, stop, the matrix is not nilpotent. If all three pass, confirm with the power test, because passing the screens is necessary but not sufficient. Consider [100 0−10 000]\begin{bmatrix} 1 & 0 & 0 \ 0 & -1 & 0 \ 0 & 0 & 0 \end{bmatrix}: its trace and determinant are both 00, yet its eigenvalues are 11, −1-1, and 00, not all zero, so it is not nilpotent. Computing each power means repeated multiplication of matrices, which is why the necessary screens are worth running first.

Why Is Every Triangular Matrix With A Zero Diagonal Nilpotent?

Any triangular matrix whose main diagonal is entirely zero is nilpotent. A strictly upper triangular matrix (zeros on and below the diagonal) pushes its nonzero band one step further toward the corner every time you multiply it by itself, exactly as the 3×33 \times 3 example above did, until the band falls off the edge and the matrix becomes zero.

The eigenvalues of any triangular matrix are just its diagonal entries. Set that diagonal to all zeros and every eigenvalue is zero, which is the spectral signature of nilpotency. A diagonal matrix with a zero diagonal is the extreme case, since it is already the zero matrix, with index 11.

What Are The Properties Of A Nilpotent Matrix?

Every property below follows from one root fact: all eigenvalues of a nilpotent matrix equal zero.

Table: The defining properties of a nilpotent matrix and why each holds.

Property

What it says

Why

Must be square

Only a square matrix can be nilpotent

AkA^k needs AA times itself, which requires equal rows and columns

Trace is zero

The diagonal entries sum to 00

Trace equals the sum of eigenvalues, all of which are 00

Determinant is zero

det⁡(A)=0\det(A) = 0

Determinant equals the product of eigenvalues, all of which are 00

Not invertible

No inverse exists; it is singular

A zero determinant rules out an invertible matrix

Eigenvalues all zero

The only eigenvalue is 00

Av=λvAv = \lambda v with Ak=0A^k = 0 forces λ=0\lambda = 0

Index at most nn

For order nn, the index k≤nk \le n

Cayley-Hamilton gives An=0A^n = 0

Rank below nn

The rank is less than nn

A singular matrix has dependent rows

Because its determinant is always zero, a nilpotent matrix is never a non-singular matrix. That is the property students lean on most in exams, and the one the next section protects against misreading.

How Is A Nilpotent Matrix Different From Idempotent And Singular Matrices?

These three labels describe different behaviours, and they overlap in only one place. A nilpotent matrix satisfies Ak=0A^k = 0; an idempotent matrix satisfies A2=AA^2 = A (it reproduces itself); a singular matrix simply has determinant zero.

Table: Nilpotent, idempotent, and singular matrices compared.

Feature

Nilpotent

Idempotent

Singular

Defining rule

Ak=0A^{k} = 0

A2=AA^{2} = A

det⁡(A)=0\det(A) = 0

Eigenvalues

all 00

only 00 or 11

includes at least one 00

Determinant

always 00

00 or 11

always 00

Invertible?

never

only the identity matrix

never

Zero matrix qualifies?

yes, index 11

yes, 02=00^2 = 0

yes, det⁡=0\det = 0

Every nilpotent matrix is singular, but the reverse fails: most singular matrices are not nilpotent. The only matrix that is both nilpotent and idempotent is the zero matrix, where A2=A=0A^2 = A = 0.

Why Do Nilpotent Matrices Matter?

Nilpotent matrices are not a curiosity invented to trap students. They are the algebraic model of a process that moves in one direction only and cannot cycle back, so repeating it eventually exhausts everything to nothing.

  • The pure "shift" building block. In the theory of the Jordan form, every matrix splits into a scaling part (the eigenvalues) and a shifting part that carries no scaling of its own. That shifting part is exactly a nilpotent matrix, which is why understanding nilpotency unlocks the structure of every linear map.

  • A finite, terminating chain. Differentiate a polynomial of degree nn enough times and you reach zero. That "runs out after finitely many steps" behaviour is nilpotency, and it appears anywhere a quantity strictly decreases at each step.

  • No hidden loops. A transformation that is nilpotent can have no cycle, because a cycle would repeat forever instead of dying out. That links nilpotent matrices to processes guaranteed to finish.

Strip away scaling and rotation, and what remains of a linear map is a nilpotent core. Studying it is how mathematicians describe the part of a transformation that only pushes forward and never returns.

Who Discovered Nilpotent Matrices?

The behaviour came first, and the name came later, from an American mathematician classifying every algebra he could imagine.

Two more mathematicians shaped how we understand these matrices today:

  • Arthur Cayley (1821–1897, England) proved the Cayley-Hamilton theorem, which explains why an n×nn \times n nilpotent matrix always satisfies An=0A^n = 0.

  • Camille Jordan (1838–1922, France) developed the Jordan canonical form, in which every nilpotent matrix appears as a tidy block with 11s just above the diagonal and 00s everywhere else.

Where Are Nilpotent Matrices Used In The Real World?

The "runs out after a fixed number of steps" behaviour turns up in more fields than its abstract definition suggests.

  • Calculus and differential operators: the operation of differentiating polynomials of degree at most nn is nilpotent, because enough repeated derivatives send any such polynomial to zero.

  • Computer science and scheduling: the adjacency matrix of a directed acyclic graph is nilpotent, which is the algebra behind task schedulers and build systems that must contain no circular dependency.

  • Control engineering: a discrete system whose state matrix is nilpotent settles to exactly zero in a finite number of steps, the idea behind deadbeat controllers that reach their target and stop.

  • Quantum physics: raising and lowering operators for finite spin systems are nilpotent, since applying the raising operator past the top state annihilates it.

One quiet idea, a process that cannot loop and must terminate, connects calculus, scheduling, control systems, and quantum mechanics. That reach across fields is what makes the concept worth naming.

What Are The Most Common Nilpotent Matrix Mistakes?

These three errors account for most lost marks on nilpotency questions, and each traces back to reading one property as if it were the whole definition.

Assuming any singular matrix is nilpotent.

Where it slips in:

A student sees that a matrix has determinant zero, remembers that nilpotent matrices are singular, and concludes the matrix must be nilpotent.

Don't do this:

Do not run the implication backwards. Singular is necessary for nilpotency, not sufficient.

The correct way:

Check that every eigenvalue is zero, or compute AnA^n directly. The matrix [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix} is singular, yet A2=A≠0A^2 = A \neq 0, so it is not nilpotent.

Confusing a nilpotent matrix with an idempotent matrix.

Where it slips in:

A student blends the two rules and writes A2=AA^2 = A for a nilpotent matrix, or expects a nilpotent matrix to reproduce itself.

Don't do this:

Do not mix the defining equations. Nilpotent means Ak=0A^k = 0; idempotent means A2=AA^2 = A.

The correct way:

Keep the rules separate. The only matrix satisfying both at once is the zero matrix, where A2=A=0A^2 = A = 0.

Stopping the power test too early.

Where it slips in:

Working with a 3×33 \times 3 matrix, a student computes A2A^2, finds it nonzero, and declares the matrix not nilpotent.

Don't do this:

Do not stop before the nn-th power. A 3×33 \times 3 nilpotent matrix can have index 33, so A2A^2 may be nonzero while A3=0A^3 = 0.

The correct way:

For an n×nn \times n matrix, carry the powers up to AnA^n before deciding. Only when AnA^n is still nonzero can you conclude the matrix is not nilpotent.

Practice Problems On Nilpotent Matrix

Test each matrix using the power method, and state the index where it applies. Answers follow each problem.

  1. Is [05 00]\begin{bmatrix} 0 & 5 \ 0 & 0 \end{bmatrix} nilpotent?
    (Answer: Yes. Its square is the zero matrix, so the index is 22.)

  2. Show that [11 −1−1]\begin{bmatrix} 1 & 1 \ -1 & -1 \end{bmatrix} is nilpotent and give its index.
    (Answer: The square is [00 00]\begin{bmatrix} 0 & 0 \ 0 & 0 \end{bmatrix}, so it is nilpotent with index 22; trace and determinant are both 00.)

  3. Find the index of [021 003 000]\begin{bmatrix} 0 & 2 & 1 \ 0 & 0 & 3 \ 0 & 0 & 0 \end{bmatrix}.
    (Answer: The square is nonzero but the cube is the zero matrix, so the index is 33.)

  4. Is [10 00]\begin{bmatrix} 1 & 0 \ 0 & 0 \end{bmatrix} nilpotent? Explain.
    (Answer: No. It is singular but equals its own square, so it is idempotent; its eigenvalues are 11 and 00, not all zero.)

  5. A 4×44 \times 4 nilpotent matrix has index kk. What is the largest possible value of kk?
    (Answer: 44, because the index of an n×nn \times n nilpotent matrix is at most nn.)

Where Should You Go Next After Nilpotent Matrix?

Nilpotency sits at a crossroads of ideas about eigenvalues, structure, and matrix families, and several natural doors open from here.

  1. Eigenvalues. The fact that every eigenvalue is zero is what makes a matrix nilpotent, so eigenvalues are the deeper concept sitting underneath this whole topic.

  2. Triangular matrix. The strictly triangular matrices are the readymade source of nilpotent examples, and they show how the diagonal controls the eigenvalues.

  3. Matrices and determinants. Strengthen the determinant and singularity ideas that decide when a matrix can be nilpotent in the first place.

For a live walkthrough of these matrix families, a Bhanzu trainer teaches nilpotency starting from what the powers actually do, in the Bhanzu algebra program.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is a nilpotent matrix in simple terms?
A nilpotent matrix is a square grid of numbers that turns into the all-zero matrix when you multiply it by itself enough times. The number of multiplications needed is called its index.
Is the zero matrix a nilpotent matrix?
Yes. The zero matrix satisfies A1=0A^1 = 0, so it is nilpotent with index 11, the smallest index possible.
Can a nilpotent matrix be invertible?
No. Its determinant is always zero, so a nilpotent matrix is always singular and never has an inverse.
What is the index of a nilpotent matrix?
The index is the smallest positive integer kk for which AkA^k equals the zero matrix. For a matrix of order nn, the index is always nn or less, so you never need to test beyond AnA^n.
How is a nilpotent matrix different from an idempotent matrix?
A nilpotent matrix satisfies Ak=0A^k = 0, collapsing to nothing, while an idempotent matrix satisfies A2=AA^2 = A, reproducing itself. Their eigenvalues differ too: nilpotent matrices have only zero eigenvalues, whereas idempotent matrices have eigenvalues of zero or one. The single matrix that is both is the zero matrix.
Where do nilpotent matrices show up outside the classroom?
They model any process that runs in one direction and must stop, such as differentiating a polynomial to zero, ordering tasks with no circular dependency, or designing a control system that settles in finite time.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →