What This Calculator Does
A determinant is a single number computed from a square matrix that summarizes how that matrix scales area (for 2x2) or volume (for 3x3), and whether the matrix can be inverted at all. This calculator takes a 2x2 or 3x3 matrix you enter and returns the determinant, the trace (sum of the diagonal entries), the absolute value of the determinant, and whether the matrix is invertible — all computed directly from your inputs, not looked up from a table.
It's used in linear algebra coursework, solving systems of linear equations (a system has a unique solution exactly when its coefficient matrix has a nonzero determinant), computer graphics and physics (the determinant of a transformation matrix tells you how much it stretches or flips space), and any calculation — like Cramer's Rule or finding a matrix inverse — that needs the determinant as a building block.
Formula Breakdown
2x2: det(A) = a₁₁a₂₂ − a₁₂a₂₁Worked Example
Using the calculator's own default 3x3 matrix, entered row by row as 1, 2, 3 / 0, 1, 4 / 5, 6, 0:
- Expand along row 1: det = 1×(1×0 − 4×6) − 2×(0×0 − 4×5) + 3×(0×6 − 1×5).
- First term: 1×(0 − 24) = 1×(−24) = −24.
- Second term: −2×(0 − 20) = −2×(−20) = +40.
- Third term: 3×(0 − 5) = 3×(−5) = −15.
- Sum: −24 + 40 − 15 = 1.
So the determinant is 1, matching what the calculator returns for these entries. Since the determinant is nonzero, the matrix is invertible, and the absolute value of the determinant is also 1. The trace is m₁₁+m₂₂+m₃₃ = 1+1+0 = 2. (The default 2x2 matrix — 4, 2 / 1, 3 — is simpler to check by hand: det = 4×3 − 2×1 = 12 − 2 = 10, trace = 4+3 = 7.)
Common Mistakes / How to Interpret
- Mixing up row-major entry order: the input grid expects entries left to right, top to bottom (row 1 first, then row 2, then row 3) — entering them column by column will silently compute the determinant of a different matrix.
- Assuming a nonzero determinant means "the numbers are big": determinant sign and size don't track the size of the entries — a matrix of large numbers can still have a zero or tiny determinant (e.g., when one row is a multiple of another), and a matrix of small numbers can have a large determinant.
- Forgetting the sign pattern in cofactor expansion: the 3x3 formula alternates +, −, + across the first row (as shown above); dropping the minus sign on the middle term is the most common manual-calculation error, and it's exactly what this calculator avoids for you.
- Treating "not invertible" as an error: a determinant of zero is a valid, meaningful result — it tells you the matrix is singular (its rows or columns are linearly dependent), not that you made a mistake entering values.