Skip to content
Calculator.hair

Irregular Shape Area Calculator

Given

One corner per line, in order around the edge.

123456

Press Calculate to see the area, the working and other units.

Find the area of any straight-sided shape by listing its corners as x, y coordinates, one per line. For a composite figure made of rectangles, you can add and subtract the pieces instead.

An irregular shape has no single formula of its own, because it has no fixed shape to base one on. What it does have is corners, and the positions of the corners are enough. This method is known as the shoelace formula, after the criss-cross pattern its multiplications make on paper. It handles an outline with any number of straight sides, including ones with inward-pointing corners.

Formula

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

A
the area enclosed by the outline
xᵢ, yᵢ
the position of each corner, taken in order around the edge
xᵢ₊₁, yᵢ₊₁
the next corner along, with the last corner wrapping back to the first

Getting the coordinates

Pick any convenient corner as 0, 0. Choose one direction as x and a right angle to it as y, then measure how far along and how far across each corner sits. On a drawing, grid paper makes this quick. On the ground, stretch a long tape as a baseline and measure straight out from it to each corner.

Enter the corners in the order you would meet them walking around the edge. Direction does not matter, and neither does the starting point. Latitude and longitude will not work directly, because degrees are not lengths, so convert those to distances from a start point first.

123456

A worked example

Take an L-shaped room with corners at (0, 0), (12, 0), (12, 5), (5, 5), (5, 9) and (0, 9), in feet. For each corner, multiply its x by the next corner's y and subtract the next corner's x times its own y. The six results add up to 160, and half of that gives an area of 80 ft².

Cornerx, yxᵢ × yᵢ₊₁ − xᵢ₊₁ × yᵢ
10, 00 × 0 − 12 × 0 = 0
212, 012 × 5 − 12 × 0 = 60
312, 512 × 5 − 5 × 5 = 35
45, 55 × 9 − 5 × 5 = 20
55, 95 × 9 − 0 × 9 = 45
60, 90 × 0 − 0 × 9 = 0

Composite figures: split into rectangles

Plenty of shapes break neatly into rectangles, and then coordinates are more work than they are worth. The same L-shaped room is a 12 by 5 rectangle plus a 5 by 4 rectangle, so 60 + 20 = 80 ft². Or treat it as a full 12 by 9 rectangle with a 7 by 4 corner missing. Enter that second piece with a minus sign, as -7, 4, and you get 108 − 28 = 80 ft², the same answer.

Keep the pieces from overlapping, since any overlap is counted twice. For composite figures with triangles or circles, work out those parts with their own calculators and add them to the result.

21

Outlines that cross themselves

The shoelace formula assumes the edge never crosses itself. If corners are entered out of order, the outline becomes a figure-eight, and the two loops partly cancel, which produces a number that looks plausible but is wrong. The calculator checks for this and reports an error instead. It reports the same if an edge touches another or doubles back on itself. The fix is almost always to reorder the lines.

Curved edges

Coordinates connect corners with straight lines, so a curve has to be approximated with several short sides. The more points you use, the closer you get. A circle of radius 10 has an area of about 314.16. Twelve evenly spaced points around it give an area of 300, about 4.5% low, while 24 points give about 310.58, about 1.1% low. An outline drawn with its points on the curve always loses a little on a bulging edge.

Frequently asked questions

How do I find the area of an irregular shape?

Give the shape's corners coordinates and use the shoelace formula, which the first method does for you. Alternatively, cut the shape into rectangles and triangles, solve each one and add them up.

How do I find the area of a composite figure?

Split it into simple pieces, work out each piece and add them, subtracting any holes or missing corners. The Split into rectangles method does this for rectangular pieces.

Does it matter which corner I start from?

No. You can start anywhere and go either way around, and the area stays the same. What matters is that the corners follow the edge in order.

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

No. The outline closes itself automatically. If you do repeat the first corner, the calculator ignores the duplicate.

Why do I get an error about the outline crossing itself?

Two of your corners are probably in the wrong order, which turns the outline into a figure-eight. Trace the points on paper in the order listed to spot which ones to swap.

Can I use negative coordinates?

Yes. Only the positions relative to each other matter, so an outline can sit anywhere, including below or to the left of 0, 0.

Updated by Calculator.hair. How we build and check our calculators