StatGardenREF. DESK
Calculators/Geometry/Octagon
Geometry

Octagon calculator

Area, perimeter and angles of a regular octagon from its side length, across-flats or across-corners measure.

Published 21 August 2026

What this calculator does

A regular octagon has eight equal sides and eight equal interior angles of 135° each, the shape behind a stop sign or an octagonal paver. As with any regular polygon, one measurement is enough to fix the whole shape, but that measurement could be the side length, the across-flats width (the distance between two opposite, parallel sides), or the across-corners width (the distance between two opposite corners).

This octagon calculator accepts any of those three, converts internally to the side length, and returns the area, perimeter and both width measurements together, so a stop-sign-shaped panel or paver measured by whichever dimension is easiest still gets a correct area.

The formula

FormulaArea = 2(1+√2) × s²

From the side length s, area = 2(1+√2) × s². If the across-flats width is known instead, s = across-flats / (1+√2). If the across-corners width is known, s = across-corners / √(4+2√2). Perimeter is simply 8 × s once the side length is established.

TermMeaning
Side lengthThe length of one of the eight equal edges.
Across flatsThe distance between two opposite, parallel sides, measured straight across.
Across cornersThe distance between two opposite corners, the longest straight measurement across the octagon.

The inputs explained

FieldWhat to enter
ValueEnter the side length, across-flats or across-corners measure, whichever you already have.
This value is theSelect which measurement the value above represents.

When to use it

An octagon paver, tile or gazebo base

An octagonal paver, tile or gazebo floor is normally cut to a side length, so the octagon calculator gives the area of material needed directly from that measurement.

A stop sign or octagonal panel measured across flats

A stop sign or bolt-pattern panel is often specified by its across-flats width, the distance a wrench or mounting bracket would actually span, rather than by the length of one angled edge.

Fitting an octagon inside a fixed circular opening

An octagon designed to fit snugly inside a round opening or frame is more naturally described by its across-corners width, the widest point that has to clear the opening.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Octagon area across a range of side lengths

The area and perimeter of a regular octagon across a range of side lengths.

Area, perimeter and both width measures across a range of side lengths
Side lengthAreaPerimeter
477.25532.000
6173.82348.000
8309.01964.000
10482.84380.000
12695.29496.000
Octagon area grows with the square of the side length, so a side length of 10 gives an area of 482.843, more than six times the 77.255 area at a side length of 4, in the same way any regular polygon’s area scales.

Does it matter whether the value 10 is the side, across flats or across corners?

The number 10 entered once as a side length, once as an across-flats measure and once as an across-corners measure, to show how the octagon calculator’s answer changes with what that number represents.

The value 10 entered three different ways
The value 10 is theAreaSide length
Side length482.84310.000
Across flats82.8434.142
Across corners70.7113.827
An octagon with a side length of 10 has the largest area of the three, 482.843, since side length is the biggest of the three measurements for a given octagon; treating the same value 10 as an across-corners width, the widest possible measurement, instead gives the smallest recovered side length, 3.827, and the smallest area, 70.711.

Questions

What is a regular octagon?

A regular octagon is an eight-sided polygon with all eight sides equal in length and all eight interior angles equal, each measuring 135°.

What is the area formula for an octagon?

Area = 2(1+√2) × s², where s is the side length. The constant 2(1+√2) works out to roughly 4.828.

What is the difference between across flats and across corners on an octagon?

Across flats measures the shorter distance between two opposite, parallel sides. Across corners measures the longer distance between two opposite vertices. Across corners is always the larger of the two for the same octagon.

Why does a stop sign have eight sides?

An octagon’s shape is distinctive and legible from any angle at speed, which is why it was standardised for stop signs, though the geometry itself is the same regular-octagon maths used for any eight-sided design.

For a hexagon instead, see the hexagon calculator. For any number of sides at once, see the general regular polygon calculator.