An irregular polygon area calculator finds the area, the perimeter and the centroid of any polygon from the coordinates of its corners. Type the points in order and press the button. It uses the shoelace formula, which Wikipedia describes, and the centroid formula for polygons from the Wikipedia page on the centroid. It runs in your browser. It can be used for plots of land, floor plans and any shape that has straight sides.
How to use the irregular polygon area calculator
- Type the corner points, one on each line, as x and y separated by a comma or a space, in order round the shape.
- You can use semicolons instead of new lines.
- Press Work out the polygon.
- Read the area, the perimeter, the centroid and the direction of the points.
The shoelace formula
The Wikipedia page on the shoelace formula gives the area of a polygon as half of the absolute value of a sum. For each corner you multiply its x by the y of the next corner, and subtract the x of the next corner times its y, and the last corner is followed by the first. The page works an example with the points (1, 6), (3, 1), (7, 2), (4, 4) and (8, 5). The five terms are −17, −1, 20, −12 and 43, the sum is 33, and the area is 16.5. The calculator gives the same number. The name comes from the criss-cross pattern of the products, which looks like the lacing of a shoe.
The centroid
The centroid of a polygon is the center of the shape, the point where a cardboard cut-out balances. The Wikipedia page on the centroid gives the formula in terms of the corners: the x of the centroid is the sum of x of this corner plus x of the next, times the same cross product as in the shoelace formula, divided by 6 times the signed area, and the same for y. For a square with corners (0, 0), (4, 0), (4, 4) and (0, 4), the centroid is (2, 2). The page notes that the centroid of a polygon is in general not the average of its corners, which is the reason why the full formula is needed.
Order and direction
The corners must be listed in the order in which you meet them as you go round the outline. You can go clockwise or counterclockwise. The signed area is positive for a counterclockwise order and negative for a clockwise one, and the calculator tells you which way your points go. It uses the absolute value for the area, so both orders give the same answer.
Self-crossing outlines
If the outline crosses itself, like a bow tie, the shoelace formula adds the areas of the loops with different signs, and the result is not the area of any region. The calculator checks whether any two edges cross and says so. If you see this message, check the order of the points, since swapping two corners is the most common cause.
Perimeter and number of corners
The perimeter is the sum of the lengths of the edges, including the edge from the last point back to the first. The calculator also shows the number of corners that you entered. For a triangle it is 3, and the result agrees with the triangle coordinates calculator on this site. Use at least 3 points.
Uses
The calculator is useful to find the area of a field from the coordinates of its corners, for example from a survey or a map, and to find the area of a room that is not a rectangle. Landscapers, builders and students use the same method. It also works for shapes with many corners, such as an outline that is traced from a drawing.
A worked example with a field
Suppose a field has corners at (0, 0), (120, 0), (150, 80), (60, 130) and (−10, 70), measured in meters. Type the five points, one on each line. The calculator gives the area of the field in square meters, and with 10,000 square meters in a hectare, you can convert it to hectares. The perimeter tells you how much fencing you need. The centroid gives a good place for a well or a building.
Checking the result
A quick check is to compare the area with that of a rectangle that surrounds the shape. The area of the polygon must be smaller than the area of the bounding rectangle, and larger than that of any rectangle that fits inside it. For a convex shape, the area is usually between half and nearly all of the area of the bounding rectangle. If the number looks wrong, check the order of the points and the units.
Holes and several parts
The calculator handles one outline without holes. For a shape with a hole, find the area of the outer outline and subtract the area of the hole, which you enter as a second polygon. For a shape that is made of several separate pieces, find the area of each piece and add them. The same idea works for an L-shaped room, which you can enter as one polygon with six corners.
Common mistakes
- Listing the corners in the wrong order. Go round the outline.
- Repeating the first point at the end. The calculator closes the shape itself.
- Mixing units. Use the same unit for x and y.
- Using only two points. A polygon needs three.
What next
Use this often? Add Irregular Po to your Home screen.
Frequently asked questions
What is an irregular polygon area calculator?
A tool that finds the area, perimeter and centroid of any polygon from the coordinates of its corners.
What is the shoelace formula?
Area = ½ × |Σ (xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)|, summed over the corners in order. For (1,6), (3,1), (7,2), (4,4), (8,5) the area is 16.5.
In which order should I type the points?
In the order in which you meet them as you go round the outline, clockwise or counterclockwise.
What if the outline crosses itself?
The formula then gives a number that is not an area. The calculator warns you.
How is the centroid found?
With the polygon centroid formula, which uses the same cross products as the area. It is not simply the average of the corners.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.