Matrices

3×3 Determinant Practice Problems

For A=(abcdefghi)A=\begin{pmatrix}a&b&c\\d&e&f\\g&h&i\end{pmatrix}, the determinant is det⁡A=a(ei−fh)−b(di−fg)+c(dh−eg)\det A = a(ei-fh) - b(di-fg) + c(dh-eg). Each term is a top-row entry times the 2×22\times2 determinant left after crossing out its row and column, with signs +,−,++,-,+.

det⁡(abcdefghi)=a(ei−fh)−b(di−fg)+c(dh−eg)\det\begin{pmatrix}a&b&c\\d&e&f\\g&h&i\end{pmatrix} = a(ei-fh) - b(di-fg) + c(dh-eg)

Try it with your numbers

Show every step

Use the solver above to test any matrix you like, then work through the ideas below by hand. The goal is speed and accuracy: knowing which method fits which matrix, and having a way to catch your own mistakes before anyone else does.

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

The method is cofactor expansion, and it turns one hard problem into three easy ones:

  1. Choose a row or column. The top row is the default.
  2. For each entry in it, cross out that entry’s row and column. The 2×22\times2 determinant that remains is the minor. You compute it with ps−qrps-qr, as in the lesson on the determinant of a 2×2 matrix.
  3. Multiply each entry by its minor and attach a sign from the checkerboard pattern.
  4. Add the three results.

The sign at position (i,j)(i,j) is (−1)i+j(-1)^{i+j}, which gives this pattern:

(+−+−+−+−+)\begin{pmatrix}+&-&+\\-&+&-\\+&-&+\end{pmatrix}

Here is a full example with A=(21304−1521)A=\begin{pmatrix}2&1&3\\0&4&-1\\5&2&1\end{pmatrix}. Expanding along the top row:

det⁡A=2∣4−121∣−1∣0−151∣+3∣0452∣\det A = 2\begin{vmatrix}4&-1\\2&1\end{vmatrix} - 1\begin{vmatrix}0&-1\\5&1\end{vmatrix} + 3\begin{vmatrix}0&4\\5&2\end{vmatrix}

The three minors are 4⋅1−(−1)(2)=64\cdot1-(-1)(2)=6, then 0⋅1−(−1)(5)=50\cdot1-(-1)(5)=5, then 0⋅2−4⋅5=−200\cdot2-4\cdot5=-20. So

det⁡A=2(6)−1(5)+3(−20)=12−5−60=−53.\det A = 2(6) - 1(5) + 3(-20) = 12 - 5 - 60 = -53.

The full lesson on the determinant of a 3×3 matrix covers the same expansion along other rows and columns.

Quick check

Find det⁡(310214101)\det\begin{pmatrix}3&1&0\\2&1&4\\1&0&1\end{pmatrix}.

Where does the 3×3 determinant formula come from?

The formula is not arbitrary. Exactly one function of a matrix does all three of these things: it gives 11 for the identity matrix, it is linear in each row separately, and it changes sign when two rows swap. Everything else follows from those rules.

To see it, split the top row as (a,b,c)=a(1,0,0)+b(0,1,0)+c(0,0,1)(a,b,c)=a(1,0,0)+b(0,1,0)+c(0,0,1). Linearity breaks the determinant into three pieces. Each piece has a single nonzero entry in row 1, so the rest of that column no longer matters and a 2×22\times2 determinant is left. That is where “entry times minor” comes from, and row swaps explain the alternating signs.

Multiply everything out and six terms remain:

det⁡A=aei+bfg+cdh−ceg−bdi−afh\det A = aei + bfg + cdh - ceg - bdi - afh

Each term takes exactly one entry from every row and every column. There are 3!=63!=6 ways to do that, and the sign is ++ when the arrangement needs an even number of swaps to reach the diagonal. Geometrically, the rows are the edges of a slanted box, and the determinant is its signed volume. The sign flip on a row swap simply records that the box has been mirrored.

3×3 determinant practice with negatives and fractions

Most lost points come from signs, not from the method. The classic slip is treating the "−b-b" in the formula as the sign of bb. The minus belongs to the pattern, so if bb is itself negative, the term turns positive. Write every negative entry in parentheses, and treat each step as an order-of-operations question, the same skill drilled in order of operations practice problems.

Take B=(−23−14−52−316)B=\begin{pmatrix}-2&3&-1\\4&-5&2\\-3&1&6\end{pmatrix}. Compute each bracket first:

det⁡B=(−2)[(−5)(6)−(2)(1)]−3[(4)(6)−(2)(−3)]+(−1)[(4)(1)−(−5)(−3)]\det B = (-2)\big[(-5)(6)-(2)(1)\big] - 3\big[(4)(6)-(2)(-3)\big] + (-1)\big[(4)(1)-(-5)(-3)\big]

The brackets equal −32-32, 3030 and −11-11. Then

det⁡B=(−2)(−32)−3(30)+(−1)(−11)=64−90+11=−15.\det B = (-2)(-32) - 3(30) + (-1)(-11) = 64 - 90 + 11 = -15.

Fractions: pull the denominator out

Multiplying one row by kk multiplies the determinant by kk. So a row (12,32,52)\left(\tfrac12,\tfrac32,\tfrac52\right) becomes 12(1,3,5)\tfrac12(1,3,5), and you multiply the final answer by 12\tfrac12.

That trick keeps fraction arithmetic out of the minors. Clear one denominator per row, collect the factors in front, and finish with whole numbers.

Sarrus’ rule: the 3×3 shortcut and where it fails

Grid of 24 tiles showing Sarrus diagonals capture only 8 of the 24 terms of a 4×4 determinant
A 4×4 determinant has 4! = 24 terms, but Sarrus-style diagonals reach only 8 of them.

Sarrus’ rule is the six-term formula in picture form. Copy the first two columns to the right of the matrix, add the products along the three down-right diagonals, and subtract the products along the three up-right diagonals. For matrix AA from the first example:

2132104−10452152\begin{array}{ccc|cc}2&1&3&2&1\\0&4&-1&0&4\\5&2&1&5&2\end{array}

The down diagonals give 2⋅4⋅1+1⋅(−1)⋅5+3⋅0⋅2=8−5+0=32\cdot4\cdot1+1\cdot(-1)\cdot5+3\cdot0\cdot2=8-5+0=3. The up diagonals, read from the bottom row, give 5⋅4⋅3+2⋅(−1)⋅2+1⋅0⋅1=60−4+0=565\cdot4\cdot3+2\cdot(-1)\cdot2+1\cdot0\cdot1=60-4+0=56. So det⁡A=3−56=−53\det A=3-56=-53, matching the cofactor result.

The rule works for 3×33\times3 matrices and nothing else. A 4×44\times4 determinant has 4!=244!=24 terms, and drawing diagonals finds only 8 of them, so the answer comes out wrong with no warning. Sarrus also hides structure: it gives you no way to exploit zeros.

Use this as a guide to choosing a method:

  • Small whole numbers, no zeros: Sarrus.
  • A row or column with one or two zeros: cofactor expansion along it.
  • Large, awkward or fractional entries: row operations first.

How do row operations simplify a 3×3 determinant?

Three rules let you reshape a matrix on purpose. Adding a multiple of one row to another changes nothing. Swapping two rows flips the sign. Multiplying a row by kk multiplies the determinant by kk. The first rule is the workhorse, because you can use it to manufacture zeros.

Example: D=(123254378)D=\begin{pmatrix}1&2&3\\2&5&4\\3&7&8\end{pmatrix}. Replace row 2 with row 2 minus 2×2\times row 1, and row 3 with row 3 minus 3×3\times row 1:

det⁡D=∣12301−201−1∣\det D = \begin{vmatrix}1&2&3\\0&1&-2\\0&1&-1\end{vmatrix}

Expand down the first column. Only the top entry survives, so

det⁡D=1⋅[(1)(−1)−(−2)(1)]=−1+2=1.\det D = 1\cdot\big[(1)(-1)-(-2)(1)\big] = -1+2 = 1.

The direct formula agrees: 1(12)−2(4)+3(−1)=12−8−3=11(12)-2(4)+3(-1)=12-8-3=1.

The trap is the operation “row 2 becomes 2×2\times row 2 minus row 1”. That looks like adding a multiple of another row, but it also scales row 2 by 22, so the determinant doubles. Only the row you are replacing must keep coefficient 11.

Quick check

A 3×33\times3 matrix has determinant 77. Row 2 is replaced by (row 2) + 4(row 1). What is the new determinant?

How can you check a 3×3 determinant answer?

Parity check of a 3×3 determinant: matrix with determinant −53 and its 0-1 version with determinant 1, both odd
Swap each entry for its parity; the small determinant 1 and the answer −53 are both odd, so the check passes.

The most reliable check is a second, independent expansion. If you expanded along the top row, redo it down a column. Two routes that agree are very unlikely to share the same error.

For a fast sanity check on whole-number matrices, use parity. The determinant is built only from sums and products of entries, so its parity depends only on the entries’ parities. Replace every entry of AA by 00 (even) or 11 (odd), compute that small determinant, and see whether it is odd or even. For AA above, the parity matrix is (011001101)\begin{pmatrix}0&1&1\\0&0&1\\1&0&1\end{pmatrix}, whose determinant is 0−1(0−1)+0=10-1(0-1)+0=1. That is odd, and −53-53 is odd. An even answer here would have exposed a mistake instantly.

Structure gives other checks. Two equal or proportional rows force 00. A zero row or column forces 00. For a triangular matrix (zeros all below or all above the diagonal), the determinant is just the product of the diagonal.

Try this: Expand A=(21304−1521)A=\begin{pmatrix}2&1&3\\0&4&-1\\5&2&1\end{pmatrix} down its second column instead of along the top row. You should land on −53-53 again.

How do you solve for x when a 3×3 determinant is zero?

When an entry contains a variable, the determinant becomes a polynomial, and setting it to zero asks: for which values is the matrix singular? Expand along the row or column that keeps the algebra smallest.

Example: find xx so that ∣x123x+11001∣=0\begin{vmatrix}x&1&2\\3&x+1&1\\0&0&1\end{vmatrix}=0. The bottom row has two zeros, so expand along it. Only the corner entry 11 survives, with sign ++:

1⋅∣x13x+1∣=x(x+1)−3=x2+x−3.1\cdot\begin{vmatrix}x&1\\3&x+1\end{vmatrix} = x(x+1)-3 = x^2+x-3.

Set x2+x−3=0x^2+x-3=0. It does not factor over the integers, so use the quadratic formula (the quadratic formula practice problems give plenty of repetition):

x=−1±1+122=−1±132≈1.303 or −2.303.x=\frac{-1\pm\sqrt{1+12}}{2}=\frac{-1\pm\sqrt{13}}{2}\approx 1.303 \text{ or } -2.303.

At those two values the rows are dependent and the matrix has no inverse. If a variable sits on the diagonal of all three rows, expect a cubic. Factor out xx when you can rather than dividing by it, because dividing quietly discards the root x=0x=0.

Determinant, minor and cofactor: what is the difference?

These three terms get mixed up constantly. The minor MijM_{ij} is the 2×22\times2 determinant left after deleting row ii and column jj. The cofactor is the minor with its checkerboard sign: Cij=(−1)i+jMijC_{ij}=(-1)^{i+j}M_{ij}. The determinant is a single number, found by multiplying each entry in any one row or column by its cofactor and adding.

The scaling trap

For a 3×33\times3 matrix, det⁡(kA)=k3det⁡A\det(kA)=k^3\det A, not kdet⁡Ak\det A, because all three rows get multiplied by kk. For the matrix AA above, det⁡(2A)=8(−53)=−424\det(2A)=8(-53)=-424.

Two more confusions are worth settling. The determinant does not distribute over addition: in general det⁡(A+B)≠det⁡A+det⁡B\det(A+B)\neq\det A+\det B, so adding entries as in adding and subtracting matrices tells you nothing shortcut-wise about the determinant. Multiplication, however, behaves perfectly: det⁡(AB)=det⁡A⋅det⁡B\det(AB)=\det A\cdot\det B, which is why matrix multiplication preserves “invertible” and “singular” status.

The transpose of the cofactor matrix is the adjugate, and dividing it by the determinant produces the inverse. That is the 3×33\times3 version of the idea you meet in the formula for the inverse of a 2×22\times2 matrix.

What is a 3×3 determinant used for in real life?

Volume is the original use. The absolute value of the determinant of three edge vectors is the volume of the parallelepiped they span. That is the scalar triple product, and the same determinant, written with i,j,k\mathbf{i},\mathbf{j},\mathbf{k} in the top row, produces the cross product that 3D graphics and physics engines use for surface normals and torque.

It also works in the plane. For three points (x1,y1)(x_1,y_1), (x2,y2)(x_2,y_2), (x3,y3)(x_3,y_3), the triangle they form has area

Area=12∣det⁡(x1y11x2y21x3y31)∣.\text{Area}=\frac12\left|\det\begin{pmatrix}x_1&y_1&1\\x_2&y_2&1\\x_3&y_3&1\end{pmatrix}\right|.

When that determinant is zero, the three points are collinear. This is the same fact as equal slopes in the slope formula, packaged as one number. Replace one point with (x,y)(x,y) and set the determinant to zero, and you get the equation of the line through the other two, the same line you would write in point-slope form.

The most common use in algebra courses is invertibility. A matrix has an inverse exactly when its determinant is nonzero, the reason the inverse of a 2×2 matrix divides by ad−bcad-bc. For a 3×33\times3 system, a nonzero determinant guarantees one unique solution, and Cramer’s rule gives that solution as ratios of determinants.

Quick check

Find the area of the triangle with vertices (0,0)(0,0), (4,1)(4,1) and (2,3)(2,3) using 12∣det⁡∣\tfrac12\left|\det\right|.

Practice problems

0 of 5 solved

  1. Find det⁡(120314021)\det\begin{pmatrix}1&2&0\\3&1&4\\0&2&1\end{pmatrix}.

  2. Find det⁡(2−13−24150−3)\det\begin{pmatrix}2&-1&3\\-2&4&1\\5&0&-3\end{pmatrix}.

  3. Find det⁡(412231643)\det\begin{pmatrix}4&1&2\\2&3&1\\6&4&3\end{pmatrix}.

  4. Find det⁡(2461353510)\det\begin{pmatrix}2&4&6\\1&3&5\\3&5&10\end{pmatrix}.

  5. Find every kk for which det⁡(k201k101k)=0\det\begin{pmatrix}k&2&0\\1&k&1\\0&1&k\end{pmatrix}=0.

Common questions

What is the easiest way to find the determinant of a 3×3 matrix?

For small whole numbers with no zeros, Sarrus' rule is quickest: three down-diagonal products minus three up-diagonal products. If any row or column holds zeros, expand along it with cofactors, since every zero removes a whole term.

What does a determinant of zero mean for a 3×3 matrix?

The matrix is singular: its rows are linearly dependent, so one row is built from the others. It has no inverse, and the system Ax=bA\mathbf{x}=\mathbf{b} has either no solution or infinitely many.

Does Sarrus' rule work for 4×4 matrices?

No. A 4×44\times4 determinant has 24 terms, and the diagonal trick only produces 8 of them. Use cofactor expansion or row reduction instead.

Which row or column should you expand along?

Pick the one with the most zeros, since each zero kills a term. If there are no zeros, create them first by adding multiples of one row to another, which leaves the determinant unchanged.

What is the determinant of a 3×3 identity matrix?

It is 11. Only the diagonal term 1⋅1⋅11\cdot1\cdot1 survives, and the other five terms each contain a zero.

Up next