Skip to content
Zesona
Matrix Inverse CalculatorLocal

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

Runs in your browser

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. 1

    Enter the matrix with one row per line.

  2. 2

    Every entry is held as an exact fraction, so the result carries no rounding.

  3. 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.

Other tools you might reach for next.