Skip to content
ihateDesmos

Inverse matrix calculator

Type a square matrix and get its inverse in exact fractions, with every row operation shown and a check that multiplying back gives the identity. If the matrix has no inverse, it says so.

Inverse of A
11/2−13/2−3/4
−451/2
7/2−9/2−1/4
Check
A × A⁻¹ = I, the identity
Steps: row-reduce [A | I] until the left side is I
  1. R1 → R1 ÷ 4
  2. R2 → R2 − 3·R1
  3. R3 → R3 − 2·R1
  4. R2 → R2 ÷ −1/4
  5. R1 → R1 − 7/4·R2
  6. R3 → R3 − 9/2·R2
  7. R3 → R3 ÷ −4
  8. R1 → R1 + 3·R3
  9. R2 → R2 − 2·R3

How to use it

  1. 1
    Type the matrix with one row per line and spaces between entries. Fractions like 1/2 and decimals both work.
  2. 2
    Leave the operation on “Inverse of A”. The result updates as you type.
  3. 3
    The answer stays in exact fractions, so nothing is rounded, and the row operations are listed underneath.

The 2×2 formula

For a 2×2 matrix with rows (a, b) and (c, d), the inverse is 1 ÷ (ad − bc) times the matrix with rows (d, −b) and (−c, a). Swap the diagonal, negate the other two entries, and divide by the determinant.

For rows (2, 1) and (5, 3), the determinant is 2·3 − 1·5 = 1, so the inverse has rows (3, −1) and (−5, 2).

Any size: row reduction

  1. Write the matrix A next to the identity I, as [A | I].
  2. Use row operations to turn the left side into the identity.
  3. The right side is now the inverse: [I | A⁻¹].

When a matrix has no inverse

A square matrix has an inverse exactly when its determinant isn’t zero. A matrix with a zero determinant is called singular: its rows depend on each other, so it squashes space into a lower dimension, and that can’t be undone. Rows (1, 2) and (2, 4) are an example, since the second row is twice the first. Non-square matrices don’t have ordinary inverses at all.

Using an inverse to solve equations

If Ax = b and A has an inverse, then x = A⁻¹b. This is tidy on paper, but for a single system, row reduction is less work. The system of equations calculator does it directly.

Frequently asked questions

How do you find the inverse of a 3×3 matrix?
Row-reduce [A | I] until the left side is the identity, and the right side is the inverse. Type your matrix above to see every step.
Does every matrix have an inverse?
No. Only square matrices with a non-zero determinant do.
How do I check an inverse?
Multiply it by the original. If A × A⁻¹ is the identity, it is right. This calculator does that check for you.
Is (AB)⁻¹ the same as A⁻¹B⁻¹?
No. The order reverses: (AB)⁻¹ = B⁻¹A⁻¹.

Related tools and guides

Try the inverse matrix calculator

It opens instantly, with no account and nothing to install.

Open the calculator