Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Matrix Inverse Calculator

Row 1, column 1: enter a number. Prefilled example: 1.

Row 1, column 2: enter a number. Prefilled example: 2.

Row 1, column 3: enter a number. Prefilled example: 3.

Row 2, column 1: enter a number. Prefilled example: 0.

Row 2, column 2: enter a number. Prefilled example: 1.

Row 2, column 3: enter a number. Prefilled example: 4.

Row 3, column 1: enter a number. Prefilled example: 5.

Row 3, column 2: enter a number. Prefilled example: 6.

Row 3, column 3: enter a number. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Row 1, column 1: enter a number.
  2. Row 1, column 2: enter a number.
  3. Row 1, column 3: enter a number.
  4. Row 2, column 1: enter a number.
  5. Row 2, column 2: enter a number.
  6. Row 2, column 3: enter a number.
  7. Row 3, column 1: enter a number.
  8. Row 3, column 2: enter a number.
  9. Row 3, column 3: enter a number.
  10. 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

  1. Det=a11×(a22×a33−a23×a32)+a12×−(a21×a33−a23×a31)+a13×(a21×a32−a22×a31)
  2. I11={a22×a33−a23×a32Det+0if Det≠010otherwise
Symbols used in the formula
SymbolMeaning
a11Row 1, column 1
a12Row 1, column 2
a13Row 1, column 3
a21Row 2, column 1
a22Row 2, column 2
a23Row 2, column 3
a31Row 3, column 1
a32Row 3, column 2
a33Row 3, column 3
DetDeterminant
I11Inverse row 1, column 1

Worked example

Row 1, column 11
Row 1, column 22
Row 1, column 33
Row 2, column 10
Row 2, column 21
Row 2, column 34
Row 3, column 15
Row 3, column 26
Row 3, column 30
Determinant1
Invertible?Invertible: the inverse is below
Inverse row 1, column 218
Inverse row 1, column 35
Inverse row 2, column 120
Inverse row 2, column 2-15
Inverse row 2, column 3-4
Inverse row 3, column 1-5
Inverse row 3, column 24
Inverse row 3, column 31
  1. Det=1×(1×0−4×6)+2×−(0×0−4×5)+3×(0×6−1×5)=1
  2. I11=1×0−4×61+0=−24

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]].

Related calculators