Cofactor Matrix Calculator

Cofactor Matrix Calculator

Calculate the matrix of cofactors from any 2×2 or 3×3 matrix.

Last updated: 2026-05-24T22:58:31.711Z

Matrix cell inputs must be numeric. Use decimal for fractional values.

Cofactor Matrix

4.00-1.00
-3.002.00

What is a Cofactor Matrix?

A cofactor matrix is obtained by replacing each element of a matrix with its corresponding cofactor. Each cofactor is a signed minor (the determinant of the smaller matrix formed by deleting a row and column, multiplied by -1 raised to the sum of the row and column indices).

The cofactor matrix is essential for finding the inverse matrix and understanding matrix transformations. The transpose of the cofactor matrix is called the adjugate matrix, which is used in the formula: A⁻¹ = (1/det(A)) × adj(A).

Cofactor Calculation

Cofactor Formula

Cᵢⱼ = (-1)^(i+j) · Mᵢⱼ

Where Mᵢⱼ is the minor determinant

Inverse Matrix Formula

A⁻¹ = (1/det(A)) × adj(A)

Where adj(A) is transpose of cofactor matrix

Worked Example: 2×2 Matrix

Calculate the cofactor matrix for [[2, 3], [1, 4]]:

Step 1: C₁₁ = (-1)^(1+1) · 4 = 4

Step 2: C₁₂ = (-1)^(1+2) · 1 = -1

Step 3: C₂₁ = (-1)^(2+1) · 3 = -3

Step 4: C₂₂ = (-1)^(2+2) · 2 = 2

Result: Cofactor Matrix = [[4, -1], [-3, 2]]

Frequently Asked Questions

What's the difference between minor and cofactor?

A minor is the determinant of a submatrix. A cofactor is a signed minor with the sign (-1)^(row+col).

Why are cofactors important?

Cofactors are essential for computing matrix inverses, solving systems of equations, and understanding determinants.

How do I calculate a minor?

Delete the row i and column j, then find the determinant of the remaining smaller matrix.

What is the adjugate matrix?

The adjugate matrix is the transpose of the cofactor matrix. It's used to calculate matrix inverses.

Can I use cofactors for any matrix size?

Yes, the cofactor method works for any square matrix, though it becomes computationally expensive for large matrices.

What if the matrix is singular?

If det(A) = 0, the matrix is singular and non-invertible. The cofactor matrix still exists but can't be used for inversion.

How does this relate to Cramer's rule?

Cramer's rule uses determinants and cofactors to solve systems of linear equations efficiently.

Are there applications in real life?

Yes, cofactors are used in computer graphics, engineering simulations, and numerical analysis.

Related Tools