Free online formula calculators

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.

Regular Polygon Calculator
Result
Area41.5692 sq units
Perimeter24
Interior angle120.00 °
Exterior angle60.00 °
Apothem (inradius)3.4641
Circumradius4

Link to this calculation

Formula

A = n × s2 ÷ (4 tan(π ÷ n))
Interior angle = (n − 2) × 180° ÷ n
Apothem = s ÷ (2 tan(π ÷ n))   R = s ÷ (2 sin(π ÷ n))
SymbolMeaning
nNumber of sides (3 or more)
sLength of each side
ApothemDistance from the center to the middle of a side
RCircumradius: distance from the center to a vertex

How to Use This Calculator

  1. Enter the Number of sides (n).
  2. Enter the Side length (s).
  3. Press Calculate. Results also update automatically as you type.

Worked Example

Using the values pre-filled in the calculator above:

Inputs
Number of sides (n)6
Side length (s)4
Results
Area41.5692 sq units
Perimeter24
Interior angle120.00 °
Exterior angle60.00 °
Apothem (inradius)3.4641
Circumradius4

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.

Category: Geometry. Found a problem with this calculator? Let us know.