Free calculator

2×2 Determinant and Inverse Matrix Calculator

The determinant ad − bc and the inverse of any 2×2 matrix, in exact fractions, with a check that A × A⁻¹ really is the identity.

For a 2×2 matrix with entries a, b, c, d, the determinant is ad − bc. If it is not zero, the inverse swaps a and d, negates b and c, and divides everything by the determinant. For [[4, 7], [2, 6]] the determinant is 24 − 14 = 10 and the inverse is [[0.6, −0.7], [−0.2, 0.4]].

Try it now

Updates as you type
Determinant 10 Inverse 35−710−1525 det = 10 is not zero, so the matrix is invertible.

Step by step

  1. The determinant of a 2×2 matrix is ad − bc: the down diagonal minus the up diagonal
    4726 = 4 × 6 − 7 × 2
  2. Multiply out
    24 − 14 = 10
  3. Swap a and d, and change the signs of b and c
    adj A = 6−7−24
  4. Multiply by 1 / det, that is, divide every entry by 10
    A⁻¹ = 110 6−7−24 = 35−710−1525
  5. Check: A × A⁻¹ should be the identity matrix
    4726 35−710−1525 = 1001

Also worth knowing

Area scale factor
10

The formula, and why it works

For A = [[a, b], [c, d]], the inverse is A⁻¹ = 1/(ad − bc) × [[d, −b], [−c, a]]. The matrix on the right is the adjugate: swap the diagonal, flip the signs of the off-diagonal.

You can check it by multiplying. A times the adjugate gives (ad − bc) times the identity, so dividing by ad − bc gives the identity itself. That is exactly why the determinant has to be non-zero: it is the number you divide by.

When there is no inverse

If ad − bc = 0 the matrix is singular. Geometrically, the two rows (or columns) point along the same line, so the matrix squashes the plane onto a line and cannot be undone. [[2, 4], [1, 2]] is an example: the first row is twice the second, and 2 × 2 − 4 × 1 = 0.

The same idea scales up: for 3×3 matrices the test is whether the determinant, found with the rule of Sarrus, is zero.

What the determinant measures

|ad − bc| is the factor by which the matrix scales areas. The unit square becomes a parallelogram of area |ad − bc|; a negative determinant means the picture is also flipped. That link is why determinants show up again in the area of a parallelogram.

Worked examples

Worked examples

Each one is computed by the calculator above, so the answers are the real output.

Inverse of [[4, 7], [2, 6]]

Determinant 10, so every entry of the adjugate is divided by 10 and the inverse has fractional entries.

Determinant 10 Inverse 35−710−1525 det = 10 is not zero, so the matrix is invertible.

Step by step

  1. The determinant of a 2×2 matrix is ad − bc: the down diagonal minus the up diagonal
    4726 = 4 × 6 − 7 × 2
  2. Multiply out
    24 − 14 = 10
  3. Swap a and d, and change the signs of b and c
    adj A = 6−7−24
  4. Multiply by 1 / det, that is, divide every entry by 10
    A⁻¹ = 110 6−7−24 = 35−710−1525
  5. Check: A × A⁻¹ should be the identity matrix
    4726 35−710−1525 = 1001

Also worth knowing

Area scale factor
10

Inverse of [[5, 2], [7, 3]]

The determinant is exactly 1, so the inverse has whole-number entries.

Determinant 1 Inverse 3−2−75 det = 1 is not zero, so the matrix is invertible.

Step by step

  1. The determinant of a 2×2 matrix is ad − bc: the down diagonal minus the up diagonal
    5273 = 5 × 3 − 2 × 7
  2. Multiply out
    15 − 14 = 1
  3. Swap a and d, and change the signs of b and c
    adj A = 3−2−75
  4. Multiply by 1 / det, that is, divide every entry by 1
    A⁻¹ = 11 3−2−75 = 3−2−75
  5. Check: A × A⁻¹ should be the identity matrix
    5273 3−2−75 = 1001

Also worth knowing

Area scale factor
1

A singular matrix

Row one is twice row two, the determinant is 0, and no inverse exists.

Determinant 0 Inverse None — the matrix is singular The determinant is 0, so this matrix is singular and has no inverse. Its rows are multiples of each other.

Step by step

  1. The determinant of a 2×2 matrix is ad − bc: the down diagonal minus the up diagonal
    2412 = 2 × 2 − 4 × 1
  2. Multiply out
    4 − 4 = 0

FAQ

Questions people ask

How do you find the inverse of a 2×2 matrix?

Compute the determinant ad − bc, swap a and d, change the signs of b and c, then divide every entry by the determinant.

What is the determinant of a 2×2 matrix?

ad − bc: the product of the main diagonal minus the product of the other diagonal.

Can every matrix be inverted?

No. Only square matrices with a non-zero determinant have an inverse.

How do I check my inverse?

Multiply A by A⁻¹. You should get the identity matrix [[1, 0], [0, 1]].

Related app: Sarrus Rule Calculator

This one lives on the website. The related app below covers the surrounding topic.

Free to download. AI explanations and dark mode are part of the optional PRO subscription.