Regular Polygon Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter how many sides a regular polygon has and the length of one side to get all its measurements.
Result
Area (square units)
Perimeter (length units)
- Apothem: center to the middle of a side (length units)
- Circumradius: center to a corner (length units)
- Interior angle (degrees)
- Exterior angle (degrees)
- Number of diagonals
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of sides (3 or more): enter 3 or more.
- Side length (length units): enter 0 or more.
- Read the result: Area (square units); the panel also shows Perimeter (length units), Apothem: center to the middle of a side (length units), Circumradius: center to a corner (length units), Interior angle (degrees), Exterior angle (degrees) and Number of diagonals.
How this calculator works
For n equal sides of length s: area = n s² ÷ (4 tan(π/n)), which is also ½ × perimeter × apothem. Apothem a = s ÷ (2 tan(π/n)); circumradius R = s ÷ (2 sin(π/n)).
Each interior angle is (n − 2) × 180° ÷ n and each exterior angle 360° ÷ n. A polygon with n vertices has n(n − 3) ÷ 2 diagonals.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Number of sides (3 or more) | ||
| Side length | length units | |
| Area | square units |
Worked example
| Number of sides (3 or more) | 6 |
|---|---|
| Side length (length units) | 2 |
| Perimeter (length units) | 12 |
|---|---|
| Apothem: center to the middle of a side (length units) | 1.7321 |
| Circumradius: center to a corner (length units) | 2 |
| Interior angle (degrees) | 120 |
| Exterior angle (degrees) | 60 |
| Number of diagonals | 9 |
Area (square units) 10.3923
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the area of a regular hexagon with 2-unit sides?
6 × 2² ÷ (4 tan 30°) ≈ 10.3923 square units. Its interior angles are 120° and it has 9 diagonals.
What are the interior angles of a regular pentagon?
(5 − 2) × 180° ÷ 5 = 108° each.