Polygon Area from Coordinates (Shoelace Formula)

Paste the x, y coordinates of a polygon’s corners to get its area by the shoelace formula, plus the perimeter, centroid and vertex order.

One vertex per line as x, y. Go around the edge in order (clockwise or counterclockwise). Brackets are fine. Use a point for decimals. 3 to 500 vertices.
Pick a unit to get the area in square units you can convert (acres, m², ft² …).

Results

Area
16 square units
Perimeter
15.657 units
Centroid x̄
2
Centroid ȳ
2.0417
Number of vertices
5
Vertex order
Counterclockwise (signed area is positive)
Shape check
Simple polygon: no edges cross.

How it’s calculated

List the corners of a polygon in order around its edge. The shoelace (surveyor’s) formula multiplies each x by the next y, subtracts each next x times this y, adds everything up and halves it. The sign tells you the direction: positive for counterclockwise, negative for clockwise. The area is the absolute value.

2A = Σ (xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) (the last vertex wraps round to the first) Area = |A| Perimeter = Σ √((xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²) x̄ = Σ (xᵢ + xᵢ₊₁)(xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) ÷ 6A ȳ = Σ (yᵢ + yᵢ₊₁)(xᵢ yᵢ₊₁ − xᵢ₊₁ yᵢ) ÷ 6A

The centroid formula is the area-weighted average of the centroids of the triangles that each edge makes with the origin (each triangle’s centroid is the average of its three corners).

Example: the “house” (0, 0), (4, 0), (4, 3), (2, 5), (0, 3). The terms are 0, 12, 14, 6 and 0, so 2A = 32 and the area is 16 square units (a 4 × 3 rectangle plus a triangle of base 4 and height 2). The perimeter is 4 + 3 + √8 + √8 + 3 ≈ 15.657 and the centroid is (2, 2.0417).

If the outline crosses itself (a figure-eight or a star typed in the wrong order), the formula returns a net signed area in which loops traced in opposite directions cancel. The calculator warns you when edges cross.

Frequently asked questions

Why is it called the shoelace formula?

When you write the coordinates in two columns and draw the cross-multiplications, the diagonal lines criss-cross like the laces of a shoe.

Does the order of the points matter?

Yes. The points must go around the outline in order, either clockwise or counterclockwise. Jumping across the shape makes edges cross and gives a wrong (net signed) area.

Does it work for concave shapes, like an L-shaped lot?

Yes. It works for any polygon whose edges do not cross, convex or concave. It does not handle curved edges or holes.

Can I use it for a plot of land?

Yes, with coordinates from a survey or a site plan (for example in feet or meters). Choose the unit and switch the area to acres or hectares. For legal boundaries, rely on a licensed surveyor.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator