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.