Matrix Trace Calculator

Compute trace, determinant, eigenvalues, and inverse of a 2x2 matrix.
Enter the four elements for full analysis with classification and invertibility.

Matrix Trace

For a 2x2 matrix [[a, b], [c, d]], four key quantities summarize almost everything about the matrix’s behavior:

Trace = a + d: the sum of diagonal elements. The trace equals the sum of eigenvalues, which is a fast sanity check on any eigenvalue calculation. For differential equations and control theory, the trace of the system matrix tells you about the stability of fixed points.

Determinant = ad - bc: the signed area scaling factor. If you apply the matrix as a linear transformation to the unit square, the determinant is how much the area changes. Positive determinant: orientation preserved. Negative: flipped. Zero: the transformation collapses space, and the matrix is singular and cannot be inverted.

Eigenvalues: the scalars λ for which Ax = λx has a nonzero solution. For a 2x2 matrix, they come from the characteristic equation λ² - (trace)λ + det = 0. The discriminant is trace² - 4·det. If positive: two distinct real eigenvalues. If zero: a repeated eigenvalue. If negative: a conjugate pair of complex eigenvalues (common in rotating systems).

Inverse (when det ≠ 0): (1/det) · [[d, -b], [-c, a]]. The inverse swaps the diagonal elements and negates the off-diagonal elements, then scales by 1/det. Verifying that A·A⁻¹ = I is a quick check.

The trace is preserved under similarity transformations, so diagonalizing a matrix does not change it. That makes the trace an intrinsic property of the linear map rather than of the particular grid of numbers you happen to be using to write it down.

On testing whether the determinant is zero. Comparing it against a fixed small number is a trap in both directions. Scale a perfectly good matrix down by a thousand and its determinant drops by a million, so [[0.000001, 0], [0, 0.000001]] has a determinant of 10⁻¹² and would fail a “smaller than 10⁻¹⁰” test, despite having the entirely reasonable inverse [[1000000, 0], [0, 1000000]]. The test has to be relative to the size of the entries, which is what this page does.


How we build and check this calculator

This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.

SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.


Embed This Calculator

Copy the code below and paste it into your website or blog.
The calculator will work directly on your page.