Matrix Cofactor and Adjugate Calculator

Compute the determinant, the matrix of cofactors, and the adjugate of a 2×2 or 3×3 matrix. This page is designed for quick checking, but it also explains what the calculator is doing so you can follow the linear algebra instead of treating the result as a black box.

What this calculator actually computes

This calculator is focused on one very specific linear algebra task: given a square matrix A of size 2×2 or 3×3, it computes three related outputs. First, it finds the determinant, a single number that tells you whether the matrix is singular and gives geometric information about scaling and orientation. Next, it computes every cofactor, which means it removes one row and one column at a time, evaluates the determinant of the remaining minor, and then applies the alternating sign pattern. Finally, it transposes the cofactor matrix to produce the adjugate.

People usually reach for a cofactor and adjugate calculator in practical situations such as checking homework, verifying an inverse found by hand, preparing for an exam, or confirming an intermediate step before coding a larger matrix routine. In those settings, the hard part is often not the idea itself. The hard part is staying organized: deleting the right row and column, remembering the sign pattern, and then transposing the cofactor matrix correctly. This tool removes that bookkeeping burden while still letting you inspect the full result.

Unlike a physics or finance calculator, there are usually no fixed real-world units here. The inputs are just the numerical entries of the matrix. If your matrix came from an application with units, the determinant inherits a product of those units, but the calculator itself simply treats each cell as a number. That means the most important input choice is not a unit conversion; it is entering each matrix entry in the correct row and column.

How to enter the matrix

The first control chooses the matrix size. Select 2 × 2 if your matrix has four entries or 3 × 3 if it has nine. Once you choose a size, the page renders the matching input grid. Each box corresponds to one entry aij of the matrix, where the row number comes first and the column number comes second. If you are copying a matrix from paper, it helps to read each row across from left to right to avoid accidental swaps.

You can enter integers, negative values, and decimals. Because the fields are standard number inputs, fractions such as 1/2 should be typed as decimals such as 0.5. That detail matters: if a browser sees fraction text instead of a numeric value, it may treat the cell as invalid, and the calculator will ask you to enter numbers in every position. If you want a quick demonstration matrix, the form includes a button that loads an invertible example automatically.

A small but important interpretation note: the size selector changes the mathematical problem. A 2×2 matrix and a 3×3 matrix are not the same calculation with a different amount of data; they use different minor sizes and a different amount of determinant expansion. So when the result looks surprising, the first thing to check is whether the chosen size matches the matrix you intended to analyze.

How cofactors and the adjugate are built

For each entry of the original matrix, the calculator forms a minor by deleting that entry's row and column. The determinant of that smaller matrix becomes the raw minor value. Then the sign pattern alternates in a checkerboard arrangement: positive, negative, positive across the first row; negative, positive, negative across the second; and positive, negative, positive across the third. That signed value is the cofactor.

Cij = (-1) i+j det ( Mij )

Once all cofactors have been assembled into the cofactor matrix C, the adjugate is simply the transpose of that matrix. In plain language, transpose means rows become columns and columns become rows. Every diagonal cofactor stays on the diagonal, but every off-diagonal cofactor swaps across the main diagonal.

adj(A) = CT

This relationship matters because it leads directly to the inverse formula when the determinant is nonzero. If det(A) ≠ 0, then the matrix is invertible and the inverse is the adjugate scaled by the reciprocal of the determinant.

A-1 = 1 det(A) adj(A)

That is why the determinant appears alongside the cofactor matrix and adjugate in the result panel. The three objects belong together: the determinant tells you whether inversion is possible, the cofactors show the signed minors, and the adjugate packages those cofactors into the form used by the inverse formula.

Worked example you can verify by hand

Try the 3×3 matrix A = [[1, 2, 3], [0, 4, 5], [1, 0, 6]]. This is a good classroom example because it is invertible, it produces both positive and negative cofactors, and the adjugate is not symmetric, so the transpose step is easy to see.

Start with the determinant. Expanding along the first row gives:

det(A) = 1·det([[4, 5], [0, 6]]) − 2·det([[0, 5], [1, 6]]) + 3·det([[0, 4], [1, 0]]).

The three 2×2 determinants are 24, -5, and -4, so the full value becomes 24 + 10 - 12 = 22. Because 22 is not zero, the matrix is invertible.

Now compute a few cofactors. For C11, the minor is [[4, 5], [0, 6]], whose determinant is 24, and the sign is positive, so C11 = 24. For C12, the minor determinant is -5, but the sign at position (1, 2) is negative, so C12 = 5. For C13, the sign is positive again and the minor determinant is -4, so C13 = -4. Repeating that process for every entry gives the cofactor matrix

C = [[24, 5, -4], [-12, 3, 2], [-2, -5, 4]].

To get the adjugate, transpose that matrix. The first row of the adjugate is the first column of the cofactor matrix, the second row is the second column, and so on. That gives

adj(A) = [[24, -12, -2], [5, 3, -5], [-4, 2, 4]].

If you enter that example into the calculator, the result should match exactly to three decimal places. That makes it a useful benchmark when you want to confirm that you are reading rows and columns correctly. It also demonstrates the core interpretation rule: the adjugate is not a second round of cofactors; it is the transpose of the cofactor matrix you already found.

How to read the result panel

The determinant is shown first because it tells you the most important structural fact right away. If the determinant is zero, the matrix is singular. In that case, the cofactor matrix and the adjugate still exist and are still worth computing, but the inverse formula breaks down because it would require dividing by zero. If the determinant is nonzero, the matrix has an inverse, and the displayed adjugate is the exact matrix that appears in the inverse formula.

For many learners, the cofactor matrix is the easiest place to catch a mistake. If one sign looks inconsistent with the checkerboard pattern, the problem is probably the sign, not the minor. If several entries seem shifted into the wrong positions, the issue is usually the transpose step. The adjugate is especially helpful for this kind of check because diagonal entries stay where they are, while off-diagonal entries move across the diagonal. If you expected a value in position (1, 2) and it appears in position (2, 1), that is usually a sign that you are looking at the adjugate rather than the raw cofactor matrix.

A determinant close to zero deserves extra attention even when it is not exactly zero. In exact arithmetic the matrix may still be invertible, but small determinants can signal numerical sensitivity. This calculator reports values to three decimal places for readability, so if you are working with delicate decimal data and need symbolic precision, the displayed result should be treated as a clear computational summary rather than a proof about exact rational values.

Common mistakes, assumptions, and sanity checks

The most common error is entering the matrix in the wrong order. Swapping two rows or two columns changes the determinant and can change many cofactors at once. The second common error is forgetting that the adjugate is the transpose of the cofactor matrix. Students often compute the cofactors correctly and then stop one step too early. The third common error is sign handling: the minor determinant might be correct, but the alternating sign has not been applied. Because of that, a good sanity check is to look at the sign pattern separately before you worry about the arithmetic.

  • Entry order matters: copy rows carefully from the original matrix.
  • Fractions must be entered as decimals: use 0.25 instead of 1/4.
  • Determinant zero means no inverse: the adjugate can still be shown, but inversion is impossible.
  • Off-diagonal cofactors move when you form the adjugate: that transpose step is essential.

Another useful check is to compare the determinant to your broader expectations. If two rows are obviously multiples of each other, you should expect a determinant of zero. If the matrix is triangular, the determinant should equal the product of the diagonal entries. If a result violates a structural fact you already know, the calculator is giving you a prompt to re-check the data you entered rather than blindly trust the screen.

A broader algorithmic view

At a broad level, any calculator can be described as a function that turns inputs into outputs. This page does something more specific than a weighted sum: it builds minors recursively and applies alternating signs. Still, the abstract viewpoint below is useful because it reminds you that the result is completely determined by the entries you type into the matrix.

R = f ( x1 , x2 , , xn )

The next formula is a generic model used in many other calculators. It is not the rule used to compute cofactors, but it is preserved here because it captures the same big idea: numeric tools combine input values in systematic, repeatable ways. In this matrix calculator, the combination rule is determinant expansion instead of a simple sum.

T = i=1 n wi · xi

For this page, the real interpretation is straightforward: the matrix entries are the inputs, and the determinant, cofactor matrix, and adjugate are the outputs. If you change one entry, the determinants of several minors may change, which is exactly why a calculator is so helpful here. It lets you test matrices quickly and see how local changes ripple through the full cofactor structure.

Frequently asked questions

What is the difference between the cofactor matrix and the adjugate?

The cofactor matrix contains the signed minors in their original positions. The adjugate is the transpose of that matrix. So if you computed C12 as part of the cofactor matrix, that value will appear in position (2, 1) of the adjugate. This is the single most important distinction to remember when you compare handwritten work with a calculator output.

What if the determinant is zero?

A zero determinant means the matrix is singular, so it does not have an inverse. The calculator can still show the cofactor matrix and adjugate because those objects are defined independently, but the inverse formula cannot be used. In classroom problems, a zero determinant often signals dependent rows or columns, so it is worth checking whether one row is a multiple or linear combination of the others.

Can I use decimals or negative values?

Yes. Negative numbers and decimals are supported directly. That makes the tool useful not only for integer textbook examples but also for applied matrices that come from measurements, regressions, or intermediate numerical work. The only formatting restriction is that fractions need to be typed as decimals because number fields expect a single numeric value.

Why do the cofactor signs alternate?

The alternating sign pattern comes from determinant expansion. It ensures that each cofactor contributes with the correct orientation when you expand along a row or column. For a 3×3 matrix, the pattern is + − + on the first row, − + − on the second, and + − + on the third. If you memorize only one visual aid for this topic, memorize that checkerboard.

Select the matrix size, then enter each entry of matrix A. Use decimals for fractions, such as 0.5 instead of 1/2.

Matrix input grid loads here.
Enter matrix values to compute cofactors and the adjugate.

Mini-game: Adjugate Relay

This optional game turns the same idea into a short reflex challenge. The highlighted cofactor on the left belongs in a transposed position on the right. Build a streak by sending each cofactor to its correct adjugate slot before the timer runs out.

Score: 0 Time: 75.0s Streak: 0 Progress: 0 solved Best: 0

Adjugate Relay

Click the matching slot in the right-hand adjugate grid. If the source is Cij, it belongs at row j, column i because adj(A) = CT. The round lasts 75 seconds and speeds up as it goes.

Controls: tap or click a destination cell. On keyboard, use the arrow keys to move the white cursor and press Enter or Space to confirm. Click to play when you are ready.

Optional practice only: the game teaches transpose placement and the checkerboard sign pattern, but it does not affect the calculator's math.

Embed this calculator

Copy and paste the HTML below to add the Matrix Cofactor and Adjugate Calculator | 2×2 and 3×3 Determinant Tool to your website.