Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find the Determinant of a Triangular Matrix

If every entry below the diagonal, or every entry above it, is zero, the determinant is the product of the diagonal entries. The same idea works block by block for block triangular matrices.

Recognize the task

A square matrix with a triangle of zeros: upper triangular (25−103400−1)\begin{pmatrix} 2 & 5 & -1 \\ 0 & 3 & 4 \\ 0 & 0 & -1 \end{pmatrix}, lower triangular, diagonal, or a matrix with a zero block in a corner such as (AB0D)\begin{pmatrix} A & B \\ 0 & D \end{pmatrix}. Test: are all entries on one side of the diagonal zero?

Steps

StepOn A=(25−103400−1)A = \begin{pmatrix} 2 & 5 & -1 \\ 0 & 3 & 4 \\ 0 & 0 & -1 \end{pmatrix}
1Check the zero pattern. Zeros below the diagonal: upper triangular. Zeros above: lower triangular. A zero block instead of zero entries: use the block triangular rule.zeros below the diagonal: upper triangular
2Read the diagonal. The entries off the diagonal do not matter.22, 33, −1-1
3Multiply the diagonal entries. For blocks, multiply the determinants of the diagonal blocks.det⁡(A)=2⋅3⋅(−1)=−6\det(A) = 2 \cdot 3 \cdot (-1) = -6
4Read off invertibility. A zero on the diagonal makes the determinant 00, so the matrix is singular.no zero on the diagonal: AA is invertible

Worked examples

Example 1 · lower triangular with a zero

singular
(3000210054001726)\begin{pmatrix} 3 & 0 & 0 & 0 \\ 2 & 1 & 0 & 0 \\ 5 & 4 & 0 & 0 \\ 1 & 7 & 2 & 6 \end{pmatrix}
zeros above the diagonal
det⁡=3⋅1⋅0⋅6=0\det = 3 \cdot 1 \cdot 0 \cdot 6 = 0
one diagonal zero is enough

Example 2 · block triangular

2 × 2 blocks
(1256347800210013)\begin{pmatrix} 1 & 2 & 5 & 6 \\ 3 & 4 & 7 & 8 \\ 0 & 0 & 2 & 1 \\ 0 & 0 & 1 & 3 \end{pmatrix}
zero block at the bottom left
det⁡(1234)⋅det⁡(2113)=(−2)(5)\det\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \cdot \det\begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} = (-2)(5)
the top right block is ignored
det⁡=−10\det = -10

Example 3 · after elimination

finish a reduction
(1234)→R2−3R1(120−2)\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \xrightarrow{R_2 - 3R_1} \begin{pmatrix} 1 & 2 \\ 0 & -2 \end{pmatrix}
row addition keeps the determinant
det⁡=1⋅(−2)=−2\det = 1 \cdot (-2) = -2
matches 4−64 - 6
Turn any matrix into triangular form with row reduction.

See it happen

Expand a triangular matrix along its first column: only the top-left entry is nonzero, and what remains is again triangular. Repeating peels off one diagonal entry at a time, so the determinant is their product. Geometrically, a triangular matrix shears and stretches along the axes; shears keep volume, so only the stretches on the diagonal count.

Common mistakes

Multiplying the diagonal of a non-triangular matrix

✗ det⁡(1234)=1⋅4=4\det\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} = 1 \cdot 4 = 4
✓ not triangular: det⁡=4−6=−2\det = 4 - 6 = -2

Adding instead of multiplying

✗ det⁡(A)=2+3+(−1)=4\det(A) = 2 + 3 + (-1) = 4
✓ that is the trace; the determinant is 2⋅3⋅(−1)=−62 \cdot 3 \cdot (-1) = -6

Block rule without a zero block

✗ det⁡(ABCD)=det⁡(A)det⁡(D)\det\begin{pmatrix} A & B \\ C & D \end{pmatrix} = \det(A)\det(D) with B≠0B \neq 0 and C≠0C \neq 0
✓ the rule needs a zero block: B=0B = 0 or C=0C = 0