Have the corners of a lot, a room or a homework shape? Paste the x, y coordinates and get the exact area with every shoelace step, the perimeter and acres, or size a regular polygon from one side.
Polygon Area Calculator - Coordinates or Regular Polygon
Have the corners of a lot, a room or a homework shape? Paste the x, y coordinates and get the exact area with every shoelace step, the perimeter and acres, or size a regular polygon from one side.
Parameters
Enter data for calculations
Polygon area from corner coordinates or from one side
Type the corners of the shape as x, y pairs, one per line, and you get the area, the perimeter and every step of the shoelace formula. An L-shaped house with corners (0, 0), (30, 0), (30, 20), (15, 20), (15, 40), (0, 40) in feet comes out at 900 sq ft (0.0207 acres, 83.6127 m²), perimeter 140 ft. The area is computed exactly, not in floating point, so survey coordinates with seven digits and two decimals keep every hundredth. For a regular polygon (a hexagon, an octagon) you can skip the coordinates and give only the number of sides and one side length.
Five fields, two ways in
- What are you calculating? - "Area from vertex coordinates" for any polygon, regular or not; "Regular polygon" when all sides and all angles are equal. Left empty, the calculator uses coordinates.
- Vertices - one corner per line, x then y, separated by a comma, a space, a semicolon or a tab. Textbook style works too: (1, 6), (3, 1), (7, 2) on a single line. Go around the edge in order, clockwise or counterclockwise, and do not repeat the first point at the end (if you do, it is dropped).
- Number of sides - regular polygons only: 3 for an equilateral triangle, 6 for a hexagon, 8 for an octagon, up to 1,000.
- Side length - regular polygons only, one side, from 0.001 to 1,000,000.
- Unit - feet, inches, yards, miles, meters, centimeters, millimeters, kilometers, or no unit for a homework grid. Left empty, numbers are read as feet. Feet and yards also give acres; meters give square feet, acres and hectares.
How the shoelace formula turns corners into area
Write the corners in a column, x on the left and y on the right, and copy the first corner again at the bottom. For each pair of neighbors, multiply diagonally down to the right (xi times yi+1) and subtract the diagonal down to the left (xi+1 times yi). The criss-cross pattern of those diagonals is where the name comes from: it looks like the laces of a shoe. Add the results, take the absolute value and halve it. That is the shoelace formula, also called Gauss's area formula or the surveyor's formula.
Why does it work? Each cross product is twice the signed area of the triangle formed by the origin and one edge. For a counterclockwise outline, edges on the far side of the shape (seen from the origin) add area and edges on the near side take it back, and what is left is exactly the region inside the boundary. Where the origin sits makes no difference, so the formula works with any coordinates, including negative ones and the large numbers of a state plane survey.
The sign of the sum tells you the direction you walked. Counterclockwise (with x pointing right and y pointing up) gives a positive sum, clockwise gives a negative one, and the area is the same either way. The calculator prints the sign and the direction, so you can spot a list that was entered backwards. Survey data often lists northing before easting, which swaps x and y: the direction flips, the area does not.
The one thing the formula cannot survive is a boundary that crosses itself. Take a bow tie: the two loops are traced in opposite directions, so one subtracts from the other, and a perfectly symmetric bow tie comes out as 0 (the calculator stops with an error). Otherwise the calculator tests every pair of edges in exact arithmetic and names the first pair that crosses, by line number. A boundary that passes twice through the same corner is checked too: if its two loops run in opposite directions, the result is flagged as "loops cancel".
Regular polygons from 3 to 12 sides, side length 1
Every value in this table scales with the side length a: the area with a², the radii and the apothem with a. A regular hexagon with 4 ft sides therefore has 16 times the area in the table: 41.5692 sq ft. The interior angle does not depend on the side at all.
| Sides | Name | Area (a = 1) | Interior angle | Apothem r | Circumradius R |
|---|---|---|---|---|---|
| 3 | Equilateral triangle | 0.433 | 60° | 0.2887 | 0.5774 |
| 4 | Square | 1 | 90° | 0.5 | 0.7071 |
| 5 | Regular pentagon | 1.7205 | 108° | 0.6882 | 0.8507 |
| 6 | Regular hexagon | 2.5981 | 120° | 0.866 | 1 |
| 7 | Regular heptagon | 3.6339 | 128.5714° | 1.0383 | 1.1524 |
| 8 | Regular octagon | 4.8284 | 135° | 1.2071 | 1.3066 |
| 9 | Regular nonagon | 6.1818 | 140° | 1.3737 | 1.4619 |
| 10 | Regular decagon | 7.6942 | 144° | 1.5388 | 1.618 |
| 11 | Regular hendecagon | 9.3656 | 147.2727° | 1.7028 | 1.7747 |
| 12 | Regular dodecagon | 11.1962 | 150° | 1.866 | 1.9319 |
The formulas behind the table: area = n · a² ÷ (4 · tan(180° ÷ n)), apothem = a ÷ (2 · tan(180° ÷ n)), circumradius = a ÷ (2 · sin(180° ÷ n)), interior angle = 180° · (n - 2) ÷ n. The result also prints the check "perimeter × apothem ÷ 2", which must give the same area.
Reading the Shape tile under the area
Besides the area, the coordinates mode classifies the outline. The classification is computed from the same exact numbers as the area, so a corner that sits a hundredth of a foot off the line is still seen.
| The result says | What it means | Can you trust the area? |
|---|---|---|
| convex | Every turn along the boundary goes the same way, like a rectangle or a regular hexagon | Yes |
| concave | At least one corner points inward, like an L-shaped house or a lot with a notch | Yes, the formula handles inward corners |
| edges touch | Two edges share a point without crossing, for example two squares joined at a corner | Usually, if both parts are traced in the same direction |
| edges cross | The boundary cuts through itself, like a bow tie or a figure eight | No, reorder the corners along the outline |
| loops cancel | The boundary passes twice through one corner and its two loops run in opposite directions | No, list both parts in the same direction |
| error: area 0 | All points on one line, or two loops that cancel exactly | No, check the order and the typing |
Seven outlines and their areas
Polygon area facts that surprise people
Polygon area questions people ask
Related tools
Bisection Method Calculator
Root of f(x) = 0 between two points, with every halving step and an error bound - See the calculator
Area Calculator
Squares, rectangles, triangles, circles, trapezoids and other standard shapes from their dimensions - See the calculator
Perimeter Calculator
The distance around common shapes, for fencing, trim or edging - See the calculator
Coordinate Calculator
Distance and midpoint between two points, useful for checking a single edge of your polygon - See the calculator
Pythagorean Theorem Calculator
The missing side of a right triangle, for turning a sketch with lengths into corner coordinates - See the calculator
Triangle Angle Calculator
Angles of a triangle from its sides - See the calculator
Flooring Calculator
Boxes of flooring and waste for a room once you know its square footage - See the calculator
Fence Calculator
Posts, rails and panels along a property line, the perimeter side of the same outline - See the calculator