Math

Regular polygon calculator

A regular polygon has all sides equal and all angles equal. Enter the number of sides and any one measurement (side, apothem, circumradius, area or perimeter) and the regular polygon calculator solves the rest: area, perimeter, apothem, circumradius, interior and exterior angles, the angle sum and the number of diagonals.

Runs in your browser. Nothing you type is sent to us.

Area

90.847811

Regular heptagon: A = n s² ÷ (4 tan(180° ÷ n))

Side
5
Perimeter
35
Apothem
5.191303
Circumradius
5.761912
Interior angle
128.5714°
Exterior angle
51.4286°
Sum of interior angles
900°
Number of diagonals
14

Diagonal lengths

DiagonalLength× side
Skips 2 vertices9.0096891.8019
Skips 3 vertices11.2348982.247

Key facts

  • Area of a regular polygon: A = n s² ÷ (4 tan(180° ÷ n)), or A = ½ × perimeter × apothem.
  • A regular heptagon (7 sides) with side 5 has area ≈ 90.848, apothem ≈ 5.191 and circumradius ≈ 5.762.
  • Interior angle = (n − 2) × 180° ÷ n; exterior angle = 360° ÷ n.
  • Number of diagonals = n(n − 3) ÷ 2, so a heptagon has 14.
  • As n grows, a regular polygon approaches a circle: its area approaches πR².

The key measurements

  • Side (s): the length of each edge.
  • Apothem (a): the distance from the centre to the middle of a side, the radius of the inscribed circle.
  • Circumradius (R): the distance from the centre to a corner, the radius of the circumscribed circle.

Splitting the polygon into n identical isosceles triangles from the centre ties them together. Each triangle has base s and height a, and its apex angle is 360° ÷ n.

Formulas for regular polygons

a = s ÷ (2 tan(180° ÷ n)), R = s ÷ (2 sin(180° ÷ n))
A = ½ × n × s × a = n s² ÷ (4 tan(180° ÷ n))
Interior angle = (n − 2) × 180° ÷ n, Exterior angle = 360° ÷ n
Diagonals = n(n − 3) ÷ 2

How to use the regular polygon calculator

  1. Enter the number of sides, from 3 up to 1,000.
  2. Choose which measurement you know and enter it.
  3. Read the area, perimeter, apothem, circumradius, angles and diagonal count.

Worked examples: regular polygons

Example 1: a heptagon from its side

n = 7, s = 5. The apothem is 5 ÷ (2 tan 25.714°) ≈ 5.191, so A = ½ × 35 × 5.191 ≈ 90.848. The interior angle is 900° ÷ 7 ≈ 128.57°, and there are 7 × 4 ÷ 2 = 14 diagonals.

Example 2: a hexagon from its circumradius

A hexagon inscribed in a circle of radius 2 has sides equal to the radius, 2. Its area is (3√3 ÷ 2) × 4 ≈ 10.392.

Example 3: an octagon from its apothem

An octagon with apothem 5 (10 across the flats) has side 10 ÷ (1 + √2) ≈ 4.142 and area ≈ 82.84.

Example 4: a dodecagon gazebo

A 12-sided gazebo floor with sides of 1.2 m has apothem ≈ 2.239 m and area ≈ 16.12 m².

Common regular polygons

nNameInterior angleArea for side s
3Equilateral triangle60°0.4330 s²
4Square90°s²
5Pentagon108°1.7205 s²
6Hexagon120°2.5981 s²
7Heptagon128.57°3.6339 s²
8Octagon135°4.8284 s²
9Nonagon140°6.1818 s²
10Decagon144°7.6942 s²
12Dodecagon150°11.1962 s²

Polygons and circles

Every regular polygon sits between two circles: the inscribed circle of radius a and the circumscribed circle of radius R. With more sides, the two radii get closer and the area gets closer to πR². Archimedes used polygons with 96 sides to show that π lies between 3 10/71 and 3 1/7.

Exterior angles always add to 360°

Walk around any convex polygon and you turn a full circle. For a regular polygon each turn is the same, 360° ÷ n. That gives a quick check: an interior angle of 150° means an exterior angle of 30°, so the polygon has 12 sides.

Pitfalls with regular polygons

  • Mixing up apothem (to the middle of a side) and circumradius (to a corner).
  • Using radians in the tangent when your calculator is set to degrees, or the other way round.
  • Assuming an irregular shape follows these formulas. They only hold when every side and angle is equal.

For specific shapes, see the pentagon calculator, hexagon calculator and octagon calculator. The perimeter calculator and area calculator cover other shapes.

Regular polygons, Gauss and the 17-gon

Regular polygons have equal sides and equal angles, and which of them can be drawn with only a compass and straightedge is one of the great stories in mathematics. The Greeks could construct triangles, squares, pentagons and their doubles. In 1796, at age 18, Carl Friedrich Gauss showed how to construct a regular 17-gon, the first new constructible polygon in 2,000 years, and he asked for one to be carved on his tombstone. The Gauss–Wantzel theorem (completed by Pierre Wantzel in 1837) says a regular n-gon is constructible exactly when n is a power of 2 times distinct Fermat primes (3, 5, 17, 257, 65,537).

Regular polygons were also the first route to π: Archimedes trapped a circle between 96-sided polygons to show π is between 3 10/71 and 3 1/7. Only three regular polygons tile the plane on their own: triangles, squares and hexagons. The apothem, the distance from the centre to the middle of a side, gives the easy area formula A = ½ × perimeter × apothem. Coins such as the British 50p (a seven-sided curve of constant width) and many nuts, bolts and floor tiles use regular shapes. For specific shapes, use the pentagon calculator, the hexagon calculator or the octagon calculator; for circles, the limit of polygons, the circle calculator.

How this calculator works

  • Area A = n × s² ÷ (4 tan(180° ÷ n)) = ½ × perimeter × apothem.
  • Apothem = s ÷ (2 tan(180° ÷ n)); circumradius = s ÷ (2 sin(180° ÷ n)).
  • From any one measurement (side, apothem, circumradius, area or perimeter), finds the rest, plus the interior and exterior angles, angle sum and number of diagonals.
  • Works for any n from 3 to 1,000 sides.

Frequently asked questions

How do you find the area of a regular polygon?

A = ½ × perimeter × apothem, or A = n s² ÷ (4 tan(180° ÷ n)) from the side length.

What is an apothem?

The distance from the centre of a regular polygon to the midpoint of a side. It is the radius of the inscribed circle.

How do I find the interior angle of a regular polygon?

(n − 2) × 180° ÷ n. A hexagon has (4 × 180°) ÷ 6 = 120°.

What is the sum of the interior angles?

(n − 2) × 180°. For a heptagon that is 900°.

How many diagonals does a polygon have?

n(n − 3) ÷ 2. A hexagon has 9 and an octagon has 20.

What is the circumradius?

The distance from the centre to any corner, the radius of the circle that passes through all the vertices.

How do I find the number of sides from an angle?

Divide 360° by the exterior angle. An interior angle of 140° means an exterior angle of 40°, so n = 9.

What happens as the number of sides increases?

The polygon looks more and more like a circle, and its area approaches π times the circumradius squared.

Sources

  1. Wolfram MathWorld: Regular polygon
  2. Math is Fun: Regular polygons
  3. Math is Fun: Interior angles of polygons

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "Regular polygon calculator." calcroster.com/regular-polygon-calculator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.