Inverse of 2x2 Matrix - Formula, Steps, Examples

#Algebra
TL;DR
The inverse of a 2×22 \times 2 matrix A=(ab cd)A = \begin{pmatrix} a & b \ c & d \end{pmatrix} is given by a clean formula: A−1=1ad−bc(d−b −ca)A^{-1} = \dfrac{1}{ad - bc}\begin{pmatrix} d & -b \ -c & a \end{pmatrix}. The denominator ad−bcad - bc is the determinant — if it's zero, the inverse doesn't exist.
MV
Madhukar VLast updated on May 19, 20266 min read

What Is the Inverse of a Matrix?

The inverse of a square matrix AA — written A−1A^{-1} — is the unique matrix such that:

A⋅A−1=A−1⋅A=IA \cdot A^{-1} = A^{-1} \cdot A = I

where II is the identity matrix (1s on the diagonal, 0s elsewhere). It's the matrix-multiplication equivalent of "the reciprocal of a number" — 5×15=15 \times \tfrac{1}{5} = 1.

Not every matrix has an inverse. A matrix is invertible (or non-singular) if and only if its determinant is non-zero.

The Formula for the Inverse of a 2×2 Matrix

For a matrix A=(ab cd)A = \begin{pmatrix} a & b \ c & d \end{pmatrix} with det⁡(A)=ad−bc≠0\det(A) = ad - bc \neq 0:

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

In words: swap the diagonal entries, negate the off-diagonal entries, then divide every element by the determinant.

When Does the Inverse Exist?

The inverse A−1A^{-1} exists if and only if:

det⁡(A)=ad−bc≠0\det(A) = ad - bc \neq 0

If ad−bc=0ad - bc = 0, the matrix is singular — it has no inverse, and the formula's division would be undefined.

Geometrically, det⁡(A)=0\det(A) = 0 means the two column vectors of AA are parallel — the matrix collapses a 2D plane onto a 1D line (or onto the origin), and you can't reverse that collapse.

Step-by-Step Calculation

For any 2×22 \times 2 matrix A=(ab cd)A = \begin{pmatrix} a & b \ c & d \end{pmatrix}:

  1. Compute the determinant: det⁡(A)=ad−bc\det(A) = ad - bc.

  2. If det⁡(A)=0\det(A) = 0, stop — the inverse doesn't exist.

  3. Swap the diagonal entries: a↔da \leftrightarrow d.

  4. Negate the off-diagonal entries: b→−bb \to -b, c→−cc \to -c.

  5. Divide every element by det⁡(A)\det(A).

Three Worked Examples — Quick, Standard, Stretch

Quick — Simple Numbers

Find the inverse of A=(43 12)A = \begin{pmatrix} 4 & 3 \ 1 & 2 \end{pmatrix}.

det⁡(A)=(4)(2)−(3)(1)=8−3=5\det(A) = (4)(2) - (3)(1) = 8 - 3 = 5.

A−1=15(2−3 −14)=(0.4−0.6 −0.20.8)A^{-1} = \frac{1}{5} \begin{pmatrix} 2 & -3 \ -1 & 4 \end{pmatrix} = \begin{pmatrix} 0.4 & -0.6 \ -0.2 & 0.8 \end{pmatrix}

Verify. A⋅A−1=(43 12)(0.4−0.6 −0.20.8)=(1.6−0.6−2.4+2.4 0.4−0.4−0.6+1.6)=(10 01)A \cdot A^{-1} = \begin{pmatrix} 4 & 3 \ 1 & 2 \end{pmatrix} \begin{pmatrix} 0.4 & -0.6 \ -0.2 & 0.8 \end{pmatrix} = \begin{pmatrix} 1.6 - 0.6 & -2.4 + 2.4 \ 0.4 - 0.4 & -0.6 + 1.6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix} ✓

Standard — Determinant with Negatives

Find the inverse of B=(2−5 31)B = \begin{pmatrix} 2 & -5 \ 3 & 1 \end{pmatrix}.

det⁡(B)=(2)(1)−(−5)(3)=2−(−15)=17\det(B) = (2)(1) - (-5)(3) = 2 - (-15) = 17.

B−1=117(15 −32)B^{-1} = \frac{1}{17} \begin{pmatrix} 1 & 5 \ -3 & 2 \end{pmatrix}

Stretch — Singular Matrix

Try to find the inverse of C=(24 12)C = \begin{pmatrix} 2 & 4 \ 1 & 2 \end{pmatrix}.

det⁡(C)=(2)(2)−(4)(1)=4−4=0\det(C) = (2)(2) - (4)(1) = 4 - 4 = 0.

Determinant is zero ⇒\Rightarrow the inverse doesn't exist. The matrix is singular.

Notice the two rows are proportional (the second row is half the first) — a tell that the rows are linearly dependent and the matrix isn't invertible.

Why Does the Matrix Inverse Matter? (The Real-World GROUND)

"To solve a system, find the inverse." — linear algebra heuristic.

The matrix inverse is the workhorse of every system of linear equations and every linear transformation:

  • Solving systems of equations. Ax⃗=b⃗A\vec{x} = \vec{b} has solution x⃗=A−1b⃗\vec{x} = A^{-1}\vec{b} (when AA is invertible). The two-equations-two-unknowns case is exactly the 2×22 \times 2 inverse problem.

  • Computer graphics. Every rotation, scaling, or shear is a matrix. To undo the transformation (e.g., to map screen coordinates back to world coordinates), you invert the matrix.

  • Robotics. Forward kinematics converts joint angles to end-effector position; the inverse kinematics problem — given a desired position, find the joint angles — uses the matrix inverse.

  • Cryptography. Hill cipher encrypts messages by matrix multiplication; decryption inverts the matrix.

  • Statistics. Linear regression coefficients are computed as β^=(XTX)−1XTy⃗\hat{\boldsymbol{\beta}} = (X^T X)^{-1} X^T \vec{y} — matrix inversion is the central calculation.

The 2×22 \times 2 inverse formula is the simplest non-trivial case. It was first explicitly written by Arthur Cayley in his 1858 Memoir on the Theory of Matrices — the paper that founded modern matrix algebra.

Learn more: Multiplication of Matrices

A Worked Example — Wrong Path First

Find the inverse of M=(32 41)M = \begin{pmatrix} 3 & 2 \ 4 & 1 \end{pmatrix}.

The intuitive (wrong) approach. A student forgets to swap the diagonal and writes:

M−1=?13−8(3−2 −41)=−15(3−2 −41)M^{-1} \stackrel{?}{=} \frac{1}{3 - 8} \begin{pmatrix} 3 & -2 \ -4 & 1 \end{pmatrix} = -\frac{1}{5} \begin{pmatrix} 3 & -2 \ -4 & 1 \end{pmatrix}

Why it fails. The student kept a=3a = 3 in the upper-left and d=1d = 1 in the lower-right — but the inverse formula swaps them. The (wrong) matrix doesn't satisfy MM−1=IM M^{-1} = I.

The correct method. Determinant: det⁡(M)=(3)(1)−(2)(4)=3−8=−5\det(M) = (3)(1) - (2)(4) = 3 - 8 = -5.

Swap diagonal, negate off-diagonal:

M−1=−15(1−2 −43)=(−0.20.4 0.8−0.6)M^{-1} = -\frac{1}{5}\begin{pmatrix} 1 & -2 \ -4 & 3 \end{pmatrix} = \begin{pmatrix} -0.2 & 0.4 \ 0.8 & -0.6 \end{pmatrix}

Verify. MM−1=(32 41)(−0.20.4 0.8−0.6)=(−0.6+1.61.2−1.2 −0.8+0.81.6−0.6)=(10 01)M M^{-1} = \begin{pmatrix} 3 & 2 \ 4 & 1 \end{pmatrix} \begin{pmatrix} -0.2 & 0.4 \ 0.8 & -0.6 \end{pmatrix} = \begin{pmatrix} -0.6 + 1.6 & 1.2 - 1.2 \ -0.8 + 0.8 & 1.6 - 0.6 \end{pmatrix} = \begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix} ✓

What Are the Most Common Mistakes With 2x2 Inverses?

Mistake 1: Forgetting to swap the diagonal

The fix: aa and dd trade places. Negate bb and cc, but swap aa and dd.

Mistake 2: Sign errors in bb and cc

Where it slips in: Negating aa or dd instead of bb and cc.

The fix: Only the off-diagonal entries get a negative sign. Diagonal entries keep their sign.

Mistake 3: Forgetting to divide by the determinant

The fix: The whole matrix gets divided by det⁡(A)\det(A). Forgetting this gives a matrix that's ∣det⁡(A)∣|\det(A)| times too large.

Key Takeaways

  • For A=(ab cd)A = \begin{pmatrix} a & b \ c & d \end{pmatrix}: A−1=1ad−bc(d−b −ca)A^{-1} = \dfrac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}.

  • The determinant ad−bcad - bc must be non-zero for the inverse to exist.

  • Three operations: swap the diagonal, negate the off-diagonal, divide by the determinant.

  • Always verify by computing A⋅A−1A \cdot A^{-1} — should equal the identity.

  • Singular matrices (det⁡=0\det = 0) have no inverse; their columns are linearly dependent.

A Practical Next Step

Try these three before moving on to 3x3 inverses.

  1. Find the inverse of (52 31)\begin{pmatrix} 5 & 2 \ 3 & 1 \end{pmatrix}.

  2. Check whether (46 23)\begin{pmatrix} 4 & 6 \ 2 & 3 \end{pmatrix} is invertible.

  3. Find the inverse of (12 34)\begin{pmatrix} 1 & 2 \ 3 & 4 \end{pmatrix} and verify by multiplication.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the inverse of a 2x2 matrix?
For A=(ab cd)A = \begin{pmatrix} a & b \ c & d \end{pmatrix} with ad−bc≠0ad - bc \neq 0: A−1=1ad−bc(d−b −ca)A^{-1} = \dfrac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}. Swap the diagonal, negate the off-diagonal, divide by the determinant.
When does a 2x2 matrix not have an inverse?
When its determinant ad−bc=0ad - bc = 0. Such matrices are called singular — their rows (and columns) are linearly dependent.
How do I check that my inverse is correct?
Multiply A⋅A−1A \cdot A^{-1}. The result should be the identity matrix (10 01)\begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}.
Why does ad−bcad - bc appear in the formula?
ad−bcad - bc is the determinant — it measures the area scaling of the linear transformation represented by the matrix. The inverse must scale areas by the reciprocal, which is why the determinant appears in the denominator.
Is matrix inversion the same as matrix division?
There's no operation called "matrix division." The closest equivalent is multiplying by the inverse: B/AB/A doesn't make sense, but B⋅A−1B \cdot A^{-1} does (and they're not the same as A−1⋅BA^{-1} \cdot B, because matrix multiplication isn't commutative).
Does every square matrix have an inverse?
No — only matrices with non-zero determinant. Non-square matrices don't have inverses in the standard sense; they have pseudoinverses (more advanced topic).
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →