Regular polygons (equal sides and equal angles) include the equilateral triangle, square, hexagon and stop-sign octagon. As n grows they approach a circle, which is how Archimedes estimated π.
How to use the Regular Polygon Calculator
- Number of sides n
- Side a
- Every result field is editable: type into Area or any other result and Side a plus every other field update to match.
Results update as you type, and everything is calculated in your browser.
How it works
Enter n and the side, or type into the perimeter, area, circumradius or inradius to find the side. The angles depend only on n.
Inputs explained
| Field | What to enter |
|---|---|
| Number of sides n | A number |
| Side a | Units: cm, m, mm, in, ft, yd … |
What each result means
- Area = [Number of sides n]×[Side a]^2÷(4×tan(pi÷[Number of sides n]))
- Perimeter = [Number of sides n]×[Side a]
- Circumradius = [Side a]÷(2×sin(pi÷[Number of sides n]))
- Inradius (apothem) = [Side a]÷(2×tan(pi÷[Number of sides n]))
- Interior angle = ([Number of sides n] – 2)×180÷[Number of sides n]
- Exterior angle = 360÷[Number of sides n]
- Central angle = 360÷[Number of sides n]
- Number of diagonals = [Number of sides n]×([Number of sides n] – 3)÷2
Example values
How the main result changes when Side a changes and everything else stays at the example values above:
| Side a (cm) | Area (cm²) |
|---|---|
| 2.5 | 16.238 |
| 3.75 | 36.5354 |
| 5 | 64.9519 |
| 6.25 | 101.4874 |
| 7.5 | 146.1418 |
| 10 | 259.8076 |
Formula
P = n·a, A = n·a²/(4 tan(π/n)), R = a/(2 sin(π/n)), r = a/(2 tan(π/n))
Interior angle = (n − 2)·180°/n, central angle = 360°/n
Worked example
Inputs: Number of sides n: 6; Side a: 5 cm.
Results: Area = 64.951905 cm²; Perimeter = 30 cm; Circumradius = 5 cm; Inradius (apothem) = 4.330127 cm; Interior angle = 120 °; Exterior angle = 60 °; Central angle = 60 °; Number of diagonals = 9.
Key terms
- Apothem
- The inradius of a regular polygon.
Frequently asked questions
What is the sum of interior angles?
(n − 2) × 180°.
How many diagonals does an n-gon have?
n(n − 3)/2.
What does a polygon with many sides look like?
Almost a circle, and its area approaches πR².
Which regular polygons tile the plane?
Only triangles, squares and hexagons.