Skip to content

Inverse Matrix Calculator

Type a square matrix, one row per line or rows separated by semicolons, to get its inverse A⁻¹ in exact fractions, its determinant and the row operations that produce it.

Calculator Details

A⁻¹:det A = −1See results ↓

Determinant, inverse, reduced row echelon form (RREF), the product A × B or the transpose Aᵀ

One row per line (or separate rows with ;), entries separated by spaces or commas; fractions like 1/2 are fine

Your Results

A⁻¹: det A = −1

A⁻¹

det A = −1

Inverse of A (A⁻¹)

A⁻¹ (exact)

001
−213
3−1−5

As decimals

001
−213
3−1−5

A is invertible (det A = -1); A⁻¹ was found by Gauss–Jordan elimination in 9 row operations.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Row operations, step by step
StepRow operationMatrix after the step
1R1 → (1/2)·R1
11/21/21/200
132010
100001
2R2 → R2 − 1·R1
11/21/21/200
05/23/2−1/210
100001
3R3 → R3 − 1·R1
11/21/21/200
05/23/2−1/210
0−1/2−1/2−1/201
4R2 → (2/5)·R2
11/21/21/200
013/5−1/52/50
0−1/2−1/2−1/201
5R1 → R1 − (1/2)·R2
101/53/5−1/50
013/5−1/52/50
0−1/2−1/2−1/201
6R3 → R3 + (1/2)·R2
101/53/5−1/50
013/5−1/52/50
00−1/5−3/51/51
7R3 → −5·R3
101/53/5−1/50
013/5−1/52/50
0013−1−5
8R1 → R1 − (1/5)·R3
100001
013/5−1/52/50
0013−1−5
9R2 → R2 − (3/5)·R3
100001
010−213
0013−1−5

How This Calculator Works

How It’s Calculated

Gauss–Jordan elimination on [A | I]: when the left block becomes I, the right block is A⁻¹.

A =

211
132
100

Each row operation and the matrix after it are listed in the breakdown table above.

Frequently Asked Questions

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

Swap the two diagonal entries, change the signs of the other two, and divide everything by the determinant ad − bc. For rows 4 7 and 2 6, the determinant is 24 − 14 = 10, so the inverse has rows 0.6 −0.7 and −0.2 0.4.

Why does my matrix have no inverse?

Its determinant is 0, so it is singular: one row is a combination of the others, and the matrix squashes space flat, which cannot be undone. Rows 1 2 and 2 4 are an example, since the second row is twice the first.

How do I check an inverse?

Multiply the matrix by its inverse in either order; the result must be the identity matrix, 1s on the diagonal and 0s elsewhere. The matrix calculator's multiplication mode does this for you.

How do I use an inverse to solve a system of equations?

Write the system as Ax = b, then x = A⁻¹b. For large systems, row-reducing the augmented matrix [A | b] is faster and more accurate than finding the inverse first, but the inverse is handy when you solve with the same A many times.

Included: determinant, inverse and RREF by exact Gaussian / Gauss–Jordan elimination with every row operation listed, rank, matrix multiplication and the transpose, for matrices up to 6×6 (8 columns for RREF) with integer, decimal or fraction entries.

Left out: eigenvalues and eigenvectors, complex entries, LU/QR decompositions, matrix powers, addition, and matrices larger than 6 rows.

Inverse Matrix Calculator: A⁻¹ with Exact Fractions

By FindMySum · Last reviewed

An inverse matrix calculator finds A⁻¹, the matrix that undoes A: multiplying them gives the identity matrix, the matrix version of the number 1. Only square matrices with a non-zero determinant have an inverse. The calculator uses Gauss–Jordan elimination and keeps every entry as an exact fraction, so you see 1/7 rather than 0.142857.

Worked example

Invert the 3×3 matrix with rows 2 1 1, then 1 3 2, then 1 0 0, typed into the calculator as 2 1 1; 1 3 2; 1 0 0.

  1. Determinant: expanding along the third row, 1 × (1 × 2 − 1 × 3) = −1. It is not zero, so the inverse exists.
  2. Write [A | I], the matrix next to the 3×3 identity, and row-reduce until the left half becomes I.
  3. The right half is then the inverse, with rows 0 0 1, then −2 1 3, then 3 −1 −5.

Check one entry: row 1 of A times column 1 of A⁻¹ is 2 × 0 + 1 × (−2) + 1 × 3 = 1, as the identity needs. Because the determinant is −1, every entry of the inverse is a whole number.

When an inverse is useful

Solving systems of equations, undoing a transformation in computer graphics, and in statistics, where least-squares regression uses (XᵀX)⁻¹. With decimals that are only approximate, a nearly singular matrix can give an inverse with huge entries, a sign that the problem is ill-conditioned.

For the determinant, RREF, multiplication and transpose, use the matrix calculator; for the determinant alone, the determinant calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy