how to compute the determinant of a 3x3 matrix
The determinant of a 3x3 matrix is a single number that summarizes certain properties of the matrix: whether it is invertible, the scaling factor of linear transforms it represents, and information about volume change in 3D. This guide explains the formula, provides step-by-step manual methods, gives several worked examples, shows common mistakes, and explains how to use an online determinant calculator at Calculatorr.
what is the determinant of a 3x3 matrix and why it matters
For a 3x3 matrix A = [a_ij], the determinant (denoted det(A) or |A|) is a scalar with geometric and algebraic meaning. If det(A) = 0, the matrix is singular (non-invertible) and its rows or columns are linearly dependent. If det(A) ≠ 0, the matrix is invertible and the linear map associated with A scales volumes by the determinant value (including sign, which indicates orientation).
formula for the determinant of a 3x3 matrix
Given A =
[a b c
d e f
g h i]
the determinant is:
det(A) = a(ei - fh) - b(di - fg) + c(dh - eg)
This expansion along the first row is the standard formula. You can also expand along any row or column using minors and cofactors; results are identical.
step-by-step method (manual computation)
- Identify the matrix elements: label them a through i as above.
- Compute the three 2x2 minors from the first row:
- M1 = det([e f; h i]) = ei - fh
- M2 = det([d f; g i]) = di - fg
- M3 = det([d e; g h]) = dh - eg - Apply the signs for cofactors: +, -, + for the first row.
- Combine: det(A) = a*M1 - b*M2 + c*M3.
- Simplify to get a single number.
example 1 — simple numeric matrix
Compute the determinant of A =
[1 2 3
4 5 6
7 8 9]
Step-by-step:
- M1 = 5*9 - 6*8 = 45 - 48 = -3
- M2 = 4*9 - 6*7 = 36 - 42 = -6
- M3 = 4*8 - 5*7 = 32 - 35 = -3
- det(A) = 1*(-3) - 2*(-6) + 3*(-3) = -3 + 12 -9 = 0
Interpretation: det(A) = 0, so the matrix is singular; its rows are linearly dependent (in fact each row is an arithmetic progression), and the linear transformation collapses volume to zero.
example 2 — invertible matrix
Compute det(B) for B =
[2 0 1
3 4 -1
0 5 2]
- M1 = 4*2 - (-1)*5 = 8 + 5 = 13
- M2 = 3*2 - (-1)*0 = 6 - 0 = 6
- M3 = 3*5 - 4*0 = 15 - 0 = 15
- det(B) = 2*13 - 0*6 + 1*15 = 26 + 0 + 15 = 41
Interpretation: det(B) = 41 ≠ 0, so B is invertible and its linear map scales volumes by 41 (orientation preserved because result is positive).
alternative methods: Sarrus' rule and cofactor expansion
Sarrus' rule is a quick mnemonic for 3x3 determinants (only valid for 3x3). Write the first two columns again to the right, then sum the products of the three main downward diagonals and subtract the sum of the three upward diagonals:
For A = [a b c; d e f; g h i],
det = (a*e*i + b*f*g + c*d*h) - (c*e*g + a*f*h + b*d*i)
Sarrus' rule yields the same result as the first-row expansion.
worked example using Sarrus' rule (matrix B)
B = [2 0 1; 3 4 -1; 0 5 2]
- Down diagonals: 2*4*2 = 16, 0*(-1)*0 = 0, 1*3*5 = 15 → sum = 31
- Up diagonals: 1*4*0 = 0, 2*(-1)*5 = -10, 0*3*2 = 0 → sum = -10
- det = 31 - (-10) = 41 (same as before)
how to compute determinant by row operations (practical for larger workflows)
Performing elementary row operations can simplify a matrix before computing the determinant. Keep these rules in mind:
- Swapping two rows multiplies the determinant by -1.
- Multiplying a row by scalar k multiplies the determinant by k.
- Adding a multiple of one row to another row leaves the determinant unchanged.
Strategy: use row operations to create zeros and convert the matrix to upper triangular form; then the determinant is the product of diagonal entries, adjusted by any row swaps or scalings you performed.
example — row reduction shortcut
Matrix C = [1 2 3; 4 5 6; 7 8 10]
- R2 <- R2 - 4*R1 → [0 -3 -6]
- R3 <- R3 - 7*R1 → [0 -6 -11]
- Now R3 <- R3 - 2*R2 → [0 0 1]
- Upper triangular matrix diagonal: 1, -3, 1 → product = -3
- No row swaps or scalings changed det, so det(C) = -3
how to use an online 3x3 determinant calculator
Using an online calculator speeds up verification and reduces arithmetic mistakes. On Calculatorr, enter the nine matrix entries in the corresponding fields and press compute. The tool will show the determinant value and may display intermediate steps or confirm row-reduction results.
When to use the calculator:
- To check hand calculations for accuracy.
- When entries are large or fractional and manual arithmetic is error-prone.
- To get a quick answer while focusing on interpretation or next steps (e.g., computing inverse or solving linear systems).
interpreting the result
- det = 0 → matrix is singular: no unique inverse; system of linear equations may have no solution or infinitely many.
- det > 0 → invertible with orientation preserved; scaling factor equals determinant magnitude.
- det < 0 → invertible with orientation reversed (reflection), scaling factor equals absolute value.
common errors and pitfalls
- Sign mistakes: when expanding cofactors or using Sarrus, track the + and - signs carefully.
- Copying wrong elements when computing minors. Write the 2x2 submatrix explicitly before calculating its determinant.
- Applying Sarrus' rule to matrices larger than 3x3 — Sarrus only works for 3x3.
- Forgetting to adjust determinant after row swaps or multiplying rows by scalars during reduction.
- Rounding too early with decimals; keep exact fractions until the final step when precision matters.
quick reference table: methods to compute a 3x3 determinant
| Method | When to use | Pros | Cons |
|---|---|---|---|
| First-row expansion (cofactors) | Small matrices, teaching | Direct, clear | Algebraically tedious |
| Sarrus' rule | 3x3 only | Fast mnemonic | Not generalizable |
| Row reduction to triangular | When reducing for inverse or solving systems | Efficient for multiple operations | Need to track swaps/scaling |
| Online calculator | Verification, large numbers | Fast and accurate | Less insight into steps unless provided |
examples summary and next steps
Worked examples above show a zero determinant (dependent rows), a positive nonzero determinant (invertible), and a row-reduction example. After computing det(A):
- If det(A) ≠ 0, you can compute the inverse A^{-1} = (1/det(A)) * adj(A) or use row reduction to find the inverse and solve linear systems.
- If det(A) = 0, investigate linear dependence of rows/columns and consider reduced systems or nullspace computations.
For fast results, try the 3x3 determinant calculator at Calculatorr to compute values and confirm manual work.