A regular octagon is an eight-sided polygon with all sides and interior angles equal โ the classic shape of a stop sign, a gazebo base, or an octagonal deck or pergola. This calculator takes a single measurement, the side length, and works out everything else you need: the total area, the perimeter, the 'across flats' distance (the width measured between two opposite flat sides), and the 'across corners' distance (the width measured between two opposite points/vertices).
This is a genuinely practical tool for anyone building or planning something octagonal โ gazebo and pergola builders, deck and patio designers, and DIYers working out how much material or flooring they'll need. The across-flats and across-corners measurements in particular are the numbers builders actually need on site (for example, to check a shape will fit a given space or to mark out the frame accurately), and they're easy to get wrong by hand because they involve the irrational number โ2.
Area and perimeter formulas for a regular octagon
For a regular octagon with side length s, the perimeter is simply P = 8s (eight equal sides). The area is A = 2(1 + โ2) ร sยฒ, which comes from treating the octagon as a square with its four corners cut off at 45ยฐ. For example, a regular octagon with side length 1 metre has a perimeter of 8 m and an area of 2(1 + 1.41421) ร 1ยฒ โ 4.828 mยฒ.
Across flats and across corners distances
'Across flats' is the distance between two parallel sides of the octagon, measured straight through the centre โ this is the width most useful for construction, since it tells you how wide a flat-to-flat gap needs to be. It's calculated as: across flats = s(1 + โ2). 'Across corners' is the distance between two opposite vertices (the widest point of the shape), calculated as: across corners = s ร โ(4 + 2โ2). The across-corners measurement is always slightly larger than across-flats, since it stretches to the outermost points of the octagon rather than the flat edges.
Frequently asked questions
Area = 2(1 + โ2) ร sยฒ, where s is the side length.
Across flats = s ร (1 + โ2), where s is the side length โ this measures the distance between two opposite parallel sides.
Across flats measures between two opposite flat sides; across corners measures between two opposite vertices (points). Across corners is always the larger of the two measurements.
A regular octagon has 8 equal sides and 8 equal interior angles, each measuring 135ยฐ.
Yes, a standard stop sign is a regular octagon, with all eight sides and angles equal.