Matrix Inverse Calculator (2×2)
Matrix [[a, b], [c, d]]
- Determinant = ad − bc = 4 × 6 − 7 × 2 = 10. It is not zero, so the inverse exists.
- Swap the diagonal entries (4 and 6), negate the off-diagonal entries (7 and 2), then multiply everything by 1 ÷ 10 = 0.1.
- That gives the inverse [0.6, -0.7; -0.2, 0.4] — multiplying it by the original matrix returns the identity matrix [[1, 0], [0, 1]].
This matrix inverse calculator finds the inverse of any 2×2 matrix [[a, b], [c, d]] by applying the standard formula: the inverse equals (1 ÷ (ad − bc)) × [[d, −b], [−c, a]]. In other words, it swaps the diagonal entries, negates the off-diagonal entries, and divides everything by the determinant. If the determinant is 0, the matrix is singular and has no inverse — its rows are proportional and it collapses the plane onto a line. When an inverse exists, multiplying the original matrix by it returns the identity matrix [[1, 0], [0, 1]], which is how any computed inverse can be checked.
The swap-negate-divide method is the accepted standard for inverting a 2×2 matrix because it is exact, fast, and easy to verify. It has been confirmed across examples: [[4, 7], [2, 6]] has determinant 10 and inverse [0.6, -0.7; -0.2, 0.4]; [[1, 2], [3, 4]] has determinant −2 and inverse [-2, 1; 1.5, -0.5]; and [[2, 5], [1, 3]] has determinant exactly 1, so its inverse is the whole-number matrix [3, -5; -1, 2]. This page shows the formula, step-by-step workings, worked examples, and sources so you can follow every calculation with confidence.
Worked examples
Determinant 10
Primary result: [0.6, -0.7; -0.2, 0.4]. (4 · 7 · 2 · 6)
| Inverse matrix | [0.6, -0.7; -0.2, 0.4] |
| Determinant | 10 |
| 1 ÷ determinant | 0.1 |
Negative determinant
Primary result: [-2, 1; 1.5, -0.5] — the sign flips ride along with 1 ÷ det. (1 · 2 · 3 · 4)
| Inverse matrix | [-2, 1; 1.5, -0.5] |
| Determinant | -2 |
| 1 ÷ determinant | -0.5 |
Determinant exactly 1
Primary result: [3, -5; -1, 2] — whole numbers in, whole numbers out. (2 · 5 · 1 · 3)
| Inverse matrix | [3, -5; -1, 2] |
| Determinant | 1 |
| 1 ÷ determinant | 1 |
The 2×2 inverse formula
For a 2×2 matrix [[a, b], [c, d]], the inverse is (1 ÷ (ad − bc)) × [[d, −b], [−c, a]]. The pattern is easy to remember once you break it into three steps: swap the diagonal entries, negate the off-diagonal entries, and divide every entry by the determinant. The determinant itself is the value (ad − bc). If that value is zero, the matrix is singular and has no inverse — its rows are proportional and it collapses the plane onto a line, so there is no way to reverse the operation.
To see the formula in action, take the matrix [[4, 7], [2, 6]]. Here a = 4, b = 7, c = 2, and d = 6. First compute the determinant: ad − bc = (4 × 6) − (7 × 2) = 24 − 14 = 10. Because the determinant is nonzero, an inverse exists. Now apply the swap-and-negate pattern to the entries. Swap the diagonal: a and d trade places, so you start with [[6, …], […, 4]]. Negate the off-diagonal: b becomes −7 and c becomes −2, giving [[6, −7], [−2, 4]]. Finally, divide every entry by the determinant of 10. The result is [[0.6, −0.7], [−0.2, 0.4]], which matches the verified inverse of [[4, 7], [2, 6]].
The same steps work regardless of the sign or size of the determinant. The matrix [[1, 2], [3, 4]] has determinant −2, and dividing the swapped-and-negated entries by −2 produces the inverse [[−2, 1], [1.5, −0.5]]. When the determinant happens to be exactly 1, the division step changes nothing. The matrix [[2, 5], [1, 3]] has determinant 1, so its inverse is simply the whole-number matrix [[3, −5], [−1, 2]] — no fractions required.
Any result from a matrix inverse calculator can be checked by multiplying the original matrix by the computed inverse. If the entries are correct, the product is the identity matrix [[1, 0], [0, 1]]. For the [[4, 7], [2, 6]] example, multiplying [[4, 7], [2, 6]] by [[0.6, −0.7], [−0.2, 0.4]] yields [[1, 0], [0, 1]], confirming the inverse is right. This check works for every invertible 2×2 matrix and is a reliable way to verify your work before relying on the result.
Worked examples
The table below shows three verified 2×2 matrices run through the standard formula. For any 2×2 matrix [[a, b], [c, d]], the inverse is (1 ÷ (ad − bc)) × [[d, −b], [−c, a]]: swap the diagonal, negate the off-diagonal, divide by the determinant. Each example below highlights a different situation you will encounter when using a matrix inverse calculator.
The first matrix, [[4, 7], [2, 6]], has determinant 10. The formula divides every swapped-and-negated entry by 10, producing the inverse [0.6, -0.7; -0.2, 0.4]. The second matrix, [[1, 2], [3, 4]], has determinant −2. Here the negative determinant flips signs throughout the result, giving the inverse [-2, 1; 1.5, -0.5]. The third matrix, [[2, 5], [1, 3]], has determinant exactly 1, so no division is needed and its inverse is the whole-number matrix [3, -5; -1, 2]. This is the cleanest case, since dividing by 1 leaves every entry unchanged.
A matrix with determinant 0 is singular and has no inverse — its rows are proportional and it collapses the plane onto a line. None of the three examples above fall into that category, but any matrix inverse calculator will reject a singular input because the formula requires division by the determinant.
To confirm any result, multiply the original matrix by its inverse. The product must equal the identity matrix [[1, 0], [0, 1]], which is how any computed inverse can be checked. If even one entry is off, the inverse is wrong.
| Matrix | Determinant | Inverse |
|---|---|---|
| [[4, 7], [2, 6]] | 10 | [0.6, -0.7; -0.2, 0.4] |
| [[1, 2], [3, 4]] | −2 | [-2, 1; 1.5, -0.5] |
| [[2, 5], [1, 3]] | 1 | [3, -5; -1, 2] |
Checking your answer
The most reliable way to confirm your result from a matrix inverse calculator is to multiply the inverse by the original matrix. When you do this correctly, the product should be the identity matrix [[1, 0], [0, 1]]. This works because a matrix and its inverse are mathematical opposites — together, they undo each other and leave you with the identity matrix, which acts like the number 1 does in regular multiplication.
Let us walk through this verification using a concrete example. Take the matrix [[4, 7], [2, 6]], which has a determinant of 10 and an inverse of [[0.6, -0.7], [-0.2, 0.4]]. To check the inverse, multiply the inverse by the original. The top-left entry of the product comes from (0.6 × 4) + (-0.7 × 2), which equals 2.4 minus 1.4, giving 1. The top-right entry comes from (0.6 × 7) + (-0.7 × 6), which equals 4.2 minus 4.2, giving 0. The bottom-left entry comes from (-0.2 × 4) + (0.4 × 2), which equals -0.8 plus 0.8, giving 0. The bottom-right entry comes from (-0.2 × 7) + (0.4 × 6), which equals -1.4 plus 2.4, giving 1. The result is [[1, 0], [0, 1]], the identity matrix, confirming that the inverse is correct.
You can apply this same check to any 2×2 inverse. The formula for a 2×2 matrix [[a, b], [c, d]] gives the inverse as (1 ÷ (ad − bc)) × [[d, −b], [−c, a]], meaning you swap the diagonal entries, negate the off-diagonal entries, and divide everything by the determinant. Once you have that inverse, multiplying it by the original matrix should always return the identity matrix. If any entry is off, the inverse was computed incorrectly and you should try again.
One important exception exists. A matrix with determinant 0 is singular and has no inverse at all. Its rows are proportional, meaning the matrix collapses the plane onto a line rather than preserving its full structure. In this situation, no inverse exists to multiply by, and a matrix inverse calculator should alert you that the matrix is not invertible rather than giving you a result.
When there is no inverse
For a 2×2 matrix [[a, b], [c, d]], the inverse is (1 ÷ (ad − bc)) × [[d, −b], [−c, a]]: swap the diagonal, negate the off-diagonal, divide by the determinant. The determinant (ad − bc) sits in the denominator, so if that value is zero, the formula breaks down. A matrix with determinant 0 is singular and has no inverse — its rows are proportional and it collapses the plane onto a line. No matter what you multiply it by, you cannot recover the original input, so no inverse exists to find.
Proportional rows are the clearest warning sign. When the second row is simply a multiple of the first (or the second column a multiple of the first), the two rows carry the same directional information rather than pointing in two independent directions. That redundancy makes the determinant zero and renders the matrix singular. A matrix inverse calculator will detect this condition and report that the inverse does not exist, because dividing by zero is undefined.
Geometrically, a singular 2×2 matrix squashes the entire two-dimensional plane onto a single line. Every input point maps to some point on that line, and the mapping is irreversible — you cannot look at a point on the line and determine which original point it came from. This collapse is why the inverse fails: reversing the operation would require un-squashing the line back into a full plane, which is impossible when information has been lost.
For systems of equations, singularity has a direct practical meaning. A 2×2 matrix represents a system of two linear equations in two variables, and the inverse is what you would use to solve that system. When the determinant is zero, the equations are dependent — they describe the same line rather than two lines crossing at a single point. The system either has infinitely many solutions (the equations overlap) or no solution at all (the lines are parallel and never meet). In neither case does a unique solution exist, so the inverse approach cannot produce one.
To confirm that any computed inverse is correct, multiply the original matrix by the proposed inverse and check whether the result is the identity matrix [[1, 0], [0, 1]]. This check works for every invertible matrix. For a singular matrix, no such inverse will ever pass this test, because the identity matrix requires full two-dimensional information that a collapsed, rank-deficient matrix cannot provide.
Why negative determinants flip signs
When you use a matrix inverse calculator, you may notice that matrices with negative determinants produce inverses where the signs look flipped compared with what you might expect. The reason comes down to the formula itself. For a 2×2 matrix [[a, b], [c, d]], the inverse is (1 ÷ (ad − bc)) × [[d, −b], [−c, a]]. You swap the diagonal entries, negate the off-diagonal entries, and then divide every term by the determinant. That leading factor of 1 ÷ (ad − bc) is where a negative determinant has its effect.
Consider the matrix [[1, 2], [3, 4]]. Its determinant is (1 × 4) − (2 × 3), which equals −2. The inverse is therefore (1 ÷ −2) × [[4, −2], [−3, 1]], giving [[−2, 1], [1.5, −0.5]]. Every entry in the swapped-and-negated matrix gets divided by −2, so positive entries become negative and negative entries become positive. That is the sign flip users notice. It is not an error in the calculator; it is the arithmetic working exactly as the formula requires.
Contrast this with a matrix whose determinant is positive. The matrix [[4, 7], [2, 6]] has determinant (4 × 6) − (7 × 2), which equals 10. Its inverse is (1 ÷ 10) × [[6, −7], [−2, 4]], yielding [[0.6, −0.7], [−0.2, 0.4]]. Here the 1 ÷ 10 factor shrinks every entry but does not change any signs. A third example makes the point even more cleanly: [[2, 5], [1, 3]] has determinant exactly 1, so dividing by 1 changes nothing, and the inverse is simply the whole-number matrix [[3, −5], [−1, 2]].
Geometrically, a negative determinant means the matrix reverses orientation. Picture a grid drawn on a sheet of paper: a matrix with a positive determinant stretches or shears that grid but keeps the arrows pointing the same way overall, while a matrix with a negative determinant flips the grid the way a mirror reflection does. When the determinant is −2, as in the second example, the matrix both reflects the plane and scales area by a factor of 2. The inverse has to undo that transformation, so it must reflect the plane back and scale area by a factor of 1 ÷ 2. That required reflection is why the signs flip in the inverse.
You can confirm any computed inverse by multiplying it with the original matrix. The result should be the identity matrix [[1, 0], [0, 1]]. For [[1, 2], [3, 4]] and its inverse [[−2, 1], [1.5, −0.5]], the product checks out exactly. A matrix with determinant 0 is singular and has no inverse — its rows are proportional and it collapses the plane onto a line, so there is nothing to reverse.
Where inverses are used
Matrix inverses are used to solve systems of linear equations. When you have a system written in matrix form, multiplying both sides by the inverse matrix isolates the variable vector and gives you the solution directly. For a 2×2 matrix, this is practical because the inverse follows a compact formula: swap the diagonal entries, negate the off-diagonal entries, and divide by the determinant. Our matrix inverse calculator applies this automatically, but understanding the mechanics helps you interpret the results.
In computer graphics, inverse matrices are essential for reversing transformations. If a rotation, scaling, or shear matrix has been applied to a set of points, multiplying by the inverse matrix undoes that transformation and returns the points to their original positions. This only works when the determinant is nonzero. A matrix with determinant 0 is singular and has no inverse, because its rows are proportional and it collapses the plane onto a line. In that case, information has been lost and the original positions cannot be recovered.
The 2×2 formula is efficient because there are only four entries to process and one determinant to calculate. For larger matrices, no comparable memorized formula exists. A 3×3 matrix requires computing multiple cofactors, and a 4×4 or larger matrix becomes impractical to invert by hand using any closed-form expression. Instead, row reduction is the standard method: you augment the original matrix with the identity matrix and apply elementary row operations until the left side becomes the identity. Whatever appears on the right side is the inverse. This procedure scales to any size and avoids the exponential complexity of expanding formulas.
You can verify any inverse by multiplying it with the original matrix. The product should be the identity matrix [[1, 0], [0, 1]], which confirms the inverse was computed correctly. For example, [[4, 7], [2, 6]] has determinant 10 and inverse [0.6, -0.7; -0.2, 0.4]. Multiplying these together returns the identity. Similarly, [[1, 2], [3, 4]] has determinant −2 and inverse [-2, 1; 1.5, -0.5]. When the determinant is exactly 1, the arithmetic is especially clean: [[2, 5], [1, 3]] has determinant 1, so its inverse is the whole-number matrix [3, -5; -1, 2].
FAQs
How do you find the inverse of a 2×2 matrix?
Divide [[d, −b], [−c, a]] by the determinant ad − bc. For example, [[4, 7], [2, 6]] gives [0.6, -0.7; -0.2, 0.4]. This works by swapping the diagonal elements, negating the off-diagonal elements, and dividing each entry by the determinant.
When does a matrix have no inverse?
When its determinant is 0, the matrix is singular and its rows are proportional. A zero determinant means division by zero would occur in the inverse formula, so no inverse exists. You can check this before attempting to compute the inverse.
What is the inverse of [[1, 2], [3, 4]]?
The inverse is [-2, 1; 1.5, -0.5], since the determinant is −2. Apply the formula by dividing [[4, −2], [−3, 1]] by −2, which gives each entry of the result. This inverse will multiply with the original to produce the identity matrix.
How can I check an inverse matrix?
Multiply it by the original matrix: the product must be the identity matrix [[1, 0], [0, 1]]. This works in either order, since multiplying a matrix by its inverse always yields the identity. If you get anything else, recheck your inverse calculation.
Can a matrix with determinant 1 have a whole-number inverse?
Yes — [[2, 5], [1, 3]] has determinant 1 and inverse [3, -5; -1, 2], all integers. When the determinant equals 1, dividing by the determinant changes nothing, so the inverse entries stay whole numbers. This is common in matrices used in number theory.
Is the inverse the same as the transpose?
No — the transpose only flips rows and columns; the inverse must multiply with the original to give the identity. The transpose is a structural rearrangement, while the inverse reverses the effect of the matrix. They are equal only for orthogonal matrices, which is a special case.