Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Inverse Matrix Calculator (2×2)
Algebra Calculators

Inverse Matrix Calculator (2×2)

Published onOctober 12, 2025 Updated onOctober 25, 2026 7:52 am

A square matrix has an inverse exactly when its determinant is not zero, and this calculator finds it for 2×2, 3×3, 4×4, and 5×5 matrices. The 2×2 path shows the classic formula step by step (determinant, adjugate, divide), larger sizes use Gauss-Jordan elimination, and every result is verified by multiplying A x A-1 back to the identity matrix.

Inverse Matrix Calculator
2×2 adjugate steps, 3×3 to 5×5 Gauss-Jordan, identity verification

Inverse A-1

Determinant det(A)
Verification A x A-1

Quick Answer

For A = [[4, 7], [2, 6]], the determinant is 10 and the inverse is [[0.6, -0.7], [-0.2, 0.4]], verified by A x A-1 = [[1, 0], [0, 1]]. The calculator above is pre-filled with this matrix, and the same page also inverts 3×3, 4×4, and 5×5 matrices by Gauss-Jordan elimination.

Key takeaways

  • For a 2×2 matrix, the inverse is one line: swap the diagonal entries, negate the other two, divide everything by the determinant ad – bc.
  • Determinant zero means no inverse exists. This tool says so plainly instead of printing a wrong matrix.
  • Every result is checked by multiplying A x A-1. If the product is not the identity, the inverse is wrong, so the check catches entry typos.
  • The determinant is step 1 of this tool, not its goal: the headline result is the inverse itself. A determinant-only page stops at that first number.
On this page
  • Quick Answer
  • How to use the inverse matrix calculator
  • The 2×2 inverse formula: determinant, adjugate, divide, verify
  • Worked example, plus four more verified runs
  • 3×3, 4×4, and 5×5: the Gauss-Jordan mode
  • Precision limits and the near-singular trap
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use the inverse matrix calculator

Pick the size, type the entries row by row, and click Calculate. Results stay hidden until you click.

  1. Matrix size: 2×2 is the default and is pre-filled with the worked example [[4, 7], [2, 6]]. Choosing 3×3, 4×4, or 5×5 rebuilds the grid; the larger grids start blank, with the entry positions labelled a11, a12, and so on.
  2. Matrix A entries: enter every entry, reading across rows. Decimals and negatives are fine; a blank or non-numeric entry stops the calculation with a message naming the exact entry to fix.
  3. Read the result: the inverse is the headline. Below it sit the determinant, the verification product, the full step-by-step working with your numbers, and a one-line verdict you can copy with the Copy button.
  4. Singular matrices: if the determinant is zero, the inverse line reads “does not exist” and the verdict explains why, rather than returning an error or a garbage matrix.

The 2×2 inverse formula: determinant, adjugate, divide, verify

For A = [[a, b], [c, d]], the inverse is A-1 = (1 / (ad – bc)) x [[d, -b], [-c, a]], valid whenever ad – bc is not zero. The OpenStax Algebra and Trigonometry section on solving systems with inverses presents the same formula and the same condition: a matrix is invertible exactly when its determinant is non-zero.

1. Determinant
det = ad – bc. Zero stops here: no inverse.
→
2. Adjugate
Swap a and d, negate b and c: [[d, -b], [-c, a]].
→
3. Divide
Divide each adjugate entry by det. That is A-1.
→
4. Verify
Multiply A x A-1. A correct inverse returns the identity.

Geometrically, the determinant is the signed area scale factor of the transformation, which is why zero is fatal: a matrix with determinant zero flattens the plane onto a line (or a point), and a flattening cannot be undone. A negative determinant, such as the -2 in the table below, is no problem at all: the inverse exists, and the negative sign records that the transformation flips orientation. The inverse is also the engine behind solving systems as x = A-1b, and the same singularity question, whether (A – λI) can be inverted, sits underneath the eigen values calculator.

Worked example, plus four more verified runs

For A = [[4, 7], [2, 6]], the tool prints exactly this working, and every other row in the table is a verified run of the same calculator:

  • Step 1, determinant: det(A) = 4×6 – 7×2 = 24 – 14 = 10
  • Step 2, adjugate: swap the diagonal, negate the off-diagonal, giving [[6, -7], [-2, 4]]
  • Step 3, divide by det: A-1 = (1/10) x [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]]
  • Step 4, verify: A x A-1 = [[1, 0], [0, 1]], the identity matrix
Matrix ADeterminantInverse A-1Note
[[4, 7], [2, 6]]10[[0.6, -0.7], [-0.2, 0.4]]The worked example above
[[1, 2], [3, 4]]-2[[-2, 1], [1.5, -0.5]]Negative determinant, valid inverse
[[0.5, 1.5], [-2, 0.25]]3.125[[0.08, -0.48], [0.64, 0.16]]Decimals throughout
[[3, 0], [0, 3]]9[[0.333333, 0], [0, 0.333333]]1/3 shown at the 6-decimal display limit
[[1, 2], [2, 4]]0does not existSecond row is double the first: singular

For exact fractions instead of decimals, read each inverse entry as an integer over the determinant before dividing: the worked example is [[6/10, -7/10], [-2/10, 4/10]]. The related eigen work on this site, such as the basis for eigenspace calculator and the eigenbasis calculator, leans on the same invertibility test, since an eigenspace is what remains when (A – λI) is singular.

3×3, 4×4, and 5×5: the Gauss-Jordan mode

Larger matrices invert by Gauss-Jordan elimination on the augmented matrix [A | I]: row operations reduce the left half to the identity, the right half becomes A-1, and the determinant falls out as the product of the elimination pivots, with a sign flip for each row swap. The OpenStax section on solving systems with Gaussian elimination teaches the same row-reduction machinery this mode automates.

Verified 3×3 run: for A = [[2, 1, 1], [1, 2, 1], [1, 1, 2]], the determinant is 4 and the inverse is [[0.75, -0.25, -0.25], [-0.25, 0.75, -0.25], [-0.25, -0.25, 0.75]], with the verification product printing as the exact 3×3 identity. A diagonal 4×4 run, A = diag(2, 3, 4, 5), gives determinant 120 and the reciprocal diagonal [[0.5, 0, 0, 0], [0, 0.333333, 0, 0], [0, 0, 0.25, 0], [0, 0, 0, 0.2]]. Singular matrices are caught mid-elimination: [[1, 2, 3], [4, 5, 6], [7, 8, 9]] reports “does not exist” with determinant 0 because a pivot collapses to zero. Partial pivoting, always eliminating on the largest available pivot in the column, keeps rounding as small as this method allows.

Precision limits and the near-singular trap

Displayed numbers are rounded to 6 decimal places, and two honest consequences follow. First, repeating decimals truncate: the inverse of [[3, 0], [0, 3]] prints as 0.333333, not the exact 1/3. Second, a matrix can be invertible yet so close to singular that the display misleads: [[1, 1], [1, 1.0000001]] has a true determinant of about 0.0000001, which the display rounds to 0, and its step line even writes (1/0), yet because 0.0000001 sits above the tool’s singularity cutoff of 1e-12, an inverse is still returned, with entries near 10,000,000. Treat “determinant shows 0 but an inverse appears” as a warning, not a result: the matrix is nearly singular and tiny input changes swing that inverse wildly.

At the far extreme the display breaks down entirely: an entry such as 1e200 prints in the working as 1e+2, because the trailing-zero trim eats the exponent, and a determinant that overflows prints as Infinity alongside a zero inverse whose verification product is zeros, not the identity. Treat any output at that scale as out of range, not as an answer. The cutoffs themselves are part of the tool’s behaviour and are worth stating plainly. In 2×2 mode, any determinant with absolute value below 1e-12 is treated as zero and reported as singular, even if it is not exactly zero. In the larger sizes, the same 1e-12 threshold applies to elimination pivots, and a singular result prints the determinant as exactly 0. Verification uses a tolerance of 1e-9 in 2×2 mode and 1e-8 for larger sizes, so the product may show a “tiny floating-point rounding” note on extreme inputs instead of a clean pass. None of this affects ordinary homework or engineering matrices; it matters only at the numerical edge.

What competing calculators miss

Most inverse tools get the formula right; they differ on verification, size range, and whether the working teaches anything:

  • eMathHelp’s inverse calculator shows full Gauss-Jordan steps, a real strength, but applies elimination even to 2×2 matrices, so the one-line adjugate pattern students are actually taught never appears, and there is no determinant-first readout or identity product in the same view.
  • Symbolab’s matrix calculator covers inverses inside a general multi-operation tool with strong worked examples, but the inverse is one operation among many, steps sit behind its solver flow, and there is no built-in A x A-1 verification line to catch a mistyped entry.
  • Testbook’s inverse matrix calculator explains the cofactor method well in prose, including the common slip of writing 1/|A| where the signed 1/det(A) belongs, but the explanation and the tool are separate: the working is generic, not computed from your entries.
  • Keisan-style inverse tools (such as the Luft/Keisan inverse matrix page) state the rules correctly (square matrix, non-zero determinant) and return fractions for 2×2 inputs, but stop at the answer matrix with no step trace and no verification product.
  • The gap this page fills: determinant, adjugate steps in your numbers, the inverse, and the identity check on one screen for 2×2, Gauss-Jordan with pivot determinants for 3×3 to 5×5, a plain-language singular verdict, and the precision limits written down instead of hidden.

Frequently asked questions

When its determinant is zero: ad – bc = 0. The rows are then multiples of each other, and the matrix squashes the plane onto a line, which cannot be undone.

Solving linear systems: the system Ax = b has the solution x = A raised to -1 times b. It also reverses geometric transformations like rotations and scalings.

By definition, a matrix times its inverse is the identity matrix [[1, 0], [0, 1]]. If the product is not the identity, the computed inverse is wrong, so the check catches arithmetic errors.

The calculator works in decimals. For exact fractions, note the pattern: each inverse entry is an integer divided by the determinant, so the inverse of [[4, 7], [2, 6]] is [[6/10, -7/10], [-2/10, 4/10]].

Yes. The size selector above switches between 2×2, 3×3, 4×4, and 5×5. The 2×2 path uses the classic adjugate formula with full step-by-step working; 3×3 and larger use Gauss-Jordan elimination on the augmented matrix [A | I], with the determinant reported from the elimination pivots and the same A x A-inverse = I verification.

The 2×2 adjugate formula is a special case that is easy to show step by step. For 3×3 and up, the adjugate of cofactors becomes unwieldy, so the standard approach is Gauss-Jordan row reduction, which scales cleanly to any square size and is what the tool applies for 3×3 through 5×5.

Displayed numbers are rounded to 6 decimal places. A determinant smaller than 0.0000005, such as the roughly 0.0000001 determinant of [[1, 1], [1, 1.0000001]], displays as 0, yet it is not below the tool’s 1e-12 singularity cutoff, so the inverse is still computed and its entries are very large. Treat that combination as a warning: the matrix is nearly singular and the inverse is numerically fragile.

Add This Calculator to Your Website

Embed the inverse matrix calculator on your own site, free. Pick a size to preview it, then copy the code.

Powered by Calculator Zilo

References

  1. OpenStax, Rice University. Algebra and Trigonometry 2e, Section 7.7: Solving Systems with Inverses. Accessed October 22, 2026.
  2. OpenStax, Rice University. Algebra and Trigonometry 2e, Section 7.6: Solving Systems with Gaussian Elimination. Accessed October 22, 2026.
  3. OpenStax, Rice University. Algebra and Trigonometry 2e, Section 7.5: Matrices and Matrix Operations. Accessed October 22, 2026.
  4. Paul Dawkins, Lamar University. Paul’s Online Math Notes, Linear Algebra: Inverse Matrices. Accessed October 22, 2026.
  5. MIT OpenCourseWare, Massachusetts Institute of Technology. 18.06 Linear Algebra, Spring 2010 (Gilbert Strang). Accessed October 22, 2026.

Related calculators

Algebra CalculatorsMissing Variable Calculator: Solve Any Formula FastPick a formula, tell the tool which value you are missing, and enter the values you know.Algebra CalculatorsZero CalculatorThis Zero Calculator finds the zeros of a polynomial: the values of x that make the equation equal to zero, also called roots or x-intercepts.Algebra CalculatorsGraph Inequalities CalculatorGraphing an inequality means turning a statement such as y > x into a picture: a boundary line on a coordinate plane with every point that satisfies the inequality shaded on one side.Algebra CalculatorsRadical CalculatorA radical like √72 or ∛250 is exact but hard to read, while its decimal (8.485 or 6.300) is readable but rounded.Algebra Calculators Indicated Variable Calculator An indicated variable is the letter an equation is solved for: in 2x + 5 = 15, x is indicated, and the answer is 5.Algebra CalculatorsThree Step Linear Equations CalculatorA three-step linear equation is a single equation with one variable, like 2(x + 3) = 18, that takes three moves to crack: clear the parentheses, move the numbers, then divide.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search