Determinant Calculator
Calculate the determinant of a matrix with full cofactor expansion steps shown for 2×2, 3×3, and 4×4 matrices.
Calculate the determinant of a 2×2, 3×3, or 4×4 matrix with full cofactor expansion steps shown for every term.
How Determinant Calculator Works
The determinant is a single number that summarizes key properties of a square matrix — most importantly, whether it is invertible. For a 2×2 matrix [[a,b],[c,d]], the determinant is simply a×d − b×c. For larger matrices, the calculator uses cofactor expansion along the first row: it multiplies each entry by the determinant of the smaller matrix left after removing that entry's row and column (its "minor"), alternating the sign of each term (+, −, +, −...), and sums the results.
This process is recursive — computing a 4×4 determinant requires computing four 3×3 minor determinants, each of which is computed using the same 2×2 base case. The calculator shows every minor matrix, every sub-determinant, and every signed contribution so the full expansion is visible, not just the final answer.
A determinant of exactly zero means the matrix is "singular" — its rows or columns are linearly dependent, and it has no inverse. Any non-zero determinant means the matrix is "non-singular" and invertible, which is exactly the property the inverse matrix and Cramer's Rule calculators rely on.
See It In Action
Who Uses Determinant Calculator and Why
- Checking whether a coefficient matrix is invertible before attempting to solve a linear system with it.
- Determining whether a set of vectors is linearly independent by checking if the matrix they form has a non-zero determinant.
- Working through a cofactor expansion by hand and checking each signed term against the calculator's full breakdown.
- Confirming a matrix is singular (determinant of zero) as the reason a system has no unique solution.
Mistakes to Avoid
- Assuming cofactor expansion must be done along the first row — any row or column gives the same determinant, though this calculator always expands along the first row for consistency.
- Forgetting the alternating sign pattern (+, −, +, −...) that each cofactor term follows, which comes directly from the mathematical definition of the determinant.
- Attempting to use this calculator on a matrix larger than 4×4 — cofactor expansion by hand becomes impractical beyond that size, and this tool supports only 2×2, 3×3, and 4×4.
Tips for Best Results
- Remember a zero determinant immediately tells you the matrix is singular and has no inverse, without needing to attempt the inversion itself.
- For a 4×4 matrix, follow the nested minors carefully — each 4×4 determinant depends on four 3×3 minor determinants, each built from 2×2 base cases.
Fixing Common Problems
I need the determinant of a matrix larger than 4×4. — This calculator supports only 2×2 through 4×4 matrices; larger matrices are typically handled with row-reduction methods, such as those used by the Matrix Rank calculator.
My determinant is zero and I expected a non-zero result. — A zero determinant means the matrix's rows or columns are linearly dependent — double-check whether one row is a multiple of, or a combination of, another.
Terms Explained
Minor: The smaller determinant left after removing a given entry's row and column from a matrix, used in cofactor expansion.
Singular matrix: A square matrix with a determinant of zero, meaning it has no inverse.