Regular Polygon Calculator: Area, Side, Apothem and Angles
By FindMySum · Last reviewed
A regular polygon has all its sides the same length and all its angles the same size: the equilateral triangle, the square, the regular pentagon and hexagon, and so on up to shapes with so many sides they look like circles. Because every regular polygon with n sides is the same shape, one measurement fixes everything else. This calculator takes any one of the side, the circumradius, the apothem, the perimeter or the area, and gives all the others with the angles and the number of diagonals. A second mode finds the area of any polygon, regular or not, from the coordinates of its corners.
The measurements
- Side (s): the length of each edge.
- Circumradius (R): from the centre to a corner, the radius of the circle through all the corners.
- Apothem (a): from the centre to the middle of a side, the radius of the circle that touches every side.
- Perimeter (P): n × s.
- Area (A): the space inside.
The formulas
A regular polygon with n sides splits into n identical isosceles triangles that meet at the centre. Each has a base s and a height equal to the apothem, and the angle at the centre is 360° ÷ n. Half of one triangle is a right triangle with angle 180° ÷ n at the centre, which gives:
- R = s ÷ (2 sin(180°/n))
- a = s ÷ (2 tan(180°/n))
- A = n × ½ × s × a = ½ × P × a = ¼ × n × s² × cot(180°/n)
And for the angles:
- interior angle = (n − 2) × 180° ÷ n
- exterior angle = central angle = 360° ÷ n
- number of diagonals = n(n − 3) ÷ 2
Worked example: the default hexagon
The calculator opens with a regular hexagon of side 5.
- Perimeter: 6 × 5 = 30
- Circumradius: 5 ÷ (2 sin 30°) = 5. In a hexagon the circumradius equals the side, because the six central triangles are equilateral.
- Apothem: 5 ÷ (2 tan 30°) = 4.330
- Area: ½ × 30 × 4.330 = 64.95, the same as (3√3 ÷ 2) × 5²
- Interior angle: 4 × 180° ÷ 6 = 120°; the six angles add up to 720°
- Diagonals: 6 × 3 ÷ 2 = 9
Common shapes
| Shape | n | Interior angle | Area in terms of s |
|---|---|---|---|
| Equilateral triangle | 3 | 60° | (√3 ÷ 4) s² ≈ 0.433 s² |
| Square | 4 | 90° | s² |
| Regular pentagon | 5 | 108° | ≈ 1.720 s² |
| Regular hexagon | 6 | 120° | (3√3 ÷ 2) s² ≈ 2.598 s² |
| Regular octagon | 8 | 135° | 2(1 + √2) s² ≈ 4.828 s² |
| Regular decagon | 10 | 144° | ≈ 7.694 s² |
The buttons above the inputs set these shapes in one click; any number of sides from 3 to 1,000 works.
Working backwards
Often you know something other than the side. A stop sign is described by its width across the flats (twice the apothem); a hexagonal gazebo by its overall width corner to corner (twice the circumradius); a tile by its area. Choose what you know and the calculator solves for the side first, then everything else. For instance, a regular pentagon with an area of 100 has sides of 7.624 and a circumradius of 6.485.
Polygons approaching a circle
As n grows, the polygon hugs its circumscribed circle more and more closely. A regular 1,000-gon with sides of 1 has a perimeter of 1,000 and an area of 79,577.21, only 0.0003% less than a circle with circumference 1,000. Archimedes used the same idea, with 96-sided polygons inside and outside a circle, to show that π lies between 3 10/71 and 3 1/7.
Any polygon: the shoelace formula
For a shape that is not regular, such as a lot, a room or a garden bed, list the corners' coordinates in order around the outline. The shoelace formula (also called the surveyor's formula or Gauss's area formula) gives the area directly:
A = ½ |(x₁y₂ − x₂y₁) + (x₂y₃ − x₃y₂) + … + (xₙy₁ − x₁yₙ)|
The name comes from the criss-cross pattern of the multiplications when the coordinates are written in two columns. For the corners (1, 1), (5, 2), (4, 6) and (0, 4):
½ |(2 − 5) + (30 − 8) + (16 − 0) + (0 − 4)| = ½ × 31 = 15.5
The sign before taking the absolute value tells you the direction: positive for counter-clockwise, negative for clockwise. The calculator also gives the perimeter and the centroid, the balance point of the shape, and checks whether the outline crosses itself, which would make the result meaningless.
Tips
- Keep all lengths in one unit; the area comes out in that unit squared.
- For the shoelace mode, the corners must be in order around the shape, not in any order.
- A shape with a hole can be handled by subtracting the hole's area from the outer outline's area.
More questions
Is a rectangle a regular polygon?
Only if it is a square. A regular polygon needs all sides equal and all angles equal; a rectangle has equal angles but not equal sides, and a rhombus has equal sides but not equal angles.
Why are honeycomb cells hexagons?
Of the three regular polygons that tile a flat surface without gaps (triangles, squares and hexagons), the hexagon encloses the most area for a given perimeter. Bees use the least wax for the most storage; Thomas Hales proved in 1999 that the hexagonal grid is the most efficient way to divide a plane into equal areas.
What is the largest angle a regular polygon can have?
Each interior angle is (n − 2) × 180° ÷ n, which gets closer to 180° as n grows but never reaches it. A regular 1,000-gon has interior angles of 179.64°, and to the eye it is a circle.
Does the shoelace formula work for concave shapes?
Yes, as long as the outline does not cross itself and the corners are listed in order around it, in either direction. It fails for self-intersecting outlines (like a figure eight), where parts of the area cancel; the calculator warns when the outline crosses itself.
How do I use the shoelace formula for a piece of land?
Measure or look up the coordinates of each corner in metres or feet on a flat map projection (such as UTM), list them in order, and enter them. For small parcels this matches the surveyed area closely; for very large regions, the Earth's curvature makes a flat formula less accurate.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.