Regular Polygon Calculator
Pick the number of sides and type the side length to get the area, the angles…
Pick the number of sides and type the side length to get the area, the angles, the apothem and the radius of any regular polygon.
Number of sides
More optionsLengths in cm
Unit
ExampleArea, hexagon
259.81cm²
Exactly 150√3 cm². Each interior angle is 120°, and the 6 angles add up to 720°.
Pick the number of sides and type a length, or drag a corner.
Drag the corner to change the side length. Exterior angle 60°; 9 diagonals.
- Perimeter
- 60 cm
- Apothem (centre to side)
- 5√3 ≈ 8.6603 cm
- Circumradius (centre to corner)
- 10 cm
How this works: 5 sources,
How this works
Method
A regular polygon has equal sides and equal angles, so one side length and the number of sides fix everything. The interior angles add up to (n − 2) × 180°, so each is (n − 2) × 180° ÷ n: 108° for a pentagon, 120° for a hexagon, 135° for an octagon. Full method
Sources
How it’s tested
3 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: 13 shapes drawn to scale with handles, exact answers in π, litres and gallons, and slope, distance, midpoint, arc and polygon pages.
How to work out a regular polygon
A regular polygon has equal sides and equal angles, so one side length and the number of sides fix everything. The interior angles add up to (n − 2) × 180°, so each is (n − 2) × 180° ÷ n: 108° for a pentagon, 120° for a hexagon, 135° for an octagon.
For the area, split the polygon into n triangles meeting at the centre. Each has the side as its base and the apothem (centre to the middle of a side) as its height, a = s ÷ (2·tan(180°/n)). So the area is ½ × perimeter × apothem. An octagon with sides of 5 has an apothem of about 6.036 and an area of about 120.71.
Some polygons come out exact. A regular hexagon is six equilateral triangles, so with side s its area is (3√3/2)s²: with s = 2, exactly 6√3. The calculator keeps exact forms for triangles, squares, hexagons and dodecagons, whose angles have sines and cosines made of square roots.
interior = (n − 2) × 180° ÷ n · a = s ÷ (2·tan(180°/n)) · Area = ½ × n × s × a
- Thomas Hales proved in 1999 that a grid of regular hexagons divides a plane into equal areas with the least total perimeter, which is why honeycombs are hexagonal. Source: Wikipedia, Honeycomb conjecture.
- In 1796 Gauss showed that a regular 17-sided polygon can be drawn with only a compass and straightedge. Source: Wikipedia, Heptadecagon.
Regular polygons with a side of 1
Interior angle, apothem, circumradius and area for regular polygons with a side length of 1; multiply the lengths by your side and the area by its square.
| Sides | Name | Interior angle | Apothem | Area |
|---|---|---|---|---|
| 3 | equilateral triangle | 60° | √3/6 ≈ 0.2887 | √3/4 ≈ 0.433 |
| 4 | square | 90° | 0.5 | 1 |
| 5 | pentagon | 108° | 0.6882 | 1.7205 |
| 6 | hexagon | 120° | √3/2 ≈ 0.866 | 3√3/2 ≈ 2.5981 |
| 7 | heptagon | 128.571° | 1.0383 | 3.6339 |
| 8 | octagon | 135° | 1.2071 | 4.8284 |
| 9 | nonagon | 140° | 1.3737 | 6.1818 |
| 10 | decagon | 144° | 1.5388 | 7.6942 |
| 12 | dodecagon | 150° | (2 + √3)/2 ≈ 1.866 | 6 + 3√3 ≈ 11.1962 |
| 20 | icosagon | 162° | 3.1569 | 31.5688 |
Show all 11 rowsShow fewer
| 100 | 100-gon | 176.4° | 15.9103 | 795.5129 |
Common questions
What is the sum of the interior angles of a polygon?
(n − 2) × 180°, for any polygon with n sides, regular or not: 540° for a pentagon, 720° for a hexagon. The exterior angles of any polygon add up to 360°.
How many diagonals does a polygon have?
n(n − 3) ÷ 2. Each corner joins every other corner except itself and its two neighbours, and each diagonal gets counted from both ends. A hexagon has 9, an octagon 20.
What happens as the number of sides grows?
The polygon gets closer to a circle. With 100 sides of length 1 the area is within about 0.07% of the circle through its corners, and the interior angle is 176.4°.