Inverse Matrix Calculator: A⁻¹ with Exact Fractions
By FindMySum · Last reviewed
An inverse matrix calculator finds A⁻¹, the matrix that undoes A: multiplying them gives the identity matrix, the matrix version of the number 1. Only square matrices with a non-zero determinant have an inverse. The calculator uses Gauss–Jordan elimination and keeps every entry as an exact fraction, so you see 1/7 rather than 0.142857.
Worked example
Invert the 3×3 matrix with rows 2 1 1, then 1 3 2, then 1 0 0, typed into the calculator as 2 1 1; 1 3 2; 1 0 0.
- Determinant: expanding along the third row, 1 × (1 × 2 − 1 × 3) = −1. It is not zero, so the inverse exists.
- Write [A | I], the matrix next to the 3×3 identity, and row-reduce until the left half becomes I.
- The right half is then the inverse, with rows 0 0 1, then −2 1 3, then 3 −1 −5.
Check one entry: row 1 of A times column 1 of A⁻¹ is 2 × 0 + 1 × (−2) + 1 × 3 = 1, as the identity needs. Because the determinant is −1, every entry of the inverse is a whole number.
When an inverse is useful
Solving systems of equations, undoing a transformation in computer graphics, and in statistics, where least-squares regression uses (XᵀX)⁻¹. With decimals that are only approximate, a nearly singular matrix can give an inverse with huge entries, a sign that the problem is ill-conditioned.
For the determinant, RREF, multiplication and transpose, use the matrix calculator; for the determinant alone, the determinant calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.