What the Inverse of a Diagonal Matrix Is
The inverse of a diagonal matrix is another diagonal matrix in which each main-diagonal entry is the reciprocal of the matching entry in the original, provided none of those entries is zero. A diagonal matrix is a square matrix whose only non-zero entries lie on the main diagonal — every off-diagonal entry is 0.
If you stopped reading here, you would have the answer: flip each diagonal number to over itself, leave the zeros alone, and that is the inverse. The rest of the article proves why it works and shows exactly when it does not.
The Formula For a Diagonal Matrix
with every , the inverse is
Here are the diagonal entries, and each becomes in the inverse. No determinant and no adjugate are needed — a genuine shortcut compared with the general inverse of a matrix.
A Short Proof
To confirm is the inverse, multiply it by and check that the product is the identity matrix . The product of two diagonal matrices is diagonal, with each entry the product of the matching entries:
Each diagonal product is , and every off-diagonal entry stays 0. The same check works the other way (), so is the inverse. This is exactly why the reciprocal rule holds.
Properties of the Inverse of a Diagonal Matrix
A few properties follow directly from the reciprocal rule and are worth stating on their own.
Invertibility condition. A diagonal matrix is invertible if and only if every diagonal entry is non-zero. A single zero on the diagonal makes the determinant zero, so the matrix is singular and no inverse exists.
The inverse is diagonal. Reciprocating only the diagonal entries leaves every off-diagonal entry at 0, so keeps the same diagonal shape as .
The determinant is the product of the entries. For , , and so .
Powers stay diagonal. Raising to a power raises each diagonal entry to that power, and is just with each entry taken to the power .
A diagonal matrix is symmetric, and so is its inverse. Because the only non-zero entries lie on the diagonal, and .
The first bullet is the one that decides everything: check the diagonal for a zero before you reach for reciprocals.
Examples of the Inverse of a Diagonal Matrix
Each example states the matrix in bold, then works the inverse.
Example 1
Find the inverse of .
Replace each diagonal entry with its reciprocal:
Example 2
Find the inverse of . (Watch the tempting move first.)
The instinct is to flip both entries: and .
But is undefined. Check the reason: the second row is all zeros, so the determinant is . A zero determinant means the matrix is singular.
Conclusion: has no inverse. A diagonal matrix with any zero on its diagonal cannot be inverted.
Example 3
Find the inverse of .
Take the reciprocal of each diagonal entry, carrying the sign:
Example 4
Find the inverse of .
The reciprocal of a fraction flips it:
Example 5
Verify that the inverse of the identity matrix is itself.
The identity is diagonal with entries 1 and 1. The reciprocal of 1 is 1:
So the identity matrix is its own inverse.
Example 6
A scaling problem: matrix stretches every vector by 3. Find the matrix that undoes the stretch.
The undo is the inverse:
Multiplying by shrinks each vector back by a factor of 3 — the geometric meaning of the reciprocal.
Why the Reciprocal Rule Works
The rule is not a lucky pattern — it comes straight from what a diagonal matrix does. Reading a diagonal matrix geometrically, it scales the first axis by , the second by , and so on. Its inverse must undo each scaling, and the undo of "multiply by " is "multiply by ." Nothing gets mixed between axes, which is why the off-diagonal zeros stay zero.
This is where diagonal matrices earn their keep:
They make computation cheap. Inverting a general matrix is expensive; inverting a diagonal one is reciprocals. This is a large part of why diagonalisation — rewriting a matrix in a diagonal-friendly basis — matters across linear algebra.
They model independent scalings. In graphics and data work, a diagonal matrix scales each coordinate on its own, and its inverse rescales them back. Covariance and transformation steps lean on exactly this.
The zero-on-the-diagonal case flags a collapse. A zero diagonal entry means one direction has been flattened to nothing — information is lost, and no inverse can bring it back.
The high-stakes echo: when a system of equations is solved by inverting a matrix and one scaling factor is (or rounds to) zero, the inverse blows up. Numerical solvers that ignore a near-zero pivot can produce wildly wrong results — the matrix version of a division by zero slipping into a live calculation.
Where Students Trip Up on the Inverse of a Diagonal Matrix
Mistake 1: Inverting when a diagonal entry is zero
Where it slips in: applying the reciprocal rule on autopilot.
Don't do this: write for a zero diagonal entry and keep going.
The correct way: first check that every diagonal entry is non-zero. If any is zero, the matrix is singular and has no inverse. The learner who trusts the shortcut without checking the entries is the one who reports an inverse for a matrix that doesn't have one.
Mistake 2: Reciprocating the whole matrix, off-diagonal included
Where it slips in: confusing "reciprocal of the matrix" with "reciprocal of each diagonal entry."
Don't do this: try to take on the off-diagonal zeros too.
The correct way: only the diagonal entries flip; the off-diagonal zeros stay 0. The inverse of a diagonal matrix is still diagonal.
Mistake 3: Dropping the sign
Where it slips in: entries like , where the reader takes and forgets the minus.
Don't do this: write the inverse of as .
The correct way: the reciprocal of is — the sign carries through. This is the same care needed when solving matrices with negative entries.
Key Takeaways
The inverse of a diagonal matrix replaces each diagonal entry with and keeps the zeros.
It exists only if every diagonal entry is non-zero; a single zero makes the matrix singular.
The inverse of a diagonal matrix is itself diagonal.
The rule needs no determinant or adjugate — a major computational shortcut.
Signs carry through, so the reciprocal of is .
A Practical Next Step
Try inverting these: (1) ; (2) ; (3) . If (2) stumps you, come back to Example 2 and check the diagonal for a zero. To take matrices further with a teacher, explore Bhanzu's algebra tutor, get help with algebra, or work with a high school math tutor.
Want a live Bhanzu trainer to walk through more matrix problems? Book a free demo class — available online globally.
Practice Questions
Find each inverse, or state why it does not exist.
Invert .
Invert .
Invert .
Invert .
Invert .
Answers
No inverse — the zero on the diagonal makes the matrix singular.
Read More
Was this article helpful?
Your feedback helps us write better content
Frequently Asked Questions
How do you find the inverse of a diagonal matrix quickly?
When does a diagonal matrix not have an inverse?
Is the inverse of a diagonal matrix also diagonal?
What is the inverse of the identity matrix?
Does this shortcut work for any square matrix?


