Octagon Calculator

If you want to find the area, perimeter, diagonals, circumradius, and inradius of a regular octagon, come in and use the octagon calculator.

Clear
Area173.823376regular octagon
Side length6
Perimeter48
Apothem (inradius)7.242641
Circumradius7.839378
Interior angle135°exterior 45°
Diagonals20

Working

Sides8 (octagon)
Interior angle sum1,080°
Area from apothem½ × perimeter × apothem = 173.823376
Circumcircle area193.069228
Polygon fills90.032% of its circumcircle

The formula

A = n·s² ÷ (4·tan(π/n)), interior angle = (n−2)·180° ÷ n

Two ways to see the area

Split a regular n-gon into n triangles from the centre. Each has base s and height equal to the apothem, so the total area is ½ × perimeter × apothem — the same shape of formula as a circle’s ½ × circumference × radius. As n grows, the polygon becomes a circle and the two formulas converge.

Area scales with the square

Double every length in a flat shape and the area quadruples; triple them and it grows ninefold. Perimeter, being a length, scales in step with the sides. That mismatch is why bigger shapes enclose proportionally more area per unit of edge — and why a circle, having no corners at all, encloses the most area for a given perimeter of any shape.

Units

Whatever unit you enter, the area comes out in that unit squared and the perimeter in the unit itself. The calculator is unit-agnostic — enter centimetres and read cm and cm², or feet and read ft and ft². Just do not mix units between fields.