Irregular Polygon Area Calculator

Irregular Polygon Area Calculator

Popular AI Skill PRO

Enter Calculation

Enter each vertex on its own line as x,y — list them in order (clockwise or counter-clockwise) around the polygon.

Formula

A=12|∑i=1n(xiyi+1−xi+1yi)|(xi,yi)∈Vertex CoordinatesA = \frac{1}{2}\left| \sum_{i=1}^{n} \left( x_i\, y_{i+1} - x_{i+1}\, y_i \right) \right| \qquad \left( x_i, y_i \right) \in \text{Vertex Coordinates}
Usage stats

Advertisement

Results

Polygon Area
12
square units
Number of vertices 4
Perimeter 14 units

Report an error on this page

What is the Irregular Polygon Area Calculator?

This tool computes the area of any simple (non-self-intersecting) polygon — regular or irregular — directly from the coordinates of its corners. It uses the Shoelace formula (also called the surveyor's formula or Gauss's area formula), a fast and exact method that works for triangles, quadrilaterals, pentagons, and any polygon with three or more vertices. It also reports the perimeter and the number of vertices you entered.

How to use it

List the (x, y) coordinate of each corner, one per line, written as x,y. Walk around the polygon in order — either clockwise or counter-clockwise — so that consecutive lines are adjacent vertices. You do not need to repeat the first point at the end; the calculator automatically closes the loop. Press calculate to get the enclosed area in square units.

Diagonal crossing arrows showing the shoelace multiplication pattern
The shoelace formula crosses x and y coordinates of neighboring vertices.

The formula explained

The Shoelace formula multiplies each vertex's x by the next vertex's y, subtracts the reverse cross-product, sums over all edges, takes the absolute value, and halves it: $$A = \frac{1}{2}\left| \sum_{i=1}^{n} \left( x_i\, y_{i+1} - x_{i+1}\, y_i \right) \right|$$ The name comes from the criss-cross pattern of multiplications, like lacing a shoe. The absolute value means the answer is correct regardless of winding direction.

Advertisement

Worked example

Consider a rectangle with corners (0,0), (4,0), (4,3), (0,3). The cross-products give \(0\cdot 0 - 4\cdot 0 = 0\), \(4\cdot 3 - 4\cdot 0 = 12\), \(4\cdot 3 - 0\cdot 3 = 12\), \(0\cdot 0 - 0\cdot 3 = 0\). Sum = 24, so $$A = \tfrac{1}{2}\cdot|24| = 12 \text{ square units}$$ — exactly base × height = \(4 \times 3\).

Irregular pentagon with labeled vertices on a coordinate grid
Each vertex of the polygon is defined by its (x, y) coordinates.

More Worked Examples: Triangle and Concave Polygon

Both examples use the Shoelace formula \(A = \tfrac{1}{2}\left|\sum (x_i y_{i+1} - x_{i+1} y_i)\right|\), with the first vertex repeated at the end of the list.

Example 1: Triangle (0,0), (6,0), (2,4)

Edge Cross-product \(x_i y_{i+1} - x_{i+1} y_i\) Value
(0,0) → (6,0) \(0·0 - 6·0\) 0
(6,0) → (2,4) \(6·4 - 2·0\) 24
(2,4) → (0,0) \(2·0 - 0·4\) 0

Sum = 0 + 24 + 0 = 24, so \(A = \tfrac{1}{2}|24| = 12\) square units. This matches the base-height check: \(\tfrac{1}{2}·6·4 = 12\).

Perimeter with the distance formula \(d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}\):

  • (0,0) → (6,0): \(\sqrt{36 + 0} = 6\)
  • (6,0) → (2,4): \(\sqrt{16 + 16} = \sqrt{32} \approx 5.657\)
  • (2,4) → (0,0): \(\sqrt{4 + 16} = \sqrt{20} \approx 4.472\)

Perimeter ≈ 6 + 5.657 + 4.472 = 16.129 units.

Example 2: Concave L-shape, clockwise: (0,0), (0,4), (2,4), (2,2), (4,2), (4,0)

Edge Cross-product Value
(0,0) → (0,4) \(0·4 - 0·0\) 0
(0,4) → (2,4) \(0·4 - 2·4\) −8
(2,4) → (2,2) \(2·2 - 2·4\) −4
(2,2) → (4,2) \(2·2 - 4·2\) −4
(4,2) → (4,0) \(4·0 - 4·2\) −8
(4,0) → (0,0) \(4·0 - 0·0\) 0

The raw sum is 0 − 8 − 4 − 4 − 8 + 0 = −24. The negative sign appears because the vertices are listed clockwise. Taking the absolute value gives 24, and \(A = \tfrac{1}{2}·24 = 12\) square units. Check by splitting the shape: a 2×4 rectangle (8) plus a 2×2 square (4) = 12.

Perimeter: the edges have lengths 4, 2, 2, 2, 2 and 4 (all axis-aligned, so each is a simple difference in one coordinate). For example, (0,4) → (2,4) gives \(\sqrt{2^2 + 0^2} = 2\). Total = 4 + 2 + 2 + 2 + 2 + 4 = 16 units.

Step-by-Step: Calculating Area and Perimeter by Hand

  1. List the vertices in order around the boundary (either clockwise or counter-clockwise), then repeat the first vertex at the end of the list so the last edge closes the shape.
  2. Compute the first sum: \(S_1 = \sum x_i\,y_{i+1}\), multiplying each x by the next vertex's y.
  3. Compute the second sum: \(S_2 = \sum x_{i+1}\,y_i\), multiplying each next x by the current y.
  4. Subtract: \(S_1 - S_2\). This is the signed double-area; it is positive for counter-clockwise order and negative for clockwise order.
  5. Take the absolute value and halve it: \(A = \tfrac{1}{2}|S_1 - S_2|\).
  6. Perimeter: for each edge compute \(d = \sqrt{(x_{i+1}-x_i)^2 + (y_{i+1}-y_i)^2}\), then add all the distances, including the closing edge from the last vertex back to the first.
  7. Units: if coordinates are in metres, the area is in square metres (m²) and the perimeter in metres (m). Area uses the squared coordinate unit; perimeter uses the linear coordinate unit.

Tip: the Shoelace formula only gives the true area for a simple polygon, whose edges do not cross each other.

Advertisement

Key Terms: Vertex, Simple Polygon, Concave, Winding Order

  • Vertex: a corner point of a polygon, given by an (x, y) coordinate pair.
  • Edge: a straight line segment joining two consecutive vertices.
  • Simple polygon: a closed polygon whose edges meet only at shared endpoints and never cross. The Shoelace formula gives its true area.
  • Self-intersecting (complex) polygon: a polygon whose edges cross each other, such as a bow-tie. The formula then adds and subtracts overlapping regions, so the result is not the visible enclosed area.
  • Convex polygon: every interior angle is less than 180°, and any line segment between two points inside stays inside.
  • Concave polygon: at least one interior angle is greater than 180°, creating an inward dent, like the L-shape.
  • Winding order: the direction in which vertices are listed. Counter-clockwise gives a positive raw sum, and clockwise gives a negative one.
  • Shoelace (surveyor's) formula: a method that computes polygon area from vertex coordinates by cross-multiplying and summing, named for the criss-cross pattern of the products.
  • Signed area: the area before taking the absolute value. Its sign shows the winding direction, and its magnitude is the actual area for a simple polygon.

FAQ

Do the vertices need to be in order? Yes. The formula assumes consecutive points form the polygon's edges. Out-of-order points produce a self-intersecting shape and a wrong area.

Does direction matter? No. Clockwise gives a negative raw sum, counter-clockwise positive, but the absolute value makes the area identical either way.

What about concave polygons? The Shoelace formula handles concave (non-convex) polygons perfectly, as long as the edges do not cross each other.

Last updated:

Most popular in Geometry

View all Geometry calculators