Area from Coordinates Calculator (Shoelace Formula)

Find the area of any polygon from the coordinates of its corners. Enter the points in order around the shape and the calculator applies the shoelace formula, returning the area, the perimeter and the centroid x and y.

Shape Calculators

Area from Coordinates Calculator

Area, perimeter and centroid of any polygon from the x, y coordinates of its corners, using the shoelace formula — with a graph.

Coordinates in
One corner per line as x, y — in order around the shape (clockwise or anticlockwise).

The starting values are five points in centimetres: (1, 1), (9, 2), (11, 7), (5, 10) and (0, 6). Replace them with your own corners, listed in order around the outline, and the results update.

The shoelace formula

The shoelace formula finds the area of a polygon straight from its vertex coordinates. For each pair of neighbouring points, multiply x of the first by y of the second, subtract x of the second times y of the first, add everything up and halve it.

A = ½ × |Σ (xi × yi+1 − xi+1 × yi)|

Where:

  • A = area of the polygon
  • xi, yi = coordinates of point number i
  • xi+1, yi+1 = coordinates of the next point, with the last point joined back to the first
  • | | = absolute value, so the order of travel does not change the sign of the answer

The perimeter is the sum of the straight-line distances between neighbouring points, using √((x2 − x1)² + (y2 − y1)²) for each edge.

Worked example with the starting values

Take the points (1, 1), (9, 2), (11, 7), (5, 10) and (0, 6), and join the last point back to the first.

  • (1, 1) to (9, 2): 1 × 2 − 9 × 1 = −7
  • (9, 2) to (11, 7): 9 × 7 − 11 × 2 = 41
  • (11, 7) to (5, 10): 11 × 10 − 5 × 7 = 75
  • (5, 10) to (0, 6): 5 × 6 − 0 × 10 = 30
  • (0, 6) to (1, 1): 0 × 1 − 1 × 6 = −6

Sum = −7 + 41 + 75 + 30 − 6 = 133, so the area is 133 / 2 = 66.5 cm².

The five edge lengths are 8.062, 5.385, 6.708, 6.403 and 5.099 cm, which add up to a perimeter of 31.66 cm. The centroid comes out at about (5.25, 5.17).

Worked example: a land plot in feet

A plot has corners at (0, 0), (60, 0), (60, 30), (30, 50) and (0, 30), measured in feet.

Cross products: 0 + 1800 + 2100 + 900 + 0 = 4800

Area = 4800 / 2 = 2400 ft²

You can check it by splitting the plot: a 60 by 30 rectangle gives 1800 ft² and the triangle on top, with base 60 and height 20, gives 600 ft². One acre is 43,560 ft², so the plot is about 0.055 acre. The perimeter is 60 + 30 + 36.06 + 36.06 + 30 = 192.11 ft.

Rules for entering points

  • List the corners in order around the outline, clockwise or anticlockwise. Jumping across the shape gives a different polygon.
  • Do not repeat the first point at the end; the calculator closes the shape for you.
  • You need at least three points, and the outline should not cross itself. A crossing outline has no single area, and the calculator checks for it.
  • Use one unit for x and y. The area is in that unit squared, the perimeter in that unit.
  • Reversing the order flips the sign of the raw sum, which is why the formula takes the absolute value.

What the centroid means

The centroid is the balance point of the area. For a polygon it is not the average of the corners, except for a triangle. The calculator uses Cx = Σ (xi + xi+1)(xi × yi+1 − xi+1 × yi) / 6A, with the matching y formula, so uneven shapes land where the area actually balances.

This is useful for locating a lifting point, a post position or the centre of a plot. Coordinates can come from a survey, a site plan, a CAD drawing or a grid on graph paper.

Worked example: a triangle

A triangle has corners at (0, 0), (8, 0) and (2, 6).

Cross products: 0 + 48 + 0 = 48

Area = 48 / 2 = 24 square units

Base times height over two gives 8 × 6 / 2 = 24, so the formula agrees. The perimeter is 8 + 8.485 + 6.325 = 22.81, and the centroid is the average of the three corners, (10 / 3, 6 / 3) = (3.33, 2). A triangle is the one case where the area centroid and the corner average are the same point.

Checking your answer

  • Split the shape into rectangles and triangles and add their areas by hand. It should match the shoelace result.
  • Sketch the points on graph paper. If the outline looks wrong, the order of entry is usually the cause.
  • Compare the area with a bounding box. The polygon cannot be larger than the rectangle that contains all of its points.
  • If the area is zero, the points are in a straight line or the outline crosses itself and cancels out.
  • Check that every coordinate uses the same unit and the same origin.

Where coordinates come from

Coordinates often come from a survey sheet, a site plan, a CAD export or a map grid. For a plot you can set one corner as (0, 0) and measure the other corners as distances east and north from it. Any origin works, because shifting every point by the same amount does not change the area or the perimeter; it only moves the centroid by the same shift. This makes the method handy for irregular lots, garden beds, floor plans and roof outlines where side lengths alone do not define the shape.

Frequently asked questions

How do I calculate area from coordinates?

List the corners in order, multiply x by the next y and subtract the next x times y for each pair, add the results and halve the absolute value. That is the shoelace formula.

Does the order of the points matter?

Yes. Go around the outline in order, in either direction. Clockwise or anticlockwise both give the same area, but skipping around the shape does not.

Do I need to repeat the first point at the end?

No. The calculator joins the last point back to the first automatically, so enter each corner once.

What units does the result use?

The area is in the square of whatever unit your coordinates use, and the perimeter is in that unit. Coordinates in feet give square feet, and 43,560 ft² make one acre.

Mark Danny

Mark Danny

Mark Danny builds and maintains the free calculators and guides on Area of Irregular Shapes Calculator. Every calculator page explains its formula and shows a worked example, so you can check the working yourself. Spotted a mistake or have a suggestion? Email gulsher.hingoro101@gmail.com.

Articles: 699