Determinant Calculator

Determinant—
Trace—
Singular?—

How Determinant Calculator is calculated: det = a(ei − fh) − b(di − fg) + c(dh − eg) for [[a,b,c],[d,e,f],[g,h,i]]; singular when det = 0

What is the determinant of a 3×3 matrix?

The determinant is a single number that sums up what a square matrix does. For a 3×3 matrix it tells you how the matrix scales volume in three dimensions: a determinant of 1 preserves volume, a determinant of 2 doubles it, and a determinant of 0 flattens a whole volume onto a flat plane. A negative determinant means the matrix also reverses handedness, like a mirror image. This calculator works out the determinant of any 3×3 matrix, along with its trace and whether it is singular.

The 3×3 determinant is computed by expanding along a row or column: pick a row, multiply each entry by the determinant of the 2×2 matrix left when you delete its row and column, and add the three products with alternating signs. It sounds long, but it is really three small 2×2 determinants — the same 2×2 calculation you would do with a scientific calculator. The calculator does all of it instantly and shows the result to two decimal places.

Alongside the determinant you get the trace — the sum of the three diagonal entries — and a singularity check. A matrix is singular when its determinant is zero, which means it has no inverse and the system of equations it represents has no unique solution. That one yes-or-no answer is often the whole point of computing the determinant in the first place.

The 3×3 determinant formula, step by step

For a matrix [[a, b, c], [d, e, f], [g, h, i]], the determinant is a×(e×i − f×h) − b×(d×i − f×g) + c×(d×h − e×g). Each bracket is a 2×2 determinant, made by deleting the row and column of the entry it multiplies. The signs go plus, minus, plus along the first row. That pattern — plus, minus, plus — is the part people forget most often, and getting one sign wrong changes the whole answer.

Take the identity matrix [[1, 0, 0], [0, 1, 0], [0, 0, 1]]. Expanding along the first row: 1 × (1×1 − 0×0) − 0 × (...) + 0 × (...) = 1 × 1 = 1. The determinant is 1, as it should be — the identity matrix changes nothing, so it preserves volume exactly. The trace is 1 + 1 + 1 = 3, and the matrix is not singular.

Now take [[1, 2, 3], [4, 5, 6], [7, 8, 9]]. Expanding along the first row: 1 × (5×9 − 6×8) − 2 × (4×9 − 6×7) + 3 × (4×8 − 5×7) = 1 × (−3) − 2 × (−6) + 3 × (−3) = −3 + 12 − 9 = 0. The determinant is zero, so this matrix is singular. That is no accident: each row is the previous row plus 3, so the rows are not independent, and the matrix flattens space.

Why the determinant being zero changes everything

A zero determinant is not a mistake — it is a diagnosis. It means the rows (or the columns) of the matrix are not independent: one of them can be built from the others. Geometrically, the matrix crushes a three-dimensional volume onto a flat plane or a line, so information is lost and the process cannot be reversed. Algebraically, the matrix has no inverse, and a system of three equations built from it has either no solution or infinitely many.

This is why so many textbook problems ask for the determinant first. Before you spend time trying to invert a matrix or solve a system with Cramer's rule, the determinant tells you whether the attempt can work at all. If it is zero, stop — the inverse does not exist, and Cramer's rule divides by zero. If it is not zero, carry on, and the size of the determinant tells you how sensitive the solution will be to small errors in the numbers.

Spotting a singular matrix early saves real work. In engineering, a singular matrix in a model usually means a duplicated equation or a missing constraint — a mistake in the setup, not in the arithmetic. In statistics, a singular covariance matrix means two variables are perfectly linked. The calculator's singularity row gives you that verdict in one word: Yes or No.

A worked example: the singular matrix [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

Work through the classic example step by step. The matrix is [[1, 2, 3], [4, 5, 6], [7, 8, 9]]. The three 2×2 determinants from the first row are: for entry 1, det [[5, 6], [8, 9]] = 45 − 48 = −3; for entry 2, det [[4, 6], [7, 9]] = 36 − 42 = −6; for entry 3, det [[4, 5], [7, 8]] = 32 − 35 = −3.

Combine them with the plus-minus-plus pattern: 1 × (−3) − 2 × (−6) + 3 × (−3). That is −3 + 12 − 9, which is 0. The determinant is exactly zero, so the matrix is singular. The trace is 1 + 5 + 9 = 15, which is a separate number and says nothing about singularity — a large trace does not rescue a zero determinant.

Why is it zero? Look at the rows: the second row is the first row plus 3, and the third row is the second row plus 3. The rows march in lockstep, so they carry only two rows' worth of information, not three. Any matrix whose rows follow a fixed pattern like this will have a zero determinant. Try changing just one entry — make the bottom-right 9 into a 10 — and the determinant becomes −3, which you can check by typing the new matrix into the calculator.

Determinants in geometry, equations and data

In geometry, the determinant of a 3×3 matrix is the volume of the box formed by its three rows or columns. That is the most direct way to picture it: three vectors in space define a parallelepiped, and the determinant is its signed volume. A determinant of zero means the three vectors lie flat in a single plane, so the box has no volume at all.

In linear equations, the determinant decides whether three equations in three unknowns have a single answer. Engineers solving for three currents, three forces or three chemical concentrations meet 3×3 systems constantly, and the determinant is the first check. Cramer's rule even uses the determinant directly: each unknown is a ratio of two determinants. A zero determinant in the denominator means the rule cannot be applied.

In data work, determinants appear in covariance matrices and in multivariate statistics, where they measure how much independent variation a set of variables carries. A determinant close to zero warns that two variables are almost the same thing, which breaks many statistical methods. The standard deviation calculator measures spread for a single variable; the determinant extends the idea to how several variables spread together.

Determinant calculator vs the 2×2 shortcut

For a 2×2 matrix the determinant is one subtraction: a×d − b×c. For a 3×3 matrix there is no single shortcut — you need three 2×2 determinants and a signed sum. Doing it by hand takes a few minutes and six multiplications for each of the three brackets, which is eighteen multiplications before you even add the results. That is a lot of room for a slipped sign.

The Sarrus rule is the hand method most students learn: copy the first two columns to the right of the matrix, add the three downward diagonals and subtract the three upward diagonals. It works, but only for 3×3, and it is easy to misread a diagonal when the numbers are negative. The calculator uses cofactor expansion, which is the same arithmetic without the rewritten columns, and it never misreads a diagonal.

Use the calculator to check your hand working, especially the signs. If your hand answer differs from the calculator, recompute one bracket at a time — the error is almost always a single wrong sign in one 2×2 determinant, or the plus-minus-plus pattern applied backwards. For 2×2 matrices the arithmetic is just two products and a subtraction, and a scientific calculator is the quicker tool; for 3×3, this page is the right one.

Common determinant mistakes

The first mistake is the sign pattern. Expanding along the first row, the signs are plus, minus, plus. Many people add all three terms, or use minus, plus, minus. For [[1, 2, 3], [4, 5, 6], [7, 8, 9]] the wrong all-plus version gives −3 − 12 − 9 = −24 instead of 0. Write the signs down before you compute any bracket.

The second mistake is building the wrong 2×2 minor. For the entry in row 1, column 2, you delete row 1 and column 2 — the minor is [[4, 6], [7, 9]], not [[4, 5], [7, 8]]. Crossing out the wrong row or column is the most common mechanical error, and it is worth double-checking each minor against the original matrix before multiplying.

The third mistake is treating the trace as a substitute for the determinant. The trace is a sum of three numbers; the determinant is a product-based measure of volume. A matrix can have a large trace and a zero determinant — [[1, 2, 3], [4, 5, 6], [7, 8, 9]] has a trace of 15 and a determinant of 0. Only the determinant decides singularity.

The fourth mistake is rounding too early. If the entries are decimals, keep at least three or four decimal places through the brackets and round only at the end. Rounding each 2×2 determinant to two places first can turn a small but non-zero determinant into an apparent zero, which flips the singularity answer. The calculator keeps full precision internally and rounds only for display.

How to use this determinant calculator

Type your nine numbers into the grid, row by row, left to right, top to bottom. The default is the identity matrix, whose determinant is 1. The determinant, trace and singularity check update live as you type, so you can watch the determinant change as you edit a single entry.

Read the determinant first, then the singularity row. If it says Yes, the matrix has no inverse — check whether that was what you expected, because a singular matrix in a real problem usually points to a duplicated equation or a data entry error. If it says No, the matrix is invertible, and the size of the determinant tells you how much it scales volume.

Everything runs in your browser. No account, no sign-up, no data sent anywhere. Use it to check homework, to test whether a matrix you built is singular before you try to invert it, or to explore how one changed entry moves the determinant. If your question is about proportions rather than grids of numbers, a percentage calculator is the right tool for that job.

Frequently Asked Questions

The determinant of the identity matrix is 1, because the identity changes nothing and preserves volume exactly. Expanding along the first row gives 1 × (1×1 − 0×0) = 1. Its trace is 1 + 1 + 1 = 3, and it is not singular.

The determinant of [[1, 2, 3], [4, 5, 6], [7, 8, 9]] is 0. Expanding along the first row: 1×(−3) − 2×(−6) + 3×(−3) = −3 + 12 − 9 = 0. The matrix is singular because each row is the previous row plus 3, so the rows are not independent.

A singular matrix is one whose determinant is zero. It has no inverse, and any system of equations built from it has no unique solution. The rows or columns are not independent — one can be built from the others.

No. The trace is the sum of the diagonal entries, while the determinant is a product-based measure of how the matrix scales volume. A matrix can have a large trace and a zero determinant — for example [[1, 2, 3], [4, 5, 6], [7, 8, 9]] has trace 15 and determinant 0. Only the determinant decides singularity.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.