🧮
🧮 Math & statistics

Regular Polygon Calculator

Results update as you type.

Your numbers

Understanding the regular polygon calculator — concept and principle

A regular polygon has all sides equal and all interior angles equal: the equilateral triangle, the square, the regular pentagon, the hexagon and so on. Knowing just the number of sides n and the side length s fixes the whole shape, so this calculator returns the area, perimeter, interior angle, apothem (centre-to-side distance), circumradius (centre-to-vertex distance) and number of diagonals. It is used for tiles, bolt heads, gazebos and signs.

Regular hexagon of side 4 split into six trianglesA regular hexagon with side 4 splits into six equal triangles. Each has base 4 and height 3.46 (the apothem). Area = ½ × perimeter 24 × 3.46 ≈ 41.57; interior angle 120°; 9 diagonals; circumradius 4.A honeycomb cell: 6 equal triangles3.46R = 4s = 4120°perimeter 6 × 4= 24apothem 4 ÷ 2tan30°≈ 3.46area ½ × 24 × 3.46≈ 41.57angle · diagonals120° · 9one triangle: ½ × 4 × 3.46 ≈ 6.93
Area = ½ × perimeter × apothem, the six triangles added up.

How it is calculated

Lengths share the unit of s; the area is in that unit squared.

The principle

Join the centre to every vertex and the polygon splits into n identical isosceles triangles, each with base s and apex angle 2π/n. Cutting one in half gives a right triangle with half-angle π/n, opposite side s/2, adjacent side the apothem and hypotenuse the circumradius. So tan(π/n) = (s/2)/a and sin(π/n) = (s/2)/R, which give the two radius formulas. Each small triangle has area ½ × s × a, and there are n of them, so the area is ½ × ns × a. The interior angle sum (n − 2) × 180° comes from splitting the polygon into n − 2 triangles from one vertex. Each vertex can connect to n − 3 non-adjacent vertices, and each diagonal is counted twice, hence n(n − 3)/2.

Worked example

  1. Inputs: n = 6 (hexagon), s = 4; π/6 = 30°.
  2. Perimeter: 6 × 4 = 24.
  3. Interior angle: 4 × 180 ÷ 6 = 120°.
  4. Apothem: 4 ÷ (2 tan 30°) = 4 ÷ 1.154701 ≈ 3.464101615 (that is 2√3).
  5. Circumradius: 4 ÷ (2 sin 30°) = 4 ÷ 1 = 4.
  6. Area: ½ × 24 × 3.464102 ≈ 41.56921938 (24√3); diagonals: 6 × 3 ÷ 2 = 9.
How Area changes with Number of sidesHow Area changes with Number of sides-500501001502001.534.567.5912Example: 41.56921938Number of sides
Each point is the calculator re-run with only “Number of sides” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Number of sidesArea
1.5-3.464101615
36.92820323
4.521.45156467
641.56921938
7.567.38110322
998.9091871
12179.1384388

How to read the result

For a hexagon the circumradius equals the side, because the six central triangles are equilateral. As n grows, the polygon approaches a circle: the apothem and circumradius get closer together and the area approaches πR². Only triangles, squares and hexagons tile a flat floor on their own, since only 60°, 90° and 120° divide 360° exactly.

Common mistakes

Keep in mind: Results assume an exact regular shape. Cut or cast parts have tolerances and thickness, so manufacturing and construction work should follow the relevant standards and be checked by a qualified professional.

Frequently asked questions

What is the sum of the interior angles of a polygon?

(n − 2) × 180°, whether or not the polygon is regular. A pentagon’s angles sum to 540°.

What is the exterior angle of a regular polygon?

360° ÷ n. It always equals 180° minus the interior angle; for a hexagon, 60°.

How do I get the side length from the circumradius?

s = 2R sin(π/n). A pentagon inscribed in a circle of radius 10 has s ≈ 11.76.

Sources: Euclid, Elements, Book IV (inscribing and circumscribing regular polygons) · H. S. M. Coxeter, Regular Polytopes, Dover

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →