Regular Polygon Calculator — Any N-gon (3–20 Sides)

Calculate area, perimeter, apothem, circumradius, inradius, interior angle, exterior angle, and diagonals for any regular polygon from 3 to 20 sides. Comparison table of all shapes included.

cm
Planning notes, formulas, and examples

About the Regular Polygon Calculator — Any N-gon (3–20 Sides)

A regular polygon is a polygon where all sides have equal length and all interior angles are equal. Examples range from the familiar equilateral triangle (3 sides) through the square (4), pentagon (5), hexagon (6), and on to dodecagons (12), icosagons (20), and beyond. As the number of sides increases, a regular polygon approaches a circle.

The key measurements of a regular n-gon with side length s are all derivable from n and s. The apothem (distance from center to midpoint of a side) is a = s / (2 tan(π/n)). The circumradius (center to vertex) is R = s / (2 sin(π/n)). The area is A = (n × s × a) / 2 = (n × s²) / (4 tan(π/n)). The perimeter is simply P = n × s.

Interior angles of a regular n-gon are each (n−2) × 180° / n, and exterior angles are 360° / n. The number of diagonals is n(n−3)/2 — a pentagon has 5, a hexagon has 9, a decagon has 35.

Regular polygons are fundamental in tiling and tessellation (only triangles, squares, and hexagons tile the plane), architecture (the Pentagon building), engineering (hex bolts, stop signs), nature (honeycombs, snowflake symmetry), and game design (dice shapes, hex grids).

This calculator works for any regular polygon from 3 to 20 sides. Enter the number of sides and the side length, and it computes every geometric property. A comparison table shows how these properties change as n increases, illustrating the convergence toward a circle.

When This Page Helps

This calculator is useful when you want to explore how one side length and one side count determine an entire family of regular-polygon measurements. Instead of working through trigonometric formulas separately for apothem, circumradius, area, and angles, you can change n or the side length once and see every property update together. That makes it practical for classroom geometry, layout work, game-board design, signage, tiling studies, and any project where symmetry and equal sides matter.

How to Use the Inputs

  1. Select the number of sides (3–20) using the dropdown or slider.
  2. Enter the side length in your preferred unit.
  3. Select a measurement unit (mm, cm, in, m, ft).
  4. Or click a preset to load a common polygon shape.
  5. View area, perimeter, apothem, circumradius, angles, and diagonal count.
  6. Scroll to the comparison table to see all regular polygons from 3 to 12 sides.
  7. Observe how polygons approach a circle as n increases.
Formula used
Interior Angle: (n−2) × 180° / n Exterior Angle: 360° / n Apothem: a = s / (2·tan(π/n)) Circumradius: R = s / (2·sin(π/n)) Perimeter: P = n × s Area: A = (n × s²) / (4·tan(π/n)) = ½ × P × a Diagonals: n(n−3)/2

Example Calculation

Result: Area ≈ 259.81 cm², Perimeter = 60 cm, Apothem ≈ 8.66 cm, Circumradius = 10 cm

For a regular hexagon with side length 10 cm, the perimeter is 6 × 10 = 60 cm. The apothem is 10 ÷ (2 tan(30°)) ≈ 8.66 cm, and the circumradius is 10 ÷ (2 sin(30°)) = 10 cm. Using A = 1/2 × perimeter × apothem gives an area of about 259.81 cm², while each interior angle is 120°.

Tips & Best Practices

  • A regular hexagon has circumradius = side length. This makes hexagonal grids very efficient.
  • Only 3 regular polygons tile the plane alone: triangle, square, hexagon.
  • As n → ∞, the regular polygon approaches a circle. At n = 20, the shape is already very close.
  • The sum of exterior angles of any convex polygon is always 360°, regardless of n.
  • Regular polygons appear on coins: 50p (UK) is a 7-sided polygon, the Euro 20-cent coin is 7-sided.

One Shape, Many Connected Measurements

A regular polygon is a good example of how symmetry reduces complexity. Once the side count and side length are known, every other major property follows from the same center-based geometry. The apothem, circumradius, central angle, interior angle, and area are all connected through congruent isosceles triangles formed by joining the center to adjacent vertices. This calculator exposes those relationships directly, which makes it easier to see the structure behind the formulas instead of treating each result as unrelated.

Watching Polygons Approach a Circle

As the number of sides increases, a regular polygon more closely approximates its circumscribed circle. The comparison table and circle-fill output make that idea concrete. A triangle leaves a lot of unused circle area, a hexagon already fits much more tightly, and a 20-gon is visually close to circular. That progression matters in numerical methods, design approximations, and geometry lessons that connect polygons to limits, trigonometry, and the geometry of circles.

Where Regular Polygons Show Up

Regular polygons appear in floor tiling, fastener heads, road signs, decorative patterns, board-game grids, and architectural motifs. Designers care about perimeter and area, fabricators may care about across-corner size through the circumradius, and students often need angle and diagonal counts for proofs or problem sets. Because the calculator handles every regular n-gon from 3 to 20 sides, it also works as a fast comparison tool when deciding which polygon best fits a visual or structural requirement.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Interior angle = (n−2) × 180° / n, where n is the number of sides. A hexagon has 120°, an octagon has 135°.