Regular polygon calculator

Enter the number of sides, choose which measurement you know (side length, circumradius, apothem, area or perimeter) and type its value. The calculator works out every other measurement of the regular polygon in the same unit.

Area259.8076
Side length
10
Perimeter
60
Apothem (inradius)
8.6603
Circumradius
10
Interior angle
120 °
Exterior angle
60 °
Number of diagonals
9

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter the number of sides: 5 for a pentagon, 6 for a hexagon, 8 for an octagon, and so on.
  2. Choose what you know: the side length, the circumradius (center to a corner), the apothem (center to the middle of a side), the area or the perimeter.
  3. Enter the value. Lengths come out in the same unit, the area in that unit squared.

Formulas

For n sides of length s, with t = 180°/n:

  • Apothem: a = s / (2 tan t)
  • Circumradius: R = s / (2 sin t)
  • Area: A = n·s·a / 2 = n·s² / (4 tan t)
  • Perimeter: P = n·s
  • Interior angle: (n − 2)·180° / n; exterior angle: 360° / n
  • Diagonals: n(n − 3) / 2

From R the side is 2R sin t, from the apothem 2a tan t, from the area √(4A tan t / n).

Worked example

A regular hexagon with side 10: t = 30°, tan 30° = 0.57735. The apothem is 10 / (2 × 0.57735) = 8.6603, the circumradius 10 / (2 × 0.5) = 10, and the area 6 × 10 × 8.6603 / 2 = 259.8076. The perimeter is 60, each interior angle 120°, each exterior angle 60°, and there are 9 diagonals.

Tips

  • Hexagon shortcut: the circumradius equals the side, and the area is 3√3/2 × s².
  • Square check: with n = 4 and side 2 you get area 4 and apothem 1, a quick way to see the tool works as expected.
  • Many sides: as n grows the polygon approaches its circumcircle; with n = 1000 the area is within 0.001 % of πR².

Frequently asked questions

What is the formula for the area of a regular polygon?

Area = n × s² / (4 × tan(180°/n)) for n sides of length s. Equivalently, area = perimeter × apothem / 2. A regular hexagon with side 10 has area 259.8076.

What is the apothem?

The apothem is the distance from the center to the middle of a side, which is also the radius of the inscribed circle: a = s / (2 tan(180°/n)). For a hexagon it is s × √3/2.

How do I find the interior angle of a polygon?

Each interior angle of a regular n-gon is (n − 2) × 180° / n: 108° for a pentagon, 120° for a hexagon, 135° for an octagon. The exterior angle is 360° / n.

How many diagonals does a polygon have?

n(n − 3)/2. A pentagon has 5, a hexagon 9, an octagon 20 and a decagon 35.

More in Math

All tools in this category: Math ·Updated November 7, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.