Determinant Calculator
Find the determinant of any square matrix by cofactor expansion or row reduction.
What a determinant tells you
The determinant is a single number calculated from a square matrix. It tells you whether the matrix is invertible — it is exactly when — and it measures how the matrix scales area in two dimensions or volume in three. A negative determinant means the transformation also flips orientation.
How to use the determinant calculator
- Type or paste your problem into the box above — for example
det [[4, 7], [2, 6]]. Use^for powers,/for fractions andsqrt()for square roots, or describe it in words. - Press Enter. The solver works through the problem with every step shown; switch Steps off if you only want the final answer.
- Ask a follow-up in the same chat — "why did you do that?" or "now check it" — and it answers with the earlier working in context.
The formulas
For a matrix:
For a matrix, expand along the first row with alternating signs , multiplying each entry by the determinant left when you cross out its row and column:
Useful properties
- Swapping two rows changes the sign of the determinant.
- Multiplying one row by multiplies the determinant by .
- Adding a multiple of one row to another leaves it unchanged — the basis of the row reduction method.
- , and a matrix with a row of zeros or two equal rows has determinant 0.
Worked example:
- Expand along the first row
- Evaluate the 2×2 minors and . The middle term is multiplied by zero.
- Combine
- InterpretThe determinant is 6, so the matrix is invertible and scales volumes by a factor of 6.
Common mistakes to avoid
Forgetting the alternating signs
Cofactor expansion uses across the first row. Missing the minus on the middle term is the most common slip.
Mixing up the diagonals
For a matrix it's : the main diagonal minus the other diagonal, not the other way round.
Using the diagonal shortcut on a 4×4
The rule of Sarrus only works for matrices. Larger ones need cofactor expansion or row reduction.
Related calculators
- MatricesOperations, inverses and row reduction
- Systems of equationsSubstitution and elimination
- Solve for XLinear and multi-step equations
- Quadratic equationsRoots, discriminant and formula
Questions students ask
Can it find determinants of 4×4 matrices or larger?
Yes. For larger matrices, row reduction to triangular form is usually quicker: the determinant is then the product of the diagonal entries, with the sign flipped for each row swap.
What does a determinant of zero mean?
The matrix is singular. It has no inverse, its rows are linearly dependent, and a system with that coefficient matrix has either no solution or infinitely many.
Can it work with variables in the matrix?
Yes. For example, gives , so .
Does it support Cramer's rule?
Yes. Ask it to solve a system with Cramer's rule and it calculates each determinant it needs along the way.