Skip to content
ihateDesmos

Determinant calculator

Type a square matrix and get its determinant as an exact number, with the row operations that find it, and whether the matrix has an inverse.

Determinant
−306
Invertible?
Yes
Steps, by row reduction
  1. R2 → R2 − 2/3·R1
  2. R3 → R3 − 1/3·R1
  3. R3 → R3 + 23/8·R2
  4. The matrix is now triangular. The determinant is the product of the diagonal, with the sign from any swaps: −306

How to use it

  1. 1
    Type the matrix with one row per line and spaces between entries. Fractions like 1/2 and decimals both work.
  2. 2
    Leave the operation on “Determinant of A”.
  3. 3
    The answer stays in exact fractions, so nothing is rounded, and the row operations are listed underneath.

Formulas for small matrices

2×2: for rows (a, b) and (c, d), the determinant is ad − bc.

3×3: for rows (a, b, c), (d, e, f) and (g, h, i), expand along the top row: a(ei − fh) − b(di − fg) + c(dh − eg). For rows (6, 1, 1), (4, −2, 5) and (2, 8, 7), this gives 6(−54) − 1(18) + 1(36) = −306.

Larger matrices: row reduction

Expanding by cofactors takes far too long as matrices grow: a 10 × 10 needs over three million terms. Row reduction is much faster. Turn the matrix into a triangular one, and the determinant is the product of the diagonal. Adding a multiple of one row to another doesn’t change it, but swapping two rows flips its sign, and this calculator keeps track of that.

What the determinant means

  • Area scale: a 2×2 matrix multiplies areas by |det|. A determinant of 3 makes every shape three times as large.
  • Orientation: a negative determinant means the transformation flips the plane, like a mirror.
  • Invertibility: a determinant of 0 means the matrix squashes space flat, so it has no inverse.

Frequently asked questions

How do you find the determinant of a 3×3 matrix?
Expand along the top row with alternating signs: a(ei − fh) − b(di − fg) + c(dh − eg). Or row-reduce to a triangular matrix and multiply the diagonal, which is what this calculator shows.
What does a determinant of 0 mean?
The matrix is singular: its rows are linearly dependent, and it has no inverse.
Can a determinant be negative?
Yes. A negative determinant means the transformation reverses orientation.
Do non-square matrices have determinants?
No. The determinant is only defined for square matrices.

Related tools and guides

Try the determinant calculator

It opens instantly, with no account and nothing to install.

Open the calculator