Math & Geometry
Polygon Area Calculator from Coordinates (Shoelace Formula)
Calculate the area of any polygon from the coordinates of its corners. Irregular shapes, such as building plots, rooms with odd angles, fields, gardens, floor plans or shapes on a graph, are often described by the positions of their corners rather than by their side lengths and angles. The shoelace formula, also called Gauss’s area formula or the surveyor’s formula, finds the exact area of any simple polygon from these coordinates: you multiply each x coordinate by the next y coordinate, subtract the product of the next x and the current y, add the results all the way round, and halve the absolute value. The name comes from the criss-cross pattern of the multiplications when the coordinates are written in two columns. Surveyors have used it for centuries to compute land areas from measured points, and it is used today in computer graphics and geographic information systems. Enter the vertices in order around the shape, clockwise or anticlockwise, one per line as x, y. The calculator gives the area, the perimeter, the centroid, which is the geometric centre or balance point of the shape, the direction of the vertex order and a table of edge lengths. The shape must not cross itself. A 4 by 3 rectangle entered as four corners, for example, has an area of 12, a perimeter of 14 and its centroid at (2, 1.5).
How to use this calculator
- List the corners of the shape in order around its edge.
- Enter one vertex per line as x, y.
- Use the same unit for all coordinates.
- Read the area, perimeter and centroid.
- Check the edge lengths in the table.
Measuring land with coordinates
Surveyors record the corners of a plot with GPS or a total station and compute the area from the coordinates. Using a local metric grid avoids distortions from latitude and longitude.
Breaking complex shapes into triangles gives the same area, but the shoelace formula does it in one step.
Uses in computing
Graphics software uses the signed area to determine whether a polygon’s vertices run clockwise, which affects how shapes are filled and rendered.
Mapping tools use the centroid to place labels in the middle of regions.
Formula & method
Shoelace formula: Area = ½ |Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|, closing back to the first pointPerimeter = sum of distances between consecutive verticesCentroid x = Σ (xᵢ + xᵢ₊₁)(xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) ÷ (6A), similarly for yVertices must be listed in order around the shape, without crossing edgesShoelace formula: A = ½ |Σᵢ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ)|, with the last vertex joined back to the first. The signed sum is positive for anticlockwise order and negative for clockwise. Perimeter = Σ √((xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²). Centroid: Cx = Σ (xᵢ + xᵢ₊₁)(xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) ÷ (6A) and Cy = Σ (yᵢ + yᵢ₊₁)(xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) ÷ (6A), using the signed area A. The polygon must be simple, with no crossing edges. Coordinates must be on a flat grid; latitude and longitude should be projected to metres first.
Worked example
A rectangle with corners (0,0), (4,0), (4,3), (0,3)
- Products: 0×0 − 4×0 = 0; 4×3 − 4×0 = 12; 4×3 − 0×3 = 12; 0×0 − 0×3 = 0.
- Sum = 24; area = 24 ÷ 2 = 12.
- Perimeter = 4 + 3 + 4 + 3 = 14; centroid (2, 1.5).
Answer: Area 12 square units.
Frequently asked questions
What is the shoelace formula?
A method to find a polygon’s area from its vertex coordinates.
Does the order of points matter?
Yes, list them in order around the shape.
Can the polygon be concave?
Yes, as long as its edges do not cross.
What is the centroid?
The geometric centre of the shape.
Can I use GPS coordinates?
Convert them to a flat grid in metres first.
What units is the area in?
The coordinate unit squared.