Polygon Area from Coordinates (Shoelace Formula)
Calculate the area, perimeter and centroid of any polygon from the coordinates of its corners using the shoelace formula.
How to use this calculator
Enter the corners of the polygon in order, going around the shape either clockwise or anticlockwise, one x, y pair per line. Do not repeat the first point at the end. The calculator works for any simple polygon (sides that do not cross), including irregular plots of land and floor plans.
Formula
Shoelace formula: Area = ½ |Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|, with the last point joined back to the first. The sign of the sum shows the direction (positive = anticlockwise). Perimeter = Σ distances between consecutive corners. Centroid Cx = Σ (xᵢ + xᵢ₊₁)(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ) ÷ 6A, and similarly for Cy.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
Why is it called the shoelace formula?
Writing the coordinates in two columns and multiplying diagonally across looks like lacing a shoe.
Does the order of points matter?
Yes. List them in order around the boundary. Clockwise or anticlockwise both work; the area is the same.
Can I use it for land surveys?
Yes, surveyors use it to find plot areas from measured coordinates. Make sure all coordinates use the same unit; the area is in that unit squared.
What if the sides cross?
For self-intersecting shapes such as a bow-tie, the formula subtracts overlapping parts and the result is not the true area. Split the shape into simple polygons.
Does it work for triangles?
Yes. With three points it gives the triangle's area.
Can I use latitude and longitude?
Not directly. Convert them to a flat map projection in metres first; degrees are not equal distances.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Math Central, University of Regina. (n.d.). The surveyor's area formula. View source
- Abramson, J. (2021). Precalculus 2e. OpenStax. View source
- Abramson, J. (2021). College algebra 2e. OpenStax. View source
- International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source