Polygon Area Calculator (Shoelace)

List the polygon's vertices in order, one x,y pair per line.

Result

52.0000
28.0000
5

How it is calculated

Enter one x,y pair per line (or separated by semicolons), in order around the outline. For n vertices the engine sums xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ, wrapping the last point back to the first, and returns area = |sum| ÷ 2. The perimeter is the sum of the straight distances √(Δx² + Δy²) between consecutive points, including the closing side. Results are shown to four decimals, in the unit of your coordinates (squared for the area). At least three valid points are required. Taking the absolute value means clockwise or counter-clockwise order both work.

Worked example

A house-shaped outline: (0,0), (8,0), (8,5), (4,8), (0,5). The five cross terms (one per side, closing back to the start) are 0, 40, 44, 20 and 0, so the signed sum is 104. Area = 104 ÷ 2 = 52.0000. Perimeter: 8 + 5 + 5 + 5 + 5 = 28.0000. The engine counts 5 vertices. This matches a rectangle of 8 × 5 = 40 plus a roof triangle of base 8 and height 3 = 12.

Try this example →

Common mistakes

  • Listing the points in the wrong order (for instance jumping between opposite corners); the formula then describes a self-crossing figure and gives a smaller or even zero area. A bowtie such as (0,0), (4,4), (4,0), (0,4) returns 0.0000.
  • Repeating the first point at the end "to close" the shape; it still gives the right area and perimeter, but the vertex count is one too high.
  • Mixing units, such as some coordinates in metres and others in feet, or using latitude and longitude degrees and expecting square metres.
  • Forgetting that the perimeter is in the same unit as the coordinates while the area is in that unit squared.

About this calculator

The shoelace formula (also called Gauss's area formula) computes the area of any simple polygon directly from the (x, y) coordinates of its vertices, listed in order around the shape: Area = ½|Σ(xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ)|, summed over all vertex pairs and wrapping back to the first point at the end — the name comes from the crisscross pattern the multiplication terms trace when written out, resembling laced shoe eyelets. Perimeter follows separately by summing the straight-line distance between consecutive vertices.

This calculator takes a list of (x, y) vertex coordinates in order and returns the polygon's area and perimeter. Land surveyors and GIS analysts use this exact formula to compute parcel or plot areas from a set of boundary coordinates, and game developers and computational geometry programmers use it inside collision detection, mesh processing, and procedural generation code wherever an arbitrary polygon's area needs to be known from its vertices alone.

Was this helpful?

You can pick up to 3 reactions.

Comments

  • Be the first to comment.

Popular calculators

All Calculators