Matrix Determinant Calculator
Compute the determinant of any 2×2, 3×3, or 4×4 square matrix instantly. Use it to check invertibility, solve linear systems, or evaluate transformations in linear algebra.
About this calculator
The determinant is a scalar value derived from a square matrix that encodes key geometric and algebraic properties. For a 2×2 matrix, the formula is det(A) = a₁₁·a₂₂ − a₁₂·a₂₁. For a 3×3 matrix, cofactor expansion along the first row gives det(A) = a₁₁(a₂₂·a₃₃ − a₂₃·a₃₂) − a₁₂(a₂₁·a₃₃ − a₂₃·a₃₁) + a₁₃(a₂₁·a₃₂ − a₂₂·a₃₁). A determinant of zero means the matrix is singular and has no inverse. Geometrically, the absolute value of the determinant represents the scaling factor of the linear transformation — the area or volume of the image of the unit square or cube. Determinants are essential in Cramer's rule, eigenvalue problems, and change-of-variables in multivariable calculus.
How to use
Suppose you have the 3×3 matrix [[2, 1, 0], [3, 4, 2], [1, 0, 5]]. Select size = 3 and enter the elements. The calculator computes: det = 2·(4·5 − 2·0) − 1·(3·5 − 2·1) + 0·(3·0 − 4·1) = 2·(20) − 1·(13) + 0 = 40 − 13 = 27. Because det ≠ 0, the matrix is invertible. For a 2×2 example with [[3, 2], [1, 4]]: det = 3·4 − 2·1 = 12 − 2 = 10.
Frequently asked questions
What does a zero determinant mean for a matrix?
A zero determinant means the matrix is singular — it has no inverse and its rows (or columns) are linearly dependent. In a system of linear equations, this implies either no solution or infinitely many solutions exist. Geometrically, the transformation collapses space into a lower-dimensional subspace, such as squashing a 3D volume to a flat plane. Checking the determinant is the quickest way to test invertibility before attempting further calculations.
How is the determinant used in solving linear systems?
The determinant underlies Cramer's rule, which expresses each variable in a linear system as a ratio of determinants. If the coefficient matrix has a non-zero determinant D, then x = Dₓ/D and y = D_y/D, where Dₓ and D_y replace the respective column with the constant vector. This method is especially useful for small systems (2×2 or 3×3) and for theoretical work. For larger systems, numerical methods like Gaussian elimination are typically more efficient.
Why does the sign alternate in cofactor expansion of a 3×3 determinant?
Cofactor expansion uses a checkerboard pattern of +/− signs because the formal definition of the determinant involves permutations, and each sign reflects the parity (even or odd) of the permutation. The pattern follows (−1)^(i+j) for the element at row i, column j. This ensures the determinant is alternating — swapping any two rows negates it — which is one of the three axioms defining the determinant uniquely. The alternating property is also why a matrix with two identical rows always has determinant zero.