Determinant Calculator

Find the determinant of a square matrix, exactly.

Matrix A
Size
3

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

Try

Result

You entereddet⁡(6114−25287)\det \begin{pmatrix} 6 & 1 & 1 \\ 4 & -2 & 5 \\ 2 & 8 & 7 \end{pmatrix}

−306\displaystyle -306
Show the work
  1. Cofactor expansion along the first row

    Multiply each entry of the first row by the 2 by 2 determinant left when its row and column are crossed out (its minor). The signs alternate +,−,++, -, +.

    det⁡A=a11(a22a33−a23a32)−a12(a21a33−a23a31)+a13(a21a32−a22a31)=6((−2)×7−5×8)−1(4×7−5×2)+1(4×8−(−2)×2)\begin{aligned} \det A &= a_{11}\left(a_{22}a_{33} - a_{23}a_{32}\right) - a_{12}\left(a_{21}a_{33} - a_{23}a_{31}\right) + a_{13}\left(a_{21}a_{32} - a_{22}a_{31}\right) \\ &= 6\left(\left(-2\right) \times 7 - 5 \times 8\right) - 1\left(4 \times 7 - 5 \times 2\right) + 1\left(4 \times 8 - \left(-2\right) \times 2\right) \end{aligned}
  2. Value of each 2 by 2 minor

    Work out the three small determinants, each of the form ad−bcad - bc.

    det⁡A=6(−14−40)−1(28−10)+1(32−(−4))=6(−54)−1(18)+1(36)\begin{aligned} \det A &= 6\left(-14 - 40\right) - 1\left(28 - 10\right) + 1\left(32 - \left(-4\right)\right) \\ &= 6\left(-54\right) - 1\left(18\right) + 1\left(36\right) \end{aligned}
  3. Weighted sum of the minors

    Multiply each first-row entry by its minor, keeping the alternating signs, and add.

    det⁡A=−324−18+36=−306\begin{aligned} \det A &= -324 - 18 + 36 \\ &= -306 \end{aligned}
  4. Result

    So det⁡A=−306\det A = -306.

Worked examples