Math Tools 7 min read 1,485 words By LaiUse Editorial Team Reviewed 28 October 2026

Matrix Inverse — Complete Guide

The Matrix Inverse tool calculates the inverse of an invertible square matrix using Gauss-Jordan elimination.

What it does

The Matrix Inverse tool calculates the inverse of an invertible square matrix using Gauss-Jordan elimination. Enter the entries of a matrix as text, run the calculation, and inspect the resulting inverse together with the elimination steps used to derive it. The tool is intended for matrix inversion tasks where seeing the intermediate reduction is useful, rather than receiving only an unexplained final answer.

All calculation work happens locally in the browser through plain browser APIs. There is no backend endpoint, so the matrix and any computed results are not uploaded to a server. The tool operates in a single mode: it takes a matrix and works toward its inverse. It does not calculate other matrix properties, provide alternative inverse methods, or offer separate variants of the operation.

When to use it

How to use it

  1. Open the matrix entry area. Enter the matrix as text. The shipped placeholder illustrates the expected arrangement: “e.g. 4 7” on the first row and “2 6” on the second. Separate entries with spaces and separate rows with a line break.
  2. Enter a square matrix. Every row must have the same number of entries, and the number of rows must equal the number of columns. The matrix dimensions are determined from the text you supply; the tool does not provide a separate control for choosing a row or column count.
  3. Use the included example if needed. The sample corresponds to the matrix with rows 4 7 and 2 6. Replace it with your own values when you are ready to calculate.
  4. Run the inverse calculation. Activate the page control that performs the inversion. The output does not update merely because the input changes, so you must explicitly run the calculation after editing the matrix.
  5. Review the elimination steps. Inspect the row-reduction sequence and the final inverse. These steps provide the mathematical path from the augmented matrix to the result.
  6. Copy the result when needed. The tool provides a copy function for the calculated output, allowing you to transfer the result to another application. It does not provide a file download, so copying is the available route for moving the result out of the page.

Worked example

Suppose you need the inverse of the matrix shown in the built-in example:

4 7
2 6

This is a two-by-two square matrix. Its determinant is calculated as 4 × 6 − 7 × 2, which equals 24 − 14, or 10. Because the determinant is nonzero, the matrix is invertible.

During Gauss-Jordan elimination, the original matrix is augmented with the two-by-two identity matrix. Conceptually, the process begins with:

4 7 | 1 0
2 6 | 0 1

Row operations can then reduce the left side to the identity matrix while applying the same operations to the right side. One valid sequence starts by exchanging the two rows:

2 6 | 0 1
4 7 | 1 0

Subtracting twice the first row from the second row gives:

2 6 | 0 1
0 −5 | 1 −2

Multiplying the second row by −1/5 gives:

2 6 | 0 1
0 1 | −0.2 0.4

Subtracting six times the second row from the first row eliminates the remaining entry above the second pivot:

2 0 | 1.2 −1.4
0 1 | −0.2 0.4

Finally, multiplying the first row by 1/2 produces the identity matrix on the left and the inverse on the right:

1 0 | 0.6 −0.7
0 1 | −0.2 0.4

The expected mathematical result is therefore the inverse matrix with rows 0.6 −0.7 and −0.2 0.4. The tool’s displayed step formatting may differ from this conceptual layout, but it uses Gauss-Jordan elimination and shows the elimination steps described above.

Limitations and edge cases

Troubleshooting

Frequently asked questions

Does the tool upload my matrix? No. Processing happens entirely in the browser, no backend endpoint is called, and nothing is uploaded. The entered values remain part of the local calculation.

Can the tool open a matrix file? No. There is no file input, so it does not accept files or file types. Paste or type the matrix values as text instead.

Can I download the inverse? No. The tool does not provide a download function. It does provide a copy function, which can be used to transfer the calculated result to another application.

Does the inverse update while I type? No. The output is not live. After changing the matrix, explicitly run the calculation to obtain a new result.

Does the tool remember my last matrix? No. It does not use local storage, and it does not retain state between visits. Copy any result you need to keep.

Is there a published matrix-size limit? No numeric limit is stated. For very large matrices or advanced numerical analysis, a dedicated linear-algebra tool is the better choice.

What should I use if my matrix is not invertible? Use a different approach depending on the task. A singular matrix has no ordinary inverse; solving a compatible system, finding the null space, or calculating a Moore-Penrose pseudoinverse requires other tools or methods.

Why does the tool show elimination steps? The calculation uses Gauss-Jordan elimination, which transforms the augmented matrix into the identity matrix while producing the inverse. Showing the steps makes the row operations and the path to the answer visible rather than returning only a final value.

Want to try it? Open the Matrix Inverse — it runs in your browser, so your files stay on your device.

Browse every guide · Read the blog · About LaiUse