Matrix Inverse Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter a 3×3 matrix to get its determinant and its inverse. For a 2×2 matrix, set row 3 and column 3 to 0 except a 1 in the corner.
Result
Inverse row 1, column 1
Determinant
- Invertible?
- Inverse row 1, column 2
- Inverse row 1, column 3
- Inverse row 2, column 1
- Inverse row 2, column 2
- Inverse row 2, column 3
- Inverse row 3, column 1
- Inverse row 3, column 2
- Inverse row 3, column 3
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Row 1, column 1: enter a number.
- Row 1, column 2: enter a number.
- Row 1, column 3: enter a number.
- Row 2, column 1: enter a number.
- Row 2, column 2: enter a number.
- Row 2, column 3: enter a number.
- Row 3, column 1: enter a number.
- Row 3, column 2: enter a number.
- Row 3, column 3: enter a number.
- Read the result: Inverse row 1, column 1; the panel also shows Determinant, Invertible?, Inverse row 1, column 2, Inverse row 1, column 3, Inverse row 2, column 1, Inverse row 2, column 2, Inverse row 2, column 3, Inverse row 3, column 1, Inverse row 3, column 2 and Inverse row 3, column 3.
How this calculator works
The inverse of A is A⁻¹ = adj(A) ÷ det(A), where adj(A) is the transpose of the matrix of cofactors. Cofactor Cᵢⱼ = (−1)^(i+j) × the determinant of the 2×2 matrix left after deleting row i and column j.
The determinant is expanded along the first row: det(A) = a₁₁C₁₁ + a₁₂C₁₂ + a₁₃C₁₃. A matrix with determinant 0 is singular and has no inverse.
The result satisfies A × A⁻¹ = I, the identity matrix. Gauss-Jordan elimination on [A | I] gives the same inverse.
The formula
| Symbol | Meaning |
|---|---|
| Row 1, column 1 | |
| Row 1, column 2 | |
| Row 1, column 3 | |
| Row 2, column 1 | |
| Row 2, column 2 | |
| Row 2, column 3 | |
| Row 3, column 1 | |
| Row 3, column 2 | |
| Row 3, column 3 | |
| Determinant | |
| Inverse row 1, column 1 |
Worked example
| Row 1, column 1 | 1 |
|---|---|
| Row 1, column 2 | 2 |
| Row 1, column 3 | 3 |
| Row 2, column 1 | 0 |
| Row 2, column 2 | 1 |
| Row 2, column 3 | 4 |
| Row 3, column 1 | 5 |
| Row 3, column 2 | 6 |
| Row 3, column 3 | 0 |
| Determinant | 1 |
|---|---|
| Invertible? | Invertible: the inverse is below |
| Inverse row 1, column 2 | 18 |
| Inverse row 1, column 3 | 5 |
| Inverse row 2, column 1 | 20 |
| Inverse row 2, column 2 | -15 |
| Inverse row 2, column 3 | -4 |
| Inverse row 3, column 1 | -5 |
| Inverse row 3, column 2 | 4 |
| Inverse row 3, column 3 | 1 |
Inverse row 1, column 1 -24
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
When does a matrix have no inverse?
When its determinant is 0. Its rows are then linearly dependent, as in [[1, 2, 3], [4, 5, 6], [7, 8, 9]].
How do you check an inverse?
Multiply it by the original matrix: the product must be the identity matrix.
What is the inverse of a 2×2 matrix?
For [[a, b], [c, d]], it is 1 ÷ (ad − bc) × [[d, −b], [−c, a]].