MatrixStep

Determinant Calculator

Uses the formula for 2×2, cofactor expansion for 3×3, and row reduction for 4×4 and larger.

INPUT

Integers, fractions (1/3) and decimals (0.25) are accepted. Empty cells count as 0. Paste a block of numbers from a spreadsheet or textbook into the first cell to fill the whole matrix.

RESULT

LaTeX is the math code you can paste into Overleaf, Notion equation blocks or Word's equation editor.

What is a determinant?

The determinant is a single number attached to a square matrix. Geometrically it tells how much the matrix scales area or volume.

If the determinant is 0, the matrix has no inverse and Ax = b does not have a unique solution.

Full explanation with examples: How to Compute a 3×3 Determinant (Cofactor Expansion and Sarrus)

Exam tipSwapping two rows flips the sign; adding a multiple of one row to another leaves the determinant unchanged.

How to do it by hand

  1. 2×2: ad − bc. Multiply the main diagonal and subtract the product of the other diagonal.
  2. 3×3: expand along row 1. Multiply each entry by the 2×2 determinant left when you delete its row and column, with signs +, −, +.
  3. Expanding along a row or column with many zeros saves work. If you change the row, follow the checkerboard of signs (−1)^(i+j).
  4. For 4×4 and larger, row-reduce to upper triangular form and multiply the diagonal. Swapping two rows flips the sign; scaling a row scales the determinant by the same factor.
Worked example

Expand A = [1 2 3; 0 1 4; 5 6 0] along row 1.

det = 1·det[1 4; 6 0] − 2·det[0 4; 5 0] + 3·det[0 1; 5 6]

= 1·(0 − 24) − 2·(0 − 20) + 3·(0 − 5) = −24 + 40 − 15 = 1

Row 2 has a zero, so expanding along row 2 drops a term: −0·(…) + 1·det[1 3; 5 0] − 4·det[1 2; 5 6] = (0−15) − 4·(6−10) = −15 + 16 = 1. Same answer.

Where is it used?

  • It decides whether an inverse exists (det ≠ 0) and whether a linear system has exactly one solution.
  • Geometrically it is the factor by which the matrix scales area or volume. The absolute value of a 2×2 determinant is the area of the parallelogram spanned by its columns.
  • The characteristic polynomial det(A − λI) for eigenvalues, and the Jacobian in multivariable change of variables, are both determinants.

Common mistakes

  • Dropping the minus sign on the middle term of a 3×3 expansion. Along row 1 the signs are +, −, +.
  • Using the rule of Sarrus on a 4×4. Sarrus only works for 3×3.
  • Forgetting to count row swaps when row-reducing. An odd number of swaps flips the sign.
  • Assuming det(A + B) = det A + det B. The determinant does not split over addition. It does over multiplication: det(AB) = det A · det B.

How to use

  1. Set the matrix size with the row and column buttons. Up to 6×6 is supported.
  2. Type numbers into the cells and the result updates instantly. Enter fractions as 1/3 and negatives as -2.
  3. Enter moves to the next cell; the ← → ↑ ↓ arrow keys move between cells.
  4. Open ‘Steps’ to see the full working. ‘Copy LaTeX’ copies the result as math code you can paste into Overleaf, a Notion equation block or Word's equation editor.

FAQ

Can I use the rule of Sarrus for 3×3?
Yes, the result is the same. This calculator shows cofactor expansion because it also works for 4×4 and larger.
What does a negative determinant mean?
The transformation flips orientation. Use the absolute value for the scale factor.
Do rectangular matrices have determinants?
No. Determinants are defined only for square matrices.

Related guides