Regular Polygon Calculator

This free regular polygon calculator works out every measurement of a regular polygon from just two inputs: the number of sides and any one known value, whether that’s the side length, the perimeter, the area, the apothem, or the circumradius. You’ll get the area, perimeter, side length, apothem, circumradius, interior and exterior angles, and the number of diagonals, with the shape drawn to scale and every formula shown.

Enter the number of sides, choose which measurement you know, and type its value. The calculator finds everything else. Not sure how it works? Use the Try an example button.
â–  polygon   – – circumcircle (R)   – – incircle (apothem r)
Area
Side length
Perimeter
Apothem (inradius)
Circumradius
Interior angle
Exterior angle
Sum of interior angles
Diagonals
Show step-by-step working

What Is a Regular Polygon?

A regular polygon is a flat shape with straight sides where every side is the same length and every angle is the same size. An equilateral triangle, a square, and the hexagon of a honeycomb cell are all regular polygons. If even one side or angle is different, the shape is irregular.

Because everything is equal, a regular polygon is completely defined by just two things: how many sides it has, and one measurement. That’s why this calculator only needs those two inputs.

The Parts of a Regular Polygon

PartWhat it is
Side length (s)The length of one edge
Perimeter (P)The total distance around: n × s
Apothem (r)The distance from the center to the middle of a side; also the radius of the circle that fits inside (the incircle)
Circumradius (R)The distance from the center to a corner; also the radius of the circle that passes through every corner (the circumcircle)
Interior angleThe angle inside each corner
Exterior angleThe turn at each corner as you walk around the shape

In the drawing, the orange dashed circle is the circumcircle, the blue dashed circle is the incircle, and the lines marked R and r show the circumradius and apothem.

How to Use the Regular Polygon Calculator

  1. Enter the number of sides, for example 6 for a hexagon or 8 for an octagon.
  2. Choose which measurement you know: side length, perimeter, area, apothem, or circumradius.
  3. Type its value and pick your unit.
  4. Press Calculate. You’ll see the shape drawn to scale and every other measurement.
  5. Open “Show step-by-step working” to see each formula with your numbers.

The Formulas Behind the Calculator

Every formula uses the angle 180° ÷ n (half of the angle each side makes at the center).

Area from the side length

Area = n × s24 × tan( 180° ÷ n ) = 12 × Perimeter × Apothem

Area = n × s² ÷ (4 × tan(180° ÷ n))

An equivalent and easy-to-remember version is Area = ½ × Perimeter × Apothem, because the polygon splits into n triangles, each with base s and height r.

Apothem and circumradius

Apothem r = s2 × tan( 180° ÷ n ) Circumradius R = s2 × sin( 180° ÷ n )

Apothem r = s ÷ (2 × tan(180° ÷ n))

Circumradius R = s ÷ (2 × sin(180° ÷ n))

Working back to the side length

If you know something other than the side, the calculator finds the side first:

You knowSide length s =
Perimeter PP ÷ n
Apothem r2 × r × tan(180° ÷ n)
Circumradius R2 × R × sin(180° ÷ n)
Area A√(4 × A × tan(180° ÷ n) ÷ n)

Angles

Exterior angle = 360° ÷ n and Interior angle = 180° − Exterior angle. The interior angles add up to (n − 2) × 180°.

Worked Example 1: A Hexagon With 10 ft Sides

A regular hexagon has 6 sides of 10 ft each. With 180° ÷ 6 = 30°, tan(30°) = 0.57735 and sin(30°) = 0.5.

  • Perimeter = 6 × 10 = 60 ft
  • Apothem = 10 ÷ (2 × 0.57735) = 8.6603 ft
  • Circumradius = 10 ÷ (2 × 0.5) = 10 ft (in a regular hexagon, the circumradius always equals the side)
  • Area = 6 × 10² ÷ (4 × 0.57735) = 259.81 sq ft
  • Check: ½ × 60 × 8.6603 = 259.81 sq ft ✓

These are the numbers behind the “Try an example” button.

Worked Example 2: An Octagonal Gazebo Floor

A gazebo has a regular octagon floor with 5 ft sides.

  • Area = 8 × 5² ÷ (4 × tan(22.5°)) = 200 ÷ (4 × 0.41421) = 120.71 sq ft
  • Perimeter = 8 × 5 = 40 ft of railing
  • Apothem = 6.04 ft, so the floor is about 12.07 ft across from flat side to flat side
  • Circumradius = 6.53 ft, so it’s about 13.07 ft from corner to opposite corner
  • Each interior angle = 135°, the angle to cut where boards meet at each corner

Worked Example 3: A Pentagon From Its Circumradius

A pentagon is drawn inside a circle with a 4 m radius, so its circumradius is 4 m.

  • Side = 2 × 4 × sin(36°) = 2 × 4 × 0.58779 = 4.7023 m
  • Perimeter = 5 × 4.7023 = 23.51 m
  • Apothem = 3.2361 m
  • Area = 38.04 m²

Worked Example 4: Working Back From the Area

You want a hexagonal patio with an area of exactly 100 sq ft. How long should each side be?

  • Side = √(4 × 100 × tan(30°) ÷ 6) = √(4 × 100 × 0.57735 ÷ 6) = 6.20 ft
  • Perimeter = 6 × 6.20 = 37.22 ft of edging

Quick Multipliers for Common Regular Polygons

For a side length s, multiply by these numbers to get each measurement fast:

PolygonSidesArea = s² ×Apothem = s ×Circumradius = s ×Interior angle
Equilateral triangle30.43300.28870.577460°
Square410.50.707190°
Pentagon51.72050.68820.8507108°
Hexagon62.59810.86601120°
Heptagon73.63391.03831.1524128.57°
Octagon84.82841.20711.3066135°
Nonagon96.18181.37371.4619140°
Decagon107.69421.53881.6180144°
Dodecagon1211.19621.86601.9319150°

For example, a regular octagon with 5 ft sides has an area of 4.8284 × 25 = 120.71 sq ft.

Where Regular Polygons Show Up

  • Gazebos and decks: octagonal and hexagonal floors and roofs
  • Patios and pavers: hexagonal tiles that fit together with no gaps
  • Signs: the octagonal stop sign and triangular warning signs
  • Nuts and bolts: hexagonal heads that a wrench can grip from six sides
  • Nature: honeycomb cells and many crystal shapes

Tips and Common Mistakes

  • Check that the shape really is regular. If the sides or angles differ, use our irregular polygon tools instead.
  • Don’t mix up the apothem and the circumradius. The apothem goes to the middle of a side; the circumradius goes to a corner, and it’s always longer.
  • Measure “across flats” vs “across corners”. For an even number of sides, the distance across flats is 2 × apothem, and the distance across corners is 2 × circumradius.
  • Keep your units consistent. The area comes out in square units of whatever length unit you use.

Related Calculators

Frequently Asked Questions

Area = n × s² ÷ (4 × tan(180° ÷ n)), or equivalently ½ × perimeter × apothem.

The distance from the center to the midpoint of any side. It’s also the radius of the largest circle that fits inside the polygon.

Use s = √(4 × A × tan(180° ÷ n) ÷ n), or simply choose “Area” in the calculator and enter your value.

A regular hexagon splits into six equilateral triangles that meet at the center, so the distance from the center to each corner equals the side length.

About 4.828 × s². With 5 ft sides, that’s about 120.7 sq ft.

As the number of sides grows, a regular polygon gets closer and closer to a circle. Try 1,000 sides with a circumradius of 1, and the area comes out very close to π (3.1416).

Similar Posts

  • Area Unit Converter

    This free area unit converter changes any area into every common unit at once: square feet, square yards, acres, square miles, square meters, hectares, square kilometers, and more, including marla and kanal for property in South Asia. Type a number, choose its unit, and see all the conversions instantly, along with the exact conversion factor…

  • Irregular Quadrilateral Area Calculator (4-Sided Shapes)

    This irregular quadrilateral area calculator finds the exact area of any 4-sided shape, even when no sides are equal, nothing is parallel, and there isn’t a single right angle. Enter the four corner coordinates, the four sides plus one diagonal or one angle, or two diagonals and the angle between them. You’ll get the area,…

  • Find the Land Area Calculator for 4-Sided Plots (Any Shape)

    Real plots are rarely perfect rectangles. Roads bend, neighbors’ fences lean, and old boundaries follow creeks and hedges. This land area calculator gives the exact area of an irregular plot from measurements you can take yourself: the four sides plus one diagonal, the four sides plus one corner angle, or, for plots with five or…

  • Composite Figures Area Calculator (Add & Subtract Shapes)

    Composite Figures Area Calculator (Add & Subtract Shapes) This composite figures area calculator finds the total area of a shape built from simpler pieces: an L-shaped room, a house front with a gable roof, a running track, or a wall with a door and window cut out. Add each piece that’s part of the figure,…

  • Flooring & Tile Calculator (Odd-Shaped Room)

    This free flooring and tile calculator tells you exactly how much flooring an odd-shaped room needs: rooms with angled walls, bay windows, L-shaped layouts, or clipped corners. Enter the room’s corner coordinates (or its area if you know it), choose planks, tile, or carpet, and you’ll get the number of boxes, tiles, or square yards…

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *