What do you multiply 5 by to get 1? The answer is 1/5, or 0.2, and matrices follow the same idea. The inverse of a matrix undoes it, and a 2×2 inverse takes just four quick steps. This guide walks through the method, a full worked example, and the one number that decides everything.
To invert a 2×2 matrix, swap a and d, negate b and c, then divide every entry by the determinant, ad – bc. A determinant of 0 means the matrix has no inverse at all. For a 3×3, row reduce [A | I] until the left half becomes I, and the right half is the inverse.
What Does the Inverse of a Matrix Do?
The inverse of a square matrix A is another matrix, written A^-1, that undoes A. Multiply them in either order and you get the identity matrix, I. The identity acts like the number 1 for matrices.
The identity has 1s down its main diagonal and 0s everywhere else. For a 2×2, its rows are 1, 0 and 0, 1. Multiplying any matrix by I leaves it unchanged, just as multiplying a number by 1 does.
Matrices have no division sign, so the inverse does that job instead. Every check in this guide uses row-by-column products, which our guide to how matrix multiplication works explains step by step.
Two rules frame everything that follows. Only a square matrix can have a true inverse. Even then, it needs a determinant that is not zero.
Swap, Negate, Divide: The 2×2 Recipe
For a 2×2 matrix with rows a, b and c, d, the inverse has a short formula. It equals 1 / (ad – bc) times the matrix with rows d, -b and -c, a.
| Step | What you do | For rows a, b and c, d |
|---|---|---|
| 1. Determinant | Multiply each diagonal and subtract | ad – bc |
| 2. Check | Stop when the determinant is 0 | No inverse exists |
| 3. Swap | Trade the two main diagonal entries | a and d switch places |
| 4. Negate | Flip the signs of the other two | b becomes -b, c becomes -c |
| 5. Divide | Divide all four entries by the determinant | Each entry / (ad – bc) |
The swapped and negated matrix, before dividing, is called the adjugate. Larger matrices build it from cofactors, but the 2×2 trick makes it in one move.
Why does the determinant sit under the fraction? Multiply A by its adjugate and you get the determinant times I. Dividing by the determinant scales that product back down to I.
Inverting the Matrix With Rows 4, 7 and 2, 6
Let’s invert the matrix with rows 4, 7 and 2, 6. Our calculator page uses this same example, so you can compare every number.
Step 1: Find the Determinant
Multiply the main diagonal, then subtract the other diagonal: 4 x 6 – 7 x 2 = 24 – 14 = 10. The determinant is 10, not 0, so an inverse exists.
Step 2: Swap, Negate, and Divide
Swap the 4 and the 6, then negate the 7 and the 2. That gives rows 6, -7 and -2, 4. Divide each entry by 10 to get rows 0.6, -0.7 and -0.2, 0.4.
Step 3: Check With the Identity
Multiply the original by the answer, row by column. Row 1 times column 1 gives 4 x 0.6 + 7 x (-0.2) = 2.4 – 1.4 = 1. Row 1 times column 2 gives 4 x (-0.7) + 7 x 0.4 = -2.8 + 2.8 = 0.
Row 2 gives 2 x 0.6 + 6 x (-0.2) = 0 and 2 x (-0.7) + 6 x 0.4 = 1. The product has rows 1, 0 and 0, 1, which is I, so the inverse is correct.
Step 4: Solve a System With It
Take the system 4x + 7y = 15 and 2x + 6y = 10. In matrix form it reads Ax = b, where b holds 15 and 10. Multiply the inverse by b: 0.6 x 15 – 0.7 x 10 = 2, and -0.2 x 15 + 0.4 x 10 = 1.
So x = 2 and y = 1. Plug them back in: 4(2) + 7(1) = 15 and 2(2) + 6(1) = 10. Both equations check out.
The Inverse Matrix Calculator returns the inverse, the determinant, and an invertibility check for any 2×2 or 3×3 matrix. It shows each inverse entry rounded to five decimals.
How Do You Invert a 3×3 Matrix?
Write the matrix beside the identity as [A | I], then use row moves until the left half becomes I. The right half is then A^-1. This method is called Gauss-Jordan elimination.
Three row moves are allowed. You can swap two rows, multiply a row by a nonzero number, or add a multiple of one row to another. Each move changes both halves at once.
A 3×3 Example, Step by Step
Take A with rows 1, 2, 3 and 0, 1, 4 and 5, 6, 0. This is the 3×3 preset on our calculator page. Five row moves finish the job:
- Row 3 minus 5 times row 1 turns the left side of row 3 into 0, -4, -15.
- Row 3 plus 4 times row 2 turns it into 0, 0, 1.
- Row 2 minus 4 times row 3 turns row 2 into 0, 1, 0.
- Row 1 minus 3 times row 3 turns row 1 into 1, 2, 0.
- Row 1 minus 2 times row 2 turns row 1 into 1, 0, 0.
The right half now holds the inverse. Its rows are -24, 18, 5 and 20, -15, -4 and -5, 4, 1. Multiply it by A and you get the 3×3 identity.
The Adjugate Route
The second method mirrors the 2×2 recipe. Find the determinant, build the matrix of nine cofactors, and transpose it to get the adjugate. Then divide by the determinant.
Here the determinant is 1(0 – 24) – 2(0 – 20) + 3(0 – 5) = -24 + 40 – 15 = 1. Since it equals 1, the adjugate is the inverse itself. During elimination, a row of zeros on the left side means the matrix is singular.
Where Inverse Calculations Slip
Most wrong inverses come from a few small habits. Each one below has a quick fix.
- Skipping the determinant check. The matrix with rows 1, 2 and 2, 4 has determinant 1 x 4 – 2 x 2 = 0. Its second row is double the first, so no inverse exists.
- Forgetting to divide. Rows 6, -7 and -2, 4 form the adjugate, not the inverse. Multiply that by A and you get 10 times I instead of I.
- Moving the wrong pair. Only a and d trade places. The entries b and c stay where they are and just change sign.
- Dropping the transpose. The 3×3 adjugate is the cofactor matrix flipped across its diagonal. Skip the flip and most answers come out wrong.
- Expecting A times A to give I. Only A times A^-1 gives the identity. A matrix times itself is a different product entirely.
- Rounding too early. The matrix with rows 1, 2 and 2, 4.01 has determinant 0.01. Its inverse has rows 401, -200 and -200, 100.
That last case has a name. A matrix close to singular is called ill-conditioned, and tiny input changes swing its inverse widely. Keep full precision until the final step.
When Should You Use an Inverse to Solve Ax = b?
Use the inverse when you need to solve Ax = b for several b vectors with the same A. Find A^-1 once, and each new answer takes one multiplication.
| Determinant | Inverse | Solutions of Ax = b |
|---|---|---|
| Not zero | Exists and is unique | Exactly one |
| Zero | Does not exist | None, or infinitely many |
For a single system, elimination on [A | b] carries one extra column instead of a full identity. That makes it shorter than building the whole inverse. For hand work on a 2×2, the swap, negate, divide recipe stays the fastest route.
You can test the determinant alone with our determinant calculator. For the full inverse and an invertibility check in one pass, enter your numbers in the 2×2 and 3×3 inverse matrix tool.
Common Questions About Matrix Inverses
Does Every Square Matrix Have an Inverse?
No. Only a square matrix with a nonzero determinant has one. The matrix with rows 1, 2 and 2, 4 has determinant 0, so it has no inverse and is called singular.
Can a Non-Square Matrix Have an Inverse?
Not a true two-sided inverse. The rule AB = BA = I only works when both products are the same size, which needs square matrices. Non-square matrices have related tools, such as the pseudoinverse.
Is the Inverse of a Matrix Unique?
Yes. When an inverse exists, there is only one, and it works from both sides. A times A^-1 and A^-1 times A both give the identity matrix.
What Is the Inverse of the Identity Matrix?
The identity matrix is its own inverse. Multiplying I by I gives I, because every 1 on the diagonal stays 1 and every 0 stays 0.
How Do I Check That My Inverse Is Right?
Multiply the original matrix by your answer. The result must be the identity, with 1s on the diagonal and 0s everywhere else. Any other entry points to an arithmetic slip.
Why Does a Small Determinant Give Large Inverse Entries?
The inverse divides every adjugate entry by the determinant. A determinant of 0.01 multiplies those entries by 100, which is why rows 1, 2 and 2, 4.01 produce an entry of 401.
References
References Used in This Article
This article is general math education and covers matrices with real-number entries. Every worked answer was checked with exact fraction arithmetic. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated September 27, 2026.
Author
Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.




