Skip to content
The Calculatorz
Geometry

Regular Polygon Calculator

Calculate the area, perimeter, interior and exterior angles, apothem, circumradius and diagonals of any regular polygon.

Polygon details

Polygon

How to use this calculator

Enter the number of sides and one measurement: the side length, the circumradius or the apothem. A regular polygon has all sides and all angles equal, such as an equilateral triangle, square, regular pentagon or hexagon. The calculator returns every other measurement and the polygon's name.

Formula

With n sides and side s: perimeter = ns; apothem a = s ÷ (2 tan(π/n)); circumradius R = s ÷ (2 sin(π/n)); area = n s a ÷ 2. Interior angle = (n − 2) × 180° ÷ n; exterior angle = 360° ÷ n; sum of interior angles = (n − 2) × 180°; diagonals = n(n − 3) ÷ 2.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is a regular polygon?

A polygon whose sides are all the same length and whose angles are all equal, such as a square or an equilateral triangle.

What is an apothem?

The apothem is the distance from the centre to the midpoint of any side. It is the height of each of the n triangles that make up the polygon.

How do I find the interior angle?

Use (n − 2) × 180° ÷ n. A regular pentagon has interior angles of 108° and an octagon has 135°.

Why do exterior angles add up to 360°?

Walking around the polygon you turn a full circle, so the exterior angles of any convex polygon sum to 360°.

How many diagonals does a polygon have?

n(n − 3) ÷ 2. A hexagon has 9 and a decagon has 35.

Does this work for irregular polygons?

No. Irregular polygons need each side and angle, or the coordinates of the corners.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Kirk, D. (2023). Contemporary mathematics. OpenStax. View source
  2. Abramson, J. (2021). Precalculus 2e. OpenStax. View source
  3. Olver, F. W. J., Lozier, D. W., Boisvert, R. F., & Clark, C. W. (Eds.). (2024). NIST Digital Library of Mathematical Functions. National Institute of Standards and Technology. View source
  4. International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source