How it works
For a 2 × 2 matrix, det [[a, b], [c, d]] = ad − bc. For larger matrices the calculator row-reduces to a triangular matrix, where the determinant is the product of the diagonal (changing sign for each row swap).
det [[a, b], [c, d]] = ad − bc
A determinant of 0 means the matrix has no inverse, and a system of equations with that matrix has no unique solution.
Worked example
Find det [[1, 2, 3], [4, 5, 6], [7, 8, 10]]. Expanding along the first row: 1(5 × 10 − 6 × 8) − 2(4 × 10 − 6 × 7) + 3(4 × 8 − 5 × 7) = 2 + 4 − 9 = −3.
The cofactor sign pattern
The worked example expands along the first row with the signs +, −, +. Every position in a matrix has its own sign, (−1)j+k for row j and column k. The signs form a checkerboard that starts with + in the top left:
| Row | Column 1 | Column 2 | Column 3 |
|---|---|---|---|
| 1 | + | − | + |
| 2 | − | + | − |
| 3 | + | − | + |
The cofactor of an entry is this sign times its minor, the determinant left when you delete the entry’s row and column. You can expand along any row or any column and get the same answer.
Which row should you expand along?
Pick the row or column with the most zeros, because a zero entry removes a whole term. For B = [[2, −1, 3], [0, 4, 1], [5, 2, 0]], row 2 starts with 0 and its signs are −, +, −:
det B = −0 × (…) + 4 × (2 × 0 − 3 × 5) − 1 × (2 × 2 − (−1) × 5) = 0 − 60 − 9 = −69
The last term takes a minus sign from the pattern. Leaving it out gives −60 + 9 = −51, a common wrong answer. Enter the rows 2, −1, 3 and 0, 4, 1 and 5, 2, 0 to confirm −69.
How do row operations change the determinant?
| Operation | Effect on the determinant |
|---|---|
| Swap two rows (or two columns) | Changes sign |
| Multiply one row by k | Multiplied by k |
| Add a multiple of one row to another row | No change |
| Transpose (rows become columns) | No change |
| Multiply the whole n × n matrix by k | Multiplied by kn |
The last row follows from the second, applied once to each of the n rows. So det(2B) = 2³ × (−69) = −552. There is no such rule for sums: det(A + B) is usually not det A + det B.
More examples to try
- Triangular: every entry below the diagonal of [[3, 5, 7], [0, 2, 4], [0, 0, −1]] is 0, so the determinant is the diagonal product 3 × 2 × (−1) = −6.
- Fractions: det [[1/2, 1/3], [1/4, 1/5]] = 1/2 × 1/5 − 1/3 × 1/4 = 1/10 − 1/12 = 1/60. Type the fractions as they are and the answer stays exact.
- Singular: det [[1, 2, 3], [2, 4, 6], [1, 0, 1]] = 0, because row 2 is twice row 1.
- 4 × 4: choose size 4 × 4 and enter [[2, 0, 1, 3], [1, −1, 0, 2], [0, 3, 1, −1], [4, 1, 2, 0]]. The determinant is −6. By hand, expanding along row 1 needs three 3 × 3 minors (the 0 removes one): 8, −19 and 1. With the signs + − + −, 2 × 8 + 1 × (−19) − 3 × 1 = −6.
The diagonal trick some books teach for 3 × 3 matrices (the rule of Sarrus) does not work for 4 × 4. Use cofactors or row reduction there.
On a Casio fx-991CW, the Matrix app holds matrices up to 4 rows by 4 columns, and its Det command works only on square matrices.
Tips
- Swapping two rows changes the sign of the determinant.
- A row of zeros, or two equal rows, makes the determinant 0.
- det(A × B) = det A × det B.
Questions
What does a determinant of 0 mean?
The matrix is singular: it has no inverse, and its rows are linearly dependent.
Can entries be fractions?
Yes, and roots such as √2. The answer stays exact.
Is det [[1,2,3],[4,5,6],[7,8,9]] zero?
Yes. Its rows are in arithmetic progression, so they are dependent.
Which row is best for cofactor expansion?
The row or column with the most zeros, because each zero removes a term. Remember the sign pattern + − + / − + − / + − +: in row 2 of a 3 × 3 matrix the signs are −, +, −.
Can a non-square matrix have a determinant?
No. Determinants exist only for square matrices, such as 2 × 2, 3 × 3 or 4 × 4.
What happens to the determinant if I multiply the matrix by 2?
For an n × n matrix it is multiplied by 2ⁿ, because each of the n rows is doubled. A 3 × 3 matrix with determinant −69 becomes 8 × (−69) = −552.
Sources
- NIST Digital Library of Mathematical Functions, §1.3 Determinants. Equations 1.3.1–1.3.2 (2 × 2 and 3 × 3), 1.3.3 (cofactor sign (−1)^(j+k)), 1.3.4 (expansion along a row), 1.3.5 (transpose), 1.3.7 (product); text of §1.3(i) on row swaps, row scaling, adding a multiple of a row, and triangular matrices. Checked 22 November 2026.
- Casio fx-570CW / fx-991CW user’s guide (online manual): Matrix Calculations. Matrices of up to 4 rows by 4 columns; determinants only for square matrices (Example 6). Checked 22 November 2026.