Inverse Matrix Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Algebra Hub

The inverse of a matrix A, written A⁻¹, is the matrix that satisfies A · A⁻¹ = A⁻¹ · A = I, where I is the identity matrix. Not every matrix has an inverse — a matrix is invertible only when its determinant is non-zero. Invertible matrices are central to solving systems of linear equations of the form Ax = b, since the solution is simply x = A⁻¹b.

This calculator finds the inverse of a 2×2 or 3×3 matrix using the adjugate (classical adjoint) method: A⁻¹ = (1/det(A)) · adj(A). For each entry the calculator displays the cofactor matrix, the adjugate, the determinant, and the final inverse — so you can follow every arithmetic step.

The determinant is the gatekeeper of invertibility. For a 2×2 matrix [[a, b], [c, d]], the determinant is ad − bc. If this equals zero, the two row vectors are linearly dependent (one is a scalar multiple of the other), meaning the matrix collapses 2D space onto a line — a transformation that cannot be reversed. For 3×3 matrices, a zero determinant means the three rows lie in a common plane rather than spanning 3D space. Geometrically, the absolute value of the determinant is the area (2×2) or volume (3×3) scaling factor of the linear transformation represented by A.

For a 2×2 matrix, the inverse formula is elegant: swap the main diagonal entries (a and d), negate the off-diagonal entries (b and c), and divide by the determinant. For a 3×3 matrix, the process requires computing nine cofactors (each the signed determinant of a 2×2 submatrix), assembling them into the cofactor matrix, transposing it to form the adjugate, and dividing by the determinant. While tedious by hand, understanding each step — cofactors, adjugate, scaling — builds genuine intuition for how linear transformations can be reversed.

Matrix inverses appear throughout applied mathematics and engineering. Solving a system of n linear equations with n unknowns reduces to computing A⁻¹b. In computer graphics, inverse transformation matrices are used to undo rotations, scalings, and translations of 3D objects. In statistics, the matrix (XᵀX)⁻¹ appears in the formula for ordinary least squares regression coefficients. In control theory, invertible state-transition matrices allow engineers to reconstruct initial conditions from observed outputs. Whenever a linear transformation must be reversed or a linear system must be solved, the matrix inverse is the fundamental tool.

Complete 2×2 worked example: find A⁻¹ for A = [[4, 7], [2, 6]]. Step 1 — determinant: det(A) = (4)(6) − (7)(2) = 24 − 14 = 10. Step 2 — since det ≠ 0, A is invertible. Step 3 — swap main diagonal and negate off-diagonal: [[6, −7], [−2, 4]]. Step 4 — divide by det: A⁻¹ = (1/10)·[[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]]. Verification: A · A⁻¹ = [[4·0.6 + 7·(−0.2), 4·(−0.7) + 7·0.4], [2·0.6 + 6·(−0.2), 2·(−0.7) + 6·0.4]] = [[2.4−1.4, −2.8+2.8], [1.2−1.2, −1.4+2.4]] = [[1, 0], [0, 1]] = I ✓.

For 3×3 matrices, the cofactor method systematically handles the greater complexity. Given A = [[1, 2, 3], [0, 4, 5], [1, 0, 6]]: det(A) = 1(24−0) − 2(0−5) + 3(0−4) = 24 + 10 − 12 = 22. Each of the nine cofactors requires computing a 2×2 determinant with the appropriate sign: C₁₁ = +(4·6 − 5·0) = 24, C₁₂ = −(0·6 − 5·1) = 5, C₁₃ = +(0·0 − 4·1) = −4, and so on. Arrange the cofactors in a 3×3 matrix, transpose it to form adj(A), then divide by det(A). While the arithmetic is extensive, each step is deterministic — this calculator performs all nine cofactor calculations automatically and shows the full adjugate before dividing.

Properties of matrix inverses that simplify multi-step calculations: (1) (A⁻¹)⁻¹ = A — the inverse of the inverse is the original. (2) (AB)⁻¹ = B⁻¹A⁻¹ — the inverse of a product reverses the order of individual inverses (analogous to putting on and taking off socks and shoes). (3) (Aᵀ)⁻¹ = (A⁻¹)ᵀ — transpose and inverse commute. (4) det(A⁻¹) = 1/det(A) — the determinant of the inverse is the reciprocal. (5) If A is symmetric (A = Aᵀ), then A⁻¹ is also symmetric. These properties are frequently tested in linear algebra courses and are essential for deriving efficient computational algorithms.

Formula

2×2: A⁻¹ = (1/det)·[[d,−b],[−c,a]] | 3×3: A⁻¹ = (1/det)·adj(A)

det(A)
determinant of A — must be ≠ 0 for the inverse to exist
adj(A)
adjugate matrix — transpose of the cofactor matrix of A
Cᵢⱼ
cofactor: Cᵢⱼ = (−1)^(i+j) × Mᵢⱼ
Mᵢⱼ
minor — determinant of the submatrix obtained by deleting row i and column j

Find the Matrix Inverse

Choose size, enter values, and compute A⁻¹.

Quick examples:

Real-World Applications of Matrix Inverses

FieldApplicationHow the Inverse Is Used
Linear AlgebraSolve Ax = bx = A⁻¹b gives the unique solution when A is invertible
StatisticsOLS Regressionβ = (XᵀX)⁻¹Xᵀy — the normal equations require (XᵀX)⁻¹
Computer Graphics3D transformationsInverse rotation/scaling matrices undo transformations applied to objects
CryptographyHill cipherThe encryption matrix must be invertible (mod 26) for decryption
EngineeringControl systemsInvertible state-transition matrices reconstruct initial conditions
EconomicsInput-output analysisLeontief model: output = (I − A)⁻¹ · demand, requires (I−A)⁻¹
PhysicsCoordinate transformsChange-of-basis matrices and their inverses convert between reference frames

Singular vs Invertible: How to Tell the Difference

Invertible (Non-Singular)Singular
Determinantdet(A) ≠ 0det(A) = 0
Inverse exists?Yes — A⁻¹ existsNo — A⁻¹ does not exist
Row independenceAll rows linearly independentAt least one row is a linear combination of others
Geometric meaningTransformation preserves dimensionTransformation collapses a dimension (e.g., plane → line)
System Ax = bUnique solution: x = A⁻¹bNo solution or infinitely many solutions
Common causeTwo rows identical; one row all zeros; one row = multiple of another

Tip: always check the determinant before attempting to invert. This calculator detects singular matrices automatically and alerts you.

Common Mistakes with Matrix Inverses

  • (AB)⁻¹ ≠ A⁻¹B⁻¹. The inverse of a product reverses the order: (AB)⁻¹ = B⁻¹A⁻¹. Getting the order wrong produces a wrong answer.
  • Confusing A⁻¹ with 1/A. Scalar division has no direct matrix equivalent. A⁻¹ is a matrix, not the result of dividing 1 by each entry of A.
  • Sign errors in the cofactor matrix. The cofactor sign pattern for a 3×3 is + − + / − + − / + − +. Applying the wrong sign to any cofactor produces a completely wrong adjugate.
  • Forgetting to transpose the cofactor matrix. The adjugate is the TRANSPOSE of the cofactor matrix, not the cofactor matrix itself.
  • Dividing only some entries by det. Every entry of adj(A) must be divided by det(A) — the (1/det) scalar multiplies the entire adjugate matrix.

Matrix Inverse Quick Reference

PropertyFormulaNote
Inverse exists whendet(A) ≠ 0Non-singular / invertible matrix
2×2 inverseA⁻¹ = (1/det)·[[d,−b],[−c,a]]Swap diagonal, negate off-diagonal
3×3 inverseA⁻¹ = (1/det)·adj(A)adj = transpose of cofactor matrix
VerificationA·A⁻¹ = A⁻¹·A = IResult must be the identity matrix
Inverse product rule(AB)⁻¹ = B⁻¹A⁻¹Order reverses when taking inverse
Inverse of inverse(A⁻¹)⁻¹ = AInverse of the inverse is the original
Inverse transpose(Aᵀ)⁻¹ = (A⁻¹)ᵀTranspose and inverse operations commute

2×2 Inverse Worked Examples

Matrix AdetA⁻¹Invertible?
[[1,0],[0,1]]1[[1,0],[0,1]]Yes (self-inverse)
[[3,1],[2,1]]1[[1,−1],[−2,3]]Yes
[[2,1],[5,3]]1[[3,−1],[−5,2]]Yes
[[4,2],[2,1]]0Does not existNo (singular)
[[1,2],[3,4]]−2[[−2,1],[1.5,−0.5]]Yes

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions