How to Find a Determinant: 2×2 and 3×3 Matrices

Can one number tell you whether a matrix can be reversed? It can, and that number is the determinant. You only need a few multiplications and one careful subtraction to find it.

Quick Answer

The determinant is one number computed from a square matrix. For a 2×2 matrix with rows (a, b) and (c, d), it is ad – bc. For a 3×3 matrix, expand along the first row with plus, minus, plus signs. A nonzero determinant means the matrix is invertible; zero means it is not.

The 2×2 Determinant Formula

For a 2×2 matrix with rows (a, b) and (c, d), the determinant is ad – bc. Multiply down the main diagonal, then subtract the product of the other diagonal. The diagram colors each pair so you can see them.

The 2×2 determinant: multiply the diagonals, then subtract A 2×2 matrix with entries a=1, b=2, c=3, d=4. The main diagonal pair a and d is teal and multiplies to 4. The other pair b and c is coral and multiplies to 6. The determinant is 4 minus 6, which equals negative 2. Multiply the two diagonals, then subtract 1 2 3 4 a b c d a x d = 1 x 4 = 4 b x c = 2 x 3 = 6 det = 4 – 6 = -2 Teal pair minus coral pair. Example matrix: rows (1, 2) and (3, 4).
The diagonal pairs of the 1, 2, 3, 4 matrix give 4 – 6 = -2.

Take the matrix with rows (1, 2) and (3, 4). The main diagonal gives 1 x 4 = 4, and the other diagonal gives 2 x 3 = 6. So the determinant is 4 – 6 = -2. You can confirm it with our determinant calculator, where this is the default example.

Now try rows (1, 2) and (2, 4). Here 1 x 4 = 4 and 2 x 2 = 4, so the determinant is 0. Row 2 is exactly 2 times row 1, which makes this matrix singular.

The same idea works for any numbers, including negatives and zeros. Just keep the pairs straight: a goes with d, and b goes with c. If one of those four entries is 0, one product drops out and the arithmetic gets easier.

How to Find a 3×3 Determinant

For a 3×3 matrix with rows (a, b, c), (d, e, f) and (g, h, i), expand along the first row. The formula is a(ei – fh) – b(di – fg) + c(dh – eg). The signs run plus, minus, plus, and each bracket is a 2×2 determinant you already know how to find.

Use the matrix M with rows (2, 0, 1), (1, 3, 2) and (1, 1, 4). The diagram splits the work into three pieces.

First-row expansion of a 3×3 determinant Three boxes for the matrix with rows (2, 0, 1), (1, 3, 2) and (1, 1, 4). The first box is plus a=2 times its 2×2 minor 10, giving 20. The second is minus b=0 times its minor 2, giving 0. The third is plus c=1 times its minor negative 2, giving negative 2. The three results add to 18. Expand along the first row: plus, minus, plus Plus: a = 2 minor: 3×4 – 2×1 = 10 2 x 10 = 20 Minus: b = 0 minor: 1×4 – 2×1 = 2 0 x 2 = 0 Plus: c = 1 minor: 1×1 – 3×1 = -2 1 x (-2) = -2 20 + 0 + (-2) = 18 Matrix M has rows (2, 0, 1), (1, 3, 2) and (1, 1, 4). Each minor is a 2×2 determinant.
Three small 2×2 determinants combine into the 3×3 answer of 18.

The first piece is 2 x (3 x 4 – 2 x 1) = 2 x 10 = 20. The middle piece is 0 times a number, so it adds 0. The last piece is 1 x (1 x 1 – 3 x 1) = 1 x (-2) = -2. Added together, 20 + 0 – 2 = 18.

The rule of Sarrus is a memory aid for the same formula. Add aei + bfg + cdh: 24 + 0 + 1 = 25. Add ceg + bdi + afh: 3 + 0 + 4 = 7. Then 25 – 7 = 18, which matches.

What the Determinant Tells You

A square matrix is invertible if and only if its determinant is nonzero. So a result of 0 means no inverse exists. When the determinant is nonzero, our guide on how to find the inverse of a matrix shows the next step.

The number also has a shape meaning. In 2D, the determinant is the factor by which the transformation scales area. In 3D, it scales volume. A positive sign keeps orientation, a negative sign reverses it, and zero means the transformation is not bijective.

The determinant as the area of a parallelogram A grid with a teal parallelogram whose corners are at (0, 0), (3, 0), (4, 2) and (1, 2), spanned by the column vectors (3, 0) and (1, 2). Its area is 6, which matches the determinant 3 times 2 minus 1 times 0. Swapping the two columns gives a determinant of negative 6: the same area with flipped orientation. The determinant is the area scale factor Area = 6 1 2 3 4 1 2 column (3, 0) column (1, 2) Matrix with rows (3, 1) and (0, 2) det = 3 x 2 – 1 x 0 = 6 Swap the two columns: det = -6 Same area, opposite orientation.
The columns (3, 0) and (1, 2) span an area of 6, drawn to scale.

The columns (3, 0) and (1, 2) form the matrix with rows (3, 1) and (0, 2). Its determinant is 3 x 2 – 1 x 0 = 6, which is the parallelogram’s area. Swap the two columns and the determinant becomes -6.

A larger singular case is the matrix with rows (1, 2, 3), (4, 5, 6) and (7, 8, 9). Its determinant is 0 because row 3 equals 2 x row 2 – row 1, so it has no inverse.

How Row Operations Change the Value

Three row moves change the determinant in simple, predictable ways. Swapping two rows multiplies it by -1. Multiplying one row by a number multiplies the determinant by that number. Adding a multiple of one row to another changes nothing.

Row moves applied to matrix M, whose determinant is 18
Row move Rule What changes in M New determinant
Swap rows 1 and 2 Multiply by -1 Rows 1 and 2 trade places -18
Multiply row 1 by 3 Multiply by 3 Row 1 becomes (6, 0, 3) 54
Add 2 x row 1 to row 2 No change Row 2 becomes (5, 3, 4) 18

Each result in the table comes straight from the rules, and you can verify any of them by expanding again. If you rework a big matrix by hand, these rules tell you how to adjust the final answer.

Here is a quick check. Swapping rows 1 and 2 of M gives rows (1, 3, 2), (2, 0, 1) and (1, 1, 4). Expanding along the first row gives -1 – 21 + 4 = -18. Try the 54 and the 18 yourself for practice with the expansion.

Products and Cramer’s Rule in Action

Determinants multiply: det(AB) = det(A) x det(B). Let A have rows (1, 2) and (3, 4), with determinant -2. Let B have rows (0, 1) and (1, 0), with determinant -1. The product AB has rows (2, 1) and (4, 3). Its determinant is 2 x 3 – 1 x 4 = 2, which equals (-2) x (-1). To build such a product yourself, read our matrix multiplication guide.

Cramer’s rule uses determinants to solve small systems. Solve 2x + y = 5 and x + 3y = 10. The coefficient determinant is 2 x 3 – 1 x 1 = 5. Each top part is a determinant with one column swapped for the right-side numbers.

  • x: (5 x 3 – 1 x 10) / 5 = 5 / 5 = 1.
  • y: (2 x 10 – 5 x 1) / 5 = 15 / 5 = 3.

A nonzero determinant means a unique solution. For more on systems, see linear equations explained.

Common Mistakes and Tool Limits

Most wrong answers come from a few small slips. Watch for these four.

  • Dropping the minus in ad – bc. Writing ad + bc gives a different number.
  • Wrong signs in the 3×3 expansion. Keep plus, minus, plus across the first row.
  • Mixing up rows and columns. The calculator wants numbers row by row, separated by commas: four numbers for 2×2, nine for 3×3.
  • Expecting an inverse when the determinant is 0. A zero means no inverse exists.

A good habit is to write each product on its own line before you subtract. Then check the signs once more. If the calculator and your hand result disagree, look first at how the rows were typed.

The calculator handles 2×2 and 3×3 matrices only. It shows the determinant and a yes or no for invertible, not the inverse itself. Its third preset is a diagonal 3×3 matrix with entries 2, 3 and 4, giving a determinant of 24. For the inverse, try the inverse matrix calculator.

Want to check your own matrix?

Type your rows into the determinant calculator to see the determinant and whether the matrix is invertible.

FAQs About Determinants

What does a determinant of zero mean?

The matrix is singular, so it has no inverse. For example, [[1, 2], [2, 4]] gives 4 – 4 = 0 because row 2 is twice row 1. Geometrically, the transformation is not bijective.

Can a determinant be negative?

Yes. The sign shows orientation: negative means the transformation reverses it. Swapping two rows or two columns flips the sign, like the 6 and -6 in the parallelogram example.

Do only square matrices have determinants?

Yes, the determinant belongs to square matrices, such as 2×2 and 3×3. The calculator on this site accepts those two sizes only.

How do I find a 3×3 determinant by hand?

Expand along the first row: a(ei – fh) – b(di – fg) + c(dh – eg). Each bracket is a 2×2 determinant, and the signs run plus, minus, plus.

What is the rule of Sarrus?

It is a memory aid for the 3×3 formula. Add aei + bfg + cdh, then subtract ceg + bdi + afh. For the example matrix, 25 – 7 gives 18.

Does adding one row to another change the determinant?

No. Adding a multiple of one row to another leaves it unchanged. Swapping two rows multiplies it by -1, and scaling a row scales the determinant by the same number.

How does the determinant of a product work?

The determinant of AB equals det(A) times det(B). In the example, -2 times -1 is 2, and the product matrix also has a determinant of 2.

Sources and Further Reading

References Used in This Article

This article is general education. Check hand results with a calculator, and note that this tool handles 2×2 and 3×3 matrices only. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated 2026-10-14.


Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~ More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.