Inverse of a 3×3 Matrix Calculator

Published on: October 5, 2025
Final Answer: Free | Full Steps: Pro

This Inverse of a 3×3 Matrix Calculator finds the inverse of a \(3 \times 3\) matrix and shows the working line by line. Nine \(2 \times 2\) minors are worked out, an alternating sign pattern turns them into cofactors, and transposing those gives the adjugate. Dividing the adjugate by the determinant finishes it, which is why a determinant of zero leaves no inverse. Following the same pattern every time keeps a long calculation checkable.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Work out the nine minors.
  5. Apply the sign pattern to get the cofactors.
  6. Transpose the cofactors to get the adjugate.
  7. Multiply every entry by one over the determinant.

Formula: 3 by 3 Inverse Formula

This formula gives the inverse of a 3 by 3 matrix. Find the adjugate and divide every entry by the determinant.

\(A^{-1} = \frac{1}{\det(A)}\operatorname{adj}(A)\)

Formula: Cofactor and Adjugate Formula

Each cofactor is a minor with a sign from the chessboard pattern, and the adjugate is the transpose of the cofactor matrix.

\(C_{ij} = (-1)^{i+j}M_{ij},\quad \operatorname{adj}(A) = C^{T}\)

Useful Tips to Remember

Check the determinant first, since a determinant of 0 means there is no inverse. The cofactor signs follow a chessboard pattern starting with plus in the top left. Remember to transpose the cofactor matrix before dividing, which is the step most often missed. Check the answer by multiplying A by the inverse to get the identity matrix.

Required knowledge

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

The inverse of a 3 by 3 matrix solves systems of three equations and undoes 3D transformations. Engineers use it to solve for forces and currents in three unknowns. Computer graphics and robotics invert transformation matrices to move between coordinate systems, such as from a camera's view back to the world. In cryptography, 3 by 3 Hill ciphers are decoded with the inverse, and statisticians invert matrices when fitting regression models.

  • Solving systems of three equations
  • Switching coordinate systems in 3D graphics and robotics
  • Decoding 3 by 3 Hill ciphers
  • Fitting regression models in statistics
  • Solving circuit and force problems in engineering

Inverse of a 3×3 Matrix Practice Problems

Example 1 inverts a matrix whose determinant is 1, so the inverse has whole numbers, and Example 2 inverts a matrix with determinant \(-13\), giving fractions. Work through the minors, cofactors and adjugate yourself and compare. For two more free worked examples, check out the Inverse of a 3×3 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} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Work out the nine minors.
  5. Apply the sign pattern to get the cofactors.
  6. Transpose the cofactors to get the adjugate.
  7. Multiply every entry by one over the determinant.

Formula

Formula: 3 by 3 Inverse Formula

This formula gives the inverse of a 3 by 3 matrix. Find the adjugate and divide every entry by the determinant.

\(A^{-1} = \frac{1}{\det(A)}\operatorname{adj}(A)\)

Formula: Cofactor and Adjugate Formula

Each cofactor is a minor with a sign from the chessboard pattern, and the adjugate is the transpose of the cofactor matrix.

\(C_{ij} = (-1)^{i+j}M_{ij},\quad \operatorname{adj}(A) = C^{T}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the inverse of the 3 by 3 matrix \(A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\).

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: The inverse is the adjugate of A divided by the determinant. The adjugate is built from the nine 2 by 2 minors of A, with a sign pattern, and then transposed.

\(A^{-1} = \frac{1}{\det(A)}\operatorname{adj}(A)\)

Step 3

Step 3 - Work out the determinant.

In this problem: The determinant is worked out first by expanding along the top row, covered in the Determinant of a 3×3 Matrix Calculator, which gives \(\det(A) = 1\). It is not 0, so A has an inverse.

\(\det(A) = 1\)

Step 4

Step 4 - Work out the nine minors.

In this problem: Each minor \(M_{ij}\) is the determinant of the 2 by 2 block left when row i and column j are covered, found with the 2 by 2 rule covered in the Determinant of a 2×2 Matrix Calculator. The nine are worked out in turn.

\(M_{ij} = \det(\text{A without row } i \text{ and column } j)\)

Step 4a

Step 4a - Work out the minor in row 1, column 1.

In this problem: Covering row 1 and column 1 leaves \(\begin{bmatrix} 1 & 4 \\ 6 & 0 \end{bmatrix}\). The main diagonal gives \(1 \times 0 = 0\) and the other diagonal gives \(4 \times 6 = 24\), so \(0 - 24 = -24\).

\(M_{11} = 1 \times 0 - 4 \times 6 = 0 - 24 = -24\)

Step 4b

Step 4b - Work out the minor in row 1, column 2.

In this problem: Covering row 1 and column 2 leaves \(\begin{bmatrix} 0 & 4 \\ 5 & 0 \end{bmatrix}\). The main diagonal gives \(0 \times 0 = 0\) and the other diagonal gives \(4 \times 5 = 20\), so \(0 - 20 = -20\).

\(M_{12} = 0 \times 0 - 4 \times 5 = 0 - 20 = -20\)

Step 4c

Step 4c - Work out the minor in row 1, column 3.

In this problem: Covering row 1 and column 3 leaves \(\begin{bmatrix} 0 & 1 \\ 5 & 6 \end{bmatrix}\). The main diagonal gives \(0 \times 6 = 0\) and the other diagonal gives \(1 \times 5 = 5\), so \(0 - 5 = -5\).

\(M_{13} = 0 \times 6 - 1 \times 5 = 0 - 5 = -5\)

Step 4d

Step 4d - Work out the minor in row 2, column 1.

In this problem: Covering row 2 and column 1 leaves \(\begin{bmatrix} 2 & 3 \\ 6 & 0 \end{bmatrix}\). The main diagonal gives \(2 \times 0 = 0\) and the other diagonal gives \(3 \times 6 = 18\), so \(0 - 18 = -18\).

\(M_{21} = 2 \times 0 - 3 \times 6 = 0 - 18 = -18\)

Step 4e

Step 4e - Work out the minor in row 2, column 2.

In this problem: Covering row 2 and column 2 leaves \(\begin{bmatrix} 1 & 3 \\ 5 & 0 \end{bmatrix}\). The main diagonal gives \(1 \times 0 = 0\) and the other diagonal gives \(3 \times 5 = 15\), so \(0 - 15 = -15\).

\(M_{22} = 1 \times 0 - 3 \times 5 = 0 - 15 = -15\)

Step 4f

Step 4f - Work out the minor in row 2, column 3.

In this problem: Covering row 2 and column 3 leaves \(\begin{bmatrix} 1 & 2 \\ 5 & 6 \end{bmatrix}\). The main diagonal gives \(1 \times 6 = 6\) and the other diagonal gives \(2 \times 5 = 10\), so \(6 - 10 = -4\).

\(M_{23} = 1 \times 6 - 2 \times 5 = 6 - 10 = -4\)

Step 4g

Step 4g - Work out the minor in row 3, column 1.

In this problem: Covering row 3 and column 1 leaves \(\begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix}\). The main diagonal gives \(2 \times 4 = 8\) and the other diagonal gives \(3 \times 1 = 3\), so \(8 - 3 = 5\).

\(M_{31} = 2 \times 4 - 3 \times 1 = 8 - 3 = 5\)

Step 4h

Step 4h - Work out the minor in row 3, column 2.

In this problem: Covering row 3 and column 2 leaves \(\begin{bmatrix} 1 & 3 \\ 0 & 4 \end{bmatrix}\). The main diagonal gives \(1 \times 4 = 4\) and the other diagonal gives \(3 \times 0 = 0\), so \(4 - 0 = 4\).

\(M_{32} = 1 \times 4 - 3 \times 0 = 4 - 0 = 4\)

Step 4i

Step 4i - Work out the minor in row 3, column 3.

In this problem: Covering row 3 and column 3 leaves \(\begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}\). The main diagonal gives \(1 \times 1 = 1\) and the other diagonal gives \(2 \times 0 = 0\), so \(1 - 0 = 1\).

\(M_{33} = 1 \times 1 - 2 \times 0 = 1 - 0 = 1\)

Step 5

Step 5 - Apply the sign pattern to get the cofactors.

In this problem: Each cofactor is the minor with the sign from the pattern \(\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}\), so the minors in the minus positions change sign, giving \(-20 \to 20\), \(-18 \to 18\), \(-4 \to 4\) and \(4 \to -4\).

\(C = \begin{bmatrix} -24 & 20 & -5 \\ 18 & -15 & 4 \\ 5 & -4 & 1 \end{bmatrix}\)

Step 6

Step 6 - Transpose the cofactors to get the adjugate.

In this problem: Transposing the cofactor matrix, covered in the Transpose of a Matrix Calculator, turns its rows into columns and gives the adjugate.

\(\operatorname{adj}(A) = C^{T} = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\)

Step 7

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

In this problem: Multiplying every entry of the adjugate by \(\frac{1}{1} = 1\) gives the inverse \(A^{-1} = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\).

\(A^{-1} = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\)

Final Answer

\(A^{-1} = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\)
See Example 2 Hide Example 2

Problem

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

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Work out the determinant.
  4. Work out the nine minors.
  5. Apply the sign pattern to get the cofactors.
  6. Transpose the cofactors to get the adjugate.
  7. Multiply every entry by one over the determinant.

Formula

Formula: 3 by 3 Inverse Formula

This formula gives the inverse of a 3 by 3 matrix. Find the adjugate and divide every entry by the determinant.

\(A^{-1} = \frac{1}{\det(A)}\operatorname{adj}(A)\)

Formula: Cofactor and Adjugate Formula

Each cofactor is a minor with a sign from the chessboard pattern, and the adjugate is the transpose of the cofactor matrix.

\(C_{ij} = (-1)^{i+j}M_{ij},\quad \operatorname{adj}(A) = C^{T}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the inverse of the 3 by 3 matrix \(A = \begin{bmatrix} 2 & 0 & 1 \\ 3 & -1 & 2 \\ 1 & 4 & 5 \end{bmatrix}\).

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

Step 2

Step 2 - Write the formula.

In this problem: The inverse is the adjugate of A divided by the determinant. The adjugate is built from the nine 2 by 2 minors of A, with a sign pattern, and then transposed.

\(A^{-1} = \frac{1}{\det(A)}\operatorname{adj}(A)\)

Step 3

Step 3 - Work out the determinant.

In this problem: The determinant is worked out first by expanding along the top row, covered in the Determinant of a 3×3 Matrix Calculator, which gives \(\det(A) = -13\). It is not 0, so A has an inverse.

\(\det(A) = -13\)

Step 4

Step 4 - Work out the nine minors.

In this problem: Each minor \(M_{ij}\) is the determinant of the 2 by 2 block left when row i and column j are covered, found with the 2 by 2 rule covered in the Determinant of a 2×2 Matrix Calculator. The nine are worked out in turn.

\(M_{ij} = \det(\text{A without row } i \text{ and column } j)\)

Step 4a

Step 4a - Work out the minor in row 1, column 1.

In this problem: Covering row 1 and column 1 leaves \(\begin{bmatrix} -1 & 2 \\ 4 & 5 \end{bmatrix}\). The main diagonal gives \(\left(-1\right) \times 5 = -5\) and the other diagonal gives \(2 \times 4 = 8\), so \(-5 - 8 = -13\).

\(M_{11} = \left(-1\right) \times 5 - 2 \times 4 = -5 - 8 = -13\)

Step 4b

Step 4b - Work out the minor in row 1, column 2.

In this problem: Covering row 1 and column 2 leaves \(\begin{bmatrix} 3 & 2 \\ 1 & 5 \end{bmatrix}\). The main diagonal gives \(3 \times 5 = 15\) and the other diagonal gives \(2 \times 1 = 2\), so \(15 - 2 = 13\).

\(M_{12} = 3 \times 5 - 2 \times 1 = 15 - 2 = 13\)

Step 4c

Step 4c - Work out the minor in row 1, column 3.

In this problem: Covering row 1 and column 3 leaves \(\begin{bmatrix} 3 & -1 \\ 1 & 4 \end{bmatrix}\). The main diagonal gives \(3 \times 4 = 12\) and the other diagonal gives \(\left(-1\right) \times 1 = -1\), so \(12 - \left(-1\right) = 13\).

\(M_{13} = 3 \times 4 - \left(-1\right) \times 1 = 12 - \left(-1\right) = 13\)

Step 4d

Step 4d - Work out the minor in row 2, column 1.

In this problem: Covering row 2 and column 1 leaves \(\begin{bmatrix} 0 & 1 \\ 4 & 5 \end{bmatrix}\). The main diagonal gives \(0 \times 5 = 0\) and the other diagonal gives \(1 \times 4 = 4\), so \(0 - 4 = -4\).

\(M_{21} = 0 \times 5 - 1 \times 4 = 0 - 4 = -4\)

Step 4e

Step 4e - Work out the minor in row 2, column 2.

In this problem: Covering row 2 and column 2 leaves \(\begin{bmatrix} 2 & 1 \\ 1 & 5 \end{bmatrix}\). The main diagonal gives \(2 \times 5 = 10\) and the other diagonal gives \(1 \times 1 = 1\), so \(10 - 1 = 9\).

\(M_{22} = 2 \times 5 - 1 \times 1 = 10 - 1 = 9\)

Step 4f

Step 4f - Work out the minor in row 2, column 3.

In this problem: Covering row 2 and column 3 leaves \(\begin{bmatrix} 2 & 0 \\ 1 & 4 \end{bmatrix}\). The main diagonal gives \(2 \times 4 = 8\) and the other diagonal gives \(0 \times 1 = 0\), so \(8 - 0 = 8\).

\(M_{23} = 2 \times 4 - 0 \times 1 = 8 - 0 = 8\)

Step 4g

Step 4g - Work out the minor in row 3, column 1.

In this problem: Covering row 3 and column 1 leaves \(\begin{bmatrix} 0 & 1 \\ -1 & 2 \end{bmatrix}\). The main diagonal gives \(0 \times 2 = 0\) and the other diagonal gives \(1 \times \left(-1\right) = -1\), so \(0 - \left(-1\right) = 1\).

\(M_{31} = 0 \times 2 - 1 \times \left(-1\right) = 0 - \left(-1\right) = 1\)

Step 4h

Step 4h - Work out the minor in row 3, column 2.

In this problem: Covering row 3 and column 2 leaves \(\begin{bmatrix} 2 & 1 \\ 3 & 2 \end{bmatrix}\). The main diagonal gives \(2 \times 2 = 4\) and the other diagonal gives \(1 \times 3 = 3\), so \(4 - 3 = 1\).

\(M_{32} = 2 \times 2 - 1 \times 3 = 4 - 3 = 1\)

Step 4i

Step 4i - Work out the minor in row 3, column 3.

In this problem: Covering row 3 and column 3 leaves \(\begin{bmatrix} 2 & 0 \\ 3 & -1 \end{bmatrix}\). The main diagonal gives \(2 \times \left(-1\right) = -2\) and the other diagonal gives \(0 \times 3 = 0\), so \(-2 - 0 = -2\).

\(M_{33} = 2 \times \left(-1\right) - 0 \times 3 = -2 - 0 = -2\)

Step 5

Step 5 - Apply the sign pattern to get the cofactors.

In this problem: Each cofactor is the minor with the sign from the pattern \(\begin{bmatrix} + & - & + \\ - & + & - \\ + & - & + \end{bmatrix}\), so the minors in the minus positions change sign, giving \(13 \to -13\), \(-4 \to 4\), \(8 \to -8\) and \(1 \to -1\).

\(C = \begin{bmatrix} -13 & -13 & 13 \\ 4 & 9 & -8 \\ 1 & -1 & -2 \end{bmatrix}\)

Step 6

Step 6 - Transpose the cofactors to get the adjugate.

In this problem: Transposing the cofactor matrix, covered in the Transpose of a Matrix Calculator, turns its rows into columns and gives the adjugate.

\(\operatorname{adj}(A) = C^{T} = \begin{bmatrix} -13 & 4 & 1 \\ -13 & 9 & -1 \\ 13 & -8 & -2 \end{bmatrix}\)

Step 7

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

In this problem: Multiplying every entry of the adjugate by \(\frac{1}{-13} = - \frac{1}{13}\) gives the inverse \(A^{-1} = \begin{bmatrix} 1 & - \frac{4}{13} & - \frac{1}{13} \\ 1 & - \frac{9}{13} & \frac{1}{13} \\ -1 & \frac{8}{13} & \frac{2}{13} \end{bmatrix}\).

\(A^{-1} = - \frac{1}{13}\begin{bmatrix} -13 & 4 & 1 \\ -13 & 9 & -1 \\ 13 & -8 & -2 \end{bmatrix} = \begin{bmatrix} 1 & - \frac{4}{13} & - \frac{1}{13} \\ 1 & - \frac{9}{13} & \frac{1}{13} \\ -1 & \frac{8}{13} & \frac{2}{13} \end{bmatrix}\)

Final Answer

\(A^{-1} = \begin{bmatrix} 1 & - \frac{4}{13} & - \frac{1}{13} \\ 1 & - \frac{9}{13} & \frac{1}{13} \\ -1 & \frac{8}{13} & \frac{2}{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.