Matrix Determinant Calculator (2×2 and 3×3)
Calculates the determinant of a 2×2 or 3×3 matrix from its elements. Use it to check matrix invertibility, solve linear systems via Cramer's Rule, or compute areas and volumes in geometry.
About this calculator
The determinant is a single scalar value derived from a square matrix. For a 2×2 matrix [[a,b],[c,d]], det = ad − bc. 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 determinant of zero means the matrix is singular — it has no inverse, and any linear system it represents has either no solution or infinitely many. Geometrically, the absolute value of the determinant of a 2×2 matrix equals the area of the parallelogram spanned by its row vectors, and for 3×3, the volume of the parallelepiped.
How to use
Find the determinant of the 2×2 matrix [[5, 3],[2, 4]]. Enter matrix_size = 2, a11 = 5, a12 = 3, a21 = 2, a22 = 4. Apply the formula: det = a11 × a22 − a12 × a21 = 5 × 4 − 3 × 2 = 20 − 6 = 14. Because 14 ≠ 0, the matrix is invertible. The calculator returns 14 immediately. For a 3×3 matrix, enter all nine elements and select matrix_size = 3 to trigger the cofactor expansion automatically.
Frequently asked questions
What does a zero determinant mean for a matrix and its linear system?
A zero determinant means the matrix is singular — its rows (or columns) are linearly dependent, so the matrix cannot be inverted. For a system of linear equations Ax = b, a zero determinant of A signals that the system either has no solution (inconsistent) or infinitely many solutions (dependent). Geometrically, a singular 2×2 matrix maps the entire plane onto a line, collapsing area to zero, which is why det = 0 corresponds to zero area of the spanned parallelogram.
How is the determinant used to find the inverse of a 2×2 matrix?
The inverse of a 2×2 matrix [[a,b],[c,d]] is (1/det) × [[d,−b],[−c,a]], where det = ad − bc. The determinant appears in the denominator, which is why the inverse is undefined when det = 0. Computing the determinant first is therefore a quick pre-check: if it is zero, stop — no inverse exists. If it is nonzero, divide each element of the adjugate matrix by the determinant to get the inverse, which can then be used to solve linear systems directly by computing x = A⁻¹b.
Why does the determinant represent area or volume geometrically?
When you form a 2×2 matrix from two vectors u and v, the absolute value of its determinant equals the area of the parallelogram those vectors span. This is because the determinant measures how much the linear transformation defined by the matrix stretches or shrinks space. A determinant of 1 means the transformation preserves area; greater than 1 means expansion; between 0 and 1 means contraction; and a negative determinant means the orientation (handedness) is reversed. For 3×3 matrices, the same logic extends to the volume of a parallelepiped in three-dimensional space.