🧮 Linear Algebra Workspace

Inverse of Matrix Calculator

Compute the inverse of a 2×2, 3×3, 4×4, or 5×5 matrix instantly. Enter values, check invertibility, and verify with A × A⁻¹ = I.

Matrix A

Ready

Inverse A⁻¹

What is the Inverse of a Matrix?

The inverse of a square matrix A, written as A⁻¹, is a matrix that when multiplied by A yields the identity matrix I. In other words:

A × A⁻¹ = A⁻¹ × A = I

The identity matrix I has 1s on the main diagonal and 0s everywhere else. Think of the inverse like the reciprocal of a number — just as 5 × ⅕ = 1, a matrix multiplied by its inverse gives the identity.

Conditions for Invertibility

Not every matrix has an inverse. A square matrix A is invertible (also called non-singular) if and only if:

If det(A) = 0, the matrix is called singular and has no inverse. This happens when one row is a multiple of another, or when the matrix collapses space into a lower dimension.

The Determinant Relationship

The determinant is a single number that tells us whether a matrix is invertible. It also appears in the formula for the inverse:

A⁻¹ = (1 / det(A)) × adj(A)

Here adj(A) is the adjugate (or adjoint) matrix — the transpose of the cofactor matrix. For larger matrices, numerical methods like Gauss-Jordan elimination are more practical.

2×2 Inverse Formula

For a 2×2 matrix:

A = [ a b ]
     [ c d ]

The determinant is det(A) = ad − bc. If det(A) ≠ 0, the inverse is:

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

Worked Example: 2×2 Matrix

Let A = [[4, 7], [2, 6]]. Then:

Verify: A × A⁻¹ = [[4,7],[2,6]] × [[0.6,−0.7],[−0.2,0.4]] = [[1,0],[0,1]] = I ✓

Worked Example: 3×3 Matrix

For A = [[2, 1, 1], [1, 3, 2], [1, 0, 0]], the determinant is:

Using the adjugate method, A⁻¹ = [[0, 0, 1], [2, −1, −3], [−3, 1, 5]]. Multiply A × A⁻¹ to confirm you get the 3×3 identity matrix.

Singular Matrices

A singular matrix has det(A) = 0 and no inverse. Common examples include:

Our calculator checks the determinant first and clearly tells you if the matrix is singular — no inverse exists.

Applications of Matrix Inverses

How to Use This Calculator

  1. Select the matrix size (2×2 up to 5×5).
  2. Enter integers or decimals in each cell.
  3. Click Calculate Inverse.
  4. The calculator checks det(A) and computes A⁻¹ if it exists.
  5. View the determinant, inverse, and verification (A × A⁻¹ = I).
  6. Use Copy Result to save the inverse matrix.

Frequently Asked Questions

What is an inverse matrix? ▼

The inverse of a square matrix A is a matrix A⁻¹ such that A × A⁻¹ = I, where I is the identity matrix. It generalizes the concept of a reciprocal for numbers.

When does a matrix have no inverse? ▼

A matrix has no inverse when its determinant is zero (det(A) = 0). Such a matrix is called singular. This happens when rows or columns are linearly dependent.

How do I find the inverse of a 2×2 matrix? ▼

For A = [[a,b],[c,d]], swap a and d, negate b and c, then divide by det(A) = ad − bc. The result is A⁻¹ = 1/(ad−bc) × [[d,−b],[−c,a]].

How do I find the inverse of a 3×3 matrix? ▼

You can use the adjugate method: A⁻¹ = (1/det(A)) × adj(A), where adj(A) is the transpose of the cofactor matrix. Our calculator handles this automatically.

Can I calculate the inverse of a 4×4 or 5×5 matrix? ▼

Yes. Our calculator supports 2×2 through 5×5 matrices using numerically stable methods (Gauss-Jordan elimination with partial pivoting).

What is the identity matrix? ▼

The identity matrix I has 1s on the main diagonal and 0s elsewhere. It plays the role of "1" in matrix multiplication: A × I = I × A = A.

Why do we multiply by 1/det(A)? ▼

The determinant scales the volume of the transformation. Dividing by it normalizes the inverse so that A × A⁻¹ = I exactly. If det(A) = 0, the scaling collapses and no inverse exists.

Is the inverse matrix unique? ▼

Yes. If a matrix is invertible, its inverse is unique. There is exactly one matrix A⁻¹ that satisfies A × A⁻¹ = I.

Related calculators

More math and engineering tools you might find useful.

🔢

Determinant Calculator

Open tool →
📊

Standard Deviation

Open tool →
📐

Slope Calculator

Open tool →
🔁

Inverse Matrix (this page)

You are here →

Need another matrix tool?

We have determinant calculators, matrix multiplication, and more — all free.

Browse All Tools →