Boneyard Tools

Polygon Area Calculator

Work out a polygon's area two ways. The regular mode takes a number of sides and a side length and returns the area, perimeter, apothem and interior angle. The coordinates mode uses the shoelace formula on a list of corner points, so it handles any simple polygon, not just regular ones. A hexagon of side 2, for instance, has an area of 10.392305.

How to find the area of a polygon

  1. Choose a tab: Regular polygon or By coordinates.
  2. For a regular polygon, set the number of sides (3 to 100) and the side length.
  3. Read the area, perimeter, apothem and interior angle cards.
  4. For an irregular shape, switch to By coordinates and enter each corner as x, y on its own line, in order.
  5. Read the area and the vertex count for the coordinate shape.
  6. Press Copy result to save the numbers.

Examples

Regular hexagon, side 2

sides = 6, side length = 2
area = 10.392305, perimeter = 12, apothem = 1.732051, interior angle = 120

Equilateral triangle, side 4

sides = 3, side length = 4
area = 6.928203, interior angle = 60

Square by coordinates

(0,0) (4,0) (4,4) (0,4)
area = 16, vertices = 4

Frequently asked questions

What is the formula for a regular polygon's area?

The area equals one quarter times the number of sides times the side length squared times the cotangent of pi divided by the number of sides. For a hexagon of side 2 that works out to 10.392305 square units.

What is the shoelace formula?

It finds a polygon's area from its corner coordinates by cross-multiplying each point with the next, summing those products, then halving the absolute value of the total. The name comes from the crisscross pattern of the multiplications, like lacing a shoe.

Does the order of coordinates matter?

List the corners in sequence around the shape, either clockwise or counter-clockwise. Both directions give the same positive area because the tool takes the absolute value. Points listed out of order can produce a self-crossing shape and a wrong area.

How do I type the coordinates?

Put one point per line as two numbers, separated by a comma, space or tab, for example 4, 0 or 4 0. Blank lines are ignored, and each line must contain exactly two finite numbers.

Can it handle non-convex or irregular shapes?

Yes. The shoelace method works for any simple polygon, convex or concave, as long as the edges do not cross themselves. That makes the coordinates mode suitable for irregular land plots and free-form outlines.

What is the apothem?

The apothem is the distance from the center of a regular polygon to the midpoint of a side. It equals the side length divided by twice the tangent of pi over the number of sides, and a hexagon of side 2 has an apothem of about 1.732051.

What is the interior angle of a regular polygon?

Each interior angle equals the number of sides minus two, times 180 degrees, divided by the number of sides. A triangle gives 60 degrees, a square 90, a pentagon 108 and a hexagon 120.

What units does it report?

The results are unitless, matching whatever unit you enter. If side lengths are in centimeters the area is in square centimeters; if the coordinates are in meters the area is in square meters.

Is my data private?

Yes. Both the regular formula and the shoelace calculation run in your browser, so the dimensions and coordinates you enter are never uploaded.

Learn more

Related tools