Irregular Shape Area Calculator

Enter the corners of a shape as x and y coordinates, in order around its outline. Add or remove points as you need them.

Inputs

Point 1

Point 2

Point 3

Point 4

Point 5

Try an example

Area

48 m²

Lengths are in m, so the area is in m².

Perimeter
26.9443 m
Centroid
(4, 3.0278)
Corners
5
Point order
Anticlockwise

12345centroid

Step-by-step solution

  1. The shoelace formula adds up one cross term per edge, going once around the shape. The last point joins back to the first.

    A = ½ × |Σ (xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)|

  2. Edge 1, from point 1 to point 2.

    x₁y₂ − x₂y₁ = 0 × 0 − 8 × 0 = 0

  3. Edge 2, from point 2 to point 3.

    x₂y₃ − x₃y₂ = 8 × 5 − 8 × 0 = 40

  4. Edge 3, from point 3 to point 4.

    x₃y₄ − x₄y₃ = 8 × 7 − 4 × 5 = 36

  5. Edge 4, from point 4 to point 5.

    x₄y₅ − x₅y₄ = 4 × 5 − 0 × 7 = 20

  6. Edge 5, from point 5 to point 1.

    x₅y₁ − x₁y₅ = 0 × 0 − 0 × 5 = 0

  7. Add all the cross terms.

    Σ = 96

  8. Halve it and take the absolute value. The sign only says which way round the points were entered.

    A = ½ × |96| = 48 m²

Formulas used

A = ½ × |Σ (xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ)| the shoelace formula, summed over every edge

xᵢ, yᵢ
the coordinates of point number i
i + 1
the next point around the shape. After the last point comes the first.
|…|
the absolute value, so the answer is positive whichever way round the points were entered

Each term xᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ is twice the signed area of the triangle formed by the origin and one edge. Adding them all up leaves the area of the polygon, because the pieces outside the shape cancel. Writing the points in two columns and multiplying diagonally looks like lacing a shoe, which is where the name comes from.

The calculator shifts the points so the first corner is the origin before it multiplies. The answer is the same, and it stays accurate when the coordinates are large numbers such as survey or map references.

Worked example: a four-sided plot

Corners (1, 1), (5, 1), (6, 4) and (2, 5), in that order.

(1 × 1 − 5 × 1) = −4

(5 × 4 − 6 × 1) = 14

(6 × 5 − 2 × 4) = 22

(2 × 1 − 1 × 5) = −3 (the last point joins back to the first)

Sum = −4 + 14 + 22 − 3 = 29

A = ½ × |29| = 14.5

The sum is positive because the points run anticlockwise. Entered the other way round it would be −29, and the absolute value gives the same 14.5.

Shoelace results for simple shapes

Check your understanding against shapes whose area you can find another way. The L-shape is a 4 by 4 square with a 2 by 2 corner removed, so 16 − 4 = 12, and the house is a 6 by 3 rectangle plus a triangle of base 6 and height 2, so 18 + 6 = 24. Areas are in square units and perimeters in units.

ShapeCorners in orderAreaPerimeter
Unit square(0, 0) (1, 0) (1, 1) (0, 1)14
Right triangle(0, 0) (4, 0) (0, 3)612
Rectangle 5 by 2(0, 0) (5, 0) (5, 2) (0, 2)1014
L-shape(0, 0) (4, 0) (4, 2) (2, 2) (2, 4) (0, 4)1216
House outline(0, 0) (6, 0) (6, 3) (3, 5) (0, 3)2419.2111

Frequently asked questions

In what order should I enter the points?

Go once around the shape, from corner to corner along its edges, either clockwise or anticlockwise. It does not matter where you start or which way you go. The last point is joined back to the first automatically, so do not repeat the first point at the end.

Why does it say my outline crosses itself?

The shoelace formula gives the area of a simple polygon, one whose edges only meet at the corners. If two edges cross, as in a bow tie, the formula adds a positive and a negative piece and returns a net figure that is not the area of anything. Reorder the points so they follow the outline, and the result will appear.

How do I get coordinates for my shape?

Choose any corner as (0, 0) and measure the other corners from it along two directions at right angles, such as east and north. Use the same unit for both. On a map or a drawing on graph paper, read the coordinates off the grid. The distance between any two points is available from the distance calculator, which is handy for checking a measurement.

Can I use it for a shape with curved edges?

Only as an approximation. Place points along the curve and the calculator treats each stretch between points as a straight edge. More points follow the curve more closely, and the result gets closer to the true area. For a true circle or slice of one, use the circle or sector calculators.

What does a blank row do?

A row with both boxes empty is ignored, so you can add a row and fill it in later without upsetting the result. A row with only one box filled is treated as a mistake and flagged. At least three points with values are needed. Up to 30 points can be added.

What is the centroid?

The centroid is the balance point of the shape if it were cut from a flat sheet of uniform material. It is the average position of all the area, which is not the same as the average of the corners. It is shown on the diagram and in the results.