A little help goes a long way. Find a tool/

Math

2x2 Matrix Calculator

Free 2×2 matrix calculator: determinant, inverse, trace, eigenvalues, rank and classification for any 2×2 matrix — including complex eigenvalues. Runs in your browser.

YOUR WORKSPACEFree to use. No sign-up.
—
Enter the four entries a, b, c, d above.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READHow 2x2 Matrices Work

How 2x2 matrix calculator works

The 2×2 matrix [[a, b], [c, d]] is the smallest matrix that still does everything matrices do — and everything about it fits on one line. This tool computes the full profile of any 2×2 matrix: the determinant (ad − bc), the trace (a + d), the inverse when one exists, the transpose, the rank, a classification (zero, identity, scalar, diagonal, symmetric, or general), and the eigenvalues — including the complex pair that appears when the discriminant trace² − 4·det goes negative.

The determinant is the headline number. A non-zero determinant means the matrix is invertible: it stretches and rotates space without ever flattening it, and the inverse is [[d, −b], [−c, a]] / det. A zero determinant means the matrix squashes the plane onto a single line — no inverse exists, information is lost, and one of the eigenvalues is necessarily zero. The rank tells you which happened: rank 2 preserves the plane, rank 1 collapses it to a line, rank 0 is the zero matrix.

The eigenvalues come from the quadratic λ² − (trace)λ + det = 0, which is the quadratic equation in disguise — the discriminant decides whether the eigenvectors point along real directions or rotate as complex pairs. A rotation like [[0, −1], [1, 0]] has determinant 1 and trace 0, so its eigenvalues are exactly ±i: nothing in the plane survives a rotation in place, which is why rotations have no real eigenvectors.

Frequently asked questions

How do I find the determinant of a 2×2 matrix?
Multiply the main diagonal and subtract the anti-diagonal: det = ad − bc for [[a, b], [c, d]]. For [[4, 7], [2, 6]] that is 4×6 − 7×2 = 10. A non-zero determinant means the matrix is invertible; a zero determinant means it is singular.
What is the inverse of a 2×2 matrix?
Swap the diagonal entries, negate the off-diagonal entries, then divide everything by the determinant: [[d, −b], [−c, a]] / (ad − bc). For [[4, 7], [2, 6]] the inverse is [[0.6, −0.7], [−0.2, 0.4]]. If the determinant is zero the inverse does not exist.
What does a singular (det = 0) matrix mean?
The matrix collapses the plane onto a line, so it cannot be undone — reversing it would require recovering a whole dimension from a line. Singular matrices also have zero as one of their eigenvalues and rank 1 (or rank 0 for the zero matrix).
Can a 2×2 matrix have complex eigenvalues?
Yes. The eigenvalues solve λ² − (trace)λ + det = 0, so when trace² − 4·det is negative the pair is complex — for example the 90° rotation [[0, −1], [1, 0]] has eigenvalues ±i. Geometrically, complex eigenvalues mean the matrix rotates vectors rather than stretching them along fixed directions.
What is the trace used for?
The trace (a + d) is the sum of the eigenvalues and half of it is the average scaling factor of the matrix. It also determines the real part of the eigenvalues: trace 0 means purely rotational behaviour, positive trace means outward spiral, negative trace means inward spiral.