Area of a Triangle (Coordinate Geometry)
When the vertices of a triangle are given as coordinates in the Cartesian plane, we can calculate its area directly from those coordinates — no need to measure a base or height physically. This is one of the most elegant results in coordinate geometry, combining algebra and geometry into a single clean formula. The coordinate formula for the area of a triangle is derived from the shoelace formula (also called Gauss's area formula), which works by computing a signed area using ordered pairs. The absolute value of the result gives the actual area, regardless of whether the vertices are listed clockwise or counterclockwise. This technique is widely used in computer graphics, surveying, and computational geometry because it requires only arithmetic on coordinate values. It generalises to polygons with more sides, making it a fundamental tool in analytic geometry and beyond.
- Set Up the Vertices
- Understand the Shoelace Pattern
- Apply the Formula
- Why This Works: The Determinant Connection
- Special Cases and Collinearity
Set Up the Vertices
Label the three vertices of the triangle as A = (x₁, y₁), B = (x₂, y₂), and C = (x₃, y₃). The order in which you list the vertices (clockwise or counterclockwise) affects the sign of the intermediate calculation but not the final area, since we take the absolute value.
Understand the Shoelace Pattern
Write the coordinates in a 2×3 array, repeating the first vertex at the end: (x₁,y₁), (x₂,y₂), (x₃,y₃), (x₁,y₁). Multiply diagonally downward-right and sum: x₁y₂ + x₂y₃ + x₃y₁. Then multiply diagonally downward-left and sum: y₁x₂ + y₂x₃ + y₃x₁. Subtract the second sum from the first, take the absolute value, and divide by 2.
Apply the Formula
The area is: Area = ½ |x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|. This is algebraically identical to the shoelace expansion. You can use whichever form you find easier to remember. The factor of ½ mirrors the base × height ÷ 2 relationship in classical geometry.
Why This Works: The Determinant Connection
The formula is exactly half the absolute value of a 3×3 determinant: |det([[1, x₁, y₁],[1, x₂, y₂],[1, x₃, y₃]])|. The determinant measures how much the transformation from a unit square to the parallelogram formed by two side vectors scales area. Since a triangle is half a parallelogram, we divide by 2. This connection to linear algebra makes the formula deeply meaningful.
Special Cases and Collinearity
If the three points are collinear (all on one straight line), the formula gives Area = 0. This is actually a useful test: if the computed area is zero, the three points are collinear. Also note the formula works for any triangle orientation — acute, obtuse, or right-angled — and for triangles in any position, including those not touching the axes.
The Key Equation
- x_1, y_1 — Coordinates of vertex A (units): The x and y coordinates of the first vertex of the triangle.
- x_2, y_2 — Coordinates of vertex B (units): The x and y coordinates of the second vertex of the triangle.
- x_3, y_3 — Coordinates of vertex C (units): The x and y coordinates of the third vertex of the triangle.
- \frac{1}{2} — Half factor (dimensionless): A triangle is half of the parallelogram formed by two of its side vectors, hence the factor of one-half.
- |\cdot| — Absolute value (dimensionless): Ensures the area is always a positive number, regardless of the order in which vertices are listed.
Worked Example
Problem. Find the area of the triangle with vertices A = (1, 2), B = (5, 4), and C = (3, 8).
Answer. The area of the triangle is 10 square units.
Origins · 1 minCarl Friedrich Gauss and how this was discovered
Gauss developed the surveying formula now known as the shoelace formula (or Gauss's area formula) as part of his work in geodesy and land surveying. The formula computes the area of any polygon from its vertex coordinates, of which the triangle formula is the simplest case. His contributions to number theory, statistics, and applied mathematics were equally revolutionary. Gauss reportedly corrected his elementary school teacher's arithmetic at age 3, and at age 10, he astonished his class by instantly summing all integers from 1 to 100 by pairing them as 1+100, 2+99, and so on — a trick now taught in every high school.
Related Concepts
- Distance Formula — Computing triangle side lengths from coordinates uses the distance formula, which is needed when using Heron's formula as an alternative to the coordinate area method.
- Section Formula (Internal and External Division) — The section formula locates points that divide line segments, which is used when finding medians and centroids of triangles defined by coordinates.
- Collinearity of Three Points — Three points are collinear if and only if the coordinate area formula gives zero, making this formula a direct test for collinearity.
- Determinant of a Matrix — The coordinate area formula is half the absolute value of a 3×3 determinant, connecting triangle area to linear algebra and transformations.