Matrix Cofactor Calculator

Enter any square matrix and choose your output. See cofactors, minors, and determinant calculations live. Download clean reports to keep, print, or submit today.

Calculator

Outputs are rounded for display only.
Selected Entry Cofactor
Compute one cofactor using (i, j).
1-based
Uses Cᵢⱼ = (−1)^(i+j) · det(Mᵢⱼ).
Matrix Input
Fill every cell. Decimals and negatives are allowed.
Tip: use Tab to move quickly.

Example Data Table

Sample 3×3 input and a matching cofactor output.

Example Input Matrix A

123
045
106
Determinant for this example is 22.

Example Cofactor Matrix C

245-4
-1232
-2-54
Adjugate is the transpose of C.

Formula Used

How to Use This Calculator

  1. Select the matrix size and precision.
  2. Enter all matrix values in the grid.
  3. Optionally enable minor matrix and cofactor values.
  4. Press Submit to see results above the form.
  5. Use CSV or PDF buttons to download your latest results.

FAQs

1) What is a cofactor in a matrix?

A cofactor is a signed minor. Remove row i and column j, take the determinant of the remaining matrix (the minor), then multiply by (−1)^(i+j).

2) What is the difference between a minor and a cofactor?

The minor is only the determinant of the reduced matrix. The cofactor applies a sign pattern to that minor using (−1)^(i+j).

3) What is the cofactor matrix used for?

The cofactor matrix helps build the adjugate. The adjugate is used in the classical inverse formula: A⁻¹ = adj(A)/det(A) when the determinant is not zero.

4) When does a matrix have an inverse?

A square matrix has an inverse only when its determinant is nonzero. If the determinant is zero, the matrix is singular and cannot be inverted.

5) Why do I see “no inverse available” sometimes?

That message appears when the determinant is zero or extremely close to zero. In that case, dividing by the determinant would be unstable or undefined.

6) What sizes are supported here?

This tool supports sizes from 2×2 up to 6×6. Larger sizes can be added, but cofactor-based operations become computationally heavier as n grows.

7) Are the results exact or rounded?

Internally the calculator uses floating-point arithmetic. The precision setting controls how many decimals are displayed and exported, but calculations still use full float values.

8) What do the CSV and PDF downloads include?

Downloads include the chosen matrix output (cofactor, adjugate, or inverse). The PDF also includes the matrix size and determinant to keep your report self-contained.

Related Calculators

matrix determinant 4x4matrix power calculatormatrix addition calculatoridentity matrix calculatormatrix inverse 4x4matrix null space calculatormatrix diagonalization 4x4matrix diagonalization 3x3matrix scalar subtractionmatrix scalar addition

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.