How it works
Add the main diagonal entries of a square matrix to find the trace.
Worked example
Matrix A: 1, 2; 3, 4. The result is 5.
How to read the result
Enter one row per line or separate rows with semicolons. Separate cells with commas or spaces. Matrices can have up to eight rows and eight columns. Use fractions such as 1/2 or decimals.