Inverse Matrix Calculator

Find the inverse of a square matrix, or see why it has none.

Matrix A
Size
3

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You entered(123014560)−1\begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{pmatrix}^{-1}

(−2418520−15−4−541)\displaystyle \begin{pmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{pmatrix}

Check

(123014560)(−2418520−15−4−541)=(100010001)\displaystyle \begin{pmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{pmatrix} \begin{pmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{pmatrix} = \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix}

Determinant

1\displaystyle 1
Show the work
  1. Existence of the inverse

    An inverse exists exactly when the determinant is not 0. Here the determinant is 11, which is not 0, so AA has an inverse. The row reduction below turns AA into the identity matrix II.

    det⁡A=1\det A = 1
  2. Augmented matrix [A | I]

    Write the identity matrix beside AA. Whatever row operations turn the left half into II turn the right half into A−1A^{-1}.

    (123100014010560001)\left(\begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 5 & 6 & 0 & 0 & 0 & 1 \end{array}\right)
  3. Row operation: add a multiple of one row to another

    Subtract 55 times R1R_1 from R3R_3 to turn the entry in row 3, column 1 into 0.

    R3→R3−5R1(1231000140100−4−15−501)R_3 \to R_3 - 5R_1 \quad \left(\begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & -4 & -15 & -5 & 0 & 1 \end{array}\right)
  4. Row operation: add a multiple of one row to another

    Subtract 22 times R2R_2 from R1R_1 to turn the entry in row 1, column 2 into 0.

    R1→R1−2R2(10−51−200140100−4−15−501)R_1 \to R_1 - 2R_2 \quad \left(\begin{array}{ccc|ccc} 1 & 0 & -5 & 1 & -2 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & -4 & -15 & -5 & 0 & 1 \end{array}\right)
  5. Row operation: add a multiple of one row to another

    Add 44 times R2R_2 to R3R_3 to turn the entry in row 3, column 2 into 0.

    R3→R3+4R2(10−51−20014010001−541)R_3 \to R_3 + 4R_2 \quad \left(\begin{array}{ccc|ccc} 1 & 0 & -5 & 1 & -2 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array}\right)
  6. Row operation: add a multiple of one row to another

    Add 55 times R3R_3 to R1R_1 to turn the entry in row 1, column 3 into 0.

    R1→R1+5R3(100−24185014010001−541)R_1 \to R_1 + 5R_3 \quad \left(\begin{array}{ccc|ccc} 1 & 0 & 0 & -24 & 18 & 5 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array}\right)
  7. Row operation: add a multiple of one row to another

    Subtract 44 times R3R_3 from R2R_2 to turn the entry in row 2, column 3 into 0.

    R2→R2−4R3(100−2418501020−15−4001−541)R_2 \to R_2 - 4R_3 \quad \left(\begin{array}{ccc|ccc} 1 & 0 & 0 & -24 & 18 & 5 \\ 0 & 1 & 0 & 20 & -15 & -4 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array}\right)
  8. Result

    So A−1=(−2418520−15−4−541)A^{-1} = \begin{pmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{pmatrix}, the right-hand half now that the left half is II.

Worked examples