Skip to content
    Algebra

    How to Find the Inverse of a 2×2 Matrix

    Dividing by 5 undoes multiplying by 5. But you can't divide by a matrix, so how do you undo one? You use its inverse. For a 2×2 matrix there is a quick recipe: swap, change signs, divide. This guide walks you through it and shows how to check your answer.

    Math Solver Academic Editorial Board4 min read

    Key takeaways

    • A⁻¹ = (1 ÷ (ad − bc)) × [d −b; −c a].
    • Swap a and d, change the signs of b and c, then divide everything by the determinant.
    • If ad − bc = 0, the matrix is singular and has no inverse.
    • Check: A × A⁻¹ must equal [1 0; 0 1].
    In this guide
    1. 01What is a matrix inverse?
    2. 02Why does the inverse matter?
    3. 03The formula
    4. 04How to find the inverse step by step
    5. 05Common mistakes to avoid
    6. 06Tips and tricks
    7. 07Where you'll use it in real life
    8. 08Quick summary
    9. 09Worked example
    10. 10Frequently asked questions

    What is a matrix inverse?

    For numbers, 5 × (1/5) = 1. For matrices, the inverse A⁻¹ is the matrix that gives the identity matrix when multiplied by A. So A × A⁻¹ = I.

    If A scrambles something, A⁻¹ unscrambles it.

    Why does the inverse matter?

    The inverse lets you solve matrix equations. If A × x = b, then x = A⁻¹ × b, just as 5x = 20 gives x = 20 ÷ 5. This is how computers solve systems of equations, undo transformations and decode messages.

    Not every matrix can be undone. If the determinant is 0, the matrix has squashed information flat, and nothing can bring it back.

    The formula

    A⁻¹ = (1 ÷ (ad − bc)) × [d −b; −c a]
    SymbolWhat it meansExample
    a, b, c, dEntries of A = [a b; c d]2, 1, 5, 3
    ad − bcThe determinant, must not be 01
    [d −b; −c a]Swap a and d, flip signs of b and c[3 −1; −5 2]
    A⁻¹The inverse matrix[3 −1; −5 2]

    The calculator shows the full inverse matrix in its steps. The main result is the top-left entry, d ÷ det. If the determinant is 0, it tells you the matrix is singular.

    How to find the inverse step by step

    1. 1Find the determinant. ad − bc. If it is 0, stop: there is no inverse.
    2. 2Swap a and d. They trade places on the main diagonal.
    3. 3Change the signs of b and c. They stay in place, but positive becomes negative and negative becomes positive.
    4. 4Divide every entry by the determinant.
    5. 5Check. Multiply A by your answer. You should get [1 0; 0 1].

    Enter your own matrix in the calculator below to see the full inverse.

    Try it yourself

    Pre-filled with the example — change any value.

    🧮
    Linear Algebra
    University

    2×2 Matrix Inverse

    Find the inverse of a 2×2 matrix

    A⁻¹ = (1/det) × [d -b; -c a], det = ad - bc

    a = 2Active Variable
    Dynamic Formula Model
    120
    121
    120
    120

    💡 Example

    Reference
    Inputs:a=4, b=7, c=2, d=6
    Result:0.6
    Open the full 2×2 Matrix Inverse calculator

    Common mistakes to avoid

    • Forgetting to divide by the determinant. The swapped matrix alone is not the inverse unless the determinant is 1.
    • Sign errors. If b is −3, then −b is +3.
    • Trying to invert a singular matrix. Always check the determinant first.

    Tips and tricks

    • Determinant of 1? Then the inverse is just the swap-and-flip matrix, with no fractions.
    • Keep fractions if the determinant does not divide neatly, for example 1/3 instead of 0.333.
    • Inverse of the inverse is the original matrix: (A⁻¹)⁻¹ = A.

    Where you'll use it in real life

    • Algebra: solving two simultaneous equations with x = A⁻¹b.
    • Graphics: undoing a rotation or stretch.
    • Codes: decoding messages that were scrambled with a matrix.
    • Economics: input–output models that link different industries.

    Quick summary

    To invert a 2×2 matrix, find the determinant, swap a and d, change the signs of b and c, and divide by the determinant. If the determinant is 0, there is no inverse. Use the calculator above to get the full inverse with every step shown.

    Worked example

    A simple secret code scrambles pairs of numbers using the matrix [2 1; 5 3]. To decode messages, you need the inverse matrix.

    1. 01det = ad - bc
    2. 02det = (2)(3) - (1)(5) = 1
    3. 03A⁻¹ = (1/1) × [3 -1; -5 2]
    4. 04A⁻¹ = [3 -1; -5 2]

    These numbers are pre-filled in the calculator above.

    Frequently asked questions

    When does a 2×2 matrix have no inverse?

    When its determinant ad − bc equals 0. Such a matrix is called singular.

    How do I check if my inverse is correct?

    Multiply the original matrix by your inverse. If the answer is [1 0; 0 1], the inverse is correct.

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

    The determinant is 2 × 3 − 1 × 5 = 1, so the inverse is simply [3 −1; −5 2].

    #Linear Algebra#University#2×2 Matrix Inverse
    Updated

    Keep reading

    Sponsored ToolsAd

    More tools on Ytools →
    Calcu.click — 25+ Free Smart Calculators preview

    Calcu.click — 25+ Free Smart Calculators

    Brand new calculation platform with 0ms reactive math, 100% client-side privacy, and dedicated subdomains. Fast calculators for EMI, SIP, Mortgage, Income Tax, BMI, Age, Percentage, and more.

    25+ CalculatorsFinanceHealth0ms Real-TimeFree
    Keyboard Arena preview

    Keyboard Arena

    Master touch typing with real-time WPM speed tests, mechanical switch audio, A-Z finger biomechanics drills, 40+ structured lessons, and competitive arcade games.

    Typing TestWPMTouch Typing
    Flutter Log Explorer preview

    Flutter Log Explorer

    Real-time structured log viewer and search explorer for Flutter & Dart. Zero-config capture from Debug Adapter (DAP) & Dart VM Service with smart classification and filters.

    FlutterDartVS Code ExtensionOpen VSX