Skip to content

Regular Polygon Calculator: Area, Hexagon and Octagon

Side, apothem, circumradius, area, perimeter, angles and diagonals of any regular polygon, hexagon and octagon included.

Your details

Unit system

Results update as you type

Area

10.3923 in²

Perimeter
12 in
Apothem (inradius)
1.7321 in
Circumradius
2 in
Width across flats (2r)
3.4641 in
Width across corners (2R)
4 in
Interior angle
120 °
Exterior (and central) angle
60 °
Sum of interior angles
720 °
Number of diagonals
9
Exact area formula
A = (3√3/2)·a²

Step-by-step solution
  1. Apothem: r = a / (2·tan(180°/6)) = 1.7321 in
  2. Circumradius: R = a / (2·sin(180°/6)) = 2 in
  3. Perimeter: P = 6 × 2 in = 12 in
  4. Area: A = P × r / 2 = 10.3923 in²
  5. Exact form: A = (3√3/2)·a²
  6. Angles: (6 − 2) × 180° / 6 = 120°, 360° / 6 = 60°
  7. Diagonals: 6 × (6 − 3) / 2 = 9

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 332a2\frac{3\sqrt{3}}{2}a^2 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

  1. Choose the polygon (triangle to dodecagon) or Other and type the number of sides nn.
  2. Choose which measure you know: side, apothem, circumradius, area or perimeter.
  3. Enter its value and pick the unit.
  4. Read the area (or the side, if you started from the area), then the other lengths, the angles and the number of diagonals.
  5. Open the steps to see how each value was obtained.

The formula

For a regular polygon with nn sides of length aa, with apothem rr (inradius) and circumradius RR:

r=a2tan⁡(π/n)R=a2sin⁡(π/n)P=nar = \frac{a}{2\tan(\pi/n)} \qquad R = \frac{a}{2\sin(\pi/n)} \qquad P = na
A=na24tan⁡(π/n)=P⋅r2A = \frac{n a^2}{4\tan(\pi/n)} = \frac{P \cdot r}{2}

The last form says that the polygon is made of nn identical isosceles triangles with base aa and height rr. The angles do not depend on the size:

interior angle=(n−2)×180∘nexterior angle=360∘ndiagonals=n(n−3)2\text{interior angle} = \frac{(n-2) \times 180^\circ}{n} \qquad \text{exterior angle} = \frac{360^\circ}{n} \qquad \text{diagonals} = \frac{n(n-3)}{2}

To start from another measure, invert the formulas: a=2rtan⁡(π/n)a = 2r\tan(\pi/n), a=2Rsin⁡(π/n)a = 2R\sin(\pi/n), a=P/na = P/n or a=4Atan⁡(π/n)/na = \sqrt{4A\tan(\pi/n)/n}.

Worked example

Hexagon with 5 cm sides. The apothem is r=32×5≈4.33r = \frac{\sqrt{3}}{2} \times 5 \approx 4.33 cm, the circumradius equals the side (5 cm), the perimeter is 30 cm and the area is

A=332×52≈64.95 cm2A = \frac{3\sqrt{3}}{2} \times 5^2 \approx 64.95 \text{ cm}^2

Each interior angle is 120° and the hexagon has 9 diagonals.

Octagon with 4 cm sides: A=2(1+2)×42≈77.25A = 2(1 + \sqrt{2}) \times 4^2 \approx 77.25 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 a=4×100×tan⁡36∘/5≈7.62a = \sqrt{4 \times 100 \times \tan 36^\circ / 5} \approx 7.62 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 (R=aR = a) and every interior angle is 120°. From that:

A=6×34a2=332a2≈2.598 a2r=32aA = 6 \times \frac{\sqrt{3}}{4}a^2 = \frac{3\sqrt{3}}{2}a^2 \approx 2.598\,a^2 \qquad r = \frac{\sqrt{3}}{2}a

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 10/3≈5.7710/\sqrt{3} \approx 5.77 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=2(1+2) a2≈4.828 a2r=1+22aR=4+222aA = 2(1 + \sqrt{2})\,a^2 \approx 4.828\,a^2 \qquad r = \frac{1 + \sqrt{2}}{2}a \qquad R = \frac{\sqrt{4 + 2\sqrt{2}}}{2}a

A handy builder’s rule: an octagon that fits in a square of width WW (across flats) has a side of W(2−1)≈0.4142 WW(\sqrt{2} - 1) \approx 0.4142\,W, so you cut a corner triangle with legs of about 0.2929 W0.2929\,W 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 nn grows, the polygon approaches its circumscribed circle: a 1000-gon of circumradius 1 has an area of about 3.14157, very close to π\pi. 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

Last updated:

More Math calculators

People also use