Matrix Determinant Calculator

Free matrix determinant calculator with step-by-step solutions. Compute the determinant of any 2x2, 3x3, 4x4 or 5x5 matrix by cofactor expansion or row reduction, using exact fractions.

Enter a square matrix to get its determinant along with every cofactor or row operation used to find it. Results stay in exact fractions, and matrices up to 8x8 are supported.

Matrix A — fractions like 3/4 are fine
Try an example

How to calculate a determinant

  1. 1

    Set the matrix size

    Choose n for your n x n matrix. Determinants only exist for square matrices.

  2. 2

    Enter the entries

    Type each number into the grid. Fractions such as 3/4 and negatives are both accepted.

  3. 3

    Read the worked solution

    For 2x2 and 3x3 matrices the calculator expands cofactors; for 4x4 and larger it row-reduces to triangular form, which is far faster.

  4. 4

    Check what the answer means

    A non-zero determinant means the matrix is invertible. Zero means the rows are linearly dependent.

The determinant formulas

2x2 matrices

For a matrix with rows (a, b) and (c, d), the determinant is ad − bc: the product of the main diagonal minus the product of the anti-diagonal.

3x3 matrices

Expand along the first row. Each entry a1j is multiplied by the determinant of the 2x2 matrix left after deleting row 1 and column j, and the three terms alternate in sign:

det(A) = a11M11 − a12M12 + a13M13

4x4 and larger

Cofactor expansion needs n! multiplications, which is 24 terms at 4x4 and 120 at 5x5. Row reduction to upper triangular form needs only about n³/3 operations, so the calculator switches methods automatically. Once the matrix is triangular the determinant is the product of the diagonal, with one sign flip per row swap.

Determinant calculators by size

Worked examples

Properties worth knowing

  • det(AB) = det(A)det(B). Determinants multiply, which is why an invertible matrix has det(A⁻¹) = 1/det(A).
  • det(Aᵀ) = det(A). Transposing changes nothing, so any row rule has a matching column rule.
  • A repeated row forces det = 0. Two identical (or proportional) rows make the matrix singular.
  • Triangular matrices are easy. If everything below (or above) the diagonal is zero, just multiply the diagonal.
  • Scaling a row scales the determinant. Multiplying one row by k multiplies det by k, so multiplying the whole n x n matrix by k multiplies det by kⁿ.

Frequently asked questions

What is the determinant of a matrix?

The determinant is a single number computed from a square matrix that tells you how the matrix scales area (in 2D) or volume (in 3D). A determinant of 0 means the matrix squashes space into a lower dimension, which is exactly when the matrix is singular and has no inverse.

How do you find the determinant of a 3x3 matrix?

Expand along the first row: multiply each entry by the determinant of the 2x2 minor you get by deleting its row and column, then combine the three results with alternating plus, minus, plus signs. The Rule of Sarrus gives the same answer for 3x3 matrices only.

Can you take the determinant of a non-square matrix?

No. The determinant is only defined for square matrices. If your matrix has a different number of rows and columns, the closest related quantities are the rank or the singular values.

What does a determinant of zero mean?

It means the rows (and columns) are linearly dependent, the matrix is singular, it has no inverse, and the corresponding system of equations either has no solution or infinitely many. Zero is never just a small number here — it is a structural fact about the matrix.

Why does the calculator show fractions instead of decimals?

It computes with exact rational arithmetic, so a determinant of 3/4 shows as 3/4 rather than 0.7500000001. That keeps answers matching what you would get by hand.

Does swapping two rows change the determinant?

Yes — every row swap flips the sign. Adding a multiple of one row to another leaves the determinant unchanged, and multiplying a row by k multiplies the determinant by k. Those three rules are what make row reduction a valid way to compute determinants.

About this Calculator

Free matrix determinant calculator with step-by-step solutions. Compute the determinant of any 2x2, 3x3, 4x4 or 5x5 matrix by cofactor expansion or row reduction, using exact fractions.

Related Searches

matrix determinant calculatordeterminant calculatordeterminant of a matrix3x3 determinant calculator2x2 determinant calculator4x4 determinant calculatorfind the determinantcofactor expansion calculator