How to Find the Determinant of a Matrix
Written by Awn · Published · 7 min read
Quick Answer
Here is how to find the determinant of a matrix. For a 2 by 2 matrix, compute ad minus bc. For a 3 by 3, multiply each top-row entry by the 2 by 2 determinant left after crossing out its row and column. Then combine them with signs plus, minus, plus.
What Is the Determinant of a Matrix?
A determinant is one number worked out from a square matrix. It is written or with straight bars. It tells you two useful things: whether the matrix has an inverse (only if the determinant is not zero), and how much the matrix stretches area or volume.
How to Find the Determinant Step by Step
- Check that the matrix is square.
- For 2×2, use .
- For 3×3 or larger, choose the row or column with the most zeros.
- Multiply each entry by its smaller determinant.
- Apply the plus and minus sign pattern.
- Add everything up.
The determinant calculator shows these steps for matrices up to 4×4.
Determinant of a 2x2 Matrix
In words: multiply the main diagonal, then subtract the product of the other diagonal.
For : .
Determinant of a 3x3 Matrix
The Cofactor Way
Cross out the row and column of an entry. The 2×2 determinant that is left is its minor. The minor with its sign is the cofactor.
Find along the top row.
- For 1: .
- For 2: .
- For 3: .
- Add: .
The Diagonal Way
This shortcut is called the rule of Sarrus. Copy the first two columns to the right of the matrix. Add the products of the three diagonals going down. Subtract the products of the three going up.
For the same matrix: down gives . Up gives . Then . This works only for 3×3.
How to Find the Determinant of a 4x4 Matrix
Expand into 3×3 determinants, or use row operations. Three facts make row operations work:
| Row operation | Effect on the determinant |
|---|---|
| Swap two rows | Changes its sign |
| Multiply a row by | Multiplies it by |
| Add a multiple of one row to another | No change |
Make zeros below the diagonal. Then multiply the diagonal entries.
Which Method Should You Use?
| Matrix | Method |
|---|---|
| 2×2 | |
| 3×3 | Cofactors or diagonals |
| Many zeros | Cofactors along the zeros |
| 4×4 and up | Row operations |
| Triangle of zeros | Multiply the diagonal |
What the Number Means
Take the 2×2 matrix with rows and . Draw its rows as two arrows from the origin, one to and one to . They form two sides of a slanted box called a parallelogram. Its area is 14, the same as the determinant.
So the size of a determinant is an area. For a 3×3 matrix, it is a volume.
- A determinant of 0 means the box is flat. The arrows lie on one line, so the matrix squashes everything and can't be undone. It has no inverse.
- A negative determinant means the arrows are in the opposite order. The area is still the positive size of the number.
- A determinant of 1 means the area does not change.
This picture explains two of the row rules. Doubling a row doubles one side of the box, so the area doubles. Swapping rows changes the order of the arrows, so the sign flips.
Properties That Save Work
| Fact | What it lets you do |
|---|---|
| Multiply two numbers, not two matrices | |
| Use columns in place of rows | |
| Skip finding the inverse | |
| for an matrix | Take out a common number |
For example, the matrix with rows and has determinant 14. If every entry is tripled, the new determinant is , not 42. Each of the two rows was tripled.
Worked Examples
Example 1: Row Operations
Find .
- Row 2 minus 2 times row 1: .
- Row 3 minus row 1: .
- New row 3 minus new row 2: .
- Multiply the diagonal: .
Example 2: A 4×4 With Zeros
Find .
- Expand along the top row. Only 1 and 2 matter. Their signs are plus and minus.
- For 1: , so this part is .
- For 2: , so this part is .
- Add: .
Example 3: Using a Column With Zeros
Find .
- The middle column has two zeros, so expand along it. Only the 6 counts.
- The 6 is in row 3, column 2. Since is odd, its sign is minus.
- Cross out its row and column: .
- The answer is .
Expanding along the top row would also work, but it needs more multiplying.
Example 4: Finding an Unknown
For which is ?
- The determinant is .
- Set it equal to zero: , so .
With , the first row is and the second is . The second is double the first, which is why the determinant is zero.
How to Remember the Sign Pattern
Signs form a checkerboard that starts with plus in the top left corner:
For any entry, add its row number and its column number. If the sum is even, the sign is plus. If it is odd, the sign is minus. This works for every size.
The pattern sign is separate from the sign of the entry. If the entry is and the pattern sign is minus, the two make .
Example 5: A Row Built From Other Rows
Find .
Row 3 is row 1 plus row 2. Subtract both from row 3 and it becomes all zeros, so the determinant is 0. Looking for a pattern like this before you start can save a page of work.
Common Mistakes
Missing the Minus in the Middle
In a 3×3 expansion along the top row, the second part is always subtracted, whatever the entry's own sign is.
Using the Diagonal Shortcut on a 4×4 Matrix
The rule of Sarrus fails for anything other than 3×3.
Confusing Straight Bars With Square Brackets
Straight bars mean the determinant, which is one number. Square brackets mean the matrix itself, which is a table.
Trying a Matrix That Is Not Square
A 2×3 matrix has no determinant. The number of rows and columns must match.
Practice Problems
- Find .
- Find .
- Find .
- Find .
- Find .
Show the answers
Check Your Answer With the Determinant Calculator
Expand along a different row. You should get the same number. Then compare with the matrix determinant calculator. To see what determinants are for, read how to solve systems of equations. Further reading: Determinant in Wolfram MathWorld and Cramer's Rule in OpenStax.
FAQ
What Is the Formula for a Determinant?
For 2×2 it is . For 3×3 it is . Larger ones repeat the same idea.
What Is a Minor and a Cofactor?
A minor is the determinant left after you cross out one row and one column. A cofactor is the minor with its plus or minus sign.
Is the Determinant of a 1x1 Matrix Just the Number?
Yes. The determinant of is 5, and the determinant of is .
How Do You Know If a Determinant Is Zero?
It is zero if one row is all zeros, if two rows are equal, or if one row can be built from the others.
Does the Order of Rows Matter?
Yes. Each swap of two rows changes the sign of the determinant.
What Are the Three Main Uses of Determinants?
They test whether a matrix has an inverse, they solve linear systems with Cramer's rule, and they measure area and volume.
Next step: do one 3×3 both ways, with cofactors and with diagonals. If the two agree, you know how to find the determinant with confidence.
Try the Calculator
Related Pages
- How to Solve Systems of EquationsLearn how to solve systems of equations by graphing, substitution and elimination. Solving systems of equations with steps, diagrams and practice.
- How to Simplify ExpressionsLearn how to simplify expressions: distribute, use exponent rules, cancel and combine like terms. Simplifying algebraic expressions, step by step.