Skip to content

The determinant: how to compute a 3×3 and what it means

6 min read

Short answer

For a 2×2 matrix, det⁡(abcd)=ad−bc\det\begin{pmatrix}a&b\\c&d\end{pmatrix}=ad-bc. For a 3×3 matrix, expand along a row with alternating signs +,−,++,-,+. Geometrically, the determinant is the factor by which the matrix scales area (2D) or volume (3D), with a minus sign if it flips orientation. It is zero exactly when the matrix squashes space and has no inverse.

A matrix turns the unit square into a parallelogram whose area is the determinantarea = 6unit square: area 1(2, 0)(1, 3)det = 2·3 − 1·0 = 6
The matrix with columns (2, 0) and (1, 3) turns the unit square into a parallelogram of area 6, which is its determinant.

What the number means

The columns of a 2×2 matrix are where the unit vectors ı^\hat\imath and ȷ^\hat\jmath land. They span a parallelogram whose signed area is ad−bcad-bc. That area is the scale factor for every region, so a determinant of 6 means all areas grow six-fold. A negative value means the picture is mirrored. A determinant of 0 means the parallelogram collapsed onto a line: information is lost and the matrix cannot be inverted.

Cofactor expansion along the first row

For a 3×3 matrix with first row (a,b,c)(a,b,c), det⁡=a M11−b M12+c M13,\det = a\,M_{11}-b\,M_{12}+c\,M_{13}, where M1jM_{1j} is the 2×2 determinant left after deleting row 1 and column jj. The signs alternate +,−,++,-,+. You can expand along any row or column; pick the one with the most zeros.

Sarrus' rule is a shortcut for 3×3 only: add the three "down-right" diagonal products and subtract the three "up-right" ones. Use it as an independent check.

Worked example

Compute det⁡M\det M for M=(201132014)M=\begin{pmatrix}2&0&1\\1&3&2\\0&1&4\end{pmatrix}.

Expand along row 1: det⁡M=2∣3214∣−0∣1204∣+1∣1301∣.\det M = 2\begin{vmatrix}3&2\\1&4\end{vmatrix}-0\begin{vmatrix}1&2\\0&4\end{vmatrix}+1\begin{vmatrix}1&3\\0&1\end{vmatrix}. The minors are 3⋅4−2⋅1=103\cdot4-2\cdot1=10 and 1⋅1−3⋅0=11\cdot1-3\cdot0=1, so det⁡M=2⋅10−0+1⋅1=21\det M=2\cdot10-0+1\cdot1=21.

Sarrus check. Down-right products: 2⋅3⋅4+0⋅2⋅0+1⋅1⋅1=252\cdot3\cdot4+0\cdot2\cdot0+1\cdot1\cdot1=25. Up-right products: 1⋅3⋅0+2⋅2⋅1+0⋅1⋅4=41\cdot3\cdot0+2\cdot2\cdot1+0\cdot1\cdot4=4. Then 25−4=2125-4=21 ✓.

Try it yourself

Compute det⁡(120013201)\det\begin{pmatrix}1&2&0\\0&1&3\\2&0&1\end{pmatrix}.

Show the answer

Expand along row 1: 1 (1⋅1−3⋅0)−2 (0⋅1−3⋅2)+0=1−2(−6)=131\,(1\cdot1-3\cdot0)-2\,(0\cdot1-3\cdot2)+0 = 1-2(-6)=13. Sarrus gives (1+12+0)−(0+0+0)=13(1+12+0)-(0+0+0)=13 ✓.

Keep going with practice

In Vidi's Linear Algebra & Probability course you can drag a transformation and see exactly when it collapses the plane (determinant 0).