Inverse Matrix Calculator

AlgebraFreeNo sign-up

Enter a square matrix (2 × 2 up to 5 × 5) to get its inverse A⁻¹ in exact fractions, the determinant, and every Gauss-Jordan row operation. A matrix has an inverse only when its determinant is not 0; for a 2 × 2 matrix [a b; c d] the inverse is [d −b; −c a] divided by ad − bc.

Exact fractionsStepsFree

How to find the inverse of a matrix

A square matrix A has an inverse A⁻¹ when A × A⁻¹ = A⁻¹ × A = I, the identity matrix. The inverse exists exactly when the determinant of A is not 0. This calculator uses Gauss-Jordan elimination with exact fractions, so answers like 3⁄10 stay exact instead of turning into rounded decimals.

Method 1: the 2 × 2 formula

For A = [a b; c d], A⁻¹ = (1 ⁄ (ad − bc)) × [d −b; −c a]. Swap a and d, change the signs of b and c, and divide every entry by the determinant ad − bc.

Example: A = [4 7; 2 6]. det = 4·6 − 7·2 = 10. A⁻¹ = [6⁄10 −7⁄10; −2⁄10 4⁄10] = [3⁄5 −7⁄10; −1⁄5 2⁄5].

Method 2: Gauss-Jordan elimination (any size)

  1. Write the augmented matrix [A | I].
  2. Use row operations to make each pivot 1: swap rows, multiply a row by a nonzero number, or add a multiple of one row to another.
  3. Clear every other entry in each pivot column.
  4. When the left side is I, the right side is A⁻¹. If a column has no nonzero pivot, the matrix is singular and has no inverse.

Press Show Gauss-Jordan steps under any answer to see each row operation and the matrix after it.

Method 3: adjugate formula

A⁻¹ = adj(A) ⁄ det(A), where adj(A) is the transpose of the cofactor matrix. It is handy for 3 × 3 matrices on paper but takes far more work than elimination for larger sizes.

When does a matrix have no inverse?

  • Its determinant is 0.
  • One row (or column) is a multiple of another, or a combination of others.
  • It has a row or column of zeros.
  • It is not square. Only square matrices have a two-sided inverse.

Example: [1 2; 2 4] has det = 1·4 − 2·2 = 0. Row 2 is twice row 1, so there is no inverse.

Using the inverse to solve a system

A system of equations Ax = b with an invertible A has exactly one solution, x = A⁻¹b. For 2x + y = 5 and x + 3y = 10, A = [2 1; 1 3], det = 5, A⁻¹ = [3⁄5 −1⁄5; −1⁄5 2⁄5], and x = A⁻¹[5; 10] = [1; 3]. So x = 1 and y = 3.

Properties of the inverse

  • (A⁻¹)⁻¹ = A
  • (AB)⁻¹ = B⁻¹A⁻¹ (the order reverses)
  • (Aᵀ)⁻¹ = (A⁻¹)ᵀ
  • det(A⁻¹) = 1 ⁄ det(A)

To multiply the inverse by another matrix, use the matrix multiplication calculator; for the determinant alone, use the determinant calculator.

Inverse matrix quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What is the determinant of [4 7; 2 6]?

Found a mistake? Let us know!

2. Which matrix has no inverse?

Found a mistake? Let us know!

3. What is the inverse of [2 0; 0 5]?

Found a mistake? Let us know!

4. What is the inverse of [1 2; 3 4]?

Found a mistake? Let us know!

5. If det(A) = 4, what is det(A⁻¹)?

Found a mistake? Let us know!

6. (AB)⁻¹ equals:

Found a mistake? Let us know!

7. A × A⁻¹ equals:

Found a mistake? Let us know!

8. Solve 2x + y = 5, x + 3y = 10 using the inverse. What is (x, y)?

Found a mistake? Let us know!

9. Which row operation is NOT allowed in Gauss-Jordan elimination?

Found a mistake? Let us know!

10. Which matrices can have a two-sided inverse?

Found a mistake? Let us know!

Frequently asked questions

How do you find the inverse of a 3×3 matrix?

Write [A | I] and use row operations until the left side is the identity; the right side is then A⁻¹. Or use A⁻¹ = adj(A) ⁄ det(A). The calculator shows every row operation.

What is the inverse of a 2×2 matrix?

For [a b; c d], swap a and d, change the signs of b and c, and divide by ad − bc. If ad − bc = 0, there is no inverse.

Why does a matrix with determinant 0 have no inverse?

det(A) × det(A⁻¹) = det(I) = 1, which is impossible if det(A) = 0. Geometrically, the matrix squashes space into a lower dimension, so it cannot be undone.

Can I enter fractions and decimals?

Yes. Type entries like 3/4, −2 or 0.5. Answers are exact fractions; tick Show decimals for decimal form.

Do non-square matrices have inverses?

Not two-sided inverses. Only square matrices with a nonzero determinant are invertible. Non-square matrices can have one-sided or pseudo-inverses, which this tool does not compute.

Sources

Related calculators

Browse all calculators

More algebra calculators

Browse all 550 calculators

Related to This Article

What people say about "Inverse Matrix Calculator with Steps (2×2 to 5×5)"?

No one replied yet.

Leave a Reply