Skip to main content
Skip to calculator
Advertisement

Last updated: July 31, 2026

Inverse Matrix Calculator

Helpful
Not helpful
Save as image
Share
Embed
Cite
Write feedback

Formula

For A = [[a,b],[c,d]], det(A) = ad - bc and A^-1 = (1/det(A))[[d,-b],[-c,a]] when det(A) ≠ 0.

Where:

  • a=Top-left matrix element(unitless)
  • b=Top-right matrix element(unitless)
  • c=Bottom-left matrix element(unitless)
  • d=Bottom-right matrix element(unitless)
  • det(A)=Determinant of the matrix(unitless)
2×2 Matrix InverseA[ a b ][ c d ]det = ad − bcA⁻¹1 / (ad − bc)[ d −b ][ −c a ]A non-zero determinant means the matrix is invertible.

Worked Examples

Standard invertible matrix

Find the inverse of a common textbook 2×2 matrix.

  1. 1Compute det = 4×6 − 7×2 = 10.
  2. 2Swap a and d, then negate b and c.
  3. 3Multiply each entry of [[6,-7],[-2,4]] by 1/10.
Final Answer: det = 10 and A⁻¹ = [[0.6, -0.7], [-0.2, 0.4]]

Identity matrix check

The identity matrix should remain unchanged after inversion.

  1. 1Compute det = 1×1 − 0×0 = 1.
  2. 2Form the adjugate [[1,0],[0,1]].
  3. 3Scale by 1/1, so every element stays the same.
Final Answer: det = 1 and A⁻¹ = [[1, 0], [0, 1]]

Decimal matrix example

Use decimal entries to confirm the calculator handles fractional data.

  1. 1Compute det = 2.5×3 − 1.5×0.5 = 6.75.
  2. 2Build [[3,-1.5],[-0.5,2.5]].
  3. 3Divide each element by 6.75 and round to six decimals.
Final Answer: det = 6.75 and inverse elements are approximately 0.444444, -0.222222, -0.074074, and 0.37037

Singular matrix warning

A zero determinant means the matrix has no inverse.

  1. 1Compute det = 1×4 − 2×2 = 0.
  2. 2A zero determinant fails the invertibility check.
  3. 3The calculator returns an error instead of matrix elements.
Final Answer: No inverse exists because the matrix is singular.

Introduction

The inverse matrix calculator focuses on 2×2 matrices and returns both the determinant and each element of the inverse. It is useful when you want a quick check for invertibility before solving linear systems or composing transformations. Because the inverse formula depends on the determinant, the calculator also clearly flags singular matrices.

What the calculator computes

This tool uses the closed-form inverse formula for a 2×2 matrix, so the answer appears instantly without row reduction.

  • Accepts four real-valued matrix entries.

  • Computes the determinant first.

  • Rejects singular matrices with determinant zero.

  • Returns every inverse entry separately.

  • Rounds outputs to six decimal places.

  • Works well for quick algebra checks.

Formula breakdown

The inverse of a 2×2 matrix exists only when the determinant is non-zero.

  • Start with A = [[a,b],[c,d]].

  • Compute det(A) = ad − bc.

  • Swap the main diagonal entries a and d.

  • Change the signs of b and c.

  • Multiply the resulting matrix by 1/det(A).

  • Interpret each entry as part of A⁻¹.

How to enter values

Each input corresponds to one position in the matrix, so careful placement matters.

  1. 1

    Enter a for row 1, column 1.

  2. 2

    Enter b for row 1, column 2.

  3. 3

    Enter c for row 2, column 1.

  4. 4

    Enter d for row 2, column 2.

  5. 5

    Use decimals when your matrix includes them.

  6. 6

    Keep the row and column order consistent.

Why the determinant matters

The determinant tells you whether the matrix can be inverted and how strongly it scales area.

  • det(A) = 0 means no inverse exists.

  • A small determinant can produce large inverse entries.

  • A negative determinant flips orientation.

  • A positive determinant preserves orientation.

  • Determinant size affects numerical stability.

  • Checking det(A) prevents undefined math.

If the determinant is exactly zero, the matrix is singular and the inverse is undefined.

Reading the outputs

The determinant is a supporting output while the four inverse entries form the actual inverse matrix.

  • invA is the top-left inverse element.

  • invB is the top-right inverse element.

  • invC is the bottom-left inverse element.

  • invD is the bottom-right inverse element.

  • Use the four entries to rebuild A⁻¹.

  • Multiply A by A⁻¹ to verify the identity matrix.

Common mistakes to avoid

Most errors come from entering entries in the wrong positions or ignoring the determinant check.

  • Swapping b and c accidentally.

  • Forgetting to negate both off-diagonal terms.

  • Dividing by the wrong determinant.

  • Using a singular matrix.

  • Rounding too early during manual verification.

  • Reading rows as columns.

Typical applications

2×2 inverses appear in introductory linear algebra and many applied problems.

  • Solving two-variable linear systems.

  • Undoing simple coordinate transforms.

  • Checking invertibility in matrix algebra.

  • Analyzing 2D graphics transformations.

  • Verifying classroom homework.

  • Supporting determinant and adjugate studies.

FAQs

What does the inverse matrix calculator return?

It returns the determinant and the four entries of the inverse matrix for a 2×2 matrix.

When does a 2×2 matrix have an inverse?

A 2×2 matrix has an inverse exactly when its determinant ad − bc is not zero.

Why is the determinant shown separately?

The determinant explains whether the inverse exists and is the scaling factor used in the inverse formula.

Can I enter decimal values?

Yes. The calculator accepts decimal inputs and rounds the outputs to six decimal places.

What happens for a singular matrix?

The calculator returns zeros in the numeric fields and an error message because dividing by zero would be undefined.

How can I verify the result manually?

Multiply the original matrix by the returned inverse matrix. A correct inverse gives the identity matrix.

Is this calculator for larger matrices?

No. This implementation is specifically for 2×2 matrices only.