What is a cofactor matrix?
The cofactor matrix of a square matrix is a matrix where each element C<sub>ij</sub> is the cofactor of the corresponding element in the original matrix. Each cofactor is computed as C<sub>ij</sub> = (−1)<sup>i+j</sup> × M<sub>ij</sub>, where M<sub>ij</sub> is the minor — the determinant of the submatrix formed by removing row i and column j. See also our Row Echelon Form Calculator.
How do I find the cofactor of a 2×2 matrix?
For a 2×2 matrix [[a, b], [c, d]], the four cofactors are: C<sub>11</sub> = d, C<sub>12</sub> = −c, C<sub>21</sub> = −b, C<sub>22</sub> = a. Each minor of a 2×2 matrix is just a single element (after removing one row and one column), and the sign factor (−1)<sup>i+j</sup> alternates in a checkerboard pattern.
What is the difference between a minor and a cofactor?
A minor M<sub>ij</sub> is the determinant of the submatrix obtained by deleting row i and column j from the original matrix. A cofactor C<sub>ij</sub> is the signed minor: C<sub>ij</sub> = (−1)<sup>i+j</sup> × M<sub>ij</sub>. The sign factor creates a checkerboard pattern of +1 and −1 values across the matrix.
How do I find the inverse matrix using cofactors?
To find the inverse of a matrix using cofactors: (1) compute the cofactor matrix, (2) transpose it to get the adjugate matrix, and (3) divide every element by the determinant of the original matrix. The formula is: A<sup>−1</sup> = (1 / det(A)) × adj(A). This method only works when det(A) ≠ 0.
What is the adjugate (adjoint) matrix?
The adjugate matrix (also called the classical adjoint) is the transpose of the cofactor matrix. If C is the cofactor matrix of A, then adj(A) = C<sup>T</sup>. The adjugate is used to compute the matrix inverse via A<sup>−1</sup> = adj(A) / det(A), and it satisfies the identity A × adj(A) = det(A) × I.
Can every square matrix have a cofactor matrix?
Yes, every square matrix has a cofactor matrix, regardless of whether it is invertible. However, the cofactor matrix is most useful when computing the inverse, which requires a non-zero determinant. If det(A) = 0, the matrix is singular and not invertible, but the cofactor matrix still exists.
How do minors and cofactors relate to the determinant?
The determinant of a matrix can be computed by expanding along any row or column using cofactors — this is known as cofactor expansion (Laplace expansion). For row i: det(A) = Σ a<sub>ij</sub> × C<sub>ij</sub> for all j. This recursive relationship means minors and cofactors are fundamental building blocks for determinant computation.
What matrix sizes does this calculator support?
This cofactor matrix calculator supports 2×2, 3×3, and 4×4 square matrices. Select your desired size from the dropdown menu, fill in all matrix elements, and the cofactor matrix, determinant, and adjugate matrix are computed for you automatically.