StatGardenREF. DESK
Calculators/Maths/2×2 matrix inverse
Maths

2×2 matrix inverse calculator

Inverse of a 2×2 matrix using the adjugate formula.

Published 6 August 2026 · Updated 23 September 2026

What this calculator does

Inverting a 2x2 matrix is one of the few matrix operations with a genuinely memorable shortcut: swap the diagonal entries, negate the other two, and divide everything by the determinant.

The determinant has to be non-zero for any of it to work. A matrix with rows 4, 7 and 2, 6 has a determinant of 10.000 and inverts to rows 0.6000, −0.7000 and −0.2000, 0.4000.

The formula

FormulaA⁻¹ = 1/det(A) × [[d,−b],[−c,a]] where det(A) = ad − bc

The determinant is ad minus bc. The adjugate swaps a and d and negates b and c, and dividing the adjugate by the determinant gives the inverse.

TermMeaning
InverseThe matrix that multiplies with the original to give the identity.
AdjugateThe swapped and negated matrix, before dividing by the determinant.
Identity matrixOnes on the diagonal and zeros elsewhere, the matrix equivalent of 1.

The inputs explained

FieldWhat to enter
Row 1, Col 1 (a)Row 1, column 1.
Row 1, Col 2 (b)Row 1, column 2.
Row 2, Col 1 (c)Row 2, column 1.
Row 2, Col 2 (d)Row 2, column 2.

When to use it

Solving a two-equation system

Multiplying by the inverse solves the system directly.

Reversing a transformation

The inverse undoes whatever the original matrix did.

Checking invertibility

A zero determinant means the operation cannot be performed at all.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How does the determinant scale the inverse?

The same matrix with the first entry varied.

Rows [a, 7], [2, 6]
Entry aDeterminantRow 1
34.0001.500, -1.750
410.0000.6000, -0.7000
622.0000.2727, -0.3182
With a = 4 the determinant is 10.000 and the first row of the inverse is 0.6000, −0.7000. Raising a to 6 lifts the determinant to 22.000, and every entry of the inverse shrinks in proportion.

Questions

Why does the shortcut work?

It is the general adjugate formula applied to the smallest case. For a 2x2 the cofactor matrix happens to be the simple swap and negation, which is why the rule is easy to remember and why it does not generalise to larger matrices.

What if the determinant is zero?

No inverse exists. The transformation has collapsed the plane onto a line, so there is no way to recover the original points, and dividing by zero in the formula reflects that directly.

How are larger matrices inverted?

Usually by Gauss-Jordan elimination rather than by adjugate, since the adjugate method becomes computationally impractical beyond 3x3. Numerical libraries use factorisation methods for anything substantial.

Does matrix multiplication commute here?

For a matrix and its own inverse, yes: multiplying in either order gives the identity. In general matrix multiplication does not commute, and this is one of the exceptions.

For the determinant on its own, see the determinant calculator. For solving two equations directly, see the linear system calculator.