Polygon Area Using the Shoelace Formula
Compute the area of a simple polygon from ordered vertices. Use absolute value to make area independent of orientation.
6 min · Coordinate geometry · Intermediate
Learning goals
- Compute the area of a simple polygon from ordered vertices.
- Use absolute value to make area independent of orientation.
Understand the concept
For a simple polygon with vertices (x₁,y₁), …, (xₙ,yₙ) listed consecutively around its boundary, repeat the first vertex at the end. Add all products xᵢyᵢ₊₁, then subtract the sum of all products yᵢxᵢ₊₁.
The area is half the absolute value of the difference. Reversing the vertex order changes the sign but not the area. Do not use an arbitrary scrambled vertex order or a self-intersecting polygon.
For (0,0), (4,0), (4,3), the two sums are 12 and 0, giving area 6.
For (1,1), (4,1), (4,3), (1,3), the sums are 26 and 14, giving area 6.
Check your understanding
UNVRST English edition · Educational support · Editorial policy