Matrix Trace Calculator
Enter a square matrix to add up its main diagonal.
Matrix A
Size
1
Write rows separated by semicolons, like 1, 2; 3, 4.
Try
Result
You entered
Show the work
Main diagonal
The main diagonal runs from the top-left corner to the bottom-right corner. Its entries are the ones whose row number equals their column number.
Trace of a matrix
The trace of a square matrix is the sum of its main-diagonal entries. It also equals the sum of the eigenvalues, counted with repeats.
Result
So the trace is .