Audited 29 Jul 2026·Last updated 31 Jul 2026·3 citations·Tier 3·0 uses

Cofactor Matrix & Adjugate (Adjoint) Calculator

Get the matrix of minors, the cofactor matrix and the adjugate (classical adjoint) of any square matrix up to 6x6, with the determinant and a built-in check.

Cofactor Matrix Calculator

One row per line. Separate entries with commas or spaces.
Cofactor matrix C
24, 5, -4 | -12, 3, 2 | -2, -5, 4
Each entry is the minor with its checkerboard sign applied: C(i,j) = (-1)^(i+j) times M(i,j). Rows are separated by a vertical bar.
Adjugate adj(A) — the classical adjoint
24, -12, -2 | 5, 3, -5 | -4, 2, 4
Matrix of minors M
24, -5, -4 | 12, 3, -2 | -2, 5, 4
Determinant det(A)
22
Matrix size (n)
3
Verification of A × adj(A) = det(A) × I
Verified: A x adj(A) = 22 x I, so the inverse is A^-1 = adj(A) / 22.

Background.

The cofactor matrix and the adjugate — the object school textbooks call the classical adjoint, adj(A) — come out of the same short computation, and this calculator does all of it: the matrix of minors, the cofactor matrix once the checkerboard signs are applied, and the adjugate as the transpose of that. It handles any square matrix from 1 by 1 up to 6 by 6.

Type or paste your matrix one row per line, entries separated by commas or spaces. Semicolons work as row separators and the bracketed form [[1,2],[3,4]] is accepted too.

The chain is short and each step has a name. The minor M(i,j) is the determinant of what is left after you delete row i and column j. The cofactor C(i,j) is the same number with the sign (-1) to the power i+j attached, which is the familiar checkerboard of pluses and minuses starting with a plus in the top-left corner. The cofactor matrix collects all n squared of those. The adjugate is that matrix transposed — and the transpose is not optional decoration, it is what makes the defining identity work. This page proves it rather than claiming it: it multiplies A by adj(A) at runtime and reports the result, which comes out as the determinant times the identity matrix every time.

That identity is the whole point of the adjugate. Because A times adj(A) equals det(A) times I, dividing through gives the inverse: A inverse = adj(A) divided by det(A), which is exactly the formula MIT's 18.06 course states as A inverse equals one over det A times C transpose. When the determinant is zero the division is impossible, and the calculator says so explicitly — the adjugate still exists and A times adj(A) is simply the zero matrix, but no inverse does.

One warning that belongs beside the result rather than in a footnote. 'Adjoint' has two entirely different meanings in linear algebra. This page computes the classical adjoint, the adjugate, the transpose of the cofactor matrix. The other meaning is the Hermitian adjoint A*, the conjugate transpose, which for a real matrix is just A transposed and has nothing to do with minors. If you came here from a functional analysis or quantum mechanics context, the transpose calculator is what you want, not this one.

A practical note on scale: the adjugate route to an inverse is elegant and completely impractical beyond about 3 by 3, because computing n squared minors of size n minus 1 grows explosively. Real software uses an LU factorisation. The adjugate remains valuable for exactly the reason it is taught — it gives a closed-form expression for the inverse, and closed forms are what proofs are made of.

What is cofactor matrix calculator?

For an n x n matrix A, the minor M(i,j) is the determinant of the (n-1) x (n-1) matrix obtained by deleting row i and column j. The cofactor C(i,j) is the signed minor, C(i,j) = (-1)^(i+j) times M(i,j), where the sign follows a checkerboard pattern beginning with a plus in the top-left position. The cofactor matrix C collects every C(i,j) in its natural position. The adjugate, written adj(A) and also called the classical adjoint, is the transpose of the cofactor matrix: adj(A)(i,j) = C(j,i). Its defining property is A times adj(A) = adj(A) times A = det(A) times the identity matrix, which follows from the Laplace expansion in its full form — the Encyclopedia of Mathematics states it as the sum over j of a(i,j) times A(k,j) equals delta(i,k) times det A, meaning a row expanded against its own cofactors gives the determinant while a row expanded against a different row's cofactors gives zero. Dividing that identity by det(A) yields the closed-form inverse A inverse = adj(A) / det(A), valid whenever det(A) is not zero. Two conventions worth stating: for a 1 x 1 matrix the empty determinant is 1, so C = adj = [[1]]; and the classical adjoint should not be confused with the Hermitian adjoint A*, the conjugate transpose, which is a different object entirely.

How to use this calculator.

  1. Type your square matrix into the box, one row per line, with entries separated by commas or spaces.
  2. Read the cofactor matrix in the headline. Each entry is the minor with its checkerboard sign attached.
  3. Read the adjugate below it — that is adj(A), the classical adjoint, and it is simply the cofactor matrix transposed.
  4. Use the matrix of minors if you want to see the unsigned intermediate step, which is how the calculation is usually taught.
  5. Check the verification line: it multiplies A by adj(A) and confirms the product is det(A) times the identity.
  6. To get the inverse, divide every entry of the adjugate by the determinant — but only if the determinant is not zero.
  7. If you wanted the conjugate transpose rather than the classical adjoint, use the transpose calculator instead; the two share a name and nothing else.

The formula.

Cᵢⱼ = (−1)^(i+j) Mᵢⱼ , adj(A) = Cᵀ , A·adj(A) = det(A)·I

Start with the minors. M(i,j) is the determinant of the smaller matrix left after deleting row i and column j, so for A = [[1,2,3],[0,4,5],[1,0,6]] the minor M11 is the determinant of [[4,5],[0,6]] = 24, M12 is the determinant of [[0,5],[1,6]] = -5, and so on down to M33 = the determinant of [[1,2],[0,4]] = 4. Collecting all nine gives the matrix of minors [[24,-5,-4],[12,3,-2],[-2,5,4]]. Next apply the checkerboard sign (-1) to the power i+j, which flips the sign in every position where the row and column indices have opposite parity, turning that into the cofactor matrix C = [[24,5,-4],[-12,3,2],[-2,-5,4]]. Finally transpose it: adj(A) = C transposed = [[24,-12,-2],[5,3,-5],[-4,2,4]]. The determinant falls out for free by expanding the first row against its own cofactors: det = 1 times 24 + 2 times 5 + 3 times -4 = 24 + 10 - 12 = 22. The transpose step is the one people skip, and it is silent for a symmetric matrix, which is why the example here is deliberately not symmetric. To see that it matters, multiply the first row of A by the second column of adj(A): 1 times -12 + 2 times 3 + 3 times 2 = -12 + 6 + 6 = 0, exactly as the identity A times adj(A) = det(A) times I requires. Had the transpose been left out, that dot product would have been 1 times 5 + 2 times 3 + 3 times -5 = -4, and the identity would have failed. Every minor here is computed by a division-free Laplace expansion at 80 significant digits, so an integer matrix produces exact integer minors, cofactors and adjugate entries.

A worked example.

Example

Take A = [[1, 2, 3], [0, 4, 5], [1, 0, 6]]. Deleting row 1 and column 1 leaves [[4,5],[0,6]], whose determinant is 24, so M11 = 24. Working through all nine positions the same way gives the matrix of minors [[24, -5, -4], [12, 3, -2], [-2, 5, 4]]. Applying the checkerboard signs — plus, minus, plus across the first row, minus, plus, minus across the second, and plus, minus, plus across the third — turns that into the cofactor matrix [[24, 5, -4], [-12, 3, 2], [-2, -5, 4]], which is the headline output. Transposing it gives the adjugate [[24, -12, -2], [5, 3, -5], [-4, 2, 4]]. The determinant comes from expanding the first row of A against its own cofactors: 1 times 24 plus 2 times 5 plus 3 times -4 = 24 + 10 - 12 = 22. The verification line then multiplies A by adj(A) and confirms the result is 22 times the identity matrix — you can check the first row by hand: against column 1 it gives 1(24) + 2(5) + 3(-4) = 22, against column 2 it gives 1(-12) + 2(3) + 3(2) = 0, and against column 3 it gives 1(-2) + 2(-5) + 3(4) = 0. Since 22 is not zero, the inverse exists and equals the adjugate divided by 22.

matrix1, 2, 3 0, 4, 5 1, 0, 6

Frequently asked questions.

What is the difference between the cofactor matrix and the adjugate?
The adjugate is the transpose of the cofactor matrix — same n squared numbers, arranged with the row and column indices swapped. That is the entire difference, which is why this one page gives you both rather than making you visit two. The transpose is not cosmetic: it is what makes the identity A times adj(A) = det(A) times I come out right. For a symmetric matrix the two coincide, which is exactly why textbook examples that use symmetric matrices hide the distinction.
Is the adjoint of a matrix the same as its transpose?
It depends which adjoint you mean, and this is a genuine ambiguity in the terminology rather than a trick question. The classical adjoint — the adjugate, what this page computes — is the transpose of the matrix of cofactors, not the transpose of the matrix itself. The Hermitian adjoint A*, standard in functional analysis and quantum mechanics, is the conjugate transpose, which for a real matrix is simply A transposed. They share a name and nothing else. If you want the conjugate transpose, use the transpose calculator.
How do you find the adjoint of a 3x3 matrix?
Compute all nine minors, each being the determinant of the 2 by 2 matrix left after deleting one row and one column. Apply the checkerboard signs — plus, minus, plus in the first row, minus, plus, minus in the second, plus, minus, plus in the third — to turn the minors into cofactors. Then transpose the whole thing. That transpose is the step most often forgotten, and it is invisible on a symmetric matrix, which is why it is worth verifying with A times adj(A) as this page does.
What is the adjugate of a 2x2 matrix?
For [[a,b],[c,d]] the adjugate is [[d,-b],[-c,a]] — swap the two diagonal entries and negate the two off-diagonal ones. That familiar rule is not a special case with its own logic; it drops straight out of the general formula, since each minor of a 2 by 2 matrix is a single entry and the checkerboard signs do the negating. Dividing by the determinant ad - bc gives the standard 2 by 2 inverse formula.
What happens if the determinant is zero?
The adjugate still exists and is still computed — nothing in the minors or the signs requires an invertible matrix. What fails is the division: A inverse = adj(A) / det(A) has no meaning when det(A) = 0, so the matrix is singular and has no inverse. The identity A times adj(A) = det(A) times I still holds, but with det(A) = 0 it simply says the product is the zero matrix. The calculator reports exactly that rather than returning an error.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 977 calculators remain free
  • No billing is enabled
Coming soon