4×4 Determinant Calculator

Decomposition by:
1
Solution comments
Without description (answer only)

a

b

c

d

x

y

z

AC

i

ab
x2
xn

Randomize

Number format
3131313131351515151515≈52188552198585858586
Round to
Digits after decimal point
10
=Solve

  How to find the determinant of a 4×4 matrix

There is no short formula for a 4×4 determinant. Written out in full it has 24 products of four entries each, so nobody computes it that way. There are two practical routes.

Cofactor expansion picks a row or a column and turns the problem into four 3×3 determinants, each multiplied by its entry and a sign from the checkerboard pattern + − + −. Every zero in the chosen row removes one 3×3 determinant, so always expand along the row or column with the most zeros.

Row reduction turns the matrix into an upper triangular one. Adding a multiple of one row to another does not change the determinant, swapping two rows changes its sign, and the determinant of a triangular matrix is the product of its diagonal. For a 4×4 matrix this is usually about a third of the arithmetic of a full expansion.

  Worked example by row reduction

Take the matrix with rows (2, 1, 0, 1), (4, 3, 1, 2), (0, 2, 3, 1) and (2, 1, 1, 4).

Clear the first column. Row 2 minus 2 times row 1 gives (0, 1, 1, 0). Row 4 minus row 1 gives (0, 0, 1, 3). Row 3 already starts with a zero.

Clear the second column. Row 3 minus 2 times the new row 2 gives (0, 0, 1, 1). Then clear the third column: row 4 minus row 3 gives (0, 0, 0, 2).

The matrix is now upper triangular with diagonal 2, 1, 1, 2. No rows were swapped, so det(A) = 2·1·1·2 = 4.

  Checking your answer

Both routes must give the same number, which makes one a check for the other. The calculator above is set to 4×4 and expands along a row or column by default, showing each 3×3 minor. Switch the method to triangular form to see the row reduction instead, or to Bareiss for a fraction-free elimination that keeps integer matrices in integers.

  4×4 determinant by cofactor expansion

Write the initial matrix
A
:
A
=
1
2
0
1
2
1
3
0
0
4
1
2
3
0
2
1
To find the determinant of matrix
A
need to do the following:
1)
Find the minors for each element of 1th row of the matrix A;
2)
Multiply each element of 1th row of the matrix A by its corresponding minor;
3)
The product of an element in its minor must be taken with a minus or plus sign, it depends on the indices of the element:
if i + j is equal to an even number, then take the plus sign;
if i + j is not an even number, then take the minus sign;
4)
Add all the products of the element on the corresponding minor, taking into account the correct taken sign;
det(
A
) =
n
j
= 1
(-1)
i+j
·
a
0
i,j
·
M
0
i,j
// where
i
is the row number
j
is the column number
2
M1,1
M
0
1,1
=
1
2
0
1
2
1
3
0
0
4
1
2
3
0
2
1
=
1
3
0
4
1
2
0
2
1
=
-15
;
3
M1,2
M
0
1,2
=
1
2
0
1
2
1
3
0
0
4
1
2
3
0
2
1
=
2
0
1
4
1
2
0
2
1
=
2
;
4
M1,3
M
0
1,3
=
1
2
0
1
2
1
3
0
0
4
1
2
3
0
2
1
=
2
0
1
1
3
0
0
2
1
=
8
;
5
M1,4
M
0
1,4
=
1
2
0
1
2
1
3
0
0
4
1
2
3
0
2
1
=
2
0
1
1
3
0
4
1
2
=
1
;
6
Matrix determinant
det(
A
) =
(
1
*
1
*
-15
)
+
(
-1
*
2
*
2
)
+
(
1
*
0
*
8
)
+
(
-1
*
3
*
1
)
=
-22
;
Answer
det(A)
det(
A
) =
-22
;
SIZE4×4METHODCofactor expansion (Laplace)

  Calculation methods

  Calculators by size and method

  Sources