Skip to content

Determinant Calculator — Step-by-Step Solutions

The Determinant Calculator computes the determinant of square matrices up to 4x4. It provides detailed step-by-step cofactor expansion showing each minor and cofactor computation.

Select a matrix size, enter your values, and get the determinant instantly. The calculator supports 2x2, 3x3, and 4x4 matrices with full worked solutions.

Your calculations will appear here

How to Use the Determinant Calculator

  1. Choose the matrix size: 2x2, 3x3 or 4x4. The grid of entries a11, a12, and so on resizes to match.
  2. Type each entry of the matrix. Negative numbers, decimals and zeros are all fine; an empty cell counts as 0.
  3. The determinant appears as soon as every cell is filled. Switch to Step-by-Step Cofactor to see the full expansion along the first row, with each smaller minor worked out.
  4. A determinant of 0 means the matrix is singular: it has no inverse, its rows are linearly dependent and the system Ax = b does not have a unique solution.

Formula and Theory

The determinant is a single number computed from a square matrix. Geometrically, it is the factor by which the matrix scales area (2x2) or volume (3x3), and its sign tells you whether orientation is flipped. If the determinant is zero, the matrix squashes space into a lower dimension and cannot be undone.

For a 2x2 matrix [[a, b], [c, d]] the determinant is ad - bc. For larger matrices the calculator uses cofactor expansion along the first row: multiply each entry of the row by its cofactor and add, alternating signs +, -, +, -. Each cofactor is the determinant of the smaller matrix left when that entry row and column are removed, so a 3x3 reduces to three 2x2 determinants and a 4x4 to four 3x3 determinants.

Useful properties: swapping two rows flips the sign; multiplying a row by k multiplies the determinant by k; adding a multiple of one row to another changes nothing; det(AB) = det(A) x det(B); and a triangular matrix has a determinant equal to the product of its diagonal entries.

A matrix is invertible exactly when its determinant is not zero. The determinant also appears in Cramer rule for solving linear systems and in the characteristic polynomial used to find eigenvalues.

Worked Examples

Example 1: 2x2 determinant

Problem: Find the determinant of the matrix with rows (3, 8) and (4, 6).

Solution: det = ad - bc = (3)(6) - (8)(4) = 18 - 32 = -14.

Answer: -14

Example 2: 3x3 determinant by cofactor expansion

Problem: Find the determinant of the matrix with rows (2, 0, 1), (1, 3, 2) and (1, 1, 4).

Solution: Expand along the first row: 2 x (3x4 - 2x1) - 0 x (1x4 - 2x1) + 1 x (1x1 - 3x1) = 2 x 10 - 0 + 1 x (-2) = 20 - 2 = 18.

Answer: 18

Example 3: A singular matrix

Problem: Find the determinant of the matrix with rows (1, 2, 3), (4, 5, 6) and (7, 8, 9).

Solution: Expand along the first row: 1 x (5x9 - 6x8) - 2 x (4x9 - 6x7) + 3 x (4x8 - 5x7) = 1 x (-3) - 2 x (-6) + 3 x (-3) = -3 + 12 - 9 = 0. The third row equals twice the second row minus the first, so the rows are dependent.

Answer: 0 (singular, no inverse)

Example 4: 3x3 with a negative entry

Problem: Find the determinant of the matrix with rows (4, -2, 1), (3, 5, -1) and (0, 2, 6).

Solution: First row expansion: 4 x (5x6 - (-1)(2)) - (-2) x (3x6 - (-1)(0)) + 1 x (3x2 - 5x0) = 4 x 32 + 2 x 18 + 1 x 6 = 128 + 36 + 6 = 170.

Answer: 170

Frequently Asked Questions

What does the determinant of a matrix tell you?
It tells you whether the matrix is invertible (determinant not zero) and how it scales area or volume. A 2x2 matrix with determinant 3 triples the area of any shape it transforms; a negative value also flips orientation.
How do I calculate a 3x3 determinant?
Expand along one row. Take each entry, multiply it by the determinant of the 2x2 matrix left after deleting its row and column, and add the results with alternating signs +, -, +. The step-by-step mode shows every minor.
What does a determinant of zero mean?
The matrix is singular. Its rows (and columns) are linearly dependent, it has no inverse, and a linear system with this coefficient matrix has either no solution or infinitely many.
Can a determinant be negative?
Yes. A negative determinant means the transformation reverses orientation, for example a reflection. Its absolute value is still the area or volume scale factor.
Does the determinant change if I swap two rows?
Yes, it changes sign. Swapping two rows multiplies the determinant by -1, while adding a multiple of one row to another leaves it unchanged.
Can I find the determinant of a non-square matrix?
No. Determinants are defined only for square matrices, which is why the calculator offers 2x2, 3x3 and 4x4 sizes.

Related Linear Algebra Calculators

Related Articles