Polygon Calculator

A regular polygon has equal sides and equal angles: an equilateral triangle, square, pentagon, hexagon and so on. Its measurements follow from the number of sides and one side length.

Results update as you type.

Area

41.56921938

regular hexagon

Perimeter
24
Each interior angle
120°
Sum of interior angles
720°
Apothem (centre to side)
3.464101615
Number of diagonals
9

About this calculator

Enter both.

How to use it

  1. Enter the number of sides.
  2. Enter the side length.
  3. Read the results.

The formula

Area = ½ × perimeter × apothem; interior angle = 180° − 360° ÷ n
apothem
distance from centre to a side
n
number of sides

Worked example

A hexagon with side 4

  1. Apothem ≈ 3.464; area ≈ 41.57.
  2. Interior angle 120°; 9 diagonals.

What the result means

Hexagons tile a floor perfectly, which is why bees use them.

Angles, diagonals and area for 3 to 12 sides

The last column is the area when each side is 1. For any other side length s, multiply it by s².

Regular polygon reference (angles in degrees)
SidesNameInterior angleSum of interior anglesExterior angleDiagonalsArea (side 1)
3Triangle60°180°120°00.4330
4Square90°360°90°21.0000
5Pentagon108°540°72°51.7205
6Hexagon120°720°60°92.5981
7Heptagon128.57°900°51.43°143.6339
8Octagon135°1,080°45°204.8284
9Nonagon140°1,260°40°276.1818
10Decagon144°1,440°36°357.6942
11Hendecagon147.27°1,620°32.73°449.3656
12Dodecagon150°1,800°30°5411.1962

Worked example: hexagonal paving tiles

A hexagonal paver has sides of 20 cm. Enter 6 sides and side length 20. Each tile covers 1,039.23 cm², so one square metre (10,000 cm²) needs about 10,000 ÷ 1,039.23 ≈ 9.62 tiles before allowing for cuts at the edges.

Among regular polygons, only triangles, squares and hexagons tile a flat floor with no gaps, because only their interior angles (60°, 90° and 120°) divide exactly into 360°.

Working backwards from an angle

The exterior angles of any polygon add up to 360°, so each exterior angle of a regular polygon is 360° ÷ n. If you know the interior angle, the exterior angle is 180° minus it, and n = 360° ÷ exterior angle. An interior angle of 150° gives an exterior angle of 30° and n = 12.

Assumptions

  • All lengths in the same unit.

Limitations

  • Results are rounded to 10 significant figures.

Frequently asked questions

What is the interior angle of a regular hexagon?

120°.

How many diagonals does a polygon have?

n(n − 3) ÷ 2.

What is the sum of interior angles?

(n − 2) × 180°.

How do I find the number of sides from the interior angle?

Use n = 360 ÷ (180 − interior angle). An interior angle of 140° gives n = 360 ÷ 40 = 9, a nonagon.

What is the exterior angle of a regular polygon?

It is 360° ÷ n. A regular octagon has exterior angles of 45° and interior angles of 135°.

Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.