PDF Tools Calculators Contact Log In
Pick a size, then fill in each cell below.
Result
--
Enter values to calculate.
Summary
--
Waiting for input
Detail
--
Waiting for input

Check whether a square matrix is diagonal — every entry off the main diagonal equal to zero.

How It Works

How Diagonal Matrix Checker Works

The calculator scans every entry that isn't on the main diagonal (where the row and column index match) and confirms they're all zero. If even one off-diagonal entry is non-zero, the matrix fails the test.

FAQ

Frequently Asked Questions

Why does this property matter?
Diagonal matrices are the simplest possible matrices to work with — multiplying, inverting, and raising them to a power all reduce to doing the same operation on each diagonal entry individually, which is why they show up so often as a simplifying assumption in linear algebra.
Does the matrix need to be square?
Yes — being diagonal (like triangular and most of the other properties on this site) is only defined for square matrices, so enter the same number of rows as columns.