Skip to content

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

cm
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.

a 8.66R 10s 10

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

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.

Every change on What’s new

How we make toolsReport a mistake

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.

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.
SidesNameInterior angleApothemArea
3equilateral triangle60°√3/6 ≈ 0.2887√3/4 ≈ 0.433
4square90°0.51
5pentagon108°0.68821.7205
6hexagon120°√3/2 ≈ 0.8663√3/2 ≈ 2.5981
7heptagon128.571°1.03833.6339
8octagon135°1.20714.8284
9nonagon140°1.37376.1818
10decagon144°1.53887.6942
12dodecagon150°(2 + √3)/2 ≈ 1.8666 + 3√3 ≈ 11.1962
20icosagon162°3.156931.5688
Show all 11 rows
100100-gon176.4°15.9103795.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°.