Inverse Matrix Calculator

Invert any square matrix step by step - exact fractions, the row operations spelled out, and the answer verified against the identity.

Size of the matrix:
Matrix A

Your input

Find the inverse of [2113].

Answer

The inverse matrix is

[35−15−1525]

Solution

So, augment the matrix with the identity matrix:

[21101301]

Divide row 1 by 2: R1=R12.

[1121201301]

Subtract row 1 from row 2: R2=R2−R1.

[112120052−121]

Multiply row 2 by 2/5: R2=25∗R2.

[11212001−1525]

Subtract row 2 multiplied by 1/2 from row 1: R1=R1−12R2.

[1035−1501−1525]

We are done. On the left is the identity matrix. On the right is the inverse matrix.

Answer

The inverse matrix is [35−15−1525].

In decimal form: (0.6, −0.2), (−0.2, 0.4)

Runs entirely on your device - nothing is ever uploaded.

More tools

How to use the inverse matrix calculator

  1. Pick the size n - the grid is square, from 1×1 to 8×8.
  2. Type a number (decimals and fractions like 1/5 both work) into every cell.
  3. Choose Gauss–Jordan elimination to watch [A | I] reduce to [I | A⁻¹] one row operation at a time, or the adjugate method for the cofactor route.
  4. Read the answer in exact fractions plus its decimal form, or copy it.

Singular matrices are detected automatically - if the determinant is 0, no inverse exists and the write-up says so.

Where inverses get used

Matrix inverses solve linear systems in one step, decode Hill ciphers, and reverse 3D graphics transforms. Computing them by hand is cubic drudgery, which is why Gauss-Jordan elimination is the taught method: augment with the identity, reduce, and the inverse appears on the right. The adjugate route suits small matrices and theory questions about determinants.