Area of Triangle in Determinant Form

#Area of Triangle in Determinant Form
TL;DR
The area of a triangle in determinant form is half the absolute value of a 3×33 \times 3 determinant whose rows are the corners (x,y,1)(x, y, 1). The determinant is a parallelogram's area, and a zero determinant means the points are collinear.
Mythri K M·reviewed byMadhukar VLast updated on December 2, 202615 min read

Key Points

  • Area =12∣det⁡[x1y11x2y21x3y31]∣= \frac{1}{2}\left|\det\begin{bmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{bmatrix}\right|, one row per corner.
  • Expanding along the column of 1s, with signs +,−,++, -, +, gives x1(y2−y3)+x2(y3−y1)+x3(y1−y2)x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2).
  • The determinant is the area of the parallelogram on two edges; the triangle is half.
  • A zero determinant means the points are collinear, and gives the equation of a line.
  • Anticlockwise corners give a positive determinant, clockwise a negative one.

Why Package a Triangle's Area Inside a Determinant?

Give me the three corners of a triangle and one determinant returns its exact area. No base, no perpendicular height, no angle.

  • Its size gives the area.
  • Its being zero means the points are on a line.
  • Its sign says which side of a line the third point is on.
  • Leaving one row as (x,y,1)(x, y, 1) gives the line's equation.

That is why the area of a triangle in determinant form turns up in school algebra, surveying software and graphics cards. The running triangle is A(1,1)A(1, 1), B(6,2)B(6, 2), C(3,5)C(3, 5): determinant 18, area 9.

area of triangle in determinant form with the three corners as the rows of a 3 by 3 determinant
The triangle A(1, 1), B(6, 2), C(3, 5) on a grid beside its determinant with rows (1, 1, 1), (6, 2, 1) and (3, 5, 1), which equals 18, so the area is half of 18, which is 9.

What Is the Area of a Triangle in Determinant Form?

It is a triangle's area worked out from its three corners, written as the rows of a 3×33 \times 3 determinant. For A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), C(x3,y3)C(x_3, y_3):

Area=12∣ det⁡[x1y11x2y21x3y31]∣\text{Area} = \frac{1}{2}\left|\,\det\begin{bmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{bmatrix}\right|

What Is the Formula and What Does Each Symbol Mean?

Each part of the formula does one job.

  • The rows hold the three corners, in the order you go round the triangle.
  • The column of 1s lets a 3×33 \times 3 grid describe flat points, and keeps the arithmetic short.
  • det⁡\det is twice the signed area.
  • The 12\frac{1}{2} is there because the determinant is a parallelogram, and the triangle is half of it.
  • The bars are the absolute value: they drop the sign, which only records direction.

Expanded, it is the same number:

Area=12∣ x1(y2−y3)+x2(y3−y1)+x3(y1−y2) ∣\text{Area} = \frac{1}{2}\left|\,x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\,\right|

How Do You Expand a 3×3 Determinant?

Before asking why it works, learn to work it out. Expand along the column of 1s, since multiplying by 1 keeps the arithmetic light.

  1. Cover a 1's row and column. The 2×22 \times 2 grid left is its minor.
  2. Give the three minors the signs ++, −-, ++ from top to bottom.
  3. Add.
det⁡=+∣6235∣−∣1135∣+∣1162∣=24−2−4=18\det = +\begin{vmatrix} 6 & 2 \\ 3 & 5 \end{vmatrix} - \begin{vmatrix} 1 & 1 \\ 3 & 5 \end{vmatrix} + \begin{vmatrix} 1 & 1 \\ 6 & 2 \end{vmatrix} = 24 - 2 - 4 = 18

Area =12×18=9= \frac{1}{2} \times 18 = 9 square units.

expanding the area determinant along its column of 1s into three 2 by 2 minors
The determinant with rows (1, 1, 1), (6, 2, 1), (3, 5, 1) and its column of 1s highlighted, expanded into +1 times the minor 24, −1 times the minor 2, and +1 times the minor −4, giving det = 24 − 2 + (−4) = 18.

With letters, the minors are x2y3−x3y2x_2y_3 - x_3y_2, x1y3−x3y1x_1y_3 - x_3y_1 and x1y2−x2y1x_1y_2 - x_2y_1. Apply +,−,++, -, + and group by x1x_1, x2x_2, x3x_3 to get x1(y2−y3)+x2(y3−y1)+x3(y1−y2)x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2).

How Do You Derive the Determinant Formula?

You can now work the determinant out; here is why it is twice the area. Treat two sides as vectors and take half the parallelogram they span.

Step 1: subtract the first row

  1. Subtracting one row from another leaves a determinant unchanged. Subtract row AA from rows BB and CC:
det⁡[x1y11x2−x1y2−y10x3−x1y3−y10]=∣x2−x1y2−y1x3−x1y3−y1∣\det\begin{bmatrix} x_1 & y_1 & 1 \\ x_2 - x_1 & y_2 - y_1 & 0 \\ x_3 - x_1 & y_3 - y_1 & 0 \end{bmatrix} = \begin{vmatrix} x_2 - x_1 & y_2 - y_1 \\ x_3 - x_1 & y_3 - y_1 \end{vmatrix}
  1. The rows left are the edge vectors AB→\overrightarrow{AB} and AC→\overrightarrow{AC} (arrows along two sides).
  2. Here AB→=(5,1)\overrightarrow{AB} = (5, 1), AC→=(2,4)\overrightarrow{AC} = (2, 4), and 5×4−1×2=185 \times 4 - 1 \times 2 = 18.
  3. This slides the triangle so AA sits at the origin, changing neither area nor determinant.

Step 2: a 2 × 2 determinant is a parallelogram's area

  • Complete the parallelogram ABDCABDC with D=(8,6)D = (8, 6). Diagonal BCBC splits it into two copies of the triangle.
  • So the triangle is half the parallelogram: that is the 12\frac{1}{2}.
the determinant of two edge vectors is the parallelogram area and the triangle is half
Edge vectors AB = (5, 1) and AC = (2, 4) drawn as arrows from A(1, 1), completing the parallelogram ABDC with D(8, 6). The diagonal BC splits it into a blue triangle of area 9 and an orange copy of area 9, a total of 18 = 5 × 4 − 1 × 2.

Why is ad−bcad - bc the parallelogram on (a,b)(a, b) and (c,d)(c, d)? Box it, then remove six pieces:

parallelogram=(a+c)(b+d)−ab−cd−2bc=ad−bc\text{parallelogram} = (a + c)(b + d) - ab - cd - 2bc = ad - bc
  • Here the box is 7×5=357 \times 5 = 35, the pieces total 17, and 35−17=1835 - 17 = 18.
  • Elsewhere ad−bcad - bc can be negative: signed area.
why a 2 by 2 determinant ad minus bc equals the area of a parallelogram
A dashed 7 by 5 box around the parallelogram on (5, 1) and (2, 4). Six pieces surround it: two purple triangles of 2.5, two green triangles of 4 and two orange rectangles of 2, leaving the blue parallelogram of area 18.

Where determinants came from

Determinants grew from solving equations. Seki Takakazu (1683) and Gottfried Leibniz (1693) found them independently, Cramer used them in 1750, and Cauchy named them in 1812.

The Sign: Which Way Round the Triangle Goes

Without the bars, the determinant is positive for anticlockwise A→B→CA \to B \to C and negative for clockwise.

  • A,B,CA, B, C gives +18+18; A,C,BA, C, B gives −18-18.
  • Swapping two rows flips the sign, as swapping two corners does.
  • With AA and BB fixed, a point PP gives a positive value on one side of line ABAB, negative on the other, zero on it.

How Does the Determinant Detect Collinear Points?

A zero determinant means the three points lie on one straight line and enclose no area.

det⁡[x1y11x2y21x3y31]=0  ⟺  A,B,C are collinear\det\begin{bmatrix} x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1 \end{bmatrix} = 0 \iff A, B, C \text{ are collinear}
  • The edge vectors point the same way, so the parallelogram collapses flat.
  • So one determinant is both the area and the collinearity test.

The line through two points

Keep A(1,1)A(1, 1) and B(6,2)B(6, 2), and make the first row a moving point P(x,y)P(x, y):

det⁡[xy1111621]=−x+5y−4\det\begin{bmatrix} x & y & 1 \\ 1 & 1 & 1 \\ 6 & 2 & 1 \end{bmatrix} = -x + 5y - 4
  • PP is on line ABAB exactly when this is 0: the line is x−5y+4=0x - 5y + 4 = 0.
  • Check: (1,1)(1, 1) and (6,2)(6, 2) both give 0. C(3,5)C(3, 5) gives +18+18; (5,−1)(5, -1) gives −14-14, the other side.
a zero determinant puts the point on line AB and gives the equation of the line
The green line through A(1, 1) and B(6, 2) labelled −x + 5y − 4 = 0, with (−4, 0) and (11, 3) on it where det = 0. The point (3, 5) above the line gives det = 18 with a blue triangle, and (5, −1) below gives det = −14 with an orange triangle.

It needs no slope, so it works for vertical lines too. More in the equation of a line.

  • Drag corners A, B and C: the determinant and coordinate formula update together.
  • The verdict says whether A → B → C runs anticlockwise or clockwise.
  • Drag a corner onto the line through the other two and the determinant reads 0. The "Collinear points" preset starts there.

Try It Yourself

Use the coordinate lab to see Area of Triangle in Determinant Form at work: drag, change the numbers and watch what happens.

Examples of Area of Triangle in Determinant Form

Example 1

Find the area of the triangle with vertices (2,1)(2, 1), (5,3)(5, 3) and (1,6)(1, 6).

  1. Expand along the 1s: (30−3)−(12−1)+(6−5)=27−11+1=17(30 - 3) - (12 - 1) + (6 - 5) = 27 - 11 + 1 = 17.
  2. Area =12×17=8.5= \frac{1}{2} \times 17 = 8.5.

Final answer: 8.5 square units.

Example 2

A student finds the area of the running triangle A(1,1)A(1, 1), B(6,2)B(6, 2), C(3,5)C(3, 5) and gets 11. Find the mistake.

  1. The student added the minors: 24+2+(−4)=2224 + 2 + (-4) = 22, half is 11.
  2. Check by box: 5×4=205 \times 4 = 20, minus corners 2.5+4.5+4=112.5 + 4.5 + 4 = 11, leaves 9. So 11 is wrong.
  3. The middle sign is minus: 24−2+(−4)=1824 - 2 + (-4) = 18, area 9.

Final answer: 9 square units; the middle term takes a minus sign.

Example 3

Do (2,3)(2, 3), (4,7)(4, 7) and (6,11)(6, 11) form a triangle?

  1. det⁡=(44−42)−(22−18)+(14−12)=2−4+2=0\det = (44 - 42) - (22 - 18) + (14 - 12) = 2 - 4 + 2 = 0.
  2. Edge vectors (2,4)(2, 4) and (4,8)(4, 8) point the same way.
  3. A thin triangle would have a small positive area; exactly 0 means no triangle.

Final answer: No. The points are collinear.

Example 4

For what value of kk are the points A(1,2)A(1, 2), B(3,4)B(3, 4) and C(5,k)C(5, k) collinear?

  1. 1(4−k)+3(k−2)+5(2−4)=01(4 - k) + 3(k - 2) + 5(2 - 4) = 0
  2. 2k−12=02k - 12 = 0, so k=6k = 6.
  3. Check: each step is (2,2)(2, 2).

Final answer: k=6k = 6.

Example 5

A(1,1)A(1, 1) and B(6,2)B(6, 2) are two corners of a triangle of area 9. The third corner is C(3,k)C(3, k). Find kk.

  1. det⁡=1(2−k)+6(k−1)+3(1−2)=5k−7\det = 1(2 - k) + 6(k - 1) + 3(1 - 2) = 5k - 7.
  2. 12∣5k−7∣=9\frac{1}{2}|5k - 7| = 9, so ∣5k−7∣=18|5k - 7| = 18.
  3. 5k−7=185k - 7 = 18 gives k=5k = 5; 5k−7=−185k - 7 = -18 gives k=−2.2k = -2.2.
  4. Both work: one CC is above line ABAB, the other below.

Final answer: k=5k = 5 or k=−2.2k = -2.2.

a given area gives two possible third corners, one on each side of the base line
Line AB through A(1, 1) and B(6, 2), with C(3, 5) above it forming a blue triangle of area 9 and C(3, −2.2) below it forming an orange triangle of area 9. Dashed lines parallel to AB pass through each C, at the same distance from AB.

Example 6

Use a determinant to find the equation of the line through (−1,4)(-1, 4) and (3,−2)(3, -2).

  1. Rows (x,y,1)(x, y, 1), (−1,4,1)(-1, 4, 1), (3,−2,1)(3, -2, 1): det⁡=6x+4y−10\det = 6x + 4y - 10.
  2. Set to zero and halve: 3x+2y−5=03x + 2y - 5 = 0.
  3. Check: both points give 0.

Final answer: 3x+2y−5=03x + 2y - 5 = 0.

Where Do Students Trip Up on the Determinant Area Formula?

Most slips are about the sign or the half.

Mistake 1: Forgetting the absolute value

Where it slips in: Clockwise corners make the determinant negative.

Don't do this: Report the running triangle, listed A,C,BA, C, B, as −9-9 square units.

The correct way: Take the absolute value. The minus sign only records direction.

Mistake 2: Reporting the determinant as the area

Where it slips in: Right after a long expansion.

Don't do this: Say the running triangle has area 18.

The correct way: The determinant is the parallelogram, twice the triangle. Halve it: 9.

Mistake 3: Getting the sign pattern wrong

Where it slips in: Expanding along the 1s with +,+,++, +, +, as in Example 2.

Don't do this: Add all three minors.

The correct way: Use +,−,++, -, +, or the expanded form, where the signs are built in.

Mistake 4: Keeping only one answer for an unknown corner

Where it slips in: The area is given and a coordinate is unknown, as in Example 5.

Don't do this: Solve 5k−7=185k - 7 = 18 and stop.

The correct way: Solve both 5k−7=185k - 7 = 18 and 5k−7=−185k - 7 = -18: the two sides of the base line.

Where Is the Determinant Area Formula Used?

The formula shows up wherever coordinates replace rulers.

  • Surveying. A plot is split into triangles from its corner coordinates, and the determinant areas are added.
  • 3D graphics. The sign of each screen triangle's determinant shows whether it faces the viewer; back-facing ones are skipped.
  • Inside-or-outside tests. A point is inside a triangle when its three edge determinants share a sign: how a touchscreen knows what you tapped.
computer graphics uses the sign of the determinant to skip triangles that face away
Two dark screen panels. Left: a green triangle with corners 1, 2, 3 running anticlockwise, det = 28, so it faces the viewer and is drawn. Right: the same triangle seen from behind, corners running clockwise, det = −28, drawn faint and dashed because it is skipped.

Conclusion

  • Area =12∣det⁡∣= \frac{1}{2}\left|\det\right| of the rows (xi,yi,1)(x_i, y_i, 1); expanding with +,−,++, -, + gives the coordinate formula.
  • The 12\frac{1}{2} is because the determinant is a parallelogram; the bars because the sign is a direction.
  • One determinant gives the area, the collinearity test, the side of a line and a line's equation.
  • To learn determinants and coordinate geometry with a teacher, explore Bhanzu's geometry tutor, a high school math tutor or math classes online.

Practice These to Solidify Your Understanding

Work through these, then check each area on squared paper:

  1. Find the area of the triangle with vertices A(0,0)A(0, 0), B(6,0)B(6, 0), C(0,4)C(0, 4).
  2. Show whether A(1,1)A(1, 1), B(2,3)B(2, 3), C(3,5)C(3, 5) are collinear.
  3. Find kk so that A(2,−2)A(2, -2), B(4,k)B(4, k), C(6,2)C(6, 2) are collinear.
  4. Find the equation of the line through (0,2)(0, 2) and (4,0)(4, 0) in determinant form.

Answers:

  • (1) 12∣0+6(4−0)+0∣=12\frac{1}{2}\left|0 + 6(4 - 0) + 0\right| = 12 square units. If you got 24, you skipped the half.
  • (2) 1(3−5)+2(5−1)+3(1−3)=01(3 - 5) + 2(5 - 1) + 3(1 - 3) = 0, so they are collinear.
  • (3) 2(k−2)+4(4)+6(−2−k)=−4k=02(k - 2) + 4(4) + 6(-2 - k) = -4k = 0, so k=0k = 0.
  • (4) The determinant is 2x+4y−82x + 4y - 8, so the line is x+2y−4=0x + 2y - 4 = 0.

Want a live Bhanzu trainer to take your child through determinants and coordinate geometry? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. OpenStax, Calculus Volume 3, Section 2.4: The Cross Product (determinants as parallelogram areas). openstax.org
  2. J. J. O'Connor and E. F. Robertson, "Matrices and determinants", MacTutor History of Mathematics, University of St Andrews. mathshistory.st-andrews.ac.uk
  3. OpenStax, Precalculus 2e, Section 9.8: Solving Systems with Cramer's Rule (evaluating a 3×33 \times 3 determinant). openstax.org
  4. Euclid, Elements, Book I, Proposition 41 (a triangle is half its parallelogram), with commentary by D. E. Joyce, Clark University. mathcs.clarku.edu

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the formula for the area of triangle in determinant form?
The area of triangle in determinant form is half the absolute value of the 3×33 \times 3 determinant with rows (x1,y1,1)(x_1, y_1, 1), (x2,y2,1)(x_2, y_2, 1) and (x3,y3,1)(x_3, y_3, 1).
Why is the determinant divided by 2?
The determinant measures the parallelogram on two sides, and the triangle is exactly half of it.
Can I write the corners as columns instead of rows?
Yes. Swapping rows and columns leaves a determinant unchanged.
Does it matter which corner goes in which row?
Only for the sign. The absolute value, and so the area, stays the same.
Is the determinant form the same as the shoelace formula?
Yes. For three points, expanding the determinant gives exactly the shoelace formula.
Does this work in three dimensions?
The idea does. Four points give a 4×44 \times 4 determinant, and its absolute value divided by 6 is the volume of their tetrahedron.
✍️ Written By
Mythri K M
Mythri K M
Subject Matter Expert
Mythri K M is a mathematics educator and curriculum designer with a Master's degree in Mathematics and over 10 years of teaching experience. She has taught and written on topics ranging from Algebra, Geometry and Trigonometry to Calculus, Number Theory and mathematical reasoning, with a particular interest in how children develop mathematical thinking. As a teacher and parent, she believes learning works best when it is curious and joyful rather than stressful, and she shares ideas and activities that help students build confidence and support parents along the way.
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →