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.
| Step | On | |
|---|---|---|
| 1 | Get a nonzero pivot, swapping rows if needed. Each row swap multiplies the determinant by . | swap and : , one swap |
| 2 | Clear below the pivot by adding multiples of the pivot row. Row addition leaves the determinant unchanged. | : row 3 becomes |
| 3 | Repeat down the diagonal until the matrix is triangular. If you factor a number out of a row, record it (row scaling). | : |
| 4 | Multiply the diagonal entries. A triangular determinant is the product of its diagonal. | |
| 5 | Undo the record. Multiply by for each swap and by every factor you pulled out. |