Type a square matrix into the live grid to get its determinant instantly — with an invertibility check, secondary stats, and every step of the cofactor expansion shown. Works for 2×2, 3×3, and 4×4 matrices.
6 1 1; 4 -2 5; 2 8 7
The determinant condenses an entire square matrix into one number. That number answers two big questions at once: can this matrix be inverted, and by how much does the transformation it describes stretch or shrink space? Everything else about the determinant follows from those two readings.
Small matrices have direct formulas; larger ones break down into smaller determinants.
Multiply the main diagonal, multiply the anti-diagonal, then subtract. This is the base case every larger expansion bottoms out in.
Add the three products running down-and-right, then subtract the three running down-and-left. Quick and reliable for 3×3 only.
Walk along the first row. Each entry a1j multiplies the determinant of the minor left after deleting its row and column, with alternating signs.
Each minor is itself a determinant, so keep expanding until you reach 2×2 base cases, then add the signed terms together.
The same idea scales from the two-line 2×2 formula up to a four-term cofactor expansion — switch tabs to follow each one through.
One number that decides whether systems are solvable, how shapes scale, and where curves bend.
A handful of identities make determinants far quicker to compute and reason about.
Set the top row, then read the determinant of every common 2×2 off the grid. Highlighted cells are singular — their determinant is zero, so the matrix has no inverse.
| c \ d | −2 | −1 | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|---|
| −2 | 2 | 3 | 4 | 5 | 6 | 7 |
| −1 | 0 | 1 | 2 | 3 | 4 | 5 |
| 0 | −2 | −1 | 0 | 1 | 2 | 3 |
| 1 | −4 | −3 | −2 | −1 | 0 | 1 |
| 2 | −6 | −5 | −4 | −3 | −2 | −1 |
| 3 | −8 | −7 | −6 | −5 | −4 | −3 |
Each cell is the determinant of [[1 2]; [c d]] for that row c and column d. Highlighted cells are singular (det = 0, no inverse).
A few slips trip up almost everyone learning determinants — watch for these.

The determinant of a matrix is a single number that tells you whether the matrix is invertible and how it scales area or volume. This guide shows the 2×2 and 3×3 formulas with worked examples and the rules that save time.

Learn the dot product formula for 2D, 3D, and n-dimensional vectors, what the sign means, how to find an angle, and where projections come from.

Learn what an inner product is, the axioms it must satisfy, and how dot products, weighted products, complex vectors, and functions fit the definition.