Inverse of 2x2 Matrix - Formula, Steps, Examples

#Algebra
TL;DR
The inverse of a $2 \times 2$ matrix $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$ is given by a clean formula: $A^{-1} = \dfrac{1}{ad - bc}\begin{pmatrix} d & -b \ -c & a \end{pmatrix}$. The denominator $ad - bc$ is the determinant — if it's zero, the inverse doesn't exist.
BT
Bhanzu TeamLast updated on May 19, 20266 min read

What Is the Inverse of a Matrix?

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

$$A \cdot A^{-1} = A^{-1} \cdot A = I$$

where $I$ is the identity matrix (1s on the diagonal, 0s elsewhere). It's the matrix-multiplication equivalent of "the reciprocal of a number" — $5 \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 = \begin{pmatrix} a & b \ c & d \end{pmatrix}$ with $\det(A) = ad - bc \neq 0$:

$$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^{-1}$ exists if and only if:

$$\det(A) = ad - bc \neq 0$$

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

Geometrically, $\det(A) = 0$ means the two column vectors of $A$ 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 \times 2$ matrix $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$:

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

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

  3. Swap the diagonal entries: $a \leftrightarrow d$.

  4. Negate the off-diagonal entries: $b \to -b$, $c \to -c$.

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

Three Worked Examples — Quick, Standard, Stretch

Quick — Simple Numbers

Find the inverse of $A = \begin{pmatrix} 4 & 3 \ 1 & 2 \end{pmatrix}$.

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

$$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 \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 = \begin{pmatrix} 2 & -5 \ 3 & 1 \end{pmatrix}$.

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

$$B^{-1} = \frac{1}{17} \begin{pmatrix} 1 & 5 \ -3 & 2 \end{pmatrix}$$

Stretch — Singular Matrix

Try to find the inverse of $C = \begin{pmatrix} 2 & 4 \ 1 & 2 \end{pmatrix}$.

$\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. $A\vec{x} = \vec{b}$ has solution $\vec{x} = A^{-1}\vec{b}$ (when $A$ is invertible). The two-equations-two-unknowns case is exactly the $2 \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 $\hat{\boldsymbol{\beta}} = (X^T X)^{-1} X^T \vec{y}$ — matrix inversion is the central calculation.

The $2 \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 = \begin{pmatrix} 3 & 2 \ 4 & 1 \end{pmatrix}$.

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

$$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 = 3$ in the upper-left and $d = 1$ in the lower-right — but the inverse formula swaps them. The (wrong) matrix doesn't satisfy $M M^{-1} = I$.

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

Swap diagonal, negate off-diagonal:

$$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. $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: $a$ and $d$ trade places. Negate $b$ and $c$, but swap $a$ and $d$.

Mistake 2: Sign errors in $b$ and $c$

Where it slips in: Negating $a$ or $d$ instead of $b$ and $c$.

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)$. Forgetting this gives a matrix that's $|\det(A)|$ times too large.

Key Takeaways

  • For $A = \begin{pmatrix} a & b \ c & d \end{pmatrix}$: $A^{-1} = \dfrac{1}{ad - bc} \begin{pmatrix} d & -b \ -c & a \end{pmatrix}$.

  • The determinant $ad - 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 \cdot A^{-1}$ — should equal the identity.

  • Singular matrices ($\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 $\begin{pmatrix} 5 & 2 \ 3 & 1 \end{pmatrix}$.

  2. Check whether $\begin{pmatrix} 4 & 6 \ 2 & 3 \end{pmatrix}$ is invertible.

  3. Find the inverse of $\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 = \begin{pmatrix} a & b \ c & d \end{pmatrix}$ with $ad - bc \neq 0$: $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 = 0$. Such matrices are called singular — their rows (and columns) are linearly dependent.
How do I check that my inverse is correct?
Multiply $A \cdot A^{-1}$. The result should be the identity matrix $\begin{pmatrix} 1 & 0 \ 0 & 1 \end{pmatrix}$.
Why does $ad - bc$ appear in the formula?
$ad - 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/A$ doesn't make sense, but $B \cdot A^{-1}$ does (and they're not the same as $A^{-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
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →