Matrix Cofactor and Adjugate Calculator

Compute the determinant, signed cofactor matrix, and adjugate of a 2×2 or 3×3 matrix. The calculator gives a quick result while showing the linear-algebra objects needed to check minors, signs, and transpose placement.

What this matrix cofactor calculator computes

This matrix cofactor calculator accepts a square 2×2 or 3×3 matrix A and returns three connected results. It first finds the determinant, the scalar that identifies whether the matrix is singular. It then calculates each cofactor by deleting one row and one column, taking the determinant of the resulting minor, and applying the appropriate checkerboard sign. Finally, it transposes the cofactor matrix to form the adjugate.

Cofactor and adjugate work is useful for checking hand calculations, verifying an inverse, studying determinant expansion, and confirming intermediate values in a matrix routine. The challenging part is often organization rather than arithmetic: choosing the correct deleted row and column, preserving the alternating signs, and remembering that the adjugate requires a transpose. This tool handles that bookkeeping while leaving the full cofactor and adjugate matrices visible for inspection.

Matrix entries have no built-in real-world unit in this calculator. If your matrix represents quantities with units, its determinant may inherit a product of those units, but the fields themselves are treated as numerical entries. The key input check is therefore position: make sure every value is entered in the intended row and column.

How to enter a 2×2 or 3×3 matrix

To enter a matrix for cofactor and adjugate calculation, first choose its size. Select 2 × 2 for four entries or 3 × 3 for nine entries; the page then displays the corresponding grid. Each field is an entry aij, with the row index written first and the column index second. When copying from paper, entering one complete row at a time helps prevent row-column swaps.

You can enter integers, negative values, and decimals. Since these are browser number fields, type fractions as decimals: enter 0.5 rather than 1/2. Fraction text is not evaluated as an expression and may cause the calculator to reject the entry. The example button loads an invertible matrix appropriate to the selected size.

The size selector changes the cofactor problem itself. A 2×2 matrix has 1×1 minors, whereas a 3×3 matrix has 2×2 minors and a longer determinant expansion. If an answer is unexpected, confirm that the selected matrix size matches the matrix you meant to analyze.

How matrix cofactors and the adjugate are built

For every entry in the original matrix, the cofactor calculation removes that entry’s row and column to create a minor. The determinant of the smaller matrix is the minor value. The calculator then applies a checkerboard sign pattern: positive, negative, positive across the first row; negative, positive, negative across the second; and positive, negative, positive across the third. The signed result is the cofactor.

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

After the calculator has assembled all signed minors into the cofactor matrix C, it obtains the adjugate by transposing C. Transposition turns rows into columns and columns into rows. Diagonal cofactors remain in place, while every off-diagonal cofactor moves to the mirror position across the main diagonal.

adj(A) = CT

For a nonsingular matrix, this cofactor-and-transpose relationship leads to the inverse formula. When det(A) ≠ 0, the inverse is the adjugate multiplied by the reciprocal of the determinant.

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

That connection explains why the result panel presents the determinant beside the cofactor matrix and adjugate. The determinant establishes whether inversion is possible, the cofactors expose the signed minors, and the adjugate is the transposed cofactor matrix used in the inverse identity.

Worked 3×3 cofactor and adjugate example

Try the 3×3 matrix A = [[1, 2, 3], [0, 4, 5], [1, 0, 6]]. This classroom-friendly matrix is invertible, produces positive and negative cofactors, and has a nonsymmetric adjugate, making the transpose step easy to identify.

For this matrix, expand the determinant along the first row:

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 determinant is 24 + 10 - 12 = 22. Since 22 is nonzero, this matrix is invertible.

Next, calculate individual cofactors. For C11, deleting row 1 and column 1 leaves [[4, 5], [0, 6]], whose determinant is 24; the sign is positive, so C11 = 24. For C12, the minor determinant is -5, and the negative sign at position (1, 2) changes it to C12 = 5. For C13, the sign is positive and the minor determinant is -4, so C13 = -4. Completing the same process gives

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

Transpose that cofactor matrix to get the adjugate. Its first row is the first column of the cofactor matrix, its second row is the second column, and its third row is the third column:

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

Entering this example produces the same values shown to three decimal places. It is a useful check for row and column placement, and it highlights the central rule: the adjugate is not another round of cofactor calculations; it is the transpose of the cofactor matrix already computed.

How to read matrix cofactor results

The determinant appears first in the matrix cofactor result because it gives the most important structural conclusion. A zero determinant means the matrix is singular. The cofactor matrix and adjugate are still defined and displayed, but the inverse formula cannot be used because it divides by the determinant. A nonzero determinant means an inverse exists, and the displayed adjugate is the matrix used in that inverse formula.

The cofactor matrix is often the best place to diagnose a handwritten error. A value with an unexpected sign may indicate that the checkerboard sign was missed, while entries that appear in the wrong mirror positions usually indicate a transpose error. In the adjugate, diagonal entries remain fixed and off-diagonal entries swap across the diagonal. Thus a value expected at (1, 2) appearing at (2, 1) can be correct if you are viewing the adjugate rather than the raw cofactor matrix.

A determinant close to zero deserves attention even when it is not exactly zero. The matrix can still be invertible in exact arithmetic, but a small determinant can indicate numerical sensitivity. Results are displayed to three decimal places for readability, so delicate decimal calculations should be treated as a computational summary rather than proof of an exact rational relationship.

Common cofactor mistakes, assumptions, and checks

In matrix cofactor work, the most common mistake is entering entries in the wrong order. Swapping rows or columns changes the determinant and may alter many cofactors. Another frequent mistake is stopping after computing the cofactor matrix instead of transposing it to form the adjugate. Sign handling is also crucial: a minor determinant can be correct before the alternating cofactor sign is applied. Checking the sign pattern separately from the minor arithmetic is an effective way to isolate errors.

  • 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.

Structural properties also provide useful checks for a cofactor calculation. If two rows are clearly multiples of each other, the determinant should be zero. If the matrix is triangular, its determinant should equal the product of its diagonal entries. When a computed result conflicts with such a property, revisit the matrix entries and minor selection before relying on the displayed result.

How the cofactor algorithm processes a matrix

This cofactor and adjugate calculator follows a definite sequence rather than applying a generic input-output rule. It reads each entry of the selected matrix, evaluates the determinant by expansion along the first row, and then creates one minor for every matrix position by excluding the relevant row and column.

For each minor, the calculator computes its determinant and multiplies it by positive or negative one according to whether the row and column indexes have an even or odd sum. Those signed values fill the cofactor matrix in the same positions as the original entries. The final adjugate matrix is built by exchanging the row and column indexes of every cofactor.

This sequence explains why changing a single matrix entry can affect several outputs at once. That entry may appear in multiple minors, so it can alter the determinant and several cofactors simultaneously. The calculator is particularly useful for testing those changes while keeping the full cofactor structure and its transpose visible.

Matrix cofactor and adjugate questions

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

For a matrix cofactor calculation, the cofactor matrix contains signed minors in their original positions. The adjugate is the transpose of that matrix. If you compute C12 in the cofactor matrix, that value appears at (2, 1) in the adjugate. This transpose is the key distinction when comparing a handwritten result with the calculator output.

What if the determinant is zero?

For the matrix entered here, a zero determinant means it is singular and has no inverse. The calculator can still show its cofactor matrix and adjugate because both are defined independently of inversion, but the inverse formula cannot be used. In classwork, a zero determinant can indicate dependent rows or columns, so check whether a row is a multiple or linear combination of others.

Can I use decimals or negative values?

Yes. Matrix entries may be negative numbers or decimals, so the calculator can be used for more than integer textbook examples. Fractions must be entered as decimals because the number fields require one numeric value; for example, enter 0.5 for 1/2.

Why do the cofactor signs alternate?

Cofactor signs alternate because they arise from determinant expansion. For a 3×3 matrix, the checkerboard is + − + on the first row, − + − on the second, and + − + on the third. Applying that pattern to each minor determinant produces the signed cofactors.

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 adjugate transpose rule into a short reflex challenge. The highlighted cofactor on the left belongs in its transposed position on the right. Build a streak by placing each cofactor in the 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 2×2 and 3×3 Matrix Cofactor & Adjugate Calculator | Determinant to your website.