Regular Polygon Calculator
Enter the number of sides and the side length of a regular polygon — a hexagon, octagon or any other — to get its area, angles and radii.
| Area | 41.5692 sq units |
|---|---|
| Perimeter | 24 |
| Interior angle | 120.00 ° |
| Exterior angle | 60.00 ° |
| Apothem (inradius) | 3.4641 |
| Circumradius | 4 |
Link to this calculation – copied!
Formula
Interior angle = (n − 2) × 180° ÷ n
Apothem = s ÷ (2 tan(π ÷ n)) R = s ÷ (2 sin(π ÷ n))
| Symbol | Meaning |
|---|---|
| n | Number of sides (3 or more) |
| s | Length of each side |
| Apothem | Distance from the center to the middle of a side |
| R | Circumradius: distance from the center to a vertex |
How to Use This Calculator
- Enter the Number of sides (n).
- Enter the Side length (s).
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Number of sides (n) | 6 |
|---|---|
| Side length (s) | 4 |
| Area | 41.5692 sq units |
|---|---|
| Perimeter | 24 |
| Interior angle | 120.00 ° |
| Exterior angle | 60.00 ° |
| Apothem (inradius) | 3.4641 |
| Circumradius | 4 |
About This Calculation
A regular polygon has all sides equal and all angles equal: the equilateral triangle, the square, the regular pentagon, hexagon, octagon and so on. Because of this symmetry, the number of sides and one side length determine everything else. The shape can be split into n identical isosceles triangles meeting at the center, each with a base equal to the side and a height equal to the apothem, so the area is half the perimeter times the apothem.
The interior angles of any polygon add up to (n − 2) × 180°, so in a regular one each angle is that total divided by n — 120° for a hexagon and 135° for an octagon. The exterior angles always total 360°. As n grows, the polygon looks more and more like a circle, and the apothem and circumradius converge. Only three regular polygons tile a flat surface on their own — triangles, squares and hexagons — because their interior angles divide evenly into 360°.
This calculator is handy for building hexagonal or octagonal gazebos, decks and planters (the interior angle tells you the miter cut: half the exterior angle on each piece), laying out stop signs and nuts, and estimating the area of a gazebo floor. The circumradius tells you the diameter of circle needed to cut the shape from round stock.
Frequently Asked Questions
- What is the miter angle for an octagon frame?
- Each joint turns by the exterior angle, 45°, which is shared between two pieces, so cut each end at 22.5°. In general the cut is 180° ÷ n.
- What is the difference between the apothem and the circumradius?
- The apothem goes from the center to the midpoint of a side (the radius of the inscribed circle); the circumradius goes to a corner (the radius of the circumscribed circle). The circumradius is always the longer of the two.