Saved

Press the star next to a tool's name to save it.

All my tools

Determinant Calculator

Type your matrix into this determinant calculator, one row on each line, and it finds the determinant of any square matrix up to 8 by 8 and tells you if the matrix can be inverted.

Separate the numbers with spaces or commas. The matrix must have as many rows as columns.

Your numbers stay in your browser. Nothing is uploaded.

Determinant

–

Enter your matrix, and press Calculate.

A determinant calculator takes a square grid of numbers and reduces it to one value that says a great deal about the matrix. Working it out by hand is manageable for a small matrix, but the amount of arithmetic grows quickly, and one slip with a minus sign spoils the whole answer. This determinant calculator handles any square matrix up to 8 by 8. Type one row on each line, separate the numbers with spaces or commas, and press Calculate. When every entry is a whole number, the answer is exact, with no rounding. It also tells you straight away if the matrix can be inverted.

How to use the determinant calculator

  1. Type the first row of the matrix, with spaces or commas between the numbers.
  2. Press Enter and type the next row.
  3. Check the shape. You need as many rows as columns.
  4. Press Calculate.
  5. Read the determinant and whether the matrix is invertible.

What is a determinant?

In mathematics, the determinant is a scalar value that is a function of the entries of a square matrix. It's written as det(A) or with vertical bars on either side of the grid. The determinant of a product of matrices is the product of their determinants, and a matrix is invertible only when its determinant isn't zero. Those two properties explain why it comes up so often in linear algebra, in solving systems of equations and in geometry.

The 2 × 2 formula

For a matrix with the rows a, b and c, d, the determinant is ad − bc. You multiply along the main diagonal, then subtract the product of the other diagonal. For the rows 1, 2 and 3, 4, that gives (1 × 4) − (2 × 3) = 4 − 6 = −2. Enter those rows and the tool returns −2.

The 3 × 3 formula

For the rows a, b, c, then d, e, f, then g, h, i, the determinant can be written as a(ei − fh) − b(di − fg) + c(dh − eg). Each term takes one entry from the top row and multiplies it by a smaller 2 × 2 determinant. The signs alternate, starting with plus.

A worked example

Take a matrix with the rows 2, 0, 1, then 1, 3, 2, then 1, 1, 4.

TermWorkingValue
a(ei − fh)2 × (3 × 4 − 2 × 1)20
−b(di − fg)−0 × (1 × 4 − 2 × 1)0
c(dh − eg)1 × (1 × 1 − 3 × 1)−2
Determinant20 + 0 − 218

The answer is 18. As it isn't zero, this matrix has an inverse.

What does a determinant of zero mean?

A determinant of zero means that the matrix is singular, so it has no inverse. It also means that at least one row can be built from the other rows. For example, in the matrix with the rows 1, 2 and 2, 4, the second row is exactly twice the first, and the determinant is 0. In a system of linear equations, a zero determinant tells you that there isn't one unique solution. There could be no solutions at all, or infinitely many.

Useful properties

  • Swapping two rows changes the sign of the determinant.
  • Multiplying one row by a number multiplies the determinant by that number.
  • Adding a multiple of one row to another leaves the determinant unchanged.
  • A row of zeros makes the determinant 0.
  • A triangular matrix has a determinant equal to the product of its diagonal.

How larger matrices are solved

Expanding by smaller determinants works for any size, but the number of terms grows extremely fast. A 2 × 2 matrix has 2 terms, a 3 × 3 has 6, a 4 × 4 has 24, and an 8 × 8 has 40,320. That's why calculators use row reduction instead. It applies the properties above to turn the matrix into a triangular one, and then multiplies the diagonal. This tool uses a method for whole numbers that keeps every step exact, so a large answer doesn't pick up rounding errors. If you enter decimals, it uses standard elimination, and very small errors can appear in the last digits.

What the value tells you geometrically

The determinant also measures how a matrix scales space. For a 2 × 2 matrix, its absolute value is the area of the parallelogram formed by the two rows treated as vectors. For a 3 × 3 matrix, it's the volume of the box that the three rows form. A negative sign means that the orientation is flipped, like a mirror image. A determinant of zero means that the shape has collapsed into something flat, with no area or volume left.

Checking your homework

A good way to learn is to work the problem by hand first, then compare your answer with the one shown here. If they don't match, look at your signs before anything else, as most errors come from the alternating plus and minus pattern. Next, check that each smaller 2 × 2 determinant uses the correct rows and columns. You can also test a property: swap two rows, and the answer should be the same number with the opposite sign.

Common mistakes

  • Entering a rectangular grid. Only square matrices have determinants.
  • Forgetting the alternating signs when you expand by hand.
  • Separating digits by accident. A space splits one number into two.
  • Using a comma as a decimal point. Here, a comma separates two values.

Work with bigger numbers using the scientific notation calculator, compare scores with the z-score calculator, and simplify arithmetic with the fraction calculator.

What next

Use this often? Add Determinant to your Home screen.

Frequently asked questions

What does a determinant calculator do?

It reduces a square matrix to the single value called its determinant, and shows whether the matrix can be inverted.

How do you find a 2x2 determinant?

Multiply the main diagonal, then subtract the product of the other diagonal: ad − bc.

Can a determinant be negative?

Yes. A negative value is normal, and it means that the orientation is flipped.

What if the determinant is 0?

The matrix is singular, so it has no inverse.

Does a non-square matrix have a determinant?

No. Determinants are only defined for square matrices.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools