Inverse of a 2×2 Matrix Calculator

Published on: September 28, 2025
Final Answer: Free | Full Steps: Pro

This Inverse of a 2×2 Matrix Calculator finds the inverse of a \(2 \times 2\) matrix and shows the working line by line. The determinant comes first, because a determinant of zero leaves no inverse at all. The main diagonal entries swap places, the other two change sign, and every entry is then divided by the determinant. Following the same pattern every time makes the inverse easy to check and repeat.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Swap the main diagonal and change the signs of the other two entries.
  5. Multiply every entry by one over the determinant.

Formula: 2 by 2 Inverse Formula

This formula gives the inverse of a 2 by 2 matrix. Swap the main diagonal, change the signs of the other two entries and divide by the determinant.

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

Useful Tips to Remember

Work out the determinant first, because a determinant of 0 means there is no inverse. Only the main diagonal entries swap places, while the other two only change sign. A quick check is that \(A \times A^{-1}\) should give the identity matrix. Keep the entries as fractions rather than rounding.

Required knowledge

Where Is the Inverse of a 2 by 2 Matrix Used?

The inverse matrix undoes what the original matrix does, which is how matrix equations are solved. A system of two equations written as \(AX = B\) is solved by \(X = A^{-1}B\). In cryptography, the Hill cipher encrypts messages with a matrix and decrypts them with its inverse. Computer graphics uses inverses to undo transformations, and economists use them to work backwards in input-output models.

  • Solving systems of two equations
  • Decoding Hill cipher messages
  • Undoing transformations in graphics
  • Working backwards in economic models
  • Checking answers with the identity matrix

Inverse of a 2×2 Matrix Practice Problems

Example 1 inverts a matrix with determinant 10, and Example 2 inverts a matrix with a negative entry and determinant 13. Find the determinant, swap and negate, then compare your fractions. For two more free worked examples, check out the Inverse of a 2×2 Matrix Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Swap the main diagonal and change the signs of the other two entries.
  5. Multiply every entry by one over the determinant.

Formula

Formula: 2 by 2 Inverse Formula

This formula gives the inverse of a 2 by 2 matrix. Swap the main diagonal, change the signs of the other two entries and divide by the determinant.

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

Step 1

Step 1 - Set up the problem.

In this problem: Reading A left to right and top to bottom gives \(a = 4\), \(b = 7\), \(c = 2\) and \(d = 6\).

\(A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: The inverse swaps the two entries on the main diagonal, changes the signs of the other two and divides everything by the determinant. A determinant of 0 means there is no inverse.

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

Step 3

Step 3 - Work out the determinant.

In this problem: The determinant is worked out first, covered in the Determinant of a 2×2 Matrix Calculator. The main diagonal gives \(4 \times 6 = 24\) and the other diagonal gives \(7 \times 2 = 14\), so \(24 - 14 = 10\).

\(\det(A) = 4 \times 6 - 7 \times 2 = 24 - 14 = 10\)

Step 4

Step 4 - Swap the main diagonal and change the signs of the other two entries.

In this problem: Swapping \(4\) and \(6\) and changing the signs of \(7\) and \(2\) gives \(\begin{bmatrix} 6 & -7 \\ -2 & 4 \end{bmatrix}\).

\(\begin{bmatrix} d & -b \\ -c & a \end{bmatrix} = \begin{bmatrix} 6 & -7 \\ -2 & 4 \end{bmatrix}\)

Step 5

Step 5 - Multiply every entry by one over the determinant.

In this problem: Multiplying every entry by \(\frac{1}{10}\) gives \(6 \times \frac{1}{10} = \frac{3}{5}\), \(\left(-7\right) \times \frac{1}{10} = - \frac{7}{10}\), \(\left(-2\right) \times \frac{1}{10} = - \frac{1}{5}\) and \(4 \times \frac{1}{10} = \frac{2}{5}\).

\(A^{-1} = \frac{1}{10}\begin{bmatrix} 6 & -7 \\ -2 & 4 \end{bmatrix} = \begin{bmatrix} \frac{3}{5} & - \frac{7}{10} \\ - \frac{1}{5} & \frac{2}{5} \end{bmatrix}\)

Final Answer

\(A^{-1} = \begin{bmatrix} \frac{3}{5} & - \frac{7}{10} \\ - \frac{1}{5} & \frac{2}{5} \end{bmatrix}\)
See Example 2 Hide Example 2

Problem

\(A = \begin{bmatrix} 3 & -2 \\ 5 & 1 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Swap the main diagonal and change the signs of the other two entries.
  5. Multiply every entry by one over the determinant.

Formula

Formula: 2 by 2 Inverse Formula

This formula gives the inverse of a 2 by 2 matrix. Swap the main diagonal, change the signs of the other two entries and divide by the determinant.

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

Step 1

Step 1 - Set up the problem.

In this problem: Reading A left to right and top to bottom gives \(a = 3\), \(b = -2\), \(c = 5\) and \(d = 1\).

\(A = \begin{bmatrix} 3 & -2 \\ 5 & 1 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: The inverse swaps the two entries on the main diagonal, changes the signs of the other two and divides everything by the determinant. A determinant of 0 means there is no inverse.

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

Step 3

Step 3 - Work out the determinant.

In this problem: The determinant is worked out first, covered in the Determinant of a 2×2 Matrix Calculator. The main diagonal gives \(3 \times 1 = 3\) and the other diagonal gives \(\left(-2\right) \times 5 = -10\), so \(3 - \left(-10\right) = 13\).

\(\det(A) = 3 \times 1 - \left(-2\right) \times 5 = 3 - \left(-10\right) = 13\)

Step 4

Step 4 - Swap the main diagonal and change the signs of the other two entries.

In this problem: Swapping \(3\) and \(1\) and changing the signs of \(-2\) and \(5\) gives \(\begin{bmatrix} 1 & 2 \\ -5 & 3 \end{bmatrix}\).

\(\begin{bmatrix} d & -b \\ -c & a \end{bmatrix} = \begin{bmatrix} 1 & 2 \\ -5 & 3 \end{bmatrix}\)

Step 5

Step 5 - Multiply every entry by one over the determinant.

In this problem: Multiplying every entry by \(\frac{1}{13}\) gives \(1 \times \frac{1}{13} = \frac{1}{13}\), \(2 \times \frac{1}{13} = \frac{2}{13}\), \(\left(-5\right) \times \frac{1}{13} = - \frac{5}{13}\) and \(3 \times \frac{1}{13} = \frac{3}{13}\).

\(A^{-1} = \frac{1}{13}\begin{bmatrix} 1 & 2 \\ -5 & 3 \end{bmatrix} = \begin{bmatrix} \frac{1}{13} & \frac{2}{13} \\ - \frac{5}{13} & \frac{3}{13} \end{bmatrix}\)

Final Answer

\(A^{-1} = \begin{bmatrix} \frac{1}{13} & \frac{2}{13} \\ - \frac{5}{13} & \frac{3}{13} \end{bmatrix}\)

Notes and Practice Mode

Matrix A

Empty boxes count as 0. Entries can be whole numbers, decimals or fractions like 1/2.

Example Problems

Click one to load it into the box and solve it.