Inverse Matrix Calculator: Find A⁻¹ by Adjugate or Gauss-Jordan With Steps

Enter a square matrix and get its inverse in exact fractions, with every Gauss-Jordan row operation or the 2×2 shortcut formula written out. The answer is verified by multiplying A by A⁻¹ to get the identity, and a second tab solves A x = b with the inverse.

Inverse Matrix Calculator

Pick a tab, type your numbers and press Calculate. Tap an example chip to see the working first.

What the Inverse of a Matrix Is

The inverse A⁻¹ undoes A: A × A⁻¹ = A⁻¹ × A = I, where I is the identity matrix of ones on the diagonal. It plays the role of 1/a for ordinary numbers, and just like 1/0 it does not always exist. A square matrix has an inverse exactly when its determinant is not zero.

The 2×2 Shortcut

For [[a, b], [c, d]], swap a and d, flip the signs of b and c, and divide everything by ad − bc.

[[4, 7], [2, 6]]

  1. Determinant: 4·6 − 7·2 = 24 − 14 = 10.
  2. Swap and negate: [[6, −7], [−2, 4]].
  3. Divide by 10.

Answer: [[3/5, −7/10], [−1/5, 2/5]]

Check: first row of A times first column of A⁻¹ is 4·(3/5) + 7·(−1/5) = 12/5 − 7/5 = 1 ✓.

Gauss-Jordan for Any Size

  1. Write A and the identity side by side: [A | I].
  2. Use row operations to turn the left block into I.
  3. Apply every operation to the whole row, including the right block.
  4. When the left block is I, the right block is A⁻¹.
3×3 by Gauss-JordanTry it in the calculator ↑

[[2, 1, 1], [1, 3, 2], [1, 0, 0]]

  1. det A = 1, so the inverse exists and has whole-number entries.
  2. Row operations reduce [A | I] to [I | A⁻¹].

Answer: A⁻¹ = [[0, 0, 1], [−2, 1, 3], [3, −1, −5]]

If a zero row appears on the left during the process, the matrix is singular and no inverse exists. The calculator reports that instead of guessing.

Solving A x = b With the Inverse

Solve 2x + y = 4 and 5x + 3y = 7Try it in the calculator ↑

A = [[2, 1], [5, 3]], b = (4, 7)

  1. det A = 6 − 5 = 1, so A⁻¹ = [[3, −1], [−5, 2]].
  2. x = A⁻¹ b = (3·4 − 7, −5·4 + 2·7) = (5, −6).

Answer: x = 5, y = −6

Substituting back gives 2·5 − 6 = 4 and 5·5 − 18 = 7 ✓.

When Not to Use an Inverse

Computing A⁻¹ to solve A x = b is fine for small classroom problems, but numerical analysts avoid it for large or delicate systems, because elimination is faster and more accurate. Some matrices are so close to singular that tiny input errors explode. The condition number measures this: the 5×5 Hilbert matrix has a condition number near 4.8 × 10⁵ and the 10×10 one is about 1.6 × 10¹³, which means almost all the digits of a floating-point inverse are noise.

That is one reason this calculator works in exact fractions: there is no rounding to amplify.

What We Think Is Overrated, Underrated and Wrong

Overrated: the adjugate (cofactor) method for 3×3 and larger. It is a lot of arithmetic for no gain over Gauss-Jordan.
Underrated: the check A × A⁻¹ = I. It takes one multiplication and catches every slip. The calculator shows it.
Wrong: “(A + B)⁻¹ = A⁻¹ + B⁻¹”. The inverse of a product reverses the order, (AB)⁻¹ = B⁻¹A⁻¹, but sums do not behave at all.

A Worked Example and a Warning

For A = [[2, 1], [5, 3]] the determinant is 1, so A⁻¹ = [[3, −1], [−5, 2]]. Check: row 1 × column 1 is 2·3 + 1·(−5) = 1. For 2×2 the formula is A⁻¹ = (1 ÷ det)[[d, −b], [−c, a]].

Warning: the 3×3 Hilbert matrix has inverse [[9, −36, 30], [−36, 192, −180], [30, −180, 180]], with entries far larger than the original. Matrices like this are ill-conditioned, and a tiny rounding error in the input can wreck the answer.

Our Take: What Is Overrated, Underrated and Plain Wrong

Overrated: the inverse as a way to solve Ax = b. Elimination is faster and more accurate.

Underrated: the A·A⁻¹ = I check. It confirms the answer in one multiplication.

Plain wrong: trying to invert a singular matrix. If det = 0, no inverse exists.

Inverse Matrix Mistakes That Cost Marks

  • Trying to invert a matrix with determinant 0.
  • Forgetting to divide by the determinant in the 2×2 formula.
  • Changing only the left block during Gauss-Jordan.
  • Multiplying in the wrong order when solving: it is A⁻¹b, not bA⁻¹.
  • Inverting a non-square matrix. Only square matrices have inverses.

Why Students Get Stuck on Inverse Matrices, and What a Good Calculator Should Do

Searching for help with inverse matrices usually starts late at night with one problem that will not work out. The adjugate method has many signs, and Gauss-Jordan has many rows. A good calculator fixes that by showing each step, checking its own answer and explaining the idea in plain words. This section covers what students struggle with, what they want, and how this page responds.

In short: students need to find A⁻¹ and verify that A·A⁻¹ = I, not just see a final number, and a calculator earns trust only when its steps can be checked.

Understand the frustrations and desires

What they feel, and what they want

Each frustration points to a wish: a clearer step, a built-in check, an explanation in plain words.

  • Wants both methods compared
  • Wants A·A⁻¹ = I checked
  • Wants to know early if the inverse exists

Build the page around their intent

Each intent has a place on this page

The page follows intent, not features, so each need has a clear starting point.

  • I need an answer now: type the problem into the calculator at the top of this page.Inverse of [[2,1],[5,3]]
  • I need to understand: the sections below explain the idea in plain words and list the common mistakes.
  • I need to check my work: every step is shown, so the first line that differs from yours is the one to study.
  • I need practice: open the solver, tap + and choose Create Practice Test.
  • I need it explained aloud: in the solver, tap + and choose Create Video.

Inverse Matrix: Questions People Ask

How do you find the inverse of a matrix?

Row-reduce [A | I] until the left block is the identity. The right block is the inverse. For 2×2 you can use the swap-and-divide formula.

When does an inverse not exist?

When the determinant is 0, meaning the rows are linearly dependent.

What is the inverse of the identity matrix?

The identity matrix itself.

Is (AB)⁻¹ equal to A⁻¹B⁻¹?

No. It is B⁻¹A⁻¹: the order reverses.

How do I check my answer?

Multiply A by A⁻¹. You should get the identity matrix exactly.

Can I use the inverse to solve equations?

Yes: x = A⁻¹ b. The “Solve A x = b” tab does it and verifies the solution.

How do I find the inverse of a 2×2 matrix?

Swap a and d, negate b and c, then divide by the determinant ad − bc.

When does a matrix not have an inverse?

When its determinant is 0 (it is singular).

How do I find a 3×3 inverse?

Use Gauss-Jordan elimination on [A | I] or the adjugate divided by the determinant.

How can I check my inverse?

Multiply A by your answer. You should get the identity matrix.

↑