CalcSeed

Matrix Inverse Calculator

Enter the four entries of a 2×2 matrix to compute its inverse.

=
Quick answer: with the default inputs (4, 7, 2, 6), the inverse (1,1) is 0.6. At these inputs: inverse (1,2) = -0.7, inverse (2,1) = -0.2. Change any input to update the result.
Inverse (1,1)
—

What a matrix inverse is

The inverse of a 2×2 matrix A is the unique matrix A−1 with A × A−1 = A−1 × A = I, the identity matrix. It plays the role division plays for scalars: multiplying by A−1 undoes the transformation A. This calculator builds the inverse from the four entries, and at the defaults [[4, 7], [2, 6]] it returns [[0.6, −0.7], [−0.2, 0.4]].

A−1=1ad−bcd−b−caA^{-1} = \frac{1}{ad-bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

How the formula works

Two steps produce the inverse. First the determinant det = ad − bc, a single number measuring how the matrix scales area. If det = 0 the matrix collapses the plane onto a line, information is lost, and no inverse exists. Second, swap the diagonal entries a and d, negate the off-diagonal entries b and c, and divide everything by the determinant. The swap-and-negate part is the adjugate matrix; the division normalizes it so the product with the original lands on the identity.

The determinant also predicts the size of the inverse entries: a determinant of 10 shrinks them roughly tenfold, while a determinant of 0.1 inflates them tenfold. Numerically fragile systems — nearly parallel constraint lines, nearly dependent equations — show up as tiny determinants and huge inverse entries, which is why the determinant is worth checking before trusting any downstream computation.

Worked example with the default inputs

Matrix [[4, 7], [2, 6]]. Determinant: det = 4 × 6 − 7 × 2 = 24 − 14 = 10. Adjugate: swap the diagonal to get 6 and 4, negate the off-diagonals to get −7 and −2. Divide by 10: A−1 = [[6/10, −7/10], [−2/10, 4/10]] = [[0.6, −0.7], [−0.2, 0.4]].

Verify by multiplying back. Row 1 × column 1: 4 × 0.6 + 7 × (−0.2) = 2.4 − 1.4 = 1. Row 1 × column 2: 4 × (−0.7) + 7 × 0.4 = −2.8 + 2.8 = 0. Row 2 × column 1: 2 × 0.6 + 6 × (−0.2) = 1.2 − 1.2 = 0. Row 2 × column 2: 2 × (−0.7) + 6 × 0.4 = −1.4 + 2.4 = 1. The product is [[1, 0], [0, 1]], the identity, confirming the inverse.

Sample matrices and their inverses

MatrixdetInverse
[[4, 7], [2, 6]]10[[0.6, −0.7], [−0.2, 0.4]]
[[2, 1], [1, 1]]1[[1, −1], [−1, 2]]
[[3, 0], [0, 2]]6[[1/3, 0], [0, 1/2]]
[[1, 2], [2, 4]]0No inverse (singular)

The last row shows the failure mode: row 2 is exactly twice row 1, the determinant vanishes, and the matrix maps the whole plane onto the line y = 2x. No matrix can undo that collapse, which is why a zero determinant means the underlying system of equations either has no solution or infinitely many.

Solving equations with the inverse

A system 2x + 3y = 8 type problem written as A·u = v solves in one multiplication: u = A−1·v. For the default matrix, solving [[4, 7], [2, 6]]·u = [1, 1] gives u = [[0.6, −0.7], [−0.2, 0.4]]·[1, 1] = [0.6 − 0.7, −0.2 + 0.4] = [−0.1, 0.2]. The matrix multiplication calculator performs exactly that final step. In graphics, the same inverse undoes a rotation-plus-scale transform, letting you convert screen coordinates back into object coordinates.

Common mistakes

  • Forgetting to negate the off-diagonal entries: dividing [[d, b], [c, a]] by det instead of [[d, −b], [−c, a]] fails the identity check; only the b and c slots carry minus signs.
  • Swapping the diagonal the wrong way: the inverse keeps a and d on the diagonals but exchanges their positions, so entry (1,1) of the inverse is d/det, not a/det.
  • Trusting a zero result when det = 0: the calculator returns all-zero entries for singular input, so a 0 output is a signal that no inverse exists, not a numerically valid answer.
  • Assuming AB−1 equals (AB)−1: order matters in matrix algebra, and (AB)−1 = B−1A−1. For 2×2 matrices this is easy to verify by hand and worth doing once.
  • Rounding too early: dividing 6 by a determinant of 0.07 gives 85.714285, and rounding to 85.7 before a follow-up multiplication can shift final results visibly. Keep full precision until the last step.

Checking your result in ten seconds

Multiply the original matrix by the claimed inverse; the product must be [[1, 0], [0, 1]]. Two spot checks usually suffice: the (1,1) entry ad − bc over det is always 1 by construction, so look instead at an off-diagonal, which must cancel to 0. For the defaults, 4 × (−0.7) + 7 × 0.4 = 0 confirms row 1 against column 2.

Why 2×2 is special

Scaling the recipe upward

The swap-and-negate formula is a 2×2 shortcut that has no direct analog at larger sizes. A 3×3 inverse needs the cofactor method or Gauss–Jordan elimination, roughly nine times the arithmetic. Every 2×2 question this calculator answers — invertibility, condition, transformation undo — extends to bigger matrices with the same determinant test, so the intuition built here transfers directly even though the mechanical recipe does not.

Frequently asked questions

What is the inverse of [[4, 7], [2, 6]]?

The determinant is 4 × 6 − 7 × 2 = 10, and the inverse is [[0.6, −0.7], [−0.2, 0.4]]. Multiplying the two matrices returns the identity [[1, 0], [0, 1]].

What if the determinant is zero?

The matrix is singular and no inverse exists. The calculator reports zero entries in that case, and the underlying equations either have no solution or infinitely many.

Does this work for 3×3 matrices?

No, this tool handles 2×2 only. Larger matrices need cofactor expansion or Gauss–Jordan elimination, which scale as roughly n³ operations.

How can I check the result?

Multiply the original matrix by its inverse and confirm the identity [[1, 0], [0, 1]]. One off-diagonal spot check is enough: for the defaults, 4 × (−0.7) + 7 × 0.4 = 0.

How do I solve a 2-equation system with this?

Write the system as A·u = v and compute A−1·v. With the default matrix and v = [1, 1], the solution is [−0.1, 0.2], found by one matrix-vector multiplication.

Why does a small determinant make the inverse large?

Every inverse entry is divided by det, so det = 0.1 multiplies the adjugate entries by 10. Inverse entries beyond roughly 100 usually flag a nearly singular matrix that will amplify input noise.

Do rotation matrices have inverses?

Yes, always. A 2D rotation matrix [[cos θ, −sin θ], [sin θ, cos θ]] has determinant 1, and its inverse is the rotation by −θ, [[cos θ, sin θ], [−sin θ, cos θ]].

Is the inverse of a sum the sum of inverses?

No. (A + B)−1 has no simple relation to A−1 and B−1 in general, and (AB)−1 = B−1A−1 in reverse order. Test with [[1, 0], [0, 2]] and [[2, 0], [0, 1]] to see it fail.

Method and sources

Calculation basis

Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: November 19, 2026
Formula & data sources
  • Standard 2×2 inverse formula A^-1 = (1/det)[[d, -b], [-c, a]].

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 19). Matrix Inverse Calculator. https://calcseed.com/c/math/matrix-inverse-calculator/
MLA 9"Matrix Inverse Calculator." CalcSeed, 19 Nov. 2026, calcseed.com/c/math/matrix-inverse-calculator/.
ChicagoCalcSeed. "Matrix Inverse Calculator." Last modified November 19, 2026. https://calcseed.com/c/math/matrix-inverse-calculator/

Related calculators

People also calculate