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.
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)
- Write the augmented matrix [A | I].
- 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.
- Clear every other entry in each pivot column.
- 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.
Quiz complete
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
- OpenStax Precalculus 2e: Solving Systems with Inverses
- OpenStax Precalculus 2e: Matrices and Matrix Operations
- MIT OpenCourseWare 18.06 Linear Algebra (Gilbert Strang)
Related calculators
More algebra calculators
Related to This Article
More math articles
- Cell Cycle Checkpoints: G1, G2 and Spindle Control
- Refinance Calculator
- Colorado Algebra 1 Free Worksheets: Printable Algebra 1 Practice with Full Solutions
- Best Strategies to Teach Math Effectively
- Conclusions: What the Evidence Allows
- 7th Grade SC Ready Math Worksheets: FREE & Printable
- How to Master All the Properties of Definite Integrals
- How to Find the Increasing or Decreasing Functions?
- Grade 4 Informational Reading: Main Idea, Supporting Details, and Text Structure Strategies
- Contagion, Convergence, and Emergent Norms


What people say about "Inverse Matrix Calculator with Steps (2×2 to 5×5)"?
No one replied yet.