Determinant of a 3x3 Matrix

The determinant of a 3x3 matrix reveals whether it is invertible and how the transformation scales volume in three-dimensional space.

detA=a(eifh)b(difg)+c(dheg)\det A = a(ei - fh) - b(di - fg) + c(dh - eg)

Solve a problem with Determinant of a 3x3 Matrix

Type the problem. The solver will use Determinant of a 3x3 Matrix where Determinant of a 3x3 Matrix is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Determinant of a 3x3 Matrix takes
AA
Determinant of a 3x3 Matrix
SymbolMeaning
AAThe 3×3 matrix, a rectangular array of three rows and three columns where each of the nine entries occupies one position; if you misread any entry or confuse rows with columns, the entire calculation will fail.

When to use it

Use the determinant when you need to solve a system of linear equations, check if a matrix is invertible, or verify that vectors are linearly independent.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Find the determinant of a 3×3 matrix with small integers

Problem

Find detA\det A where A=(123012101)A = \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 2 \\ 1 & 0 & 1 \end{pmatrix}.
  1. eifh=1120=10=1ei - fh = 1 \cdot 1 - 2 \cdot 0 = 1 - 0 = 1

    Compute the first 2×22 \times 2 minor by taking elements e=1e = 1, f=2f = 2, h=0h = 0, i=1i = 1 and calculating eifhei - fh.

  2. difg=0121=02=2di - fg = 0 \cdot 1 - 2 \cdot 1 = 0 - 2 = -2

    Compute the second minor with d=0d = 0, i=1i = 1, f=2f = 2, g=1g = 1 to get difg=2di - fg = -2.

  3. dheg=0011=01=1dh - eg = 0 \cdot 0 - 1 \cdot 1 = 0 - 1 = -1

    Compute the third minor: d=0d = 0, h=0h = 0, e=1e = 1, g=1g = 1 gives dheg=1dh - eg = -1.

  4. detA=a(eifh)b(difg)+c(dheg)=1(1)2(2)+3(1)\det A = a(ei - fh) - b(di - fg) + c(dh - eg) = 1(1) - 2(-2) + 3(-1)

    Substitute a=1a = 1, b=2b = 2, c=3c = 3 and the three minors into the determinant formula with the - before bb.

  5. detA=1+43=2\det A = 1 + 4 - 3 = 2

    Evaluate each term: 1×1=11 \times 1 = 1, then 2×(2)=+4-2 \times (-2) = +4 (negative times negative is positive), then 3×(1)=33 \times (-1) = -3. Sum: 1+43=21 + 4 - 3 = 2.

Answer: detA=2\det A = 2

Since the determinant is positive and nonzero, the matrix is invertible and the linear transformation preserves orientation while scaling volume by a factor of 2. A system of equations using this coefficient matrix has a unique solution.

2. Find the determinant when the matrix has negative entries and zeros

Problem

Calculate detA\det A for A=(120123201)A = \begin{pmatrix} -1 & 2 & 0 \\ 1 & -2 & 3 \\ 2 & 0 & -1 \end{pmatrix}.
  1. eifh=(2)(1)30=20=2ei - fh = (-2) \cdot (-1) - 3 \cdot 0 = 2 - 0 = 2

    For the first minor, use e=2e = -2, i=1i = -1, f=3f = 3, h=0h = 0. The product of two negatives gives a positive result: (2)(1)=2(-2)(-1) = 2.

  2. difg=1(1)32=16=7di - fg = 1 \cdot (-1) - 3 \cdot 2 = -1 - 6 = -7

    For the second minor with d=1d = 1, i=1i = -1, f=3f = 3, g=2g = 2, compute the difference 16-1 - 6 carefully to get 7-7.

  3. dheg=10(2)2=0(4)=0+4=4dh - eg = 1 \cdot 0 - (-2) \cdot 2 = 0 - (-4) = 0 + 4 = 4

    For the third minor with d=1d = 1, h=0h = 0, e=2e = -2, g=2g = 2: subtracting a negative value (4)-(-4) equals addition, so 0+4=40 + 4 = 4.

  4. detA=(1)(2)2(7)+0(4)=2(14)+0\det A = (-1)(2) - 2(-7) + 0(4) = -2 - (-14) + 0

    Substitute a=1a = -1, b=2b = 2, c=0c = 0 and the minors. The coefficient b=2-b = -2 applied to the second minor gives 2(7)=+14-2(-7) = +14.

  5. detA=2+14+0=12\det A = -2 + 14 + 0 = 12

    Simplify: 2(14)=2+14=12-2 - (-14) = -2 + 14 = 12, and the third term vanishes because 04=00 \cdot 4 = 0. Final answer is 1212.

Answer: detA=12\det A = 12

Negative entries and zeros frequently appear in real systems. Even with negative numbers, the determinant is positive and nonzero, confirming invertibility. Whenever a coefficient like c=0c = 0 appears, the entire corresponding term drops out, simplifying the calculation.

3. Use the determinant in a road-trip scheduling problem

Problem

A delivery truck travels on a road trip with two highway legs, carrying cargo distributed among three weight classes. A system of three equations relates the distances, speeds, and payload weights using the coefficient matrix A=(211121112)A = \begin{pmatrix} 2 & -1 & 1 \\ 1 & 2 & 1 \\ -1 & 1 & 2 \end{pmatrix}. Find detA\det A to verify the system has a unique solution for the three unknowns.
  1. eifh=2211=41=3ei - fh = 2 \cdot 2 - 1 \cdot 1 = 4 - 1 = 3

    The first minor comes from e=2e = 2, f=1f = 1, h=1h = 1, i=2i = 2, which is the 2×22 \times 2 determinant of the lower-right block of AA.

  2. difg=121(1)=2(1)=2+1=3di - fg = 1 \cdot 2 - 1 \cdot (-1) = 2 - (-1) = 2 + 1 = 3

    The second minor uses d=1d = 1, i=2i = 2, f=1f = 1, g=1g = -1. Subtracting a negative (1)-(-1) becomes addition, so 2+1=32 + 1 = 3.

  3. dheg=112(1)=1(2)=1+2=3dh - eg = 1 \cdot 1 - 2 \cdot (-1) = 1 - (-2) = 1 + 2 = 3

    The third minor uses d=1d = 1, h=1h = 1, e=2e = 2, g=1g = -1. Again subtracting a negative: 1(2)=31 - (-2) = 3.

  4. detA=2(3)(1)(3)+1(3)=6(3)+3\det A = 2(3) - (-1)(3) + 1(3) = 6 - (-3) + 3

    Substitute a=2a = 2, b=1b = -1, c=1c = 1 and the three minors. The second term's coefficient is b=(1)=+1-b = -(-1) = +1, so we compute (1)(3)=+3-(-1)(3) = +3.

  5. detA=6+3+3=12\det A = 6 + 3 + 3 = 12

    Simplify: 6(3)=6+3=96 - (-3) = 6 + 3 = 9, then add the third term: 9+3=129 + 3 = 12. All three minors happened to equal 3, making the calculation elegant.

Answer: detA=12\det A = 12

A nonzero determinant guarantees that this system of three equations in three unknowns has a unique solution, meaning the truck's weight distribution, speed profile, and distance adjustments across the two highway legs are uniquely determined by the constraints.

Common mistakes

Where Determinant of a 3x3 Matrix usually goes wrong
Answer came out wrong
Writing detA=a(ei+fh)b(di+fg)+c(dh+eg)\det A = a(ei + fh) - b(di + fg) + c(dh + eg) with addition signs inside the minors instead of subtraction.
Always use subtraction in the minors: detA=a(eifh)b(difg)+c(dheg)\det A = a(ei - fh) - b(di - fg) + c(dh - eg).
Writing detA=a(eifh)+b(difg)+c(dheg)\det A = a(ei - fh) + b(di - fg) + c(dh - eg) where all three terms are added instead of using alternating signs.
Use the correct alternating pattern: detA=a(eifh)b(difg)+c(dheg)\det A = a(ei - fh) - b(di - fg) + c(dh - eg), with the bb term subtracted.
Computing the wrong 2×22 \times 2 minors, such as using afbeaf - be instead of eifhei - fh for the first term with coefficient aa.
For the term with coefficient a=position(1,1)a = \text{position}(1,1), the minor is always efhi=eifh\begin{vmatrix} e & f \\ h & i \end{vmatrix} = ei - fh. Remember: exclude aa's entire row and column.
The mistakeWhy it is wrongThe fix
Writing detA=a(ei+fh)b(di+fg)+c(dh+eg)\det A = a(ei + fh) - b(di + fg) + c(dh + eg) with addition signs inside the minors instead of subtraction.Each 2×22 \times 2 minor must use subtraction of the cross products, not addition; using ++ gives cofactors that do not correspond to the standard matrix structure and produces an incorrect determinant.Always use subtraction in the minors: detA=a(eifh)b(difg)+c(dheg)\det A = a(ei - fh) - b(di - fg) + c(dh - eg).
Writing detA=a(eifh)+b(difg)+c(dheg)\det A = a(ei - fh) + b(di - fg) + c(dh - eg) where all three terms are added instead of using alternating signs.The second term must be subtracted, not added; the formula requires alternating signs (+  +)(+\ -\ +) along the first row, and changing the minus to a plus gives the wrong answer.Use the correct alternating pattern: detA=a(eifh)b(difg)+c(dheg)\det A = a(ei - fh) - b(di - fg) + c(dh - eg), with the bb term subtracted.
Computing the wrong 2×22 \times 2 minors, such as using afbeaf - be instead of eifhei - fh for the first term with coefficient aa.When expanding along coefficient aa in position (1,1)(1,1), the minor must exclude all entries in row 1 and column 1, leaving only the bottom-right 2×22 \times 2 block with entries e,f,h,ie, f, h, i; using entries from aa's row or column produces an incorrect minor.For the term with coefficient a=position(1,1)a = \text{position}(1,1), the minor is always efhi=eifh\begin{vmatrix} e & f \\ h & i \end{vmatrix} = ei - fh. Remember: exclude aa's entire row and column.

Tips and when to use something else

  • Remember the alternating sign pattern along the first row: plus, minus, plus (+  ++\ -\ +). This is essential and easy to forget.
  • If detA=0\det A = 0, the matrix is singular (not invertible), and the system has either no solution or infinitely many solutions; switch to Gaussian Elimination to analyze the system further.
  • Master the 2×22 \times 2 determinant formula eifhei - fh first, since the entire 3×33 \times 3 method is built from three of these small determinants.
  • The absolute value detA|\det A| tells you by what factor the transformation scales volumes in 3D space; this makes determinants invaluable in physics, engineering, and computer graphics.

Frequently asked questions

What does it mean if the determinant equals zero?
A zero determinant means the matrix is singular and not invertible; the columns are linearly dependent. Geometrically, the transformation collapses 3D space onto a lower-dimensional subspace. Any system using this matrix will have either no solution or infinitely many solutions instead of a unique solution.
Why does the formula have alternating plus and minus signs?
The alternating signs come from the cofactor expansion pattern, where each minor is multiplied by (1)(-1) raised to the power of (row index plus column index). For the first row—positions (1,1)(1,1), (1,2)(1,2), (1,3)(1,3)—this gives (1)2=+1(-1)^{2} = +1, (1)3=1(-1)^{3} = -1, and (1)4=+1(-1)^{4} = +1 respectively.
Can I compute the determinant by expanding along a different row or column?
Yes, the determinant is the same regardless of which row or column you expand along. The formula shown here expands along the first row, which is standard, but you can use any row or column with the same alternating sign pattern adjusted for the position of each entry.
How does the determinant relate to whether a matrix has an inverse?
If detA0\det A \neq 0, the matrix has an inverse A1A^{-1}, and the determinant appears explicitly in the inverse formula: each entry of A1A^{-1} is divided by detA\det A. If detA=0\det A = 0, the inverse does not exist.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18