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((2153))C\left(\begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix}\right)

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

Adjugate (the transpose)

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

Determinant

1\displaystyle 1
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⁡(3)=3,M12=det⁡(5)=5M_{11} = \det\begin{pmatrix} 3 \end{pmatrix} = 3,\quad M_{12} = \det\begin{pmatrix} 5 \end{pmatrix} = 5
  2. Matrix of minors

    Do this for all 4 entries.

    M=(3512)M = \begin{pmatrix} 3 & 5 \\ 1 & 2 \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=(3−5−12)C = \begin{pmatrix} 3 & -5 \\ -1 & 2 \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=2⋅3+1⋅(−5)=1\begin{aligned} \det A &= 2\cdot3 + 1\cdot\left(-5\right) \\ &= 1 \end{aligned}
  5. Result

    The cofactor matrix.

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

Worked examples