Calculator Hero

Determinant Calculator

Calculates the determinant of any 2×2 or 3×3 matrix with step-by-step cofactor expansion and an invertibility check.

Last updated: June 11, 2026

Determinant Calculator

[
]
Enter all 4 matrix entries to calculate the determinant.

How to Use the Determinant Calculator

This determinant calculator works for 2×2 and 3×3 matrices — select the size, then fill in all entries. The determinant is calculated instantly as you type. Below the result cards you will find a full step-by-step cofactor expansion showing every intermediate product. The invertibility card tells you at a glance whether the matrix has an inverse. Use the Share button to save a link with your matrix pre-filled.

If you need to go further and actually find the inverse of a matrix or reduce it to row echelon form, the process requires additional steps beyond the determinant alone. For cross products of 3D vectors — which use a determinant-like structure — see our cross product calculator.

The Determinant Formulas

The determinant formula depends on the matrix size. Both are shown below with worked examples.

2×2 Determinant Formula

For a 2×2 matrix with entries a, b (top row) and c, d (bottom row):

det([[a, b], [c, d]]) = ad − bc

Example: det([[5, 3], [2, 7]]) = (5)(7) − (3)(2) = 35 − 6 = 29. Since 29 ≠ 0, the matrix is invertible.

3×3 Determinant Formula (Cofactor Expansion)

For a 3×3 matrix [[a, b, c], [d, e, f], [g, h, i]], expand along the first row:

det = a(ei − fh) − b(di − fg) + c(dh − eg)

Each term in parentheses is the 2×2 determinant of the submatrix formed by deleting the first row and the column of the corresponding entry. The signs alternate: +, −, +.

AdvertisementResponsive Ad

What the Determinant Tells You

The determinant encodes several critical properties of a matrix:

  • Invertibility — a matrix is invertible (has a unique inverse) if and only if its determinant is non-zero. If det = 0, the matrix is called singular and cannot be inverted. This directly affects whether a system of linear equations Ax = b has a unique solution.
  • Area and volume scaling — a 2×2 matrix with |det| = k scales areas by a factor of k. A 3×3 matrix scales volumes by |det|. For instance, if a 2×2 transformation has det = 3, it triples all areas in the plane.
  • Orientation — the sign of the determinant indicates whether the transformation preserves (positive det) or reverses (negative det) orientation. In 2D, a negative determinant means the transformation includes a reflection.
  • Linear independence — a set of n vectors is linearly independent if and only if the matrix formed by those vectors as columns has a non-zero determinant.

Step-by-Step 3×3 Example

Let the matrix be [[2, 1, 3], [0, −1, 4], [5, 2, −2]]:

  1. Minor for a = 2: det([[−1, 4], [2, −2]]) = (−1)(−2) − (4)(2) = 2 − 8 = −6
  2. Minor for b = 1: det([[0, 4], [5, −2]]) = (0)(−2) − (4)(5) = 0 − 20 = −20
  3. Minor for c = 3: det([[0, −1], [5, 2]]) = (0)(2) − (−1)(5) = 0 + 5 = 5
  4. det = 2(−6) − 1(−20) + 3(5) = −12 + 20 + 15 = 23

Since det = 23 ≠ 0, this matrix is invertible. For problems involving the hypotenuse or distances in geometry, our Pythagorean theorem calculator handles the geometric side.

AdvertisementResponsive Ad

Determinant Properties

Several algebraic properties make determinants easier to compute by hand — and explain why linear algebra software uses row reduction rather than cofactor expansion for large matrices:

  • det(AB) = det(A) · det(B) — the determinant of a product equals the product of the determinants.
  • det(Aᵀ) = det(A) — the determinant is unchanged by transposition.
  • det(kA) = kⁿ · det(A) — scaling a matrix by k scales the determinant by kⁿ (where n is the matrix size).
  • Row swap flips the sign — swapping any two rows multiplies the determinant by −1.
  • Row with all zeros → det = 0 — if any row or column is entirely zero, the determinant is zero and the matrix is singular.
  • Identical rows → det = 0 — two identical rows (or columns) always give a determinant of zero.

For large matrices (4×4 and above), most software uses Gaussian elimination (row reduction) rather than cofactor expansion, because cofactor expansion requires O(n!) operations while row reduction runs in O(n³). For this reason the determinant calculator covers 2×2 and 3×3 matrices, which are the sizes most commonly needed for coursework and hand calculations. For solving the same systems with row reduction, our RREF calculator shows full step-by-step Gaussian elimination.

Sources & References

  1. Matrix Determinants — Linear AlgebraKhan Academy
  2. Determinant — Wolfram MathWorldWolfram Research

Frequently Asked Questions

Related Calculators

Advertisement

320 × 50 — Mobile Anchor