numvana

Matrix Determinant & Inverse Calculator (2x2 / 3x3)

Find the determinant, trace, and inverse of a 2x2 or 3x3 matrix, using the standard cofactor expansion and adjugate formulas.

Determinant
-3
Trace
6
Invertible
Yes
Inverse
[-1.666667, 0.666667] [1.333333, -0.333333]

How it works

For a 2x2 matrix [[a,b],[c,d]], the determinant is ad − bc and the trace is a + d. For a 3x3 matrix, the determinant is found by cofactor expansion along the first row — each entry times the determinant of the 2x2 'minor' left after removing its row and column, with alternating signs — and the trace is the sum of the three diagonal entries.

The inverse exists only when the determinant is nonzero (a 'singular' matrix, determinant zero, has no inverse — this is reported rather than treated as an error, since it's a valid mathematical outcome). For 2x2, the inverse is (1 ÷ det) × [[d,−b],[−c,a]]. For 3x3, it's the adjugate matrix (the transpose of the matrix of cofactors) divided by the determinant — the standard closed-form inverse formula for any invertible square matrix up to 3x3.

When 2x2 is selected, only the top-left four entries (rows/cols 1-2) are used — the remaining fields are ignored, the same way a 'solve for' selector on other calculators on this site ignores whichever field isn't part of the current calculation.

FAQ

What does it mean for a matrix to be singular?

A singular matrix has a determinant of exactly zero, which means it has no inverse — geometrically, it 'flattens' space into a lower dimension (a 2x2 singular matrix squashes the plane onto a line), so the transformation can't be undone. It's a normal, valid matrix, just one without a corresponding inverse.

What is the trace used for?

The trace (the sum of the diagonal entries) shows up throughout linear algebra — for example, it equals the sum of a matrix's eigenvalues, and for a 2x2 matrix, trace and determinant together are exactly what you need to write down its characteristic equation.

Related calculators