Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find a Determinant by Row Reduction

Row reduce the matrix to upper triangular form and keep a record: a row swap flips the sign, scaling a row scales the determinant, and adding a multiple of one row to another changes nothing. At the end, multiply the diagonal and undo the record.

Recognize the task

A 4×44 \times 4 or larger determinant, or a 3×33 \times 3 with no useful zeros: det⁡(021112243)\det\begin{pmatrix} 0 & 2 & 1 \\ 1 & 1 & 2 \\ 2 & 4 & 3 \end{pmatrix}, det⁡(1201251301321214)\det\begin{pmatrix} 1 & 2 & 0 & 1 \\ 2 & 5 & 1 & 3 \\ 0 & 1 & 3 & 2 \\ 1 & 2 & 1 & 4 \end{pmatrix}. Test: will elimination reach triangular form in a few steps? For n≥4n \ge 4 it beats cofactor expansion.

Steps

StepOn A=(021112243)A = \begin{pmatrix} 0 & 2 & 1 \\ 1 & 1 & 2 \\ 2 & 4 & 3 \end{pmatrix}
1Get a nonzero pivot, swapping rows if needed. Each row swap multiplies the determinant by −1-1.swap R1R_1 and R2R_2: (112021243)\begin{pmatrix} 1 & 1 & 2 \\ 0 & 2 & 1 \\ 2 & 4 & 3 \end{pmatrix}, one swap
2Clear below the pivot by adding multiples of the pivot row. Row addition leaves the determinant unchanged.R3−2R1R_3 - 2R_1: row 3 becomes (0,2,−1)(0, 2, -1)
3Repeat down the diagonal until the matrix is triangular. If you factor a number out of a row, record it (row scaling).R3−R2R_3 - R_2: (11202100−2)\begin{pmatrix} 1 & 1 & 2 \\ 0 & 2 & 1 \\ 0 & 0 & -2 \end{pmatrix}
4Multiply the diagonal entries. A triangular determinant is the product of its diagonal.1⋅2⋅(−2)=−41 \cdot 2 \cdot (-2) = -4
5Undo the record. Multiply by −1-1 for each swap and by every factor you pulled out.det⁡(A)=(−1)1⋅(−4)=4\det(A) = (-1)^1 \cdot (-4) = 4

Worked examples

Example 1 · factor out a common number

row scaling
det⁡(242134379)=2det⁡(121134379)\det\begin{pmatrix} 2 & 4 & 2 \\ 1 & 3 & 4 \\ 3 & 7 & 9 \end{pmatrix} = 2\det\begin{pmatrix} 1 & 2 & 1 \\ 1 & 3 & 4 \\ 3 & 7 & 9 \end{pmatrix}
take 22 out of row 1
R2−R1R_2 - R_1, R3−3R1R_3 - 3R_1, then R3−R2R_3 - R_2: diagonal 1,1,31, 1, 3
rows (0,1,3)(0,1,3), (0,1,6)(0,1,6), then (0,0,3)(0,0,3)
det⁡=2⋅3=6\det = 2 \cdot 3 = 6

Example 2 · a fraction multiplier

no swaps
det⁡(369142211)=3det⁡(123142211)\det\begin{pmatrix} 3 & 6 & 9 \\ 1 & 4 & 2 \\ 2 & 1 & 1 \end{pmatrix} = 3\det\begin{pmatrix} 1 & 2 & 3 \\ 1 & 4 & 2 \\ 2 & 1 & 1 \end{pmatrix}
take 33 out of row 1
R2−R1=(0,2,−1)R_2 - R_1 = (0, 2, -1), R3−2R1=(0,−3,−5)R_3 - 2R_1 = (0, -3, -5)
R3+32R2=(0,0,−132)R_3 + \tfrac{3}{2}R_2 = (0, 0, -\tfrac{13}{2})
row addition: no change
det⁡=3⋅1⋅2⋅(−132)=−39\det = 3 \cdot 1 \cdot 2 \cdot \left(-\tfrac{13}{2}\right) = -39

Example 3 · a 4×4 matrix

one swap
(1201251301321214)\begin{pmatrix} 1 & 2 & 0 & 1 \\ 2 & 5 & 1 & 3 \\ 0 & 1 & 3 & 2 \\ 1 & 2 & 1 & 4 \end{pmatrix}: R2−2R1R_2 - 2R_1, R4−R1R_4 - R_1
rows (0,1,1,1)(0,1,1,1) and (0,0,1,3)(0,0,1,3)
R3−R2=(0,0,2,1)R_3 - R_2 = (0, 0, 2, 1); swap R3R_3 and R4R_4
pivot 11 avoids fractions; sign flips
R4−2R3=(0,0,0,−5)R_4 - 2R_3 = (0, 0, 0, -5): diagonal 1,1,1,−51, 1, 1, -5
det⁡=(−1)⋅(−5)=5\det = (-1) \cdot (-5) = 5
one swap
Follow the elimination in the Gaussian elimination visualizer.

See it happen

Think of the determinant as the signed volume of the box spanned by the rows. Adding a multiple of one row to another shears the box, which keeps its volume. Scaling a row stretches one edge, and the volume by the same factor. Swapping two rows flips the orientation. A triangular matrix spans a box whose volume is simply the product of the diagonal.

Common mistakes

Forgetting a row swap

✗ det⁡(A)=−4\det(A) = -4 after one swap
✓ flip the sign once per swap: det⁡(A)=4\det(A) = 4

Scaling a row without recording it

✗ replacing R2R_2 by 2R2−5R12R_2 - 5R_1 and keeping the result as is
✓ that doubles the determinant; divide by 22 at the end

Multiplying the diagonal too early

✗ (112021243)\begin{pmatrix} 1 & 1 & 2 \\ 0 & 2 & 1 \\ 2 & 4 & 3 \end{pmatrix}: 1⋅2⋅3=61 \cdot 2 \cdot 3 = 6
✓ clear row 3 first; the triangular diagonal is 1,2,−21, 2, -2