Add two matrices entry by entry over exact fractions.
Matrix Inverse Calculator
Compute a matrix inverse by exact Gauss-Jordan elimination, so the product with the original is precisely the identity.
- Free
- No sign-up
- Runs in your browser
Input
7 characters
One row per line, entries separated by spaces or commas. Fractions such as 3/4 are accepted. Up to 12 x 12.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter the matrix with one row per line.
- 2
Every entry is held as an exact fraction, so the result carries no rounding.
- 3
A ragged matrix is refused rather than padded with zeros, which would change the answer.
Questions about Matrix Inverse Calculator
Why are the entries fractions rather than decimals?
Because they are exact. The inverse of [[4, 7], [2, 6]] has entries 3/5 and -7/10, which have terminating decimals - but 1/3 does not, and showing 0.333333 for it would be a rounding. Multiplying this inverse by the original gives precisely the identity, with no small residue off the diagonal.
Why can a singular matrix not be inverted?
Because it collapses space onto a lower dimension, and that cannot be undone - once a direction has been flattened to nothing there is no way to recover it. Algebraically its determinant is zero, and the inverse would divide by it.
Should I use the inverse to solve a linear system?
Usually not. Solving Ax = b by elimination directly on the system is both faster and better conditioned than forming A inverse and multiplying. The inverse is worth computing when you need the matrix itself, not as a step toward a solution.
Why is a ragged matrix rejected?
Because padding a short row with zeros would change the matrix, and with it the determinant, the inverse and the rank. Guessing at the missing entries would produce a confident answer to a different question, so the tool names the row and asks you to fix it.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Related tools
Other tools you might reach for next.
Multiply two matrices exactly, with the dimension rule explained when it does not apply.
Compute a determinant by exact row reduction, so a singular matrix gives exactly zero rather than 1e-16.
Transpose a matrix, swapping its rows and columns, and detect symmetry.
Determine the rank by exact row reduction - the one matrix property floating point genuinely cannot decide.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.