Skip to content

Determinants and Inverses Explained: 2×2 and 3×3 Matrices

By Sprout Calculator Editorial Team Bylines · Published November 5, 2026 · Updated November 6, 2026

The determinant is a single number computed from a square matrix. For a 2×2 matrix with entries a, b, c, d it equals ad − bc. A matrix has an inverse only when its determinant is not zero. The 2×2 inverse swaps a and d, negates b and c, and divides by ad − bc.

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.

det⁡(abcd)=ad−bc\det \begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc

Example.

det⁡(3524)=3⋅4−5⋅2=12−10=2\det \begin{pmatrix} 3 & 5 \\ 2 & 4 \end{pmatrix} = 3 \cdot 4 - 5 \cdot 2 = 12 - 10 = 2

Example with a zero determinant.

det⁡(2412)=4−4=0\det \begin{pmatrix} 2 & 4 \\ 1 & 2 \end{pmatrix} = 4 - 4 = 0

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 +, −, +.

det⁡(abcdefghi)=a(ei−fh)−b(di−fg)+c(dh−eg)\det \begin{pmatrix} a & b & c \\ d & e & f \\ g & h & i \end{pmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg)

Example.

det⁡(201132014)\det \begin{pmatrix} 2 & 0 & 1 \\ 1 & 3 & 2 \\ 0 & 1 & 4 \end{pmatrix}
  • 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:

AA−1=A−1A=IA A^{-1} = A^{-1} A = I

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:

(abcd)−1=1ad−bc(d−b−ca)\begin{pmatrix} a & b \\ c & d \end{pmatrix}^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

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

A−1=12(4−5−23)=(2−2.5−11.5)A^{-1} = \frac{1}{2} \begin{pmatrix} 4 & -5 \\ -2 & 3 \end{pmatrix} = \begin{pmatrix} 2 & -2.5 \\ -1 & 1.5 \end{pmatrix}

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⁻¹:

X=A−1BX = A^{-1} B

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.

FAQ

Frequently asked questions

01What does a determinant of zero mean?

A zero determinant means the matrix is singular: it has no inverse. Its rows or columns are dependent, so the transformation squashes space into a lower dimension. For a linear system, it means there is either no solution or infinitely many.

02What does the determinant tell me geometrically?

For a 2×2 matrix, the absolute value of the determinant is the area of the parallelogram formed by its column vectors. For a 3×3 matrix, it is the volume of the parallelepiped. A negative sign indicates the orientation is flipped.

03Can every matrix be inverted?

No. Only square matrices with a nonzero determinant have an inverse. Non-square matrices have no ordinary inverse, and square matrices with a zero determinant are called singular. Many real-world matrices are invertible, but you should check first.

04What happens if the determinant is 0?

The matrix has no inverse. A zero determinant means the rows, or the columns, depend on each other, so the matrix squashes space into a lower dimension and cannot be undone. A system of equations with that coefficient matrix has either no solution or infinitely many.

05How do I check that an inverse is right?

Multiply the matrix by your inverse. If the product is the identity matrix, with 1s on the diagonal and 0s everywhere else, the inverse is correct. The matrix calculator can do the multiplication for you.