CalcWorldHub
Math · CalcWorldHub

How to Find the Determinant of a 3×3 Matrix

For A=[[1,2,3],[0,1,4],[5,6,0]], the determinant is 1: expand across the first row to get 1(−24)−2(−20)+3(−5). A nonzero determinant means the exact square matrix is invertible; its sign records orientation and its magnitude is the volume scale of the associated linear transformation.

Open calculator
A highlighted first row of a 3×3 matrix leads through signed cofactors to a three-dimensional volume cell.

Share this article

A 3 by 3 matrix first forms three 2 by 2 minors from the first row, then combines them with plus, minus, plus signs into one determinant.
Track each minor and its cofactor sign before adding.

What a determinant answers

A 3×3 determinant reduces nine entries to one signed scalar. It answers several connected questions: whether the matrix has an inverse in exact arithmetic, how much it scales oriented volume, and whether a linear transformation collapses three-dimensional space into a lower-dimensional set. It is not a measure of how large every individual entry is.

A positive determinant preserves orientation, a negative one reverses orientation, and zero means the columns are linearly dependent. If the columns are treated as edge vectors, the absolute determinant is the volume of their parallelepiped. The calculator accepts nine dimensionless numeric entries; any physical interpretation and units come from the matrix you enter.

Expand across a row

For A=[[a,b,c],[d,e,f],[g,h,i]], expansion across the first row is det(A)=a(ei−fh)−b(di−fg)+c(dh−eg). Each parenthesis is a 2×2 minor: delete the chosen row and column, then take the remaining 2×2 determinant. The signs across a row alternate plus, minus, plus.

Keep the row and column positions attached to each entry. A common slip is to use the right minor but forget the negative sign on the middle term; another is to calculate ei−fh as ei+fh when f or h is negative. Writing the three products before adding them makes the sign trail easy to audit.

Worked examples

Example 1 · cofactor expansion

Inputs: A=[[1,2,3],[0,1,4],[5,6,0]].

Calculation: 1(1×0−4×6)−2(0×0−4×5)+3(0×6−1×5)=−24+40−15.

det(A)=1.000000; the matrix is not singular under the calculator’s relative tolerance.

Example 2 · diagonal scale and orientation

Inputs: A=diag(2,3,−4).

Calculation: For a diagonal matrix, multiply the diagonal entries: 2×3×(−4)=−24. Scaling by 4 gives normalized determinant −0.375.

det(A)=−24.000000: the mapped volume is 24 times as large and orientation is reversed.

The matrix [[1,2,3],[0,1,4],[5,6,0]] has cofactor terms minus 24, plus 40, and minus 15, which sum to 1.
A second method should reproduce the same signed scalar.

Check the first example step by step

For [[1,2,3],[0,1,4],[5,6,0]], the first minor is 1×0−4×6=−24. The second is 0×0−4×5=−20, and the third is 0×6−1×5=−5. Applying the cofactor signs gives −24−2(−20)+3(−5)=1.

The small final value is not an arithmetic mistake: the three signed contributions nearly cancel. A determinant can be much smaller than the entries and their products. To verify this example another way, perform row reduction while tracking row swaps and pivots; the signed product of pivots, adjusted for swaps, must also equal 1.

Interpret scale, orientation, and zero

If the matrix maps a unit cube, the image has volume |det(A)|. In the first example the volume factor is 1, although the shape and orientation may still change. For diag(2,3,−4), the factor is −24: volume grows by 24 and orientation reverses because one axis changes sign.

A zero determinant means the parallelepiped has zero three-dimensional volume and the columns do not span all of 3D space. The transformation may still preserve a plane or a line. This geometric test is useful for a linear system A x=b, because a square matrix with nonzero determinant has a unique solution for every b; the determinant alone does not give that solution.

Understand the calculator’s singularity label

The implementation scales the entries by s, the largest absolute entry, computes a determinant for the scaled matrix, then multiplies by s³. Its singularity label uses |det(A/s)|<10⁻¹⁰. This relative test helps avoid some overflow and makes the label depend on shape relative to the matrix scale, while the displayed determinant is rounded to six decimal places.

The threshold is a floating-point classification, not the definition of an exact singular matrix. A mathematically nonzero matrix can be labeled singular when its normalized determinant is extremely small; a short rounded display can also show zero while the internal result is nonzero. For exact integer or symbolic work, keep exact arithmetic and compare the mathematical determinant rather than treating the threshold label as proof.

A practical input and verification checklist

Enter the matrix row by row: a,b,c in row 1; d,e,f in row 2; g,h,i in row 3. Check that each value belongs in the intended position, especially when transcribing from a system of equations or a table. The fields do not select units, and a matrix mixing unrelated units may not have a meaningful single volume interpretation.

For a hand check, calculate the three 2×2 minors, apply +,−,+, and keep enough precision until the final sum. Compare against a different method such as row reduction. If the result is close to zero relative to the entries, preserve full precision and inspect conditioning before using invertibility as a practical decision. The calculator reports a number and a tolerance-based label; it does not assess the application’s data quality.

Sources and further reading

Share this article

Browse all articles · Calculator: 3×3 matrix determinant calculator