Cofactor Matrix Calculator

Enter a square matrix to find its cofactor matrix.

Matrix A
Rows
2
Columns
2

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

Try

Result

You enteredC((1234))C\left(\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}\right)

C=(4−3−21)\displaystyle C = \begin{pmatrix} 4 & -3 \\ -2 & 1 \end{pmatrix}

Adjugate (the transpose)

adj⁡A=(4−2−31)\displaystyle \operatorname{adj}A = \begin{pmatrix} 4 & -2 \\ -3 & 1 \end{pmatrix}

Determinant

−2\displaystyle -2
Show the work
  1. Minor of an entry

    The minor of the entry in row i, column j is the determinant of what is left when that row and column are deleted.

    Using Mij=det⁡(A without row i and column j)M_{ij} = \det(A \text{ without row } i \text{ and column } j)

    M11=det⁡(4)=4,M12=det⁡(3)=3M_{11} = \det\begin{pmatrix} 4 \end{pmatrix} = 4,\quad M_{12} = \det\begin{pmatrix} 3 \end{pmatrix} = 3
  2. Matrix of minors

    Do this for all 4 entries.

    M=(4321)M = \begin{pmatrix} 4 & 3 \\ 2 & 1 \end{pmatrix}
  3. Cofactors: the checkerboard of signs

    Each cofactor is its minor with the sign + or − from the checkerboard pattern that starts with + in the top-left corner.

    Using Cij=(−1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}

    C=(4−3−21)C = \begin{pmatrix} 4 & -3 \\ -2 & 1 \end{pmatrix}
  4. Check by the determinant

    Multiplying the first row of A by its cofactors and adding gives det A (the cofactor expansion).

    det⁡A=1⋅4+2⋅(−3)=−2\begin{aligned} \det A &= 1\cdot4 + 2\cdot\left(-3\right) \\ &= -2 \end{aligned}
  5. Result

    The cofactor matrix.

    C=(4−3−21)C = \begin{pmatrix} 4 & -3 \\ -2 & 1 \end{pmatrix}

Worked examples