Cofactor Expansion Calculator

Quick answer

The cofactor expansion calculator computes the determinant of a 3 × 3 or 4 × 4 matrix by Laplace expansion along any row or column you choose, listing every term.

Determinant
43
Expansion
|A| = 4 × M₁₁ (= 15) − 1 × M₁₂ (= 5) + 2 × M₁₃ (= −6)
Matrix
⎡ 4 1 2 ⎤ ⎢ 1 3 0 ⎥ ⎣ 2 0 5 ⎦

Laplace (cofactor) expansion reduces a determinant to smaller determinants. Choosing a row or column with many zeros saves work, which is why being able to expand along any line matters.

How to use the Cofactor Expansion Calculator

  1. Choose the matrix size. The matching grid of fields appears.
  2. Enter the entries row by row (a₁ b₁ c₁ is the first row, a₂ b₂ c₂ the second, and so on).
  3. Read the result; integer matrices give exact fractions.

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

Each entry of the chosen row or column is multiplied by its signed minor; the signs follow the checkerboard pattern + − + …

Formula

det A = Σⱼ (−1)^(i+j) aᵢⱼ Mᵢⱼ (along row i)

Worked example

Inputs: Matrix size: 3 × 3; a₁: 4; b₁: 1; c₁: 2; a₂: 1; b₂: 3; c₂: 0; a₃: 2; b₃: 0; c₃: 5; Expand along: a row; Row or column number: 1.
Results: Determinant = 43; Expansion = |A| = 4 × M₁₁ (= 15) − 1 × M₁₂ (= 5) + 2 × M₁₃ (= −6); Matrix = ⎡ 4 1 2 ⎤
⎢ 1 3 0 ⎥
⎣ 2 0 5 ⎦.

Key terms

Minor Mᵢⱼ
The determinant after deleting row i and column j.

Frequently asked questions

Which row should I expand along?

The one with the most zeros, since those terms vanish.

What is the sign pattern?

(−1)^(i+j): + − + in the first row, − + − in the second, and so on.

Is cofactor expansion efficient?

Not for large matrices, since it grows like n!; elimination is much faster.

Does expanding along a column give the same answer?

Yes, always.

Sources

  1. Wolfram MathWorld: Determinant expansion by minors
  2. MIT OpenCourseWare: 18.06 Linear Algebra (Gilbert Strang)
  3. Jim Hefferon: Linear Algebra (free textbook)

Cite this calculator

Speedy Calculator. (2026). Cofactor Expansion Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/cofactor-expansion/