• Foundation
  • About 15 min
  • 5 practice questions

Determinants of 2 × 2 and 3 × 3 matrices

Evaluate determinants of 2 × 2 and 3 × 3 matrices by expansion, solve simple equations involving determinants, and find the area of a triangle and test collinearity with a determinant.

If something looks wrong, please tell us.

Every square matrix has a single number attached to it, called its determinant. The determinant decides whether the matrix has an inverse and whether a system of equations has a unique solution, and it also measures area. This lesson shows how to calculate determinants of 2 × 2 and 3 × 3 matrices, and one geometric use.

The 2 × 2 determinant

For A = [a b; c d], the determinant, written |A| or det A, is ad − bc: the product of the main diagonal minus the product of the other diagonal. For example, |3 5; 2 4| = 3 × 4 − 5 × 2 = 12 − 10 = 2. Determinants are written with straight bars instead of brackets. Only square matrices have determinants.

The 3 × 3 determinant by expansion

For a 3 × 3 matrix, expand along the first row. Each element of the row is multiplied by the 2 × 2 determinant left when you delete that element's row and column, and the three terms get the signs +, −, +. For A = [a₁ a₂ a₃; b₁ b₂ b₃; c₁ c₂ c₃]: |A| = a₁(b₂c₃ − b₃c₂) − a₂(b₁c₃ − b₃c₁) + a₃(b₁c₂ − b₂c₁).

Worked example 1: a full expansion

Evaluate |1 2 3; 0 4 5; 1 0 6|. First term: 1 × (4 × 6 − 5 × 0) = 24. Second term: −2 × (0 × 6 − 5 × 1) = −2 × (−5) = 10. Third term: 3 × (0 × 0 − 4 × 1) = 3 × (−4) = −12. Total: 24 + 10 − 12 = 22.

You may expand along any row or column, as long as you use the sign pattern + − + / − + − / + − + for the positions. Choosing a row or column with zeros saves work. For |2 0 0; 3 1 4; 5 2 7|, the first row has two zeros, so only one term remains: 2 × (1 × 7 − 4 × 2) = 2 × (−1) = −2.

Worked example 2: an equation in a determinant

Solve |2 4; 5 1| = |2x 4; 6 x|. The left side is 2 − 20 = −18. The right side is 2x × x − 4 × 6 = 2x² − 24. So 2x² − 24 = −18, giving 2x² = 6, x² = 3 and x = ±√3. Both values work, because only x² appears.

Area of a triangle

For a triangle with vertices (x₁, y₁), (x₂, y₂) and (x₃, y₃), the area is half the absolute value of the determinant |x₁ y₁ 1; x₂ y₂ 1; x₃ y₃ 1|. Expanded, this is ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. The absolute value is needed because the determinant is negative when the vertices are listed clockwise; area is never negative.

Worked example 3: area and collinearity

Find the area of the triangle with vertices (1, 2), (4, 6) and (7, 2). Area = ½ |1(6 − 2) + 4(2 − 2) + 7(2 − 6)| = ½ |4 + 0 − 28| = ½ × 24 = 12 square units. Check with geometry: the base from (1, 2) to (7, 2) has length 6 and the height to (4, 6) is 4, so the area is ½ × 6 × 4 = 12.

If the determinant is zero, the 'triangle' has no area, so the three points lie on one line: they are collinear. For (1, 1), (2, 3) and (3, 5): 1(3 − 5) + 2(5 − 1) + 3(1 − 3) = −2 + 8 − 6 = 0, so the points are collinear. This gives a quick way to find an unknown coordinate that makes three points collinear: set the expression equal to zero and solve.

|a b; c d| = ad − bc. Expand a 3 × 3 determinant along any row or column with the sign pattern + − +. Area of a triangle = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|; zero means collinear.

— Rule to remember

Key takeaways

A 2 × 2 determinant is ad − bc. A 3 × 3 determinant is three 2 × 2 determinants with alternating signs; pick the row or column with the most zeros. A determinant can be negative, but area takes its absolute value, and a zero determinant for three points means they lie on a line.

Check your understanding

  1. 1. What is the value of |4 −3; 2 5|?

    1. 26
    2. 14
    3. −26
    4. 20
    Show answer

    Answer: A. 4 × 5 − (−3) × 2 = 20 + 6 = 26.

  2. 2. For which values of x is |x 2; 8 x| = 0?

    1. x = 4 only
    2. x = 16
    3. x = 2 or x = 8
    4. x = 4 or x = −4
    Show answer

    Answer: D. x × x − 2 × 8 = x² − 16 = 0, so x = ±4.

  3. 3. What is the value of |1 0 2; 3 1 0; 0 2 1|?

    1. 11
    2. 13
    3. −11
    4. 7
    Show answer

    Answer: B. Along row 1: 1 × (1 × 1 − 0 × 2) − 0 + 2 × (3 × 2 − 1 × 0) = 1 + 12 = 13.

  4. 4. What is the area of the triangle with vertices (2, 1), (5, 1) and (2, 5)?

    1. 12 square units
    2. 7.5 square units
    3. 3 square units
    4. 6 square units
    Show answer

    Answer: D. ½ |2(1 − 5) + 5(5 − 1) + 2(1 − 1)| = ½ |−8 + 20 + 0| = 6. Check: a right angle at (2, 1) with legs 3 and 4 gives ½ × 3 × 4 = 6.

  5. 5. For which value of k are the points (1, 2), (3, k) and (5, 10) collinear?

    1. 6
    2. 4
    3. 8
    4. 5
    Show answer

    Answer: A. 1(k − 10) + 3(10 − 2) + 5(2 − k) = k − 10 + 24 + 10 − 5k = 24 − 4k = 0, so k = 6.

Sign in to keep track of the lessons you finish.

Next lesson → Minors, cofactors, adjoint and inverse

Privacy · Terms · Refunds · Delivery