Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
The trace of a matrix is one of its simplest but most useful properties, showing up in eigenvalue calculations, matrix invariants, and physics applications.
This calculator finds the trace of a 2×2 up to 6×6 matrix by summing its main diagonal elements.
How it works
Choose a matrix size and enter the matrix elements. The calculator adds together the elements on the main diagonal (top-left to bottom-right) to find the trace.
- Click Calculate to see your results.
Examples
A 2×2 example
For the matrix [[1, 2], [3, 4]], the trace is 1 + 4 = 5.
Who should use it
- Coursework involving eigenvalues, linear algebra, or matrix invariants.
- Quickly checking a hand-calculated trace.
Industry applications
- Linear algebra and mathematics education
- Physics and engineering
Advantages
- Simple, fast calculation with a clear formula.
- Supports both 2×2 and 3×3 matrices.
Limitations
- Limited to square matrices up to 6×6.
Common mistakes to avoid
- Summing an entire row or column instead of just the diagonal elements.
- Trying to compute a trace for a non-square matrix, which isn't mathematically defined.
Best practices
- Double check that you're reading diagonal elements correctly — position (1,1), (2,2), (3,3), and so on — especially for a matrix you've transcribed by hand.
Tips
- The trace equals the sum of a matrix's eigenvalues — if you've separately computed the eigenvalues, adding them up is a quick way to double-check this result.