What is a determinant?
The determinant is a single number that you compute from a square matrix. It carries key information: whether the matrix can be inverted, how much it scales area or volume, and whether a system of equations has a unique solution. It is written det(A) or |A|.
Only square matrices have determinants. If you need a refresher on matrix notation and multiplication, read our guide to matrix basics. The matrix calculator will compute the determinant and inverse of any matrix you enter.
How do you find the determinant of a 2×2 matrix?
Multiply the main diagonal, then subtract the product of the other diagonal.
Example.
Example with a zero determinant.
Here the second row is half the first, so the rows are proportional. That always gives a determinant of 0.
How do you find the determinant of a 3×3 matrix?
Use cofactor expansion along a row or column. Pick the first row and, for each entry, multiply it by the determinant of the 2×2 matrix left after deleting its row and column, alternating signs +, −, +.
Example.
- First entry 2: delete row 1 and column 1, leaving (3 2; 1 4), which has determinant 12 − 2 = 10. Contribution: 2 × 10 = 20.
- Second entry 0: contribution is 0 whatever the minor.
- Third entry 1: delete row 1 and column 3, leaving (1 3; 0 1), determinant 1 − 0 = 1. Sign is +. Contribution: 1 × 1 = 1.
Total: 20 − 0 + 1 = 21.
Expanding along a row or column with many zeros saves work. You can choose any row or column, as long as you follow the checkerboard sign pattern: + − + / − + − / + − +.
What are the properties of determinants?
- det(I) = 1.
- Swapping two rows changes the sign of the determinant.
- Multiplying one row by k multiplies the determinant by k.
- Adding a multiple of one row to another does not change it.
- If two rows are equal or proportional, det = 0.
- det(AB) = det(A) · det(B).
- det(Aᵀ) = det(A).
- For a triangular matrix, the determinant is the product of the diagonal entries.
The last property gives a fast method for larger matrices: use row operations to reach a triangular form, track the sign changes and multiply the diagonal.
What does the determinant mean geometrically?
For a 2×2 matrix, the columns are two vectors, and the absolute value of the determinant is the area of the parallelogram they span. The matrix (3 5; 2 4) has a determinant of 2, so the parallelogram has area 2. When you apply a matrix as a transformation, it scales every area by |det|.
A negative determinant means the transformation flips orientation, like a mirror image. A zero determinant means everything is flattened onto a line or point, which loses information and cannot be undone. In three dimensions, the determinant of a 3×3 matrix gives the volume scaling.
What is the inverse of a matrix?
The inverse of a square matrix A, written A⁻¹, is the matrix that undoes A:
where I is the identity. It is the matrix counterpart of the reciprocal: 5 × (1/5) = 1.
A matrix has an inverse exactly when its determinant is nonzero. Such a matrix is called invertible or nonsingular.
How do you find the inverse of a 2×2 matrix?
Use this formula:
Swap a and d, negate b and c, and divide everything by the determinant.
Example. Find the inverse of (3 5; 2 4). The determinant is 2. So
Check: A times A⁻¹, first row: 3·2 + 5·(−1) = 1 and 3·(−2.5) + 5·1.5 = 0. Second row: 2·2 + 4·(−1) = 0 and 2·(−2.5) + 4·1.5 = 1. The result is the identity.
How do you find the inverse of a 3×3 matrix?
There are two standard methods.
Row reduction (Gauss–Jordan). Write A next to the identity matrix as [A | I]. Use row operations to turn the left side into I. The right side becomes A⁻¹. This method scales to any size and is what software uses.
Adjugate formula. A⁻¹ = (1/det A) × adj(A), where the adjugate is the transpose of the matrix of cofactors. It is a lot of arithmetic for a 3×3 matrix, so it is more useful for understanding than for computing by hand.
Because the arithmetic is long, check results with the matrix calculator.
How do you solve a linear system with the inverse?
A system of equations can be written AX = B, where A holds the coefficients, X the unknowns and B the constants. If A is invertible, multiply both sides by A⁻¹:
Example. Solve 3x + 5y = 7 and 2x + 4y = 6.
A = (3 5; 2 4), B = (7; 6). From above, A⁻¹ = (2 −2.5; −1 1.5). Then
x = 2·7 + (−2.5)·6 = 14 − 15 = −1, y = −1·7 + 1.5·6 = −7 + 9 = 2.
Check: 3(−1) + 5(2) = 7 ✓ and 2(−1) + 4(2) = 6 ✓.
Cramer's rule is another way: x = det(Aₓ)/det(A), where Aₓ replaces the x column with B. Here det(A) = 2, and replacing the first column gives (7 5; 6 4) with determinant 28 − 30 = −2, so x = −2/2 = −1.
When the determinant is zero, the lines are either parallel (no solution) or the same (infinitely many). That ties to slopes: see slope and equations of lines.
What mistakes should you avoid?
- Sign errors in the 2×2 inverse. Swap a and d, but negate b and c.
- Forgetting to divide by the determinant.
- Computing the determinant of a non-square matrix. It is not defined.
- Using the wrong sign pattern in cofactor expansion.
- Assuming det(A + B) = det(A) + det(B). That is false. The product rule holds, but the sum rule does not.
- Trying to invert a singular matrix. Check the determinant first.
- Reversing the order in X = A⁻¹B. Multiply on the left.
For practice, make a few 2×2 matrices, compute the determinant and inverse by hand, and multiply back to confirm you get the identity. Then try 3×3 examples with the matrix calculator as your answer key.