CalculatorForEver
MATH / CALCULATOR

Inverse Matrix Calculator

Calculate inverse matrix with worked steps, clear input conventions and a result table.

For A = [[a,b],[c,d]], A⁻¹ = [[d,−b],[−c,a]]/(ad−bc), provided ad−bc ≠ 0. Matrix [[4,7],[2,6]] has determinant 10 and inverse [[0.6,−0.7],[−0.2,0.4]].

Your numbers

BROWSER-LOCAL INPUTS

Your inputs stay in this browser. No account needed.

RESULT

Your result

Enter your values and select Calculate.

Check the units and assumptions before using this result.

METHOD

How the inverse matrix calculator works

How to use this calculator

Enter the values in the stated format. Calculate and review the method, exact distinctions and any numerical limits before using the result.

What the result means

An inverse matrix reverses the action of an invertible square matrix. For a two-by-two matrix, divide the adjugate matrix by its determinant. The determinant must be nonzero; a singular matrix cannot be repaired by rounding its determinant away from zero. This calculator returns a numeric two-by-two inverse and the working used to obtain it. It does not implement a pseudoinverse, a general larger-matrix solver or a guarantee that a nearly singular input is numerically reliable.

The formula

A⁻¹ = [[d,−b],[−c,a]] / (ad−bc)

A worked example

[[1,2],[3,4]] has inverse [[−2,1],[1.5,−0.5]].

Assumptions & methodology

Use consistent units and inspect the displayed working. Numerical results are rounded for display; unsupported or unstable inputs are rejected. Results are rounded for display; intermediate calculations retain precision. This tool is informational and does not replace institutional or professional guidance.

References

OpenStax: two-by-two determinants and inverses

WORK THROUGH THE DETAILS

Using your inverse matrix result

Understand why a dependent matrix has no inverse

For [[1,2],[2,4]], one row is twice the other and the determinant is 4−4 = 0. The transformation collapses some distinct vectors onto the same output, so a unique reversal is impossible. Dividing the adjugate by zero does not give a meaningful inverse with very large entries. If this matrix appears in a linear system, examine the full equations and right-hand side rather than substituting an arbitrary small determinant.

Use an inverse to check a small linear system

Take A = [[4,7],[2,6]] and b = (11,8). Multiplying A⁻¹ by b gives x = 0.6×11−0.7×8 = 1 and y = −0.2×11+0.4×8 = 1. Substitution in the original system gives 4×1+7×1 = 11 and 2×1+6×1 = 8. This application requires the coefficient matrix and right-hand side to describe the same ordered variables. The inverse form itself does not assign variable names.

Treat a near-zero determinant as a sensitivity warning

Consider [[1,1],[1,1.000001]]. Its determinant is only 0.000001, and the inverse contains entries around one million. Small entry errors can therefore have large effects on a computed solution. More displayed decimal places do not fix poor input precision. For a critical numerical system, use a suitable solver with conditioning diagnostics and keep the original precision. The calculator’s two-by-two result is useful for a checkable example, while exact symbolic fractions or a larger system require a different method.

Compare inverse and transpose using a counterexample

Transposing [[4,7],[2,6]] gives [[4,2],[7,6]], which differs from its inverse [[0.6,−0.7],[−0.2,0.4]]. A transpose exchanges positions without dividing or solving a reversal problem. Some special matrices have an inverse equal to their transpose, but that property must be established rather than assumed. A diagonal matrix with nonzero entries is another useful case: [[2,0],[0,5]] has inverse [[0.5,0],[0,0.2]]. Only in that diagonal setting does taking reciprocals of the nonzero diagonal entries give the inverse without further terms. Off-diagonal entries require the complete formula and determinant check. Scaling an invertible matrix A by a nonzero scalar s gives inverse A⁻¹/s. For example, doubling the diagonal matrix [[2,0],[0,5]] gives [[4,0],[0,10]], whose inverse is [[0.25,0],[0,0.1]]. Multiplying that inverse by the doubled matrix returns the identity, as required. Keep the nonzero scaling factor visible when checking this relationship.

INTERPRETATION

Understanding inverse matrix results

Form the adjugate before dividing

For [[4,7],[2,6]], exchange the diagonal entries 4 and 6, then change the signs of 7 and 2. The adjugate is [[6,−7],[−2,4]]. The determinant is 4×6−7×2 = 10, so divide every adjugate entry by 10. This produces [[0.6,−0.7],[−0.2,0.4]]. Changing only one off-diagonal sign or dividing just the diagonal entries would not produce an inverse.

Verify the product against the identity

Multiply the original matrix by the proposed inverse. The top-left entry is 4×0.6 + 7×(−0.2) = 1. The top-right is 4×(−0.7) + 7×0.4 = 0. The lower-left is 2×0.6 + 6×(−0.2) = 0, and the lower-right is 2×(−0.7) + 6×0.4 = 1. The result is the identity matrix. With rounded inverse entries, tiny residual differences from zero or one can occur.

RELATED GUIDES

Related questions and worked examples

Read a worked explanation before trying another calculation.

QUESTIONS

Inverse Matrix questions

Is the inverse the reciprocal of each entry?+

No. Taking 1/a, 1/b, 1/c and 1/d entry by entry generally fails the matrix product check. Use the determinant and adjugate formula.

Does swapping the two matrices in the identity check matter?+

A true square-matrix inverse gives the identity on both sides. For two-by-two numeric examples, checking both orders can help reveal entry or rounding errors.