About the Determinant Calculator
The determinant condenses a square matrix into a single number that answers several important questions at once. Is the matrix invertible? Does the linear system it represents have a unique solution? By what factor does the transformation stretch areas or volumes, and does it flip orientation? All of these are read from the determinant.
This calculator computes determinants of square matrices of any practical size. It chooses the method a textbook would use: the cross-multiplication rule for matrices, expansion along the first row for matrices, and elimination to upper-triangular form for and larger. Fractions and decimals are converted to exact fractions, so the answer is exact.
What is a determinant?
The determinant is a number , also written , defined for every square matrix. For a matrix it is . For larger matrices it is defined recursively by cofactor expansion, or equivalently as a signed sum over all permutations of the columns.
Geometrically, is the factor by which the linear map scales area in two dimensions or volume in three. A negative determinant means the map reverses orientation, like a reflection, and a zero determinant means the map squashes space into a lower dimension.
How to use the Determinant Calculator
- Enter a square matrix with spaces between entries and semicolons between rows, for example 2 -3 1; 2 0 -1; 1 4 5.
- Press Find determinant.
- Read the method used for your matrix size and each intermediate value.
- Check whether the determinant is zero to decide if the matrix is invertible.
Formulas
2×2 determinant
Cofactor expansion (first row)
Product rule
Triangular matrix
Worked example: 3×3 matrix
The example finds the determinant of the matrix with rows , and by expanding along the first row. Each first-row entry is multiplied by the minor left after deleting its row and column, with the signs , , .
The minors evaluate to 4, 11 and 8, so the determinant is . A nonzero value means this matrix is invertible.
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Find the determinant of a 3×3 matrix.
Step-by-step solution
Read the 3×3 matrix
Expand along the first row (cofactor expansion)
Evaluate each 2×2 minor
Combine with the alternating signs + − +
Formulas used
2×2 determinant
Cofactor expansion
The determinant is 49, which is non-zero, so the matrix is invertible and its rows are linearly independent.
Verification
- Computed exactly with fractions; row reduction gives the same value 49.
Detailed explanation
Cofactor expansion
The minor is the determinant of the matrix left after deleting row and column . The cofactor attaches the sign , which follows a checkerboard pattern starting with in the top-left corner. Expanding along any row or column gives the same result, so by hand it pays to choose a row or column containing zeros.
Cofactor expansion is ideal for matrices but grows very quickly: a expansion needs four determinants, and a expansion would need millions of terms. That is why the calculator switches method for larger matrices.
Row reduction to triangular form
Adding a multiple of one row to another does not change the determinant, swapping two rows changes its sign, and scaling a row scales the determinant by the same factor. Using these rules, the calculator eliminates the entries below each pivot until the matrix is upper triangular, then multiplies the diagonal entries. For the matrix with rows , , and this gives .
What a zero determinant means
A determinant of zero means the rows are linearly dependent: at least one row is a combination of the others. The matrix has no inverse, and the system has either no solution or infinitely many. The matrix with rows , and is the classic example; its determinant is 0 because the middle row is the average of the other two.
Determinants also appear in Cramer's rule for solving small systems, in the characteristic polynomial whose roots are the eigenvalues, and in the change-of-variables formula for multiple integrals.
Common mistakes
- Computing or instead of .
- Forgetting the alternating signs in cofactor expansion.
- Using the wrong minor by deleting the wrong row or column.
- Ignoring the sign change after swapping two rows during row reduction.
- Trying to take the determinant of a non-square matrix.
Tips
- Expand along the row or column with the most zeros.
- Factor a common number out of a row first; the determinant scales by that same number.
- If two rows are equal or proportional, the determinant is 0 without further work.
- Use to expand along a column when it is easier.
- Use the inverse matrix calculator when the determinant is nonzero and you need .
- Use the eigenvalue calculator, which builds on .
Frequently asked questions
How do you find the determinant of a 2×2 matrix?
Multiply the main diagonal entries and subtract the product of the other diagonal: for rows (a, b) and (c, d) the determinant is ad − bc.
How do you find the determinant of a 3×3 matrix?
Expand along a row: multiply each entry by its 2×2 minor, apply the signs +, −, + and add. The calculator shows each minor and the final sum.
What method is used for 4×4 and larger matrices?
Row reduction to upper-triangular form, followed by multiplying the diagonal entries. This is much faster than cofactor expansion for large matrices.
What does a determinant of zero mean?
The matrix is singular: its rows are linearly dependent, it has no inverse and the corresponding linear system does not have a unique solution.
Can a determinant be negative?
Yes. A negative determinant means the transformation reverses orientation. Its absolute value is still the area or volume scaling factor.
Can I find the determinant of a non-square matrix?
No. Determinants are only defined for square matrices, and the calculator reports the size of a non-square input.
Are fractions supported?
Yes. Fractions and decimals are converted to exact fractions, so the determinant is exact.
Find your determinant
Enter a square matrix above to see the determinant and every step of the method used.