Regular octagon · Formulas, without the guesswork.
Choose the formula matching the measurement labels below.
From a side
A = na²/[4 tan(π/n)]; P = na
Inputs: Side a (length units).
From circumradius
a = 2R sin(π/n)
Inputs: Circumradius R (length units).
From the apothem
a = 2r tan(π/n)
Inputs: Apothem r (length units).
From area
a =
Inputs: Area A (square units).
Reading the notation
For a regular octagon, distinguish the centre-to-corner radius from the centre-to-side apothem. Only the latter is perpendicular to a side at its midpoint.
A general eight-sided polygon is not determined by one side. These tools apply only to regular octagons.
Reference reading: Regular octagon at Wolfram MathWorld.