A regular polygon has all its sides equal and all its angles equal: the equilateral triangle, the square, the regular pentagon, hexagon, octagon and so on. Because of that symmetry, a single measurement fixes the whole shape. Give this calculator the number of sides and one known value — the side length, the apothem, the circumradius, the area or the perimeter — and it returns all the others.
You also get the interior angle, the exterior angle, the sum of the interior angles and the number of diagonals, and for even polygons the width across flats and across corners, the two figures a machinist or a tiler actually measures. For the common shapes the exact area formula is shown as well, such as for a hexagon.
Typical uses: the area of a regular polygon for a maths exercise, the size of a hexagonal paving slab or bolt head, the side of an octagonal gazebo that must fit a given circle, or the angle to cut on each piece of a frame. Lengths can be in mm, cm, m, inches or feet, and the steps show every formula with your numbers.
How to use this calculator
- Choose the polygon (triangle to dodecagon) or Other and type the number of sides .
- Choose which measure you know: side, apothem, circumradius, area or perimeter.
- Enter its value and pick the unit.
- Read the area (or the side, if you started from the area), then the other lengths, the angles and the number of diagonals.
- Open the steps to see how each value was obtained.
The formula
For a regular polygon with sides of length , with apothem (inradius) and circumradius :
The last form says that the polygon is made of identical isosceles triangles with base and height . The angles do not depend on the size:
To start from another measure, invert the formulas: , , or .
Worked example
Hexagon with 5 cm sides. The apothem is cm, the circumradius equals the side (5 cm), the perimeter is 30 cm and the area is
Each interior angle is 120° and the hexagon has 9 diagonals.
Octagon with 4 cm sides: cm², apothem 4.83 cm, width across flats 9.66 cm and across corners 10.45 cm. Interior angle 135°, 20 diagonals.
Pentagon of area 100 cm²: starting from the area gives a side of cm.
Hexagon: area, apothem and width across flats
The regular hexagon is the friendliest polygon: it splits into six equilateral triangles, so its circumradius equals its side () and every interior angle is 120°. From that:
In workshops a hexagon is described by its width across flats (2r, the spanner size of a nut) and across corners (2R = 2a). A 10 mm nut therefore has a side of mm and measures 11.55 mm across corners. Hexagons tile the plane with no gaps, which is why honeycombs, floor tiles and bolt heads use them. Choose "Apothem" and enter half the width across flats to size any hexagon from a spanner measurement.
Octagon: area and dimensions
The regular octagon (8 sides, interior angles of 135°) is the shape of stop signs, gazebos and many pavilions. Its exact formulas are:
A handy builder’s rule: an octagon that fits in a square of width (across flats) has a side of , so you cut a corner triangle with legs of about from each corner of the square. Each piece of an octagonal frame is mitred at 22.5°, half of the 45° exterior angle.
Angles and diagonals at a glance
| Polygon | n | Interior angle | Sum of angles | Diagonals | Area for a = 1 |
|---|---|---|---|---|---|
| Equilateral triangle | 3 | 60° | 180° | 0 | 0.4330 |
| Square | 4 | 90° | 360° | 2 | 1 |
| Pentagon | 5 | 108° | 540° | 5 | 1.7205 |
| Hexagon | 6 | 120° | 720° | 9 | 2.5981 |
| Octagon | 8 | 135° | 1080° | 20 | 4.8284 |
| Decagon | 10 | 144° | 1440° | 35 | 7.6942 |
| Dodecagon | 12 | 150° | 1800° | 54 | 11.1962 |
As grows, the polygon approaches its circumscribed circle: a 1000-gon of circumradius 1 has an area of about 3.14157, very close to . For circles, use the circle calculator; for other flat shapes, the area calculator.
Frequently asked questions
How do I find the area of a regular polygon?
Multiply the perimeter by the apothem and halve it: A = P × r / 2. With only the side a, use A = n·a² / (4·tan(180°/n)). A regular pentagon with 1 cm sides has an area of about 1.7205 cm².
What is the area of a hexagon?
For a regular hexagon with side a, A = (3√3/2)·a² ≈ 2.598·a². With 5 cm sides, the area is about 64.95 cm².
What is the area of an octagon?
For a regular octagon with side a, A = 2(1 + √2)·a² ≈ 4.828·a². With 4 cm sides, the area is about 77.25 cm².
What is the apothem?
The apothem is the distance from the centre of a regular polygon to the midpoint of a side, which is also the radius of the inscribed circle. It equals a / (2·tan(180°/n)).
How do I calculate the interior angle of a regular polygon?
Interior angle = (n − 2) × 180° / n. A pentagon has 108°, a hexagon 120°, an octagon 135°. The exterior angle is 360° / n, and the two always add up to 180°.
How many diagonals does a polygon have?
n(n − 3)/2: each vertex connects to n − 3 non-adjacent vertices, and each diagonal is counted twice. A hexagon has 9 diagonals, an octagon 20.
Sources
- Weisstein, Regular Polygon — Wolfram MathWorld (inradius, circumradius, area)
- Weisstein, Regular Hexagon — Wolfram MathWorld
- Weisstein, Regular Octagon — Wolfram MathWorld
Last updated: