🧮
🧮 Math & statistics

Polygon Area from Coordinates (Shoelace Formula)

Results update as you type.

Your numbers

Understanding the shoelace formula polygon area calculator — concept and principle

The shoelace formula (also called Gauss’s area formula or the surveyor’s formula) finds the area of any simple polygon from the coordinates of its corners, without splitting it into triangles by hand. Enter the vertices in order around the boundary, and the calculator returns the area, the perimeter, the centroid (the balance point of the region) and the direction in which the vertices were listed. It is used for survey plots, floor plans, GIS and computer graphics.

Shoelace formula on the rectangle (0,0), (4,0), (4,3), (0,3)List the corners in order and repeat the first. Each crossing gives x times the next y minus the next x times y: 0, 12, 12, 0. The sum is 24, so the area is 12; the centroid is (2, 1.5) and the order is counter-clockwise.Shoelace: cross-multiply the cornersarea 12centroid (2, 1.5)1234(0,0)(4,0)(4,3)(0,3)xyterm0004012431203000sum S = 24area = |24| ÷ 2 = 12 · perimeter 14S > 0, so the corners go counter-clockwise
Red lace minus blue lace on each row, add them up, then halve.

How it is calculated

For vertices (x₁, y₁), …, (xₙ, yₙ), with the list wrapping back to the first point:

Coordinates share one unit; the area is in that unit squared.

The principle

Each term xᵢyᵢ₊₁ − xᵢ₊₁yᵢ is twice the signed area of the triangle formed by the origin and one edge. Walking around the polygon, triangles on the far side are added and those on the near side are subtracted, so everything outside the polygon cancels and only the enclosed area remains. The sign records the walking direction, which is why the absolute value is taken. Writing the coordinates in two columns and multiplying diagonally looks like lacing a shoe, which gives the formula its name.

Worked example

  1. Input: (0, 0), (4, 0), (4, 3), (0, 3), a 4 × 3 rectangle.
  2. Terms: 0×0 − 4×0 = 0; 4×3 − 4×0 = 12; 4×3 − 0×3 = 12; 0×0 − 0×3 = 0. S = 24.
  3. Area: |24| ÷ 2 = 12.
  4. Perimeter: 4 + 3 + 4 + 3 = 14.
  5. Centroid: Cx = (4×0 + 8×12 + 4×12 + 0×0) ÷ 72 = 144 ÷ 72 = 2, Cy = (0 + 3×12 + 6×12 + 0) ÷ 72 = 1.5, so (2, 1.5).
  6. S is positive, so the order is counter-clockwise.

How to read the result

The centroid is the point where a flat cut-out of the shape would balance; for a rectangle it is the centre. A negative signed area simply means the points were given clockwise; the area itself is unaffected. Survey drawings often list vertices clockwise, and screen coordinates with y pointing down reverse the reported orientation.

Common mistakes

Keep in mind: The formula is exact only for a simple polygon with straight edges on a flat plane. Curved boundaries, holes and large areas on the Earth’s surface need other methods, and legal land areas must come from an official survey.

Frequently asked questions

Does the starting vertex matter?

No. Any starting point gives the same area, as long as the vertices follow the boundary in order.

Can I use it for a polygon with a hole?

Compute the outer boundary and the hole separately and subtract the hole’s area.

Sources: B. Braden, The Surveyor’s Area Formula, The College Mathematics Journal 17(4), 1986, 326–337 · J. O’Rourke, Computational Geometry in C, 2nd ed., Cambridge University Press (polygon area and centroid)

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →