How to Use the Inverse Matrix Calculator
This inverse matrix calculator supports 2×2 and 3×3 matrices — select the size, enter all entries, then click Find Inverse to compute the inverse matrix, determinant, and (for 3×3 matrices) the cofactor matrix and adjugate. Toggle Show step-by-step work to see the full derivation. If the determinant is zero, the matrix is singular and has no inverse — the calculator will show an error explaining why. For solving systems of linear equations by row reduction, see our RREF calculator.
Results are shown as decimals rounded to four decimal places. The step panel shows the intermediate cofactor values and the adjugate before dividing by the determinant.
How to Find the Inverse of a 2×2 Matrix
For a 2×2 matrix A = [[a, b], [c, d]], the inverse has a simple closed-form formula. There are just four steps:
- Compute the determinant: det(A) = a·d − b·c
- Check invertibility: if det = 0, stop — the matrix is singular and has no inverse
- Form the adjugate: swap the diagonal entries (a and d), and negate the off-diagonal entries (b and c) → [[d, −b], [−c, a]]
- Divide by the determinant: A⁻¹ = (1/det) · [[d, −b], [−c, a]]
Example: A = [[4, 7], [2, 6]]. det = 4·6 − 7·2 = 24 − 14 = 10. A⁻¹ = (1/10) · [[6, −7], [−2, 4]] = [[0.6, −0.7], [−0.2, 0.4]]. Verification: A · A⁻¹ = [[4·0.6 + 7·(−0.2), …], …] = [[1, 0], [0, 1]].
How to Find the Inverse of a 3×3 Matrix
For a 3×3 matrix, the adjugate method has three main stages: compute the determinant, build the cofactor matrix, transpose it to get the adjugate, then divide by the determinant.
Step 1 — Compute the 3×3 Determinant
Expand along the first row using the rule of Sarrus or cofactor expansion:
det(A) = a(ei − fh) − b(di − fg) + c(dh − eg)
where [[a, b, c], [d, e, f], [g, h, i]] are the matrix entries. If det = 0, the matrix is not invertible. For determinant-only calculations, our determinant calculator handles larger matrices.
Step 2 — Compute the Cofactor Matrix
Each cofactor C_ij = (−1)^(i+j) × M_ij, where M_ij is the 2×2 minor determinant obtained by deleting row i and column j. The sign pattern is:
+ − +
− + −
+ − +
Compute all nine 2×2 determinants, apply the sign, and arrange into the cofactor matrix C.
Step 3 — Transpose to Get the Adjugate
The adjugate adj(A) is the transpose of C: swap entry C_ij with C_ji. The adjugate has the property that A · adj(A) = det(A) · I, which is why dividing by the determinant gives the inverse.
Step 4 — Divide by the Determinant
A⁻¹ = (1 / det(A)) · adj(A). Divide every entry of the adjugate by the determinant to obtain the inverse matrix.
Verification: A · A⁻¹ = I
Always verify your result by multiplying the original matrix by its inverse — the product must equal the identity matrix (1s on the diagonal, 0s elsewhere). Small floating-point errors of ±0.0001 are normal and expected when working with decimals. If any off-diagonal entry is larger than about 0.001, recheck your inputs or the computation.
When a Matrix Is Not Invertible
A matrix is singular (not invertible) when its determinant is zero. This happens when:
- Two rows (or columns) are identical — for example, [[1, 2], [1, 2]]
- One row is a multiple of another — for example, [[1, 2], [2, 4]] has det = 4 − 4 = 0
- One row is a zero row — [[1, 2], [0, 0]] has det = 0
- Rows are linearly dependent — in 3×3 matrices, if one row can be expressed as a linear combination of the other two
In a system of equations, a singular coefficient matrix means the system either has no solution (inconsistent) or has infinitely many solutions. Use the RREF calculator to distinguish between the two cases.
Applications of the Matrix Inverse
- Solving linear systems: if Ax = b, then x = A⁻¹b — but for large systems, row reduction is more efficient in practice
- Computer graphics: inverse transformation matrices convert from screen space back to world space, enabling ray tracing and picking
- Statistics: the inverse covariance matrix (precision matrix) appears in multivariate normal distributions and linear discriminant analysis
- Control systems: transfer functions and state-space models require matrix inverses for stability analysis
- Cryptography: Hill cipher encryption and decryption use matrix multiplication and matrix inverses over modular arithmetic
Sources & References
- Inverse of a Matrix — Khan Academy — Khan Academy
- Inverse of a Matrix — Math is Fun — Math is Fun