About the Inverse Matrix Calculator
This tool finds the inverse of a square matrix and shows the determinant, exact fraction output and decimal output. You type a matrix in the on-screen grid and results update instantly. The app works entirely in your browser and does not upload your numbers to a server. The method used is Gauss-Jordan row reduction on the augmented matrix [A | I] with exact fractions, so you see exact rational results when they exist. The tool also shows a check by multiplying A by the computed inverse to give the identity matrix. You can copy results or create a permalink that reopens with your numbers. The interface accepts square matrices only and supports sizes up to 10 by 10.
How to use it
- 1Enter a square matrix (up to 10 x 10) in the grid.
- 2Watch the inverse, determinant and decimal entries update instantly; there is no calculate button.
- 3Check the A x inverse product shown beside the results to verify the identity.
- 4Copy the result or create a shareable permalink that reopens with your numbers.
Worked example
Input: A = [[1,2],[3,4]] Determinant: ad - bc = 1*4 - 2*3 = -2 Inverse (exact): [[-2,1],[3/2,-1/2]] Inverse (decimals): [[-2,1],[1.5,-0.5]] Check A x inverse: [[1,0],[0,1]]
The formula
Write A next to the identity matrix, [A | I], and row reduce with exact fractions until the left side is IThe right side is then the inverseA matrix has an inverse only when its determinant is not 0For 2 x 2, the inverse of [a b; c d] is 1/(ad - bc) x [d -b; -c a]Source: Invertible matrix - WikipediaGauss-Jordan elimination - MathWorld (Wolfram)2x2 Inverse formula - Ximera (Ohio State). Last checked 5 November 2026.
What it is good for
- Shows exact fractions and decimal output.
- Updates results instantly as you type, no calculate button.
- Runs in the browser and does not upload your numbers.
- Accepts only square matrices up to 10 x 10.
- Does not compute a Moore-Penrose pseudoinverse for non-square matrices.
Questions people ask
When does a matrix have an inverse?
A matrix has an inverse only if it is square and its determinant is not zero. That means its rows or columns are linearly independent.
How does this calculator compute the inverse?
The tool augments A with the identity as [A | I] and applies Gauss-Jordan row reduction with exact fractions. The right side becomes A inverse when the left side reaches I.
Can I invert non-square matrices here?
No. This calculator only handles square matrices. For non-square matrices you need a pseudoinverse, such as the Moore-Penrose inverse, which this tool does not compute.
Why do I sometimes see decimals instead of fractions?
You get both forms. The tool computes exact fractions during elimination and also shows decimal equivalents for readers who prefer floating point numbers.
How can I verify the result?
Multiply A by the computed inverse. The product should equal the identity matrix. The tool shows this check as A x inverse so you can confirm the result.
Are my numbers sent to a server?
No. The calculator runs in your browser and does not upload matrix entries to a server. Once the page has loaded it can work offline in that browser tab.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.