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
- Choose the matrix size: 2x2, 3x3 or 4x4. The grid of entries a11, a12, and so on resizes to match.
- Type each entry of the matrix. Negative numbers, decimals and zeros are all fine; an empty cell counts as 0.
- 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.
- 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?
How do I calculate a 3x3 determinant?
What does a determinant of zero mean?
Can a determinant be negative?
Does the determinant change if I swap two rows?
Can I find the determinant of a non-square matrix?
Related Linear Algebra Calculators
Eigenvalue Calculator
Calculate eigenvalues and eigenvectors of matrices. Supports 2x2 and 3x3 matrices. Free online eigenvalue calculator.
Matrix Calculator
Perform matrix operations: addition, subtraction, multiplication, determinant, transpose, and RREF. Free online matrix calculator with step-by-step solutions.
Cross Product Calculator
Calculate the cross product of two 3D vectors. Find magnitude, unit vector direction, parallel check, and dot product. Free online vector calculator.
Null Space Calculator
Find the null space basis, nullity, RREF with free variables, and column space of a matrix. Free online null space calculator with step-by-step Gaussian elimination.
Row Echelon Form Calculator
Convert matrices to row echelon form (REF) and reduced row echelon form (RREF) with step-by-step Gaussian elimination. Find rank and pivot columns. Free online calculator.
Percentage Calculator
Calculate percentages instantly. Find what percent of a number, percentage change, and percentage difference. Free and fast.