What does this calculator do?
A regular polygon has all sides and all angles equal, so two numbers — how many sides and how long each is — determine everything: perimeter, interior and exterior angles, the apothem (centre-to-edge distance) and the area. n must be a whole number of at least 3. Use any length unit — as long as every input uses the same one, the results come out in that unit (areas in that unit squared).
Formula
The area is perimeter × apothem ÷ 2; the angles depend only on n:
P = n × s Interior sum = (n − 2) × 180° Each interior = (n − 2) × 180° ÷ n Each exterior = 360° ÷ n apothem = s ÷ (2 tan(π/n)) A = P × apothem ÷ 2 = n s² ÷ (4 tan(π/n))
How to use it
Enter the number of sides (a whole number, 3 or more) and the side length. n = 3 gives an equilateral triangle, 4 a square, 5 a pentagon, 6 a hexagon, and so on.
Worked example
A hexagon (n = 6) with side 4: perimeter = 24, interior angle = 120°, exterior angle = 60°, angle sum = 720°, apothem = 3.4641, area = 41.5692.
Frequently asked questions
What is the apothem?
The perpendicular distance from the centre to the middle of a side — the radius of the inscribed circle. It is what makes the simple area formula P × apothem ÷ 2 work.
Why do the exterior angles always sum to 360°?
Walking once around any convex polygon you turn through one full revolution. For a regular polygon that turn is split equally, so each exterior angle is 360° ÷ n.
Does this work for irregular polygons?
No — the formulas rely on all sides and angles being equal. An irregular polygon needs its vertex coordinates; only the angle-sum formula (n − 2) × 180° still applies.
Sources
- Standard polygon geometry (area, perimeter and diagonal formulas for rectangles, squares and trapezoids; interior/exterior angles, apothem and area of regular polygons). The exact formula is shown on every page.
- OpenStax — Contemporary Mathematics (chapter on area, perimeter and polygons)
- Khan Academy — Area and perimeter (accessible explainer, not the primary source)
- Reviewed: 2026-07-31
Related calculators
Last updated: 2026-07-31 · v1.0.0 · Report an error