Irregular Polygon Area Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Choose the number of corners, then enter the x and y coordinates of each vertex in order around the shape.
Result
Area (square units)
Signed area (positive when the vertices go counterclockwise)
- Perimeter (length units)
- Vertex order
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of vertices: choose one of the 6 options in the list.
- Vertex 1: x: enter a number.
- Vertex 1: y: enter a number.
- Vertex 2: x: enter a number.
- Vertex 2: y: enter a number.
- Vertex 3: x: enter a number.
- Vertex 3: y: enter a number.
- Vertex 4: x: enter a number.
- Vertex 4: y: enter a number.
- Vertex 5: x: enter a number.
- Vertex 5: y: enter a number.
- Vertex 6: x: enter a number.
- Vertex 6: y: enter a number.
- Vertex 7: x: enter a number.
- Vertex 7: y: enter a number.
- Vertex 8: x: enter a number.
- Vertex 8: y: enter a number.
- Read the result: Area (square units); the panel also shows Signed area (positive when the vertices go counterclockwise), Perimeter (length units) and Vertex order.
How this calculator works
The area uses the shoelace formula (Gauss's area formula): A = ½ |Σ (xᵢ·yᵢ₊₁ − xᵢ₊₁·yᵢ)|, summed over every edge, the last vertex joining back to the first.
The perimeter adds the length of each edge, √((xᵢ₊₁ − xᵢ)² + (yᵢ₊₁ − yᵢ)²). Enter the vertices in order around the shape, either direction; the result is wrong if the edges cross each other.
Coordinates can be in any unit, such as feet from a corner of a lot; the area is then in square units of that unit.
Worked example
| Number of vertices | 5 |
|---|---|
| Vertex 1: x | 0 |
| Vertex 1: y | 0 |
| Vertex 2: x | 4 |
| Vertex 2: y | 0 |
| Vertex 3: x | 5 |
| Vertex 3: y | 3 |
| Vertex 4: x | 2 |
| Vertex 4: y | 5 |
| Vertex 5: x | -1 |
| Vertex 5: y | 3 |
| Vertex 6: x | 0 |
| Vertex 6: y | 0 |
| Vertex 7: x | 0 |
| Vertex 7: y | 0 |
| Signed area (positive when the vertices go counterclockwise) | 21 |
|---|---|
| Area (square units) | 21 |
| Perimeter (length units) | 17.5357 |
| Vertex order | Counterclockwise |
Frequently asked questions
How do you find the area of an irregular polygon?
Put its corners on a grid, list their coordinates in order and apply the shoelace formula. The default pentagon (0,0), (4,0), (5,3), (2,5), (−1,3) has an area of 21.
Does the starting vertex matter?
No. Any starting corner and either direction give the same area; only the sign of the signed area changes with the direction.