Matrix Inverse Calculator
Calculate the inverse of a square matrix using Gauss-Jordan elimination with detailed step-by-step row operations. Supports 2×2 to 6×6 matrices with exact fractional arithmetic, determinant calculation, and A×A⁻¹=I verification.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Matrix Inverse Calculator
The Matrix Inverse Calculator computes the inverse of any square matrix using Gauss-Jordan elimination, showing every row operation step by step. Enter a 2×2, 3×3, 4×4, 5×5, or 6×6 matrix and get the exact inverse with fractional arithmetic — no rounding errors. The tool also calculates the determinant and verifies the result by confirming A × A⁻¹ = I.
What Is a Matrix Inverse?
The inverse of a square matrix \(A\), written \(A^{-1}\), is the unique matrix satisfying:
$$A \times A^{-1} = A^{-1} \times A = I$$
where \(I\) is the identity matrix. Only non-singular matrices (those with a nonzero determinant) have an inverse.
How to Find the Inverse Using Gauss-Jordan Elimination
Step 1. Choose the size of your square matrix (2×2 to 6×6) using the +/− buttons, or click a quick example to load a preset matrix.
Step 2. Enter your matrix values into the grid. You can type integers, decimals, or fractions like 1/3 or -5/2. Use Tab, Enter, or arrow keys to navigate between cells. Diagonal cells are highlighted with a blue tint.
Step 3. Click Calculate Inverse. The calculator augments your matrix with the identity [A|I] and applies Gauss-Jordan elimination to transform it into [I|A⁻¹].
Step 4. Review the inverse in both exact fractional and decimal forms. Switch between views using the tabs. The heatmap visualization shows the magnitude and sign of each entry at a glance.
Step 5. Explore the step-by-step solution by clicking through each row operation, or press Play for animated playback. The verification section confirms that A × A⁻¹ = I.
The 2×2 Matrix Inverse Formula
For a 2×2 matrix \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}\), the inverse is:
$$A^{-1} = \frac{1}{ad - bc} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix}$$
This formula works only when \(ad - bc \neq 0\). For larger matrices, Gauss-Jordan elimination (the method this calculator uses) is the standard approach.
Methods for Computing Matrix Inverses
| Method | How It Works | Best For |
|---|---|---|
| Gauss-Jordan Elimination | Row-reduce [A|I] to [I|A⁻¹] | General purpose, any size |
| 2×2 Formula | \(\frac{1}{\det}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}\) | Quick 2×2 calculations |
| Adjugate Method | \(A^{-1} = \frac{1}{\det(A)} \text{adj}(A)\) | Theoretical, symbolic work |
| LU Decomposition | Factor A = LU, solve LUX = I | Numerical computing, large matrices |
Properties of Inverse Matrices
| Property | Formula |
|---|---|
| Involution | \((A^{-1})^{-1} = A\) |
| Transpose | \((A^T)^{-1} = (A^{-1})^T\) |
| Scalar Multiple | \((kA)^{-1} = \frac{1}{k} A^{-1}\) |
| Product | \((AB)^{-1} = B^{-1} A^{-1}\) |
| Determinant | \(\det(A^{-1}) = \frac{1}{\det(A)}\) |
Applications of Matrix Inverses
Frequently Asked Questions
What is the inverse of a matrix?
The inverse of a square matrix A, denoted A⁻¹, is the unique matrix such that A × A⁻¹ = A⁻¹ × A = I, where I is the identity matrix. Only square matrices with a nonzero determinant (non-singular matrices) have inverses.
How do you find the inverse using Gauss-Jordan elimination?
Form the augmented matrix [A|I] by placing the identity matrix next to A. Then apply row operations to reduce the left side to the identity matrix. The right side automatically becomes A⁻¹. This works because each row operation is equivalent to left-multiplying by an elementary matrix.
When does a matrix not have an inverse?
A matrix is singular (non-invertible) when its determinant equals zero. This happens when the rows or columns are linearly dependent, meaning one row can be written as a combination of the others. During Gauss-Jordan elimination, this shows up as a zero pivot.
What is the relationship between the determinant and the inverse?
A matrix has an inverse if and only if its determinant is nonzero. For a 2×2 matrix [[a,b],[c,d]], the inverse is (1/det) × [[d,-b],[-c,a]] where det = ad - bc. For larger matrices, the adjugate formula gives A⁻¹ = (1/det(A)) × adj(A).
Can non-square matrices have inverses?
Non-square matrices do not have true two-sided inverses. However, they may have left inverses (if they have full column rank) or right inverses (if they have full row rank). The Moore-Penrose pseudoinverse generalizes the concept to all matrices.
Reference this content, page, or tool as:
"Matrix Inverse Calculator" at https://MiniWebtool.com// from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: 2026-04-09
You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.