Regular Polygon Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free regular polygon calculator. Enter the number of sides and the side, apothem, radius or area to get every measurement, from hexagons to 1,000-gons.

Side
0
Perimeter
0
Apothem
0
Circumradius
0
Interior angle
0
Exterior angle
0
Diagonals
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the regular polygon calculator

  1. Enter the number of sides, 3 or more.
  2. Choose what you know: the side length, the apothem (inradius), the circumradius, or the area.
  3. Enter that value.

The regular polygon calculator shows the area, side length, perimeter, apothem, circumradius, interior and exterior angles, and the number of diagonals.

What is a regular polygon?

A polygon is a flat shape with straight sides. A regular polygon has all sides the same length and all angles the same size. The equilateral triangle, the square, the regular pentagon, hexagon and octagon are all regular polygons. Regular polygons appear everywhere: honeycombs and floor tiles use hexagons, stop signs are octagons, nuts and bolts are often hexagonal, and many buildings, gazebos and garden beds are based on regular shapes.

Every regular polygon fits exactly inside a circle that passes through all its corners (the circumscribed circle) and around a circle that touches the middle of every side (the inscribed circle). Those circles give two key measurements:

  • The circumradius R: the distance from the centre to a corner.
  • The apothem a: the distance from the centre to the middle of a side, also called the inradius.

The formulas

For a regular polygon with n sides of length s:

  • Perimeter = n × s
  • Apothem = s ÷ (2 tan(π ÷ n))
  • Circumradius = s ÷ (2 sin(π ÷ n))
  • Area = n × s² ÷ (4 tan(π ÷ n)), which is the same as ½ × perimeter × apothem
  • Interior angle = (n − 2) × 180° ÷ n
  • Exterior angle = 360° ÷ n
  • Number of diagonals = n(n − 3) ÷ 2

The area formula comes from dividing the polygon into n identical triangles, each with a base of s and a height equal to the apothem.

If you know the apothem, the circumradius or the area instead of the side, the regular polygon calculator rearranges these formulas to find the side first.

A worked example: a hexagon

A regular hexagon has sides of 10 cm.

  1. Perimeter: 6 × 10 = 60 cm.
  2. Apothem: 10 ÷ (2 tan 30°) ≈ 8.660 cm.
  3. Circumradius: 10 ÷ (2 sin 30°) = 10 cm. In a regular hexagon, the circumradius always equals the side length, because the hexagon is made of six equilateral triangles.
  4. Area: ½ × 60 × 8.660 ≈ 259.81 cm².
  5. Interior angle: 4 × 180° ÷ 6 = 120°.
  6. Diagonals: 6 × 3 ÷ 2 = 9.

Enter 6 sides and a side length of 10 in the regular polygon calculator to check.

A worked example: an octagon

You're building an octagonal gazebo floor with sides of 5 feet.

  1. Perimeter: 8 × 5 = 40 ft.
  2. Area: 8 × 25 ÷ (4 tan 22.5°) ≈ 120.71 sq ft.
  3. Circumradius: about 6.533 ft, the distance from the centre to each corner post.
  4. Apothem: about 6.036 ft, half the distance across the flats.
  5. Interior angle: 135°, so the boards meeting at each corner are cut at 22.5° each.

The distance across the flats is twice the apothem, about 12.07 ft, and across the corners twice the circumradius, about 13.07 ft.

Working back from the area

If you need a regular pentagon with an area of 100 square units, choose 5 sides, select "area" and enter 100. The regular polygon calculator gives a side length of about 7.624, an apothem of about 5.247 and a circumradius of about 6.485. This is useful for design work where the area is fixed and you need the dimensions.

Interior and exterior angles

The interior angles of any polygon with n sides add up to (n − 2) × 180°, because it can be divided into n − 2 triangles. In a regular polygon they're all equal, so each is (n − 2) × 180° ÷ n. The exterior angles always add up to 360°, so each one in a regular polygon is 360° ÷ n. The interior and exterior angles at each corner add up to 180°.

Shape Sides Interior angle Exterior angle
Triangle 3 60° 120°
Square 4 90° 90°
Pentagon 5 108° 72°
Hexagon 6 120° 60°
Octagon 8 135° 45°
Decagon 10 144° 36°
Dodecagon 12 150° 30°

Who uses a regular polygon calculator

Carpenters and woodworkers use it for octagonal tables, frames and gazebos, where the cut angles and dimensions must be exact. Architects and landscape designers use it for pavilions, paving and planters. Machinists use it for hexagonal and octagonal stock, where the distance across flats and across corners matters. Students use it for geometry homework, and game designers use it for hex-grid maps.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Mitre angles for frames

When you build a frame or box with n identical sides, each joint is cut at half the exterior angle, measured from square. For a hexagonal frame, the exterior angle is 60°, so each piece is cut at 30°. For an octagon, it's 22.5°; for a pentagon, 36°. Getting the angle exactly right matters, because small errors add up around the shape and leave a gap at the last joint.

As the number of sides grows

As n increases, a regular polygon looks more and more like a circle. Its perimeter gets closer to the circumference of its circumscribed circle, 2πR, and its area gets closer to πR². This is how the ancient Greek mathematician Archimedes estimated π: he calculated the perimeters of polygons with up to 96 sides inside and outside a circle, and showed that π lies between 3 10/71 and 3 1/7. You can see the effect with the regular polygon calculator: enter a large number of sides and compare the area with that of a circle of the same circumradius, or use the circle calculator.

Tiling the plane

Only three regular polygons can tile a flat surface on their own with no gaps: equilateral triangles, squares and regular hexagons. That's because their interior angles, 60°, 90° and 120°, divide exactly into 360°, so a whole number of them meet at each corner. Pentagons, with interior angles of 108°, can't, which is why you won't find floors tiled only with regular pentagons. Combinations of different regular polygons, such as octagons and squares, can tile too.

Common mistakes

  • Using degrees in a calculator set to radians, or the reverse, when applying the formulas by hand.
  • Confusing the apothem with the circumradius. The apothem goes to the middle of a side; the circumradius goes to a corner.
  • Using the formulas for irregular polygons. They only apply when every side and angle is equal.
  • Cutting frame joints at the interior angle instead of half the exterior angle.

Hexagon bolts and spanners

Hexagonal nuts and bolt heads are measured across the flats, which is the size stamped on the spanner. The distance across the corners is larger, and it determines how much clearance the nut needs to turn. For a regular hexagon, across the flats equals √3 times the side length, and across the corners equals twice the side length, so the corners measure about 1.155 times the flats. A 13 mm nut, for example, measures about 15.0 mm across its corners. The regular polygon calculator gives both: twice the apothem is the distance across the flats, and twice the circumradius is the distance across the corners. Enter 6 sides, choose the apothem, and enter half the flats measurement to find the rest.

Polygon names

Polygons are named from Greek number words: a pentagon has 5 sides, a hexagon 6, a heptagon 7, an octagon 8, a nonagon (or enneagon) 9, a decagon 10, a hendecagon 11 and a dodecagon 12. Larger polygons are often simply called an n-gon, such as a 20-gon. A regular polygon with many sides, such as a 50-gon, can be hard to tell from a circle at a glance, but its area and perimeter are still given exactly by the regular polygon calculator. Comparing it with a circle of the same circumradius shows how small the difference becomes: a regular 50-gon covers more than 99.7% of the area of its circumscribed circle.

Sources and further reading

Frequently asked questions

How do you find the area of a regular polygon?

Area = n × s² ÷ (4 tan(π ÷ n)), or half the perimeter times the apothem.

What is the apothem?

The distance from the centre to the middle of a side.

How do I find the interior angle?

(n − 2) × 180° ÷ n. For a hexagon, that's 120°.

What is the distance across the flats of a hexagon?

Twice the apothem, which is √3 times the side length.

Can I start from the area or the radius?

Yes. Choose what you know and the calculator works out the rest.

Is the regular polygon calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep