Octagon Calculator
Enter the side length of a regular octagon to get its area and perimeter.
What this calculator does
This tool gives you the area and perimeter of a regular octagon — an eight-sided polygon with all sides and angles equal — from a single side length. At the default side of 5 units it returns an area of 120.71 square units and a perimeter of 40 units. The area is in square units of whatever you measured the side in, and the perimeter in the same linear unit.
The formulas behind the calculation
A regular octagon has eight equal sides and equal interior angles of 135°. Its area follows from the side length through the formula below, which comes from splitting the octagon into eight isosceles triangles meeting at the center.
The perimeter is simply eight times the side length. The coefficient 2(1 + √2) works out to about 4.828, and it has a geometric reading: a regular octagon is what you get by cutting a 45° isosceles right triangle off each corner of a square. Cut a square of side a at corners so the remaining sides are s, and the octagon’s area becomes the square’s area minus four triangles, which simplifies to (1 + √2)s² for the square’s side and 2(1 + √2)s² overall. The area grows with the square of the side, so doubling the side from 5 to 10 quadruples the area from 120.71 to 482.84 square units while the perimeter merely doubles from 40 to 80.
Working example
Take the default side of 5. The area is 2(1 + √2) × 25 ≈ 120.71 square units and the perimeter is 8 × 5 = 40 units. A quick estimate: 4.828 × 25 ≈ 120.7, which matches the exact result.
Octagon sizes at a glance
| Side length | Area | Perimeter | Distance across flats |
|---|---|---|---|
| 1 | 4.83 | 8 | 2.41 |
| 2 | 19.31 | 16 | 4.83 |
| 5 | 120.71 | 40 | 12.07 |
| 10 | 482.84 | 80 | 24.14 |
| 20 | 1,931.37 | 160 | 48.28 |
The distance across flats — the width measured between two parallel sides — is (1 + √2) × s ≈ 2.414s, so the default octagon measures 12.07 units across. That matters for layout: an octagonal table with 5-unit sides will not fit through a 12-unit doorway measured diagonally, and an octagon laid out from an 11-unit square leaves sides of about 4.56, not 5. The square-law in the area column is also visible: from side 10 to side 20 the area jumps from 482.84 to 1,931.37, exactly four times.
The square-cut construction
Carpenters lay out regular octagons by trimming the corners of a square, and the arithmetic ties directly to this formula. Start from a square whose side equals the across-flats width, here 12.07 units. Mark x = s/√2 ≈ 3.54 units along each edge from every corner, then cut all eight marked corners: the four triangles remove 4 × (½ × 3.54 × 3.54) ≈ 25.04 square units, leaving 145.71 − 25.04 ≈ 120.71 — exactly the formula’s answer for 5-unit sides. The small discrepancy at other sizes comes only from rounding 3.54; carry more decimals on big layouts.
What moves the area
- Side length, with the square law: the area grows as s², so a 20 percent longer side yields a 44 percent larger area (1.2² = 1.44).
- Regularity, as a prerequisite: the formula assumes eight equal sides and eight interior angles of 135°.
- Which dimension you measured: entering the 12.07-unit across-flats width as if it were the side inflates the area by a factor of about 5.8.
- Units, applied consistently: a side in feet gives square feet; mixing scales corrupts the answer by the conversion factor squared.
Common mistakes
Octagon errors cluster around two slips, both catchable with the 4.828 shortcut.
Confusing across-flats width with the side
The default octagon is 12.07 units across its flats but its sides are only 5. Entering 12.07 as the side gives 2(1+√2) × 145.7 ≈ 703.5 square units — nearly six times the correct 120.71. Across-flats measurements are common because they are easy to take with calipers; divide by 2.414 to recover the side first.
Applying the formula to irregular octagons
Stop signs are regular; most octagonal rooms, tables and garden beds are not. If the eight sides differ by more than a rounding amount, the formula will not describe the shape. Split the outline into a central rectangle plus corner triangles and sum the pieces instead.
- Verify all eight sides are equal before trusting the result.
- Convert an across-flats measurement to the side by dividing by 2.414.
- Keep area units squared — 120.71 square units, not units.
- Sanity-check large inputs against 4.828 × s².
Where octagons appear
Octagons show up in stop signs, gazebo and tower plans, tile patterns, mirroring frames and quilting blocks, because they tile with small squares filling the gaps between them. A stop-sign-sized octagon with 5-unit sides covers 120.71 square units with 40 units of edge — enough rim for a reflective border. For flooring, an octagon-and-square tile pair covers 120.71 + 25 = 145.71 square units per repeat when the small square matches the side, so a 100-square-foot floor needs roughly 10 such repeats. The shape’s eight 135° corners also give display cases and gazebos more viewing angles than a square while staying easy to frame from straight stock.
Frequently asked questions
What is the formula for the area of an octagon?
For a regular octagon with side s, the area is 2(1 + √2) × s², which is about 4.828 × s². At side 5 that gives 120.71 square units.
How do I find the perimeter of an octagon?
Multiply the side length by eight, since a regular octagon has eight equal sides. A side of 5 gives a perimeter of 40 units.
Does the formula work for any octagon?
No. It applies to regular octagons with equal sides and 135° angles; irregular octagons need to be split into simpler shapes and summed.
How wide is an octagon with side 5?
Across the flats it is (1 + √2) × 5 ≈ 12.07 units. Dividing an across-flats measurement by 2.414 recovers the side.
What happens to the area if I double the side?
It quadruples, because area scales with the square of the side. Going from side 5 to side 10 raises the area from 120.71 to 482.84 square units while the perimeter only doubles from 40 to 80.
How do I cut an octagon from a square?
Mark s/√2 from each corner along the edges — about 3.54 units for 5-unit sides — and cut the eight marked corners. The finished flats are the sides, which is what you enter in the calculator.
Why does the formula contain a square root of 2?
The √2 comes from the 45° geometry of the corner triangles: a regular octagon is a square with 45° right triangles trimmed from its corners, and those triangles carry √2 in their side ratios.
What is each interior angle of a regular octagon?
135°. Eight angles of 135° sum to 1,080°, the required total for an eight-sided polygon, which is also why octagons pair cleanly with 90° squares in tilings.
Method and sources
- Regular octagon: area = 2(1 + √2)s², perimeter = 8s.