The formula
Sum of interior angles = (n − 2) × 180°
Each interior angle = (n − 2) × 180° ÷ n; each exterior angle = 360° ÷ n
Diagonals = n(n − 3) ÷ 2
Apothem a = s ÷ (2 tan(180°/n)); circumradius R = s ÷ (2 sin(180°/n))
Area = ½ × perimeter × apothem = n × s × a ÷ 2
Worked example
- A regular hexagon with 10 cm sides (n = 6):
- Interior angle = 4 × 180 ÷ 6 = 120°; exterior angle = 60°; sum = 720°.
- Diagonals = 6 × 3 ÷ 2 = 9.
- Apothem = 10 ÷ (2 tan 30°) = 8.660 cm; circumradius = 10 cm.
- Area = 6 × 10 × 8.660 ÷ 2 = 259.81 cm²; perimeter = 60 cm.
What is a regular polygon?
A polygon is a flat shape with straight sides. In a regular polygon, every side has the same length and every interior angle is the same, like a square, an equilateral triangle, a stop-sign octagon or the hexagons of a honeycomb. Because of this symmetry, one length and the number of sides are enough to work out everything else: the angles, the area, the perimeter and the distances from the centre to the corners and edges. The angle formulas also apply to the angle sum of irregular polygons.
Interior and exterior angles
Any polygon with n sides can be split into n − 2 triangles from one corner, so its interior angles add up to (n − 2) × 180°. A pentagon's angles total 540° and a hexagon's 720°. In a regular polygon, each interior angle is that total divided by n. The exterior angles, formed by extending each side, always add up to 360°, whatever the number of sides, so each one is 360° ÷ n. That's why turning 60° six times takes you round a hexagon, a fact used in robotics, drawing programs and mitre cuts for picture frames.
Counting diagonals
A diagonal joins two corners that aren't next to each other. From each of the n corners you can draw a diagonal to n − 3 others (excluding itself and its two neighbours), and each diagonal gets counted twice, once from each end. So the total is n(n − 3) ÷ 2. A triangle has none, a square has 2, a pentagon 5, a hexagon 9 and an octagon 20. The same formula counts the number of handshakes between n people who don't shake hands with their two neighbours at a round table.
Area, apothem and circumradius
The apothem is the distance from the centre to the middle of a side, and the circumradius is the distance from the centre to a corner. The area is half the perimeter times the apothem, which comes from splitting the polygon into n identical triangles. As the number of sides grows, a regular polygon gets closer and closer to a circle: a 100-sided polygon with a circumradius of 1 has an area of 3.1395, very close to π. Archimedes used this idea with 96-sided polygons to estimate π accurately more than 2,000 years ago.
Polygons in design and construction
Regular polygons appear in tiling, architecture, gazebos, garden beds, nuts and bolts and game boards. Only triangles, squares and hexagons tile a flat surface on their own, since their interior angles divide evenly into 360°. To build a hexagonal or octagonal frame, cut each end of every piece at half the exterior angle: 30° for a hexagon and 22.5° for an octagon. Our miter angle calculator gives the cut angles for frames and crown molding.
Star polygons
Joining every second or third corner of a regular polygon creates star shapes such as the pentagram. Their point angles follow the same circle-based formulas.
Related geometry tools
For shapes made of triangles, use the triangle solver, which finds every side and angle from three known values. For circles, arcs and sectors, the circle calculator handles the curved version of these formulas, and the volume calculator covers 3D shapes such as prisms, pyramids and cylinders. Combinations of these tools cover most school geometry problems.