The **trace** of an *n* b *n* matrix is the sum of the components along the main diagonal (that is, the diagonal that runs from the top left to the bottom). Written mathematically, the trace is

For example:

If the trace is equal to zero, the matrix is said to be **traceless**.

Community content is available under CC-BY-SA unless otherwise noted.