Free online tools

Determinant Calculator

Enter a square matrix to find its determinant. The calculation keeps exact results for the numbers you type, including a determinant of zero.

Enter your values

Enter one row per line, with commas or spaces between entries. Use decimal points and leave out thousands separators.

This tool processes your input in your browser.

Result

Start with a two-by-two matrix

For rows [a, b] and [c, d], the determinant is ad − bc. With rows [3, 2] and [5, 4], it is 3 × 4 − 2 × 5 = 2. A determinant is a scalar, so the result is one number.

Recognize zero determinants and row swaps

If one row is a multiple of another, the determinant is zero. Swapping two rows flips the sign of a nonzero determinant. The example matrix has determinant −1. A square matrix with nonzero determinant has an inverse.

Calculate larger determinants without intermediate rounding

The tool first scales finite-decimal entries to integers, then uses fraction-free elimination with row swaps. The final result divides out the original scale once per row. This avoids treating a determinant as zero merely because its rounded display is small.

Frequently asked questions

Can I calculate the determinant of a rectangular matrix?

Determinants are defined for square matrices, with the same number of rows and columns. The calculator supports square sizes from 1 × 1 through 8 × 8.

Does negative mean singular?

A matrix is singular when its determinant is zero. A negative determinant is nonzero, so the square matrix is invertible.

What is the determinant of a 1 × 1 matrix?

It is the single entry. For example, the determinant of [−3.5] is −3.5.