Determinant Calculator: 2×2, 3×3 and n×n With Cofactor Expansion Steps

Enter a square matrix and get its determinant with the working: ad − bc for 2×2, first-row cofactor expansion for 3×3 and row reduction for larger sizes. The calculator also solves systems with Cramer’s rule and tells you straight away whether the matrix is invertible.

Determinant Calculator

Pick a tab, type your numbers and press Calculate. Tap an example chip to see the working first.

What a Determinant Measures

The determinant is a single number computed from a square matrix. Geometrically it is a scale factor: a 2×2 matrix with determinant 5 turns every shape into one with five times the area, and a 3×3 matrix scales volume. A negative sign means the shape is also flipped, like a mirror image. A determinant of 0 means the matrix squashes space flat, which is why such a matrix has no inverse.

Seki Takakazu in Japan (1683) and Leibniz in Europe (1693) both found determinants while solving systems of equations, years before matrices had a name.

The 2×2 and 3×3 Methods

[[3, 8], [4, 6]]

  1. Multiply the main diagonal: 3 × 6 = 18.
  2. Multiply the other diagonal: 8 × 4 = 32.
  3. Subtract.

Answer: 18 − 32 = −14

3×3: expand along the first rowTry it in the calculator ↑

[[2, −1, 3], [0, 4, 1], [5, 2, −2]]

  1. Entry 2 with minor [[4, 1], [2, −2]] = −8 − 2 = −10, giving 2 × (−10) = −20.
  2. Entry −1 with minor [[0, 1], [5, −2]] = −5, and the middle term has a minus sign, so −(−1)(−5) = −5.
  3. Entry 3 with minor [[0, 4], [5, 2]] = −20, giving 3 × (−20) = −60.
  4. Add: −20 − 5 − 60.

Answer: −85

Signs follow a checkerboard pattern + − + / − + − / + − +. Forgetting the minus on the middle term is the most common 3×3 mistake.

Larger Matrices: Why Row Reduction Wins

Cofactor expansion works for any size, but the work explodes. It needs about n! multiplications, so a 10×10 matrix means 3,628,800 products and a 20×20 means around 2.4 × 10¹⁸, far beyond any computer. Row reduction needs only about n³ ÷ 3 operations, roughly 330 for n = 10.

SizeCofactor expansion (n!)Row reduction (≈ n³/3)
3×369
5×512042
10×103,628,800≈ 330
20×20≈ 2.4 × 10¹⁸≈ 2,700

The calculator uses row reduction beyond 3×3 and tracks the sign: each row swap flips it. It then cross-checks with cofactor expansion for small sizes.

Cramer’s Rule

Gabriel Cramer published this rule in 1750. For a system A x = b with det A ≠ 0, each unknown is a ratio of two determinants: replace column j of A with b to get Aj, then xj = det Aj ÷ det A.

Solve 2x + y = 5 and x − y = 1Try it in the calculator ↑

Matrix [[2, 1], [1, −1]], b = (5, 1)

  1. det A = −2 − 1 = −3.
  2. Replace column 1 with b: det = −5 − 1 = −6, so x = −6 ÷ −3 = 2.
  3. Replace column 2 with b: det = 2 − 5 = −3, so y = −3 ÷ −3 = 1.

Answer: x = 2, y = 1

It is elegant for 2×2 and 3×3 but slow for big systems. Use row reduction there.

Properties Worth Knowing

  • Swapping two rows changes the sign. A repeated row gives 0.
  • Multiplying one row by k multiplies the determinant by k.
  • Adding a multiple of one row to another changes nothing.
  • det(AB) = det(A) det(B), and det(Aᵀ) = det(A).
  • Triangular matrices: the determinant is the product of the diagonal entries.
  • det A = 0 exactly when A has no inverse.

What We Think Is Overrated, Underrated and Wrong

Overrated: the “rule of Sarrus” shortcut. It only works for 3×3 and teaches nothing that carries over to 4×4.
Underrated: the geometric meaning. Knowing that |det| is an area or volume scale factor makes the zero case obvious: no area left means no way back.
Wrong: “det(A + B) = det A + det B”. Try A = B = identity in 2×2: the left side is 4, the right side is 2.

Worked Examples and a Count

2×2: det [[2, 1], [4, 3]] = 2·3 − 1·4 = 2. 3×3: det [[1, 2, 3], [0, 1, 4], [5, 6, 0]] = 1(0 − 24) − 2(0 − 20) + 3(0 − 5) = −24 + 40 − 15 = 1.

Original data: among all 130,321 matrices [[a, b], [c, d]] with integer entries from −9 to 9, exactly 3,041 (2.33%) have determinant 0. A random small-integer matrix is almost always invertible.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: cofactor expansion for large matrices. It takes n! steps; row reduction is far faster.

Underrated: the geometric meaning. |det| is the factor by which the matrix scales area (2D) or volume (3D).

Plain wrong: assuming det(A + B) = det A + det B. It does not.

Determinant Mistakes That Cost Marks

  • Using the wrong sign pattern in cofactor expansion.
  • Subtracting in the wrong order in ad − bc.
  • Forgetting to flip the sign after a row swap.
  • Computing the determinant of a non-square matrix. It is not defined.
  • Multiplying the whole matrix by k and expecting the determinant to be multiplied by k. For an n×n matrix it is multiplied by kⁿ.

Why Students Get Stuck on Determinants, and What a Good Calculator Should Do

Searching for help with determinants usually starts late at night with one problem that will not work out. The cofactor signs and the choice of row make a 3×3 easy to get wrong. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to get the same value by two methods and know what zero means, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the pain points

What students get stuck on

Most mistakes here are not about arithmetic. They come from one rule applied the wrong way round, which is why seeing every step matters.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants the expansion row chosen and shown
  • Wants a 2×2 shortcut and a 3×3 method
  • Wants to know when the matrix is invertible

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Determinant of [[2,1],[5,3]]
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Determinant: Questions People Ask

How do you find the determinant of a 3×3 matrix?

Expand along a row: multiply each entry by the determinant of its 2×2 minor, with signs + − +, and add.

What does a determinant of zero mean?

The matrix is singular: its rows are dependent, it has no inverse and A x = b has no unique solution.

Can a determinant be negative?

Yes. It means the transformation reverses orientation, like a reflection.

What is the determinant of an identity matrix?

1, because it leaves every shape unchanged.

Is there a determinant for a non-square matrix?

No. Only square matrices have determinants.

Which method does the calculator use?

Exact fractions with cofactor expansion up to 3×3 and row reduction beyond that.

What does a determinant of zero mean?

The matrix is singular: it has no inverse and flattens space onto a lower dimension.

How do I find a 3×3 determinant?

Expand along a row using cofactors, or use the rule of Sarrus for 3×3 only.

What happens to the determinant when I swap two rows?

It changes sign.

How is the determinant related to area?

The absolute value of a 2×2 determinant is the area of the parallelogram spanned by its rows.

↑