Inverse Matrix Calculator
Find the inverse of any square matrix from 1×1 to 6×6 with exact fraction steps, Gauss-Jordan row elimination, and singular matrix alerts.
How to Find the Inverse of a Matrix
The inverse of a matrix \(A\), denoted as \(A^{-1}\), is the unique matrix that reverses the linear transformation performed by \(A\). Multiplying a matrix by its inverse yields the identity matrix \(I\):
\(A A^{-1} = A^{-1} A = I\)
The Singularity Condition
Before computing an inverse, you must always evaluate \(\det(A)\).
- If \(\det(A) \ne 0\): Matrix \(A\) is invertible (or non-singular) and has a unique inverse.
- If \(\det(A) = 0\): Matrix \(A\) is singular. Dividing by zero is impossible in arithmetic (\(\frac{1}{\det(A)}\)), so no inverse exists.
Working with a 2×2 matrix? It has a much shorter shortcut formula. See our inverse of a 2x2 matrix guide or use the 2×2 inverse matrix calculator.
Solved Examples with Complete Working
Find \(A^{-1}\) for matrix \(A\):
\(A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}\)
Step 1: Check Determinant:
\(\det(A) = 1(0 - 24) - 2(0 - 20) + 3(0 - 5) = -24 + 40 - 15 = 1\)
Since \(\det(A) = 1 \ne 0\), the inverse exists.
Step 2: Calculate Cofactors & Adjugate:
\(\text{adj}(A) = C^T = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\)
Step 3: Multiply by \(1 / \det(A)\):
\(A^{-1} = \frac{1}{1} \text{adj}(A) = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}\)
Verification: \(A A^{-1} = I_3\).
Attempt to find the inverse of matrix \(S\):
\(S = \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix}\)
Step 1: Compute Determinant:
\(\det(S) = (2)(2) - (4)(1) = 4 - 4 = 0\)
Conclusion:
Because \(\det(S) = 0\), matrix \(S\) is singular. Its row vectors \([2, 4]\) and \([1, 2]\) are linearly dependent (\(R_1 = 2 R_2\)). It cannot be inverted.
Master Inversion Theory
Want to see a side-by-side comparison of Gauss-Jordan elimination versus Cramer's adjugate formula?
Read our complete student tutorial: How to Find the Inverse of a Matrix → Quick guide: Inverse of a 2x2 Matrix with solved examples →