Matrix Determinant Calculator - Calculate 2x2 & 3x3 Determinants

Free Matrix Determinant Calculator - instantly calculate the determinant of 2x2 and 3x3 matrices. Step-by-step solutions with detailed explanations.

Results

Calculated
Determinant
—
2x2: a₁₁a₂₂ − a₁₂a₂₁ · 3x3: cofactor expansion along row 1
Invertible?
—
An inverse exists only when det ≠ 0
Trace
—
Sum of the main diagonal entries
|Determinant|
—
Area/volume scale factor of the transformation

What This Calculator Does

A determinant is a single number computed from a square matrix that summarizes how that matrix scales area (for 2x2) or volume (for 3x3), and whether the matrix can be inverted at all. This calculator takes a 2x2 or 3x3 matrix you enter and returns the determinant, the trace (sum of the diagonal entries), the absolute value of the determinant, and whether the matrix is invertible — all computed directly from your inputs, not looked up from a table.

It's used in linear algebra coursework, solving systems of linear equations (a system has a unique solution exactly when its coefficient matrix has a nonzero determinant), computer graphics and physics (the determinant of a transformation matrix tells you how much it stretches or flips space), and any calculation — like Cramer's Rule or finding a matrix inverse — that needs the determinant as a building block.

Formula Breakdown

2x2: det(A) = a₁₁a₂₂ − a₁₂a₂₁
a₁₁, a₁₂, a₂₁, a₂₂: the four entries of the matrix, read row by row (row 1 then row 2).
3x3 (cofactor expansion along row 1): det(A) = m₁₁(m₂₂m₃₃ − m₂₃m₃₂) − m₁₂(m₂₁m₃₃ − m₂₃m₃₁) + m₁₃(m₂₁m₃₂ − m₂₂m₃₁).
Trace: the sum of the entries on the main diagonal (a₁₁+a₂₂ for 2x2, m₁₁+m₂₂+m₃₃ for 3x3) — a separate quantity from the determinant, but useful alongside it in eigenvalue problems.
Invertible: a matrix has an inverse if and only if its determinant is not zero; a zero determinant means the matrix is "singular" and no inverse exists.

Worked Example

Using the calculator's own default 3x3 matrix, entered row by row as 1, 2, 3 / 0, 1, 4 / 5, 6, 0:

  • Expand along row 1: det = 1×(1×0 − 4×6) − 2×(0×0 − 4×5) + 3×(0×6 − 1×5).
  • First term: 1×(0 − 24) = 1×(−24) = −24.
  • Second term: −2×(0 − 20) = −2×(−20) = +40.
  • Third term: 3×(0 − 5) = 3×(−5) = −15.
  • Sum: −24 + 40 − 15 = 1.

So the determinant is 1, matching what the calculator returns for these entries. Since the determinant is nonzero, the matrix is invertible, and the absolute value of the determinant is also 1. The trace is m₁₁+m₂₂+m₃₃ = 1+1+0 = 2. (The default 2x2 matrix — 4, 2 / 1, 3 — is simpler to check by hand: det = 4×3 − 2×1 = 12 − 2 = 10, trace = 4+3 = 7.)

Common Mistakes / How to Interpret

  • Mixing up row-major entry order: the input grid expects entries left to right, top to bottom (row 1 first, then row 2, then row 3) — entering them column by column will silently compute the determinant of a different matrix.
  • Assuming a nonzero determinant means "the numbers are big": determinant sign and size don't track the size of the entries — a matrix of large numbers can still have a zero or tiny determinant (e.g., when one row is a multiple of another), and a matrix of small numbers can have a large determinant.
  • Forgetting the sign pattern in cofactor expansion: the 3x3 formula alternates +, −, + across the first row (as shown above); dropping the minus sign on the middle term is the most common manual-calculation error, and it's exactly what this calculator avoids for you.
  • Treating "not invertible" as an error: a determinant of zero is a valid, meaningful result — it tells you the matrix is singular (its rows or columns are linearly dependent), not that you made a mistake entering values.

Frequently Asked Questions

What does it mean if the determinant is zero?
A zero determinant means the matrix is singular: it has no inverse, its rows (and columns) are linearly dependent, and any linear system with that matrix as coefficients either has no solution or infinitely many. Geometrically, a 2x2 matrix with determinant zero collapses the plane onto a line (or a point), and a 3x3 matrix with determinant zero collapses 3D space onto a plane, line, or point.
How is the 3x3 determinant actually computed?
This calculator uses cofactor expansion along the first row: it multiplies each entry in row 1 by the determinant of the 2x2 matrix left after removing that entry's row and column, alternates the sign of each term (plus, minus, plus), and adds the three results. For the default matrix (1,2,3 / 0,1,4 / 5,6,0) this works out to 1×(1×0−4×6) − 2×(0×0−4×5) + 3×(0×6−1×5) = −24+40−15 = 1.
Why does the calculator also show the trace?
The trace (sum of the diagonal entries) isn't part of the determinant calculation, but it's a closely related quantity that shows up alongside the determinant in eigenvalue problems — for a 2x2 matrix, the trace and determinant together determine both eigenvalues. It's included here as a convenience since you've already entered the matrix.
Can this calculator handle matrices larger than 3x3?
No — it supports 2x2 and 3x3 matrices only, using the direct formula and cofactor-expansion-along-row-1 methods shown above. Determinants of 4x4 and larger matrices are normally computed with row reduction (Gaussian elimination) rather than cofactor expansion, since cofactor expansion becomes computationally expensive as matrix size grows.

Related Calculators