Regular Polygon Calculator
This free regular polygon calculator works out every measurement of a regular polygon from just two inputs: the number of sides and any one known value, whether that’s the side length, the perimeter, the area, the apothem, or the circumradius. You’ll get the area, perimeter, side length, apothem, circumradius, interior and exterior angles, and the number of diagonals, with the shape drawn to scale and every formula shown.
What Is a Regular Polygon?
A regular polygon is a flat shape with straight sides where every side is the same length and every angle is the same size. An equilateral triangle, a square, and the hexagon of a honeycomb cell are all regular polygons. If even one side or angle is different, the shape is irregular.
Because everything is equal, a regular polygon is completely defined by just two things: how many sides it has, and one measurement. That’s why this calculator only needs those two inputs.
The Parts of a Regular Polygon
| Part | What it is |
|---|---|
| Side length (s) | The length of one edge |
| Perimeter (P) | The total distance around: n × s |
| Apothem (r) | The distance from the center to the middle of a side; also the radius of the circle that fits inside (the incircle) |
| Circumradius (R) | The distance from the center to a corner; also the radius of the circle that passes through every corner (the circumcircle) |
| Interior angle | The angle inside each corner |
| Exterior angle | The turn at each corner as you walk around the shape |
In the drawing, the orange dashed circle is the circumcircle, the blue dashed circle is the incircle, and the lines marked R and r show the circumradius and apothem.
How to Use the Regular Polygon Calculator
- Enter the number of sides, for example 6 for a hexagon or 8 for an octagon.
- Choose which measurement you know: side length, perimeter, area, apothem, or circumradius.
- Type its value and pick your unit.
- Press Calculate. You’ll see the shape drawn to scale and every other measurement.
- Open “Show step-by-step working” to see each formula with your numbers.
The Formulas Behind the Calculator
Every formula uses the angle 180° ÷ n (half of the angle each side makes at the center).
Area from the side length
Area = n × s² ÷ (4 × tan(180° ÷ n))
An equivalent and easy-to-remember version is Area = ½ × Perimeter × Apothem, because the polygon splits into n triangles, each with base s and height r.
Apothem and circumradius
Apothem r = s ÷ (2 × tan(180° ÷ n))
Circumradius R = s ÷ (2 × sin(180° ÷ n))
Working back to the side length
If you know something other than the side, the calculator finds the side first:
| You know | Side length s = |
|---|---|
| Perimeter P | P ÷ n |
| Apothem r | 2 × r × tan(180° ÷ n) |
| Circumradius R | 2 × R × sin(180° ÷ n) |
| Area A | √(4 × A × tan(180° ÷ n) ÷ n) |
Angles
Exterior angle = 360° ÷ n and Interior angle = 180° − Exterior angle. The interior angles add up to (n − 2) × 180°.
Worked Example 1: A Hexagon With 10 ft Sides
A regular hexagon has 6 sides of 10 ft each. With 180° ÷ 6 = 30°, tan(30°) = 0.57735 and sin(30°) = 0.5.
- Perimeter = 6 × 10 = 60 ft
- Apothem = 10 ÷ (2 × 0.57735) = 8.6603 ft
- Circumradius = 10 ÷ (2 × 0.5) = 10 ft (in a regular hexagon, the circumradius always equals the side)
- Area = 6 × 10² ÷ (4 × 0.57735) = 259.81 sq ft
- Check: ½ × 60 × 8.6603 = 259.81 sq ft ✓
These are the numbers behind the “Try an example” button.
Worked Example 2: An Octagonal Gazebo Floor
A gazebo has a regular octagon floor with 5 ft sides.
- Area = 8 × 5² ÷ (4 × tan(22.5°)) = 200 ÷ (4 × 0.41421) = 120.71 sq ft
- Perimeter = 8 × 5 = 40 ft of railing
- Apothem = 6.04 ft, so the floor is about 12.07 ft across from flat side to flat side
- Circumradius = 6.53 ft, so it’s about 13.07 ft from corner to opposite corner
- Each interior angle = 135°, the angle to cut where boards meet at each corner
Worked Example 3: A Pentagon From Its Circumradius
A pentagon is drawn inside a circle with a 4 m radius, so its circumradius is 4 m.
- Side = 2 × 4 × sin(36°) = 2 × 4 × 0.58779 = 4.7023 m
- Perimeter = 5 × 4.7023 = 23.51 m
- Apothem = 3.2361 m
- Area = 38.04 m²
Worked Example 4: Working Back From the Area
You want a hexagonal patio with an area of exactly 100 sq ft. How long should each side be?
- Side = √(4 × 100 × tan(30°) ÷ 6) = √(4 × 100 × 0.57735 ÷ 6) = 6.20 ft
- Perimeter = 6 × 6.20 = 37.22 ft of edging
Quick Multipliers for Common Regular Polygons
For a side length s, multiply by these numbers to get each measurement fast:
| Polygon | Sides | Area = s² × | Apothem = s × | Circumradius = s × | Interior angle |
|---|---|---|---|---|---|
| Equilateral triangle | 3 | 0.4330 | 0.2887 | 0.5774 | 60° |
| Square | 4 | 1 | 0.5 | 0.7071 | 90° |
| Pentagon | 5 | 1.7205 | 0.6882 | 0.8507 | 108° |
| Hexagon | 6 | 2.5981 | 0.8660 | 1 | 120° |
| Heptagon | 7 | 3.6339 | 1.0383 | 1.1524 | 128.57° |
| Octagon | 8 | 4.8284 | 1.2071 | 1.3066 | 135° |
| Nonagon | 9 | 6.1818 | 1.3737 | 1.4619 | 140° |
| Decagon | 10 | 7.6942 | 1.5388 | 1.6180 | 144° |
| Dodecagon | 12 | 11.1962 | 1.8660 | 1.9319 | 150° |
For example, a regular octagon with 5 ft sides has an area of 4.8284 × 25 = 120.71 sq ft.
Where Regular Polygons Show Up
- Gazebos and decks: octagonal and hexagonal floors and roofs
- Patios and pavers: hexagonal tiles that fit together with no gaps
- Signs: the octagonal stop sign and triangular warning signs
- Nuts and bolts: hexagonal heads that a wrench can grip from six sides
- Nature: honeycomb cells and many crystal shapes
Tips and Common Mistakes
- Check that the shape really is regular. If the sides or angles differ, use our irregular polygon tools instead.
- Don’t mix up the apothem and the circumradius. The apothem goes to the middle of a side; the circumradius goes to a corner, and it’s always longer.
- Measure “across flats” vs “across corners”. For an even number of sides, the distance across flats is 2 × apothem, and the distance across corners is 2 × circumradius.
- Keep your units consistent. The area comes out in square units of whatever length unit you use.
Related Calculators
- Polygon Interior Angle Calculator: angles for any polygon, regular or irregular
- Irregular Polygon Area Calculator: area from corner coordinates
- Irregular Hexagon Area Calculator and Irregular Octagon Area Calculator
- Regular vs Irregular Shapes: a guide to the difference

2 Comments