How it works
The determinant is one number computed from a square matrix. If it is zero, the matrix has no inverse. For a 3x3 matrix, expand along the first row, alternating signs. The absolute value is the factor by which the matrix scales area or volume. For a 2x2 matrix only the four top-left entries a11, a12, a21 and a22 are used.
Formula
3x3: det = a11(a22×a33 − a23×a32) − a12(a21×a33 − a23×a31) + a13(a21×a32 − a22×a31)
Sources
Example
Matrix with rows (2, 1, 3), (0, −1, 4) and (5, 2, 1). Row expansion: 2(−1 − 8) − 1(0 − 20) + 3(0 + 5) = −18 + 20 + 15 = 17. Check by expanding down column 1: 2(−9) − 0 + 5(4 + 3) = −18 + 35 = 17.
Frequently asked questions
What does a zero determinant mean?
The matrix is singular and has no inverse.
Can it be negative?
Yes. The sign shows that orientation flips.
Does swapping two rows change it?
It changes the sign only.
Is det(A×B) = det(A) × det(B)?
Yes, for square matrices of the same size.