Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Matrix LU Decomposition CalculatorMatrix Rank CalculatorMatrix CalculatorNull Space CalculatorCharacteristic Polynomial CalculatorDeterminant CalculatorQR Decomposition Calculator
Home Page > Math > Linear Algebra

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.

Free to useNo sign-up requiredInstant Results
Matrix Inverse CalculatorTry it now — free ▼
Examples:
Matrix Size: 3 × 3
[
]

Embed Matrix Inverse Calculator Widget

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.

Square Matrix
Only square matrices (n×n) can have inverses. Rectangular matrices do not have two-sided inverses.
Nonzero Determinant
det(A) ≠ 0 means A is invertible. If det(A) = 0, the matrix is singular and has no inverse.
Unique Inverse
If an inverse exists, it is unique. Both left and right inverses are the same matrix.
×
Product Property
\((AB)^{-1} = B^{-1}A^{-1}\). The inverse of a product reverses the order of factors.

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

MethodHow It WorksBest For
Gauss-Jordan EliminationRow-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 DecompositionFactor A = LU, solve LUX = INumerical computing, large matrices

Properties of Inverse Matrices

PropertyFormula
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

📐
Solving Linear Systems
Ax = b has solution x = A⁻¹b when A is invertible.
📊
Statistics & Regression
OLS estimator: β = (X'X)⁻¹X'y requires the inverse of the moment matrix.
🔄
Computer Graphics
Inverse transformation matrices undo rotations, translations, and scaling.
🔐
Cryptography
Hill cipher decryption uses the inverse of the encryption key matrix modulo 26.

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/matrix-inverse-calculator/ 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.

Linear Algebra:

Top & Updated:

Matrix Diagonalization CalculatorMatrix Multiplication CalculatorMatrix Power CalculatorView all →
Home Page > Math > Linear Algebra > Matrix Inverse Calculator