Skip to content
Mathico

Inverse Matrix Calculator

Find the inverse of a matrix from 2×2 up to 6×6, in exact fractions or decimals. You also get the determinant, every Gauss-Jordan row operation and a check that A × A⁻¹ equals the identity matrix.

Matrix size
Matrix A

Integers, decimals or fractions such as 1/3.

Show answer as

Determinant

1

Inverse A⁻¹

-2418520-15-4-541

✓ Checked: A × A⁻¹ = I (identity matrix)

Gauss-Jordan steps (5)

Start with [A | I] and apply these row operations until the left side is I; the right side is then A⁻¹.

  1. R3 − 5 × R1
  2. R1 − 2 × R2
  3. R3 − -4 × R2
  4. R1 − -5 × R3
  5. R2 − 4 × R3

How to use the inverse matrix calculator

  1. Pick the size of your square matrix, from 2×2 to 6×6.
  2. Type the entries as integers, decimals or fractions like 1/3.
  3. Read the determinant and inverse as exact fractions (or decimals), with the Gauss-Jordan steps and a check that A × A⁻¹ = I.

Inverse matrix formulas

2×2: [[a, b], [c, d]]⁻¹ = 1/(ad − bc) × [[d, −b], [−c, a]]
General: A⁻¹ = adj(A) ÷ det(A) · or row-reduce [A | I] → [I | A⁻¹]
A has an inverse ⇔ det(A) ≠ 0

Worked examples

2×2: A = [[4, 7], [2, 6]]

det = 4 × 6 − 7 × 2 = 10
A⁻¹ = 1/10 × [[6, −7], [−2, 4]] = [[3/5, −7/10], [−1/5, 2/5]]

3×3: A = [[1, 2, 3], [0, 1, 4], [5, 6, 0]]

The determinant is 1, so the inverse has whole-number entries: [[−24, 18, 5], [20, −15, −4], [−5, 4, 1]]. Multiply it by A to confirm you get the identity matrix.

Singular: [[1, 2], [2, 4]]

The second row is twice the first, so det = 4 − 4 = 0 and no inverse exists.

Gauss-Jordan elimination, step by step

  1. Write the matrix next to the identity: [A | I].
  2. For each column, swap in a row with a non-zero pivot if needed, then divide that row by the pivot to make it 1.
  3. Subtract multiples of the pivot row from every other row to make the rest of the column 0.
  4. When the left side is I, the right side is A⁻¹. If a column has no non-zero pivot, the matrix is singular.

Every row operation is a combination of fraction arithmetic, the same rules as the fraction calculator; reducing results uses the greatest common factor.

Solving equations with an inverse

A system like 4x + 7y = 1 and 2x + 6y = 2 can be written as A·[x, y] = [1, 2], so [x, y] = A⁻¹·[1, 2] = [3/5 − 14/10, −1/5 + 4/5] = [−0.8, 0.6]. For large systems, elimination directly on the equations is faster, but the inverse is handy when you need to solve for many right-hand sides.

Working with very large or tiny entries? The scientific notation converter keeps them readable. More math calculators.

Sources

Frequently asked questions

How do you find the inverse of a 2×2 matrix?

For A = [[a, b], [c, d]], A⁻¹ = 1/(ad − bc) × [[d, −b], [−c, a]]: swap a and d, change the signs of b and c, and divide by the determinant. For [[4, 7], [2, 6]], the determinant is 24 − 14 = 10, so the inverse is [[0.6, −0.7], [−0.2, 0.4]].

How do you find the inverse of a 3×3 matrix?

The most practical method is Gauss-Jordan elimination: write [A | I], use row operations to turn the left side into the identity matrix, and the right side becomes A⁻¹. Alternatively, compute the adjugate (transposed cofactor matrix) and divide by the determinant. The calculator shows every row operation.

When does a matrix have no inverse?

A square matrix has an inverse only if its determinant is non-zero. If the determinant is 0, the matrix is singular: its rows (or columns) are linearly dependent, such as [[1, 2], [2, 4]], where the second row is twice the first.

Can a non-square matrix have an inverse?

No, only square matrices can have a true inverse. Rectangular matrices can have one-sided or pseudo-inverses (such as the Moore-Penrose pseudoinverse), which are used in least-squares problems.

Why show the answer as fractions?

Matrix inverses usually contain fractions, and decimals introduce rounding errors that grow through further calculations. This calculator works with exact fractions, so A × A⁻¹ comes out as exactly the identity matrix.

What is a matrix inverse used for?

Solving systems of linear equations (x = A⁻¹b), undoing transformations in computer graphics, decoding Hill ciphers, and many statistics and engineering calculations, such as regression coefficients.