Ma · Mathematics

How to Find the Area of a Triangle from Its Vertex Coordinates

Published By the 9to5Science editorial team

At a glance

  1. 1. List the vertices

    Write the three points as (x1, y1), (x2, y2), and (x3, y3).

  2. 2. Apply the formula

    Substitute the coordinates into the shoelace formula or a 2 by 2 determinant.

  3. 3. Take the absolute value

    The determinant can be positive or negative depending on vertex order; use its absolute value.

  4. 4. Divide by two

    The triangle’s area is half the absolute determinant.

When you know a triangle’s three vertices in the coordinate plane, you can calculate its area directly from the coordinates. You do not need to find side lengths, angles, or a height first.

The standard formula is half the absolute value of a determinant. It is also a three-point version of the shoelace formula. The absolute value matters because changing the order of the vertices can change the sign of the determinant, but not the triangle’s area.

The coordinate formula

Let the vertices be A=(x1,y1)A=(x_1,y_1), B=(x2,y2)B=(x_2,y_2), and C=(x3,y3)C=(x_3,y_3). Then

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|.

An equivalent determinant form is

Area=12∣∣x1y11x2y21x3y31∣∣.\text{Area} = \frac{1}{2}\left|\begin{vmatrix}x_1 & y_1 & 1 \\ x_2 & y_2 & 1 \\ x_3 & y_3 & 1\end{vmatrix}\right|.

Expanding the determinant gives the coordinate formula above. You may also write the same calculation in shoelace form:

Area=12∣x1y2+x2y3+x3y1−x2y1−x3y2−x1y3∣.\text{Area} = \frac{1}{2}\left|x_1y_2+x_2y_3+x_3y_1-x_2y_1-x_3y_2-x_1y_3\right|.

All three expressions give the same result. Use whichever is easiest to substitute into without losing track of the signs.

Why the determinant gives the area

Take one vertex, say AA, as a reference point. The two vectors from AA to the other vertices are

AB→=(x2−x1, y2−y1),AC→=(x3−x1, y3−y1).\overrightarrow{AB}=(x_2-x_1,\,y_2-y_1), \qquad \overrightarrow{AC}=(x_3-x_1,\,y_3-y_1).

The absolute value of their 2×22\times2 determinant is the area of the parallelogram they span:

∣(x2−x1)(y3−y1)−(y2−y1)(x3−x1)∣.\left|(x_2-x_1)(y_3-y_1)-(y_2-y_1)(x_3-x_1)\right|.

A triangle formed by the same two vectors has half that parallelogram’s area. Dividing by 22 gives the triangle formula. The determinant is signed: its sign records the orientation of the point order, not whether the area itself is negative.

Worked example

Find the area of the triangle with vertices A=(1,2)A=(1,2), B=(5,4)B=(5,4), and C=(−1,6)C=(-1,6).

Substitute into the coordinate formula:

Area=12∣1(4−6)+5(6−2)+(−1)(2−4)∣=12∣−2+20+2∣=12(20)=10.\begin{aligned} \text{Area} &= \frac{1}{2}\left|1(4-6)+5(6-2)+(-1)(2-4)\right| \\ &= \frac{1}{2}\left|-2+20+2\right| \\ &= \frac{1}{2}(20) \\ &= 10. \end{aligned}

The area is 10 square units. The units are squared because area measures a two-dimensional region. For instance, if the coordinates are measured in centimeters, the answer is 1010 square centimeters.

You can check the result using vectors. Here, AB→=(4,2)\overrightarrow{AB}=(4,2) and AC→=(−2,4)\overrightarrow{AC}=(-2,4), so the determinant is 4(4)−2(−2)=204(4)-2(-2)=20. Half its absolute value is again 1010.

A quick collinearity check

If the three points lie on one straight line, they do not enclose a triangle with positive area. The determinant is then zero, so the formula returns zero. For example, the points (0,0)(0,0), (2,2)(2,2), and (4,4)(4,4) give

12∣0(2−4)+2(4−0)+4(0−2)∣=12∣0∣=0.\frac{1}{2}|0(2-4)+2(4-0)+4(0-2)|=\frac{1}{2}|0|=0.

A zero result can therefore indicate that the vertices are collinear. It can also result from a substitution or arithmetic error, so check the coordinates if zero was unexpected.

Common mistakes

  • Forgetting the factor of one-half: The determinant gives the area of a parallelogram. A triangle with the same two side vectors has half that area.
  • Leaving off the absolute value: A negative determinant indicates the order of the vertices, not negative area.
  • Mixing up coordinate pairs: Keep each point’s xx- and yy-coordinates together, and use the same vertex order throughout the calculation.
  • Reporting the wrong units: If coordinates are in length units, area is in square units.
  • Assuming the points must be listed around the triangle: Any order works if you use it consistently. A different order may change the determinant’s sign, but the absolute value keeps the area unchanged.

For a parallelogram, the same determinant idea gives its full area without the factor of one-half.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.