Skip to content
FiftyCalc Free calculators for all 50 states

Matrix Trace Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter a 3×3 matrix. For a 2×2 matrix, leave row 3 and column 3 at 0.

Result

Sample figures

Trace tr(A) = a₁₁ + a₂₂ + a₃₃ (sum of the eigenvalues)—

Trace of A² (sum of the squared eigenvalues) —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Matrix Trace Calculator

Row 1, column 1: enter a number. Prefilled example: 1.

Row 1, column 2: enter a number. Prefilled example: 2.

Row 1, column 3: enter a number. Prefilled example: 3.

Row 2, column 1: enter a number. Prefilled example: 4.

Row 2, column 2: enter a number. Prefilled example: 5.

Row 2, column 3: enter a number. Prefilled example: 6.

Row 3, column 1: enter a number. Prefilled example: 7.

Row 3, column 2: enter a number. Prefilled example: 8.

Row 3, column 3: enter a number. Prefilled example: 9.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Row 1, column 1: enter a number.
  2. Row 1, column 2: enter a number.
  3. Row 1, column 3: enter a number.
  4. Row 2, column 1: enter a number.
  5. Row 2, column 2: enter a number.
  6. Row 2, column 3: enter a number.
  7. Row 3, column 1: enter a number.
  8. Row 3, column 2: enter a number.
  9. Row 3, column 3: enter a number.
  10. Read the result: Trace tr(A) = a₁₁ + a₂₂ + a₃₃ (sum of the eigenvalues); the panel also shows Trace of A² (sum of the squared eigenvalues).

How this calculator works

The trace of a square matrix is the sum of the entries on its main diagonal, from top left to bottom right.

The trace equals the sum of the eigenvalues counted with multiplicity, and tr(A²) = Σᵢ Σⱼ aᵢⱼaⱼᵢ equals the sum of their squares. The trace is unchanged by transposition and tr(AB) = tr(BA).

The formula

  1. Tr=a11+a22+a33
Symbols used in the formula
SymbolMeaning
a11Row 1, column 1
a22Row 2, column 2
a33Row 3, column 3
TrTrace tr(A) = a₁₁ + a₂₂ + a₃₃ (sum of the eigenvalues)

Worked example

Row 1, column 11
Row 1, column 22
Row 1, column 33
Row 2, column 14
Row 2, column 25
Row 2, column 36
Row 3, column 17
Row 3, column 28
Row 3, column 39
Trace of A² (sum of the squared eigenvalues)261
  1. Tr=1+5+9=15

Trace tr(A) = a₁₁ + a₂₂ + a₃₃ (sum of the eigenvalues) 15

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the trace of [[1, 2, 3], [4, 5, 6], [7, 8, 9]]?

1 + 5 + 9 = 15. The trace of its square is 261.

Does the trace exist for a non-square matrix?

No. The trace is defined only for square matrices.

Related calculators