Math calculators

Inverse Matrix Calculator

Updated Jul 5, 2026 By Jehan Wadia
Rate Formulas
Matrix Size
Matrix Input
Enter integers, decimals, fractions (e.g. 2/3) or complex numbers (e.g. 3+2i) in each cell. Use Tab or arrow keys to move; press Enter to calculate.
Try an Example
Calculation Options
Your Input
Result

Step-by-Step Solution

Introduction

An inverse matrix is a matrix that, when multiplied by the original matrix, gives the identity matrix. Think of it like division for matrices — it "undoes" what the original matrix does. Not every matrix has an inverse. Only square matrices (same number of rows and columns) with a non-zero determinant can be inverted.

This inverse matrix calculator finds the inverse of any square matrix from 2×2 up to 10×10. It supports whole numbers, decimals, fractions, and even complex numbers. You can choose between two methods: Gauss-Jordan elimination or the adjugate (classical adjoint) method. Both give the same answer, but they use different steps to get there.

Type your matrix into the grid or paste it in text mode, then click Calculate Inverse. The tool will show you the exact inverse, a decimal approximation, the determinant, the condition number, and a full step-by-step solution so you can follow along and learn how the process works.

How to Use Our Inverse Matrix Calculator

Enter a square matrix below, and this calculator will find its inverse, show the determinant, and give you a full step-by-step solution.

Pick your matrix size. Click a preset button like 2×2, 3×3, 4×4, or 5×5 to set the grid. You can also type any number from 2 to 10 in the custom size box and click "Set Matrix."

Choose an input mode. Use Grid Mode to type values directly into each cell. Use Text Mode to paste or type your matrix in bracket format, such as [[1,2],[3,4]]. The calculator accepts both styles.

Enter your matrix values. Type a number, fraction like 2/3, or complex number like 3+2i into each cell. Use the Tab key or arrow keys to move between cells. Every cell must have a valid entry before you calculate.

Try an example if you want to test the tool first. Click any example button, such as "2×2 Integer" or "3×3 Singular," to load a sample matrix and see results right away.

Select your calculation method. Choose "Gauss-Jordan Elimination" to solve by row reduction, or choose "Adjugate Method" to solve using cofactors and the adjugate matrix.

Set your decimal places. Pick how many decimal places you want in the approximate result. You can choose any number from 0 to 10.

Turn the step-by-step solution on or off. Check the "Show Detailed Step-by-Step Solution" box to see every row operation or cofactor calculation. Uncheck it to see a shorter summary.

Click "Calculate Inverse" to get your answer. The tool will display the exact inverse matrix, a decimal approximation, the determinant, the condition number, and the full solution steps. If the matrix is singular, it will tell you that no inverse exists and explain why.

What Is an Inverse Matrix?

A matrix is a grid of numbers set up in rows and columns. The inverse of a matrix is a special matrix that, when you multiply it by the original, gives you the identity matrix. The identity matrix is like the number 1 in regular math — it doesn't change anything it multiplies. If matrix A times matrix B equals the identity matrix, then B is the inverse of A.

We write the inverse of matrix A as A⁻¹. Not every matrix has an inverse. Only square matrices (same number of rows and columns) can have one, and even then, only if the determinant is not zero. The determinant is a single number you can calculate from any square matrix. When it equals zero, the matrix is called singular, and no inverse exists.

How to Find the Inverse of a Matrix

There are two common methods to find an inverse matrix:

  • Gauss-Jordan Elimination: You place the original matrix next to the identity matrix to form one wide matrix called an augmented matrix. Then you use row operations — swapping rows, multiplying a row by a number, and adding rows together — until the left side becomes the identity matrix. When it does, the right side is your inverse.
  • Adjugate (Classical Adjoint) Method: You find the cofactor of every entry in the matrix, arrange them into a new matrix, then transpose it (flip rows and columns). That gives you the adjugate. Divide each entry by the determinant, and you get the inverse. The formula is: A⁻¹ = (1 / det(A)) × adj(A).

Why Is the Inverse Matrix Useful?

The inverse matrix helps you solve systems of equations. If you have equations like Ax = b, where A is a matrix and b is a known set of values, you can find x by computing A⁻¹b. This is much faster than solving each equation by hand, especially when there are many variables.

Inverse matrices are also used in computer graphics to undo transformations, in engineering to analyze circuits and structures, in statistics for regression analysis, and in cryptography to encode and decode messages. For general matrix operations such as addition, subtraction, and multiplication, you can also use our matrix calculator.

Key Terms to Know

  • Square Matrix: A matrix with equal rows and columns, such as 2×2, 3×3, or 4×4.
  • Determinant: A number calculated from a square matrix that tells you if the matrix has an inverse. Use our determinant calculator to compute it quickly.
  • Singular Matrix: A matrix with a determinant of zero. It has no inverse.
  • Identity Matrix: A square matrix with 1s on the diagonal and 0s everywhere else. It acts like the number 1 in matrix multiplication.
  • Condition Number: A value that tells you how sensitive the inverse is to small changes in the input. A low number means stable results. A high number means small errors in your data can cause big errors in the answer.

Formulas used

Inverse via Gauss-Jordan Elimination
[A \mid I] \xrightarrow{\text{row reduce}} [I \mid A^{-1}]
Inverse via Adjugate (Classical Adjoint) Method
A^{-1} = \frac{1}{\det(A)} \, \mathrm{adj}(A)
Cofactor Entry
C_{ij} = (-1)^{i+j} \cdot M_{ij}
Adjugate Matrix
\mathrm{adj}(A) = C^{T}
Condition Number (Infinity Norm)
\kappa_{\infty}(A) = \|A\|_{\infty} \cdot \|A^{-1}\|_{\infty}, \quad \|A\|_{\infty} = \max_{i} \sum_{j} |a_{ij}|

Frequently asked questions

What matrix sizes does this inverse matrix calculator support?

This calculator supports any square matrix from 2×2 up to 10×10. Click a preset button for common sizes like 2×2, 3×3, 4×4, or 5×5. For larger matrices, type any number from 2 to 10 in the custom size box and click "Set Matrix."

Can I enter fractions or complex numbers into the matrix?

Yes. Each cell accepts whole numbers, decimals, fractions (like 2/3 or -5/7), and complex numbers (like 3+2i or -1+4i). The calculator handles exact arithmetic for all these types.

What is the difference between Gauss-Jordan and the adjugate method?

Gauss-Jordan elimination uses row operations to turn the original matrix into the identity matrix, revealing the inverse along the way. The adjugate method uses cofactors, the adjugate matrix, and the determinant to compute the inverse with a formula. Both give the same answer. Gauss-Jordan is usually faster for large matrices. The adjugate method shows the formula more clearly.

What does it mean when the calculator says my matrix is singular?

A singular matrix has a determinant equal to zero. This means no inverse exists. No method can produce an inverse for a singular matrix. If you get this message, check your entries for errors. If the values are correct, the matrix simply cannot be inverted.

What is the condition number and why does it matter?

The condition number measures how sensitive the inverse is to small changes in the input. A low number (under 100) means the result is stable and reliable. A high number (over 10,000) means even tiny rounding errors in your data could cause big errors in the inverse. The calculator labels the condition as well-conditioned, moderately ill-conditioned, or ill-conditioned so you know how much to trust the result.

How do I paste a matrix from another source?

Switch to Text Mode by clicking the "Text Mode" button. Then paste your matrix using bracket notation like [[1,2],[3,4]]. The calculator also accepts curly braces like {{1,2},{3,4}} or parentheses like ((1,2),(3,4)). Click "Calculate Inverse" and the tool will read your matrix automatically.

How do I copy the result to use somewhere else?

After the inverse is calculated, click the "Copy Inverse Matrix" button below the result. This copies the inverse in bracket format like [[7,-3],[-4,2]] to your clipboard. You can then paste it into a document, spreadsheet, or another tool.

Does the calculator show exact answers or just decimals?

It shows both. The exact form displays fractions and precise values. The decimal approximation shows rounded numbers to however many decimal places you choose (0 to 10). This way you get a clean answer for homework and a practical number for applied work.

Can I use keyboard shortcuts in the grid?

Yes. Press Tab to move to the next cell. Use the arrow keys (up, down, left, right) to jump between cells in any direction. Press Enter from any cell to run the calculation immediately.

Why does my matrix show a different number of steps depending on the settings?

When "Show Detailed Step-by-Step Solution" is checked, the calculator displays every single row operation or cofactor computation. When it is unchecked, it shows a shorter summary with just the key stages. Toggle this setting based on how much detail you need.

Can a non-square matrix have an inverse?

No. Only square matrices (same number of rows and columns) can have an inverse. A 2×3 or 4×2 matrix cannot be inverted. This calculator only accepts square matrices for that reason.

How do I verify that the inverse is correct?

Multiply the original matrix by the inverse. If the result is the identity matrix (1s on the diagonal, 0s everywhere else), the inverse is correct. You can use a matrix multiplication tool to check this quickly.