Matrix Inverse Calculator
Invert any square matrix with exact fractions, watch [A | I] become [I | A⁻¹], and see the inverse undo what the matrix did.
Matrix
Enter a square matrix, or start from an example.
Up to 12 rows and 12 columns.
Use integers, decimals, or fractions such as 1/3. Paste rows from a spreadsheet or a Python list into any cell.
Input
Inverse
Updates as you type.
Multiplying back gives the identity, so this is the inverse:
Work it out
Write A beside the identity. Every row operation that turns the left side into I also turns the right side into the inverse.
Show all 4 row operations
What the inverse is
The inverse of a square matrix is the matrix that undoes it:
If transforms space, transforms it back. That is only possible when doesn't collapse space, so a matrix has an inverse exactly when its determinant isn't . Otherwise it is called singular.
For a matrix there is a short formula:
How to compute one
Row reduction works at every size. Write beside the identity and reduce:
This works because each row operation is the same as multiplying on the left by some matrix. The operations that together turn into must multiply to , and the right side records that product as it is built up.
The adjugate formula expresses the inverse directly, as . The adjugate is the transpose of the matrix of cofactors. It is useful for small matrices and for theory, but needs many determinants as the size grows.
Tips for using the calculator
- Open Steps to watch the right side turn into the inverse, or switch to the adjugate formula to compare.
- Open See with a matrix and apply to watch the grid return to where it started. Try a singular matrix to see why it can't.
- In Practice, the numbers are chosen so that both the matrix and its inverse have integer entries.
- Use the links under the result to send the inverse to another calculator, or copy a link to come back to this matrix later.
A matrix's invertibility can also be read from its determinant in the Determinant Calculator, or from its pivots in the RREF Calculator. To check a result by hand, multiply it back with the Matrix Multiplication Calculator.
Related calculators
Keep working with matrices.
Matrix Calculator
Type a whole matrix expression such as 2AᵀB⁻¹ + I and get an exact answer, with every operation in order, plus the rank, determinant, and other properties of the result.
RREF Calculator
Row reduce any matrix with exact fractions, step through every row operation, and practice Gaussian elimination.
Determinant Calculator
Find the determinant of a square matrix with exact fractions, drag a live area picture, and step through elimination or cofactor expansion.
Matrix Multiplication Calculator
Multiply two to four matrices with exact fractions, entry-by-entry explanations, and Python list import and export.