Matrix Determinant Calculator
Calculate the determinant of 2x2 and 3x3 matrices with step-by-step working.
Uses cofactor expansion and applies to linear algebra and eigenvalue problems.
The determinant is a single number calculated from a square matrix. It tells you whether the matrix is invertible and describes the scaling factor of the linear transformation the matrix represents. In geometry, the absolute value of the determinant gives the factor by which areas (2D) or volumes (3D) are scaled.
2x2 Matrix:
For matrix [[a, b], [c, d]]:
det = ad - bc
A note on the input labels. The boxes below run a, b, c across the first row, d, e, f across the second, and g, h, i across the third, so that one form covers both sizes. For a 2x2 that means your second row goes in d and e, not in c and d, and the calculation the page runs is ae - bd. Same arithmetic, different letters. Leave the boxes marked 3x3 only empty.
Practical Example (2x2): For the matrix [[3, 7], [1, 5]]: det = (3)(5) - (7)(1) = 15 - 7 = 8 Since 8 is not 0, this matrix is invertible.
3x3 Matrix (cofactor expansion along first row):
For matrix [[a, b, c], [d, e, f], [g, h, i]]:
det = a(ei - fh) - b(di - fg) + c(dh - eg)
This formula works by breaking the 3x3 problem into three 2x2 determinants (called minors), each multiplied by the corresponding element from the first row, with alternating signs (+, -, +).
Minor or cofactor? The two words are not interchangeable
The minor M(ij) is the determinant left over when you delete row i and column j. The cofactor C(ij) is that minor with the sign attached: C(ij) = (-1)^(i+j) × M(ij). So for the first row, C11 = +M11, C12 = **-**M12, and C13 = +M13. The middle term is the one people get wrong, because the minus is easy to read as part of the subtraction rather than as part of the term. The step-by-step working below reports the three minors and then applies the sign pattern, which is the order you would do it by hand.
When to use this calculator: Determinants appear in many areas of mathematics, science, and engineering. They are used to solve systems of linear equations (Cramer’s Rule), find inverse matrices, compute eigenvalues, and test whether a set of vectors is linearly independent.
Key properties:
- If det = 0, the matrix is singular (not invertible, no unique solution to the system)
- If det is not 0, the matrix is invertible and the system has a unique solution
- det(AB) = det(A) x det(B)
- Swapping two rows negates the determinant
- Multiplying a row by a constant k multiplies the determinant by k
- Adding a multiple of one row to another row does not change the determinant
Common Mistakes:
- Mixing up the sign pattern in cofactor expansion: remember it alternates: +, -, +
- Confusing rows and columns when reading matrix entries
- Forgetting that a 0 determinant means the system of equations has either no solution or infinitely many solutions, not a single answer
Why “is it exactly zero” is the wrong question in practice
On paper a determinant is either zero or it is not. In floating-point arithmetic it rarely lands exactly on zero: a genuinely singular matrix of decimals will often come out as something like 3e-17, and a naive det != 0 test then cheerfully reports it as invertible. This calculator compares against a tolerance that scales with the size of your entries, because a matrix of thousands accumulates proportionally more rounding error than one of single digits. It also flags the awkward middle ground, where the determinant is small but not negligible. Those matrices are invertible in principle and treacherous in practice: solving with them multiplies any error in your input, sometimes by a factor of thousands. Numerical analysts measure that with the condition number, and a determinant hovering near zero is the cheap warning sign.
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.