Regular polygons: symmetry does the work
A regular polygon has equal sides and equal interior angles. Because of that symmetry, two numbers — the side count n and the side length s — determine its area, perimeter, apothem, circumradius and angles.
The apothem is the distance from the center to the midpoint of a side. It is the inradius, and it turns the polygon into n congruent triangles, each with base s and height a.
Total area is therefore ½ × perimeter × apothem. That single relationship covers triangles, squares, hexagons, octagons and every other regular polygon.
Regular polygon formulas used on this page
← Swipe →| Quantity | Formula | Notes |
|---|---|---|
| Perimeter | P = n × s | Number of sides times side length. |
| Apothem | a = s ÷ (2 tan(180° ÷ n)) | Center to the midpoint of a side. |
| Area | A = ½ × P × a | Equivalently n·s² ÷ (4 tan(180° ÷ n)). |
| Circumradius | R = s ÷ (2 sin(180° ÷ n)) | Center to a vertex. |
| Interior angle | ((n − 2) × 180°) ÷ n | Each interior angle in a regular polygon. |
| Interior angle sum | (n − 2) × 180° | Same for every simple n-gon. |
| Diagonals | n(n − 3) ÷ 2 | Counts diagonals only, not the sides. |
Regular polygons with side 2
← Swipe →| Polygon | Sides n | Area | Apothem |
|---|---|---|---|
| Triangle | 3 | 1.7321 | 0.5774 |
| Square | 4 | 4 | 1 |
| Pentagon | 5 | 6.8819 | 1.3764 |
| Hexagon | 6 | 10.3923 | 1.7321 |
| Octagon | 8 | 19.3137 | 2.4142 |
| Decagon | 10 | 30.7768 | 3.0777 |
| Dodecagon | 12 | 44.7846 | 3.7321 |
Worked calculation examples
Hexagonal floor tile
A regular hexagon tile has 6 in sides.
- 1.P = 6 × 6 = 36 in
- 2.a = 6 ÷ (2 tan 30°) = 5.1962 in
- 3.A = ½ × 36 × 5.1962 = 93.5307 in²
- 4.circumradius = 6 ÷ (2 sin 30°) = 6 in
- 5.interior angle = (6 − 2) × 180° ÷ 6 = 120°
Octagonal gazebo floor
A gazebo has 8 ft sides.
- 1.P = 8 × 8 = 64 ft
- 2.a = 8 ÷ (2 tan 22.5°) = 9.6569 ft
- 3.A = ½ × 64 × 9.6569 = 309.0193 ft²
- 4.circumradius = 8 ÷ (2 sin 22.5°) = 10.4525 ft
- 5.interior angle = (8 − 2) × 180° ÷ 8 = 135°
Regular polygon tips
Use radians consistently in code
Most programming languages expect radians for trigonometry. Convert 180° ÷ n to radians before calling tan or sin.
Apothem versus circumradius
The apothem reaches a side midpoint; the circumradius reaches a corner. The circumradius is always larger.
Interior angles grow with n
The triangle is 60°, the square 90°, the hexagon 120°, and the octagon 135°. The sum is always (n − 2) × 180°.
More sides approach a circle
As n grows, the area converges to πr². A 12-gon already covers about 95% of its circumcircle.
Frequently asked questions
What is a regular polygon?+
A polygon with all sides equal and all interior angles equal. Squares, equilateral triangles and regular hexagons are common examples.
How do I find the area of a regular polygon?+
A = ½ × perimeter × apothem. For a regular hexagon with 2 ft sides, the perimeter is 12 ft and the apothem about 1.7321 ft, giving an area of about 10.3923 ft².
What is the apothem?+
The perpendicular distance from the center to the midpoint of a side: a = s ÷ (2 tan(180° ÷ n)). It is the radius of the inscribed circle.
How do I find the interior angle?+
Each interior angle is ((n − 2) × 180°) ÷ n. A pentagon has 108°, a hexagon 120°, and an octagon 135°.
How many diagonals does a polygon have?+
n(n − 3) ÷ 2. A hexagon has 9 diagonals, an octagon has 20, and a decagon has 35.