4×4 Matrix Determinant Calculator

Enter all 16 entries of your 4×4 matrix to compute its determinant.

How it is calculated

The tool reads the 16 entries a11 to a44 (row first, then column) and reduces the matrix to upper-triangular form by Gaussian elimination with partial pivoting. In each column it takes the row with the largest absolute value on or below the diagonal, swaps it up (every swap flips the sign), multiplies the running determinant by that pivot and subtracts multiples of the pivot row from the rows below. The result is the signed product of the four pivots: det = ± p1 × p2 × p3 × p4. Tolerances are relative to the largest entry, so a matrix scaled by 0.001 (determinant 1e-12) is still reported as invertible. Values below 0.00005 are printed in scientific notation instead of 0.0000. Singular means |det| < 1e-9 × (largest entry)4. All 16 cells must hold numbers.

Worked example

Rows: (1, 2, 0, 1), (3, 1, 2, 0), (0, 1, 1, 2), (0, 0, 2, 1). Column 1: the largest entry is 3, so swap rows 1 and 2 (sign becomes −1) and multiply by 3, giving −3. Eliminating below leaves 5/3 as the next pivot: −3 × 5/3 = −5. In column 3 the candidates are 7/5 and 2, so swap again (sign back to +) and multiply by 2: 10. The last pivot is 7/10, so 10 × 0.7 = 7. The tool shows a determinant of 7.0000 and labels the matrix Invertible.

Try this example →

Common mistakes

  • Typing a row in the wrong position or swapping two rows by accident. A transposed matrix has the same determinant, but one swapped pair of rows flips the sign of the answer.
  • Leaving a cell empty because it should be zero. All 16 cells need a value; a blank cell gives no result, so type 0.
  • Reading a determinant such as 1.0000e-12 as "almost zero, so singular". For a matrix with entries around 0.001 that is the correct size (0.0014), and the tool judges singularity relative to the entries, so it says Invertible.
  • Assuming that doubling every entry doubles the determinant. For a 4×4 matrix the determinant is multiplied by 24 = 16.
  • Entering a matrix whose row is a multiple of another, such as (1, 2, 3, 4) and (2, 4, 6, 8), and expecting a nonzero value. Such rows are linearly dependent and the tool correctly reports Singular with 0.0000.

About this calculator

The determinant of a square matrix is a single number that reveals key properties of the linear transformation it represents — a determinant of zero means the matrix is singular (not invertible, and its rows/columns are linearly dependent), while a nonzero determinant means it's invertible. For a 4×4 matrix, expanding by cofactors directly requires 4! = 24 terms, so it's far more efficient to use Gaussian elimination with partial pivoting, reducing the matrix to upper-triangular form and multiplying the diagonal entries (tracking sign flips from row swaps).

This calculator takes all 16 entries of your 4×4 matrix, runs Gaussian elimination to compute the determinant, and tells you whether the matrix is singular or invertible. It's a standard tool for linear algebra students and anyone working with linear systems, computer graphics transformations, or engineering models who need to check invertibility before solving a system or inverting a matrix.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators