Matrix determinant calculator with steps
The expansion written out term by term — every product, every sign, and the arithmetic in between — for any size up to 10×10.
What the determinant measures
The determinant is a single number attached to a square matrix. Geometrically it is the factor by which the matrix scales area (in 2D) or volume (in 3D). A determinant of 2 doubles the area of any shape the matrix is applied to; a determinant of 0 flattens it to nothing, which is why a zero determinant means no inverse and no unique solution to the system it describes.
A negative determinant means the transformation also flips orientation. The magnitude is the scaling; the sign is the mirroring.
2×2
| a b | | c d | = ad − bc
Example: the determinant of [[3, 8], [4, 6]] is 3·6 − 8·4 = 18 − 32 = −14. Negative, so this matrix mirrors as well as scales.
3×3 by cofactor expansion
Pick a row — the first is fine, a row containing zeros is better — and expand along it. Each entry is multiplied by the determinant of the 2×2 left after deleting its row and column, with alternating signs:
det = a₁₁·M₁₁ − a₁₂·M₁₂ + a₁₃·M₁₃
With
A = ⎡ 6 1 1 ⎤
⎢ 4 −2 5 ⎥
⎣ 2 8 7 ⎦
det = 6·| −2 5 | − 1·| 4 5 | + 1·| 4 −2 |
| 8 7 | | 2 7 | | 2 8 |
= 6·(−2·7 − 5·8) − 1·(4·7 − 5·2) + 1·(4·8 − (−2)·2)
= 6·(−14 − 40) − 1·(28 − 10) + 1·(32 + 4)
= 6·(−54) − 18 + 36
= −324 − 18 + 36
= −306The same answer comes from Sarrus's rule for 3×3, which is faster to write but does not generalise past 3×3. Cofactor expansion works at every size, which is why it is the method worth learning.
Shortcuts worth taking
- A row or column of zeros makes the determinant zero immediately. Expanding along it gives all-zero terms.
- A repeated row or column also gives zero — the matrix collapses a dimension.
- Row operations help. Adding a multiple of one row to another does not change the determinant, so you can create zeros first and shrink the expansion. Swapping two rows flips its sign; scaling a row by
kscales the determinant byk. - Triangular matrices have a determinant equal to the product of the diagonal — no expansion needed.
What the calculator adds
It expands along the row that produces the least work, then substitutes and evaluates each term in order, so the page reads the way the derivation is supposed to read. The answer is at the bottom; the marks are in the lines above it.
Questions
Does it show the expansion or just the value?
Both. Each term is shown with the minor it came from, the sign, and the arithmetic that evaluates it.
What does a determinant of zero mean?
That the matrix is singular: it has no inverse, and a system of equations with it has either no solution or infinitely many.
Does it work for matrices larger than 3×3?
Yes, up to 10×10, using cofactor expansion with a preference for rows and columns containing zeros.
Can the entries be variables?
Yes. The expansion is carried out symbolically and the result is an expression rather than a number.
