Matrix Trace Calculator
Calculate the trace of a square matrix by summing its main diagonal entries.
Separate columns with commas and rows with semicolons.
About the matrix trace
Matrix trace examples
Only the main diagonal contributes to each result.
| Matrix | Trace | Explanation |
|---|---|---|
| [[1,2],[3,4]] | 5 | Add diagonal entries 1 and 4. |
| [[2,1,0],[4,-3,8],[7,5,6]] | 5 | The diagonal sum is 2 minus 3 plus 6. |
| [[-2,0],[0,2]] | 0 | Opposite diagonal values cancel. |
How to calculate matrix trace
- Enter a square matrix with commas between entries.
- Use semicolons to separate one row from the next.
- Click Calculate Trace to add the main diagonal.
- Read the resulting diagonal sum.
Frequently asked questions
What is the trace of a matrix?
Trace is the sum of entries on a square matrix's main diagonal. It produces one scalar value.
Can a rectangular matrix have a trace?
The standard matrix trace is defined only for square matrices. This ensures rows and columns represent the same dimensional space.
Does zero trace mean a matrix is singular?
No, trace and invertibility measure different properties. An invertible matrix can have trace zero.
How is trace related to eigenvalues?
Trace equals the sum of all eigenvalues counted with algebraic multiplicity. This remains true when some eigenvalues are complex.
Do off-diagonal entries affect trace?
They do not enter the direct diagonal sum. They can still affect other matrix properties such as eigenvectors and determinant.