◎ English

Determinant Calculator

Choose the size and enter the matrix. The calculator uses ad − bc for 2×2, the rule of Sarrus for 3×3 and cofactor expansion along the row or column with the most zeros for larger matrices; you can also choose row reduction. Arithmetic uses exact fractions.

Matrix A

Enter integers, decimals (0.5) or fractions (3/4). Results are exact fractions.

Examples

Calculations run in your browser; what you type is not sent to a server.

Result
det(A) = −9

Step-by-step solution

213
0−14
120

Rule of Sarrus: sum of the down-right diagonal products minus the sum of the down-left diagonal products

Plus diagonals: (2)·(−1)·(0) + (1)·(4)·(1) + (3)·(0)·(2) = 4

Minus diagonals: (3)·(−1)·(1) + (2)·(4)·(2) + (1)·(0)·(0) = 13

det = 4 − (13) = −9

Guide: Determinant Calculator

2×2 and 3×3

det [a b; c d] = ad − bc. For 3×3, the rule of Sarrus adds the three down-right diagonal products and subtracts the three down-left ones; it does not extend to 4×4.

Cofactor expansion and row reduction

Laplace expansion sums a_ij·(−1)^(i+j)·det(M_ij) along one row or column; choosing the line with the most zeros saves work. Row reduction to upper triangular form gives the determinant as the product of the diagonal, with one sign change per row swap.

Properties

det(Aᵀ) = det(A), det(AB) = det(A)·det(B) and det(kA) = kⁿ·det(A) for n×n matrices. A zero determinant means the matrix is singular and has no inverse.

Worked examples

  • 2×2: det(A) — 2×2 det = −14
  • 3×3 Sarrus: det(A) — 3×3 det = −9
  • 4×4 cofactor expansion: det(A) — 4×4 det = 2
  • Row reduction: det(A) — 4×4 det = 2

Frequently asked questions

Can I use Sarrus for a 4×4 matrix?

No. It is only valid for 3×3 matrices; use cofactor expansion or row reduction.

What does a zero determinant mean?

The rows are linearly dependent, the matrix has no inverse and A·x = b has either no solution or infinitely many.

How do row swaps affect the determinant?

Each swap changes the sign; adding a multiple of one row to another leaves it unchanged.

Related tools

Sources: OpenStax — College Algebra 2e, Systems of Equations and Matrices

What would you like to calculate?

Browse all calculators