Irregular Polygon Area Calculator — Shoelace Formula

Calculate the area, perimeter, centroid, and bounding box of any irregular polygon using the shoelace formula. Enter up to 10 vertex coordinates and see step-by-step cross products.

Irregular Polygon Area Calculator (Shoelace Formula)

Vertices (enter in order)

V1
V2
V3
Area
0.0000
Computed via the shoelace formula with 3 vertices. Area = ½|Σ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)| = 0.0000.
Perimeter
0.0000
Sum of all 3 edge lengths = 0.0000.
Centroid
(0.0000, 0.0000)
Geometric center of the polygon, weighted by area.
Bounding Box
0.0000 × 0.0000
x: [0.00, 0.00], y: [0.00, 0.00]. BB area = 0.0000.
BB Fill Ratio
0.00%
Polygon area / bounding box area. 100% for a rectangle aligned with axes.
Vertices
3
3 vertices defining 3 edges.
Winding
Degenerate
Counter-clockwise gives positive signed area; clockwise gives negative (absolute area is the same).

Shoelace Cross Products (step by step)

Edge(xᵢ, yᵢ)(xᵢ₊₁, yᵢ₊₁)xᵢyᵢ₊₁xᵢ₊₁yᵢCross Product
12(0.00, 0.00)(0.00, 0.00)0.00000.00000.0000
23(0.00, 0.00)(0.00, 0.00)0.00000.00000.0000
31(0.00, 0.00)(0.00, 0.00)0.00000.00000.0000
Sum of cross products0.0000
Area = ½ × |Sum|0.0000

Edge Lengths

EdgeFromToLength% of Perimeter
12(0.00, 0.00)(0.00, 0.00)0.0000
NaN%
23(0.00, 0.00)(0.00, 0.00)0.0000
NaN%
31(0.00, 0.00)(0.00, 0.00)0.0000
NaN%
Planning notes, formulas, and examples

About the Irregular Polygon Area Calculator — Shoelace Formula

The shoelace formula (also known as the surveyor's formula or Gauss's area formula) computes the area of any simple polygon when you know its vertex coordinates. It works by summing cross products of consecutive vertex pairs — a method that is both elegant and computationally efficient.

For a polygon with vertices (x₁,y₁), (x₂,y₂), …, (xₙ,yₙ) listed in order, the signed area is A = ½ × Σᵢ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ), where indices wrap around (vertex n+1 = vertex 1). The absolute value gives the true area regardless of vertex ordering direction.

Beyond area, the same vertex data yields the perimeter (sum of edge lengths via the distance formula), the centroid (the polygon's geometric center, computed from a weighted average of vertex cross products), and the bounding box (the smallest axis-aligned rectangle enclosing the polygon).

This calculator accepts up to 10 vertex coordinates and computes all four quantities. It shows the shoelace cross products step by step — ideal for students learning coordinate geometry. Presets include a square, right triangle, L-shape, hexagonal shape, arrow, and plus sign. Edge lengths are displayed with proportional bars, and the bounding box fill ratio tells you how "rectangular" the polygon is.

The shoelace formula requires a simple (non-self-intersecting) polygon. If edges cross, the result will be incorrect. Vertices must be entered in consecutive order (clockwise or counter-clockwise).

When This Page Helps

The Irregular Polygon Area Calculator — Shoelace Formula is useful when you need fast and consistent geometry results without reworking the same algebra repeatedly. It helps you move from raw measurements to Area, Perimeter, Centroid in one pass, with conversions and derived values shown together.

How to Use the Inputs

  1. Enter at least 3 vertex coordinates (x, y) in consecutive order.
  2. Click "+ Add Vertex" to add more (up to 10 vertices).
  3. Or click a preset to load common shapes (L-shape, arrow, plus sign, etc.).
  4. View area, perimeter, centroid, bounding box, and fill ratio.
  5. Examine the step-by-step cross product table to understand the shoelace computation.
  6. Check the edge lengths table with proportional bars.
  7. Adjust decimal precision as needed.
Formula used
Shoelace Area: A = ½|Σᵢ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)| Perimeter: P = Σᵢ √((xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²) Centroid: Cx = (1/6A) × Σᵢ(xᵢ + xᵢ₊₁)(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ) Cy = (1/6A) × Σᵢ(yᵢ + yᵢ₊₁)(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ) Bounding Box: min/max of all x and y coordinates

Example Calculation

Result: Area = 12, Perimeter ≈ 16, Centroid ≈ (1.333, 1.333)

For an L-shape with 6 vertices: cross products sum to 24, so area = ½ × |24| = 12. The edges have lengths 4, 2, 2, 2, 2, 4 → perimeter = 16. The centroid is weighted toward the larger part of the L.

Tips & Best Practices

  • The shoelace formula only works for simple (non-self-intersecting) polygons. If edges cross, split into separate polygons.
  • Vertex order matters for the sign but not the magnitude: clockwise gives negative signed area, counter-clockwise gives positive. The absolute value is the same.
  • For a triangle, the shoelace formula reduces to the standard coordinate formula: ½|x₁(y₂ − y₃) + x₂(y₃ − y₁) + x₃(y₁ − y₂)|.
  • Surveyors use this formula (hence "surveyor's formula") to compute land areas from GPS coordinates.
  • The centroid of a polygon with uniform density is NOT the average of the vertices — it's weighted by the cross products.

How This Irregular Polygon Area Calculator — Shoelace Formula Works

Where It Helps In Practice

Irregular Polygon Area Calculator — Shoelace Formula calculations show up in coursework, drafting, construction layout, packaging, tank sizing, machining, and quality control. Instead of solving each transformation manually, you can test scenarios quickly and verify whether your dimensions remain within tolerance.

Accuracy And Setup Tips

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A mathematical formula that computes the area of a simple polygon from its vertex coordinates: A = ½|Σ(xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|. It's called "shoelace" because the cross-multiplication pattern resembles lacing.