Math calculator

Determinant Calculator

How much a matrix scales space.

How much it scales space

Square matrices, up to 8×8, exact.

One row per line, entries separated by spaces or commas.

det of a 3×3

−306

The transformation scales area or volume by a factor of 306, and reverses orientation as well.

The matrix

The 3 by 3 matrix whose determinant is −306.
611
4−25
287

Determinant

−306

exact

Singular

no

an inverse exists

Row swaps used

0

each one flips the sign

Orientation

reversed

the sign of the determinant

  • Computed by fraction-free elimination rather than by cofactor expansion. Expansion is O(n!) — an 8×8 would take about forty thousand multiplications and a 20×20 would never finish — while this is O(n³) and every intermediate value on an integer matrix stays an integer.
  • The determinant is the factor by which the transformation scales area or volume. Being negative, it also reverses orientation — it flips the space over as well as scaling it.

Every intermediate value stays exact, so a determinant that should be zero is zero.

What this tool shows

The determinant is the factor by which a transformation scales area or volume. A negative one also flips orientation; a zero one squashes space flat, which is the same statement as “this matrix has no inverse”.

  • The determinant of any square matrix
  • What the number actually measures
  • Why a zero determinant means no inverse
  • What a negative determinant means
  • Why cofactor expansion stops being usable
  • Determinants of products and transposes
Up to 8×8 Exact, never rounded Singularity detected Orientation too

Square matrices only, up to 8×8.

Updated 7 September 2026 · Works in any browser, no installation

The determinant is how much the matrix scales area or volume. For [[1,2],[3,4]] it is ad − bc = −2: the transformation doubles area and flips orientation. A determinant of zero means space gets squashed flat, and that is exactly when no inverse exists.

At a glance

Formula shown
For a 2×2 it is ad − bc. In general the determinant is the product of the pivots after elimination, times −1 for each row swap. It equals the signed volume of the parallelepiped spanned by the rows.
Scenario support
Checking whether a matrix is invertible; finding whether a system of equations has a unique solution; computing an area or volume from vectors.
Educational estimate
Planning support from the values you enter — not professional advice.

What it measures

Take the unit square. Apply the matrix. The determinant is the area of what comes out.

In three dimensions it is the volume of the transformed unit cube, and the same idea continues upwards. One number, and it says how much the transformation stretches or shrinks everything.

The sign carries the other half of the answer. A negative determinant means the transformation turned space inside out — a reflection somewhere in it. In two dimensions, anticlockwise becomes clockwise.

Reading it geometrically makes the rules stop being arbitrary. Why does swapping two rows flip the sign? Because it reflects the space. Why does scaling a row by k multiply the determinant by k? Because it stretches one direction by k.

What zero means

A determinant of zero is the most informative answer the calculation gives.

It means the transformation collapses space: a square becomes a line segment, a cube becomes a flat sheet. Volume goes to nothing.

And collapsing cannot be undone. Once a whole direction has been flattened to a point, no transformation recovers what was there — the information is gone rather than merely hard to get at. That is why a zero determinant and “no inverse” are the same statement.

It is also the same statement as “the rows are linearly dependent”: one row is a combination of the others, so they do not span enough directions to fill the space.

This is where exact arithmetic earns its place. In floating point, a determinant that ought to be zero comes out as 3e−17, and a page checking against zero declares the matrix invertible. Here the answer is exactly zero, and the singularity is a fact rather than a judgement call.

Why not cofactor expansion

Cofactor expansion — break the determinant into smaller ones along a row, with alternating signs — is how the topic is taught, and it is the right way to understand what a determinant is. It is a poor way to compute one.

It is O(n!). A 3×3 takes a handful of multiplications. A 5×5 takes about 120. An 8×8 takes around forty thousand, and a 20×20 would need more operations than there are seconds in the age of the universe.

Elimination is O(n³). The same 20×20 is a few thousand operations. That is not a constant-factor improvement; it is the difference between possible and impossible.

This page uses the fraction-free version of elimination, which has one further advantage on exact arithmetic: ordinary Gaussian elimination on an integer matrix produces fractions whose denominators grow at every step, while the fraction-free arrangement keeps every intermediate value a whole number. Each division it performs is exact by construction.

The properties worth knowing

A handful of facts turn most determinant questions into one line.

det(AB) = det(A) × det(B). The determinant of a product is the product of the determinants — which is obvious geometrically, since composing two transformations multiplies their volume scalings.

det(Aᵀ) = det(A). Transposing changes nothing.

A triangular determinant is the product of the diagonal. Everything else contributes nothing, which is exactly why elimination works: it makes the matrix triangular first.

Scaling one row by k multiplies the determinant by k — so scaling the whole n×n matrix multiplies it by kⁿ, not by k. That one catches people out.

Two identical rows give zero. They are dependent by definition, so the volume is flat.

Where it gets used

Invertibility. The single test for whether a matrix can be undone, and therefore whether a linear system has one solution.

Areas and volumes. The area of a triangle from its coordinates is half a determinant, and the shoelace formula is a sum of them.

Cramer’s rule. Solving a system as a ratio of determinants — elegant, and impractical beyond about 3×3 for exactly the O(n!) reason above.

Calculus. The Jacobian determinant is the volume factor in a change of variables, which is why it appears whenever an integral is transformed into polar or spherical coordinates.

Sources and methodology

Determinants and the algorithms for them are standard; these are the references.

Method. Computed by Bareiss fraction-free elimination on exact rationals. That combination matters twice over: exactness means a determinant of zero is a fact rather than a rounded near-zero, so singularity is detected rather than guessed at; and the fraction-free arrangement keeps every intermediate value an integer on an integer matrix, avoiding the denominator blow-up that ordinary Gaussian elimination causes on rationals. The suite checks it against an independently written cofactor expansion on every matrix up to 4×4. That engine is verified on every change against 104 hand-written assertions, including that fraction-free elimination agrees with an independently implemented cofactor expansion on every test matrix, and that det(AB) equals det(A)·det(B) exactly. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

MatrixAdd, multiply, transpose and power matrices with exact fractions — showing both AB and BA, because those are different matrices and often not even the same shape.
Matrix InverseThe inverse in exact fractions, with the product A × A⁻¹ displayed — and it is exactly the identity, not the identity plus rounding noise.
Row Echelon FormReduced row echelon form with every step shown, plus rank, nullity, pivot columns and a null space basis — all exact, because rank is a question about zeros.
EigenvalueEigenvalues and the characteristic polynomial up to 6×6 — the polynomial exact and the roots decimal, because roots of a polynomial are generally irrational.
System of EquationsSolve linear systems in up to six unknowns with exact fractions — row operations, the matrix form, Cramer’s rule, and the parametric family when there is no single answer.
Intersection of Two LinesWhere two lines cross, in exact fractions — and which of the three outcomes you have, since a zero determinant means parallel or identical and those are different answers.

More in Math, or browse all calculators.

Read the guide

A non-zero determinant is exactly the condition for an inverse to exist — the Matrix Inverse Calculator computes it when it does.

Educational use disclaimer

This is an educational tool. Determinants are exact, so a result of zero is a fact about the matrix rather than a rounded near-zero.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the determinant page using Bareiss fraction-free elimination rather than cofactor expansion, since expansion is O(n!) — an 8×8 needs about forty thousand multiplications — while elimination is O(n³) and keeps every intermediate value an integer on an integer matrix.
  2. Computed exactly, so a determinant of zero is a fact about the matrix rather than a rounded near-zero: in floating point a singular matrix routinely comes back as invertible with a determinant of 3e−17.
  3. Explains what the number measures — the factor by which area or volume is scaled, with a negative one reversing orientation — rather than presenting it as a rule to memorise.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.