Cofactor Matrix Calculator
Solve cofactor matrix problems step-by-step with our free calculator. See formulas, worked examples, and clear explanations.
Reviewed by Manoj Kumar, Mathematics Educator
Formula
adj(A) = (cofactor matrix of A)ᵀ
Enter matrix values row by row, separated by commas.
Worked Examples
Example 1: Cofactors of the identity matrix
Problem:Find the cofactor matrix of the 3x3 identity matrix (1,0,0,0,1,0,0,0,1).
Solution:Because most 2x2 minors involve rows/columns of zeros and ones, the cofactors work out to C(0,0)=1, C(1,1)=1, C(2,2)=1, and all off-diagonal cofactors are 0.
Result:Cofactor matrix = the identity matrix itself; det = 1
Example 2: Cofactors feeding into a determinant check
Problem:For A = [[2,0,1],[3,0,0],[5,1,1]], use the first-row cofactors to verify the determinant.
Solution:C(0,0) = (0×1−0×1) = 0. C(0,1) = −(3×1−0×5) = −3. C(0,2) = (3×1−0×5) = 3. det = 2(0) + 0(−3) + 1(3) = 3.
Result:det(A) = 3, confirmed via first-row cofactor expansion
Frequently Asked Questions
What is a cofactor, and how is it different from a minor?
A minor M(i,j) is the determinant of the smaller matrix left after deleting row i and column j from the original matrix. A cofactor C(i,j) is that same minor multiplied by a sign, (−1)^(i+j) — so cofactors and minors have identical magnitudes but alternate in sign across a checkerboard pattern, starting with + in the top-left position.
Why does the sign of each cofactor alternate in a checkerboard pattern?
The (−1)^(i+j) sign factor comes directly from the algebraic derivation of the determinant via row/column expansion — it ensures that when you sum entry × cofactor across any row or column, the signs correctly account for how permutations of the matrix's rows and columns affect the sign of the determinant. Visually, position (0,0) is always +, and each adjacent cell alternates, exactly like a checkerboard.
How is the cofactor matrix used to compute the determinant?
Cofactor expansion computes the determinant as the sum of each entry in any single row (or column) multiplied by its corresponding cofactor: det(A) = a₀₀C₀₀ + a₀₁C₀₁ + a₀₂C₀₂ (expanding along the first row of a 3x3 matrix). This works for expansion along any row or column — they all yield the identical determinant value.
How does the cofactor matrix relate to the adjoint (adjugate) matrix?
The adjoint (or adjugate) matrix is simply the transpose of the cofactor matrix: adj(A) = Cᵀ. This relationship is the key building block of the matrix inverse formula, A⁻¹ = adj(A) / det(A), which is why computing the cofactor matrix is usually the first step toward finding a matrix inverse by hand.
References
Reviewed by Manoj Kumar, Mathematics Educator · Editorial policy