Math

Octagon calculator

A regular octagon has eight equal sides and eight 135° angles, the shape of a stop sign. With this octagon calculator, enter the side, apothem, circumradius, area or perimeter to get the rest, including the width across the flats that you need for building octagonal decks, gazebos, tables and signs.

Runs in your browser. Nothing you type is sent to us.

Area

482.842712

Regular octagon: A = 2(1 + √2) s² ≈ 4.8284 s²

Side
10
Perimeter
80
Apothem
12.071068
Circumradius
13.06563
Interior angle
135°
Exterior angle
45°
Sum of interior angles
1,080°
Number of diagonals
20

Diagonal lengths

DiagonalLength× side
Skips 2 vertices18.4775911.8478
Skips 3 vertices24.1421362.4142
Skips 4 vertices26.1312592.6131

Key facts

  • Area of a regular octagon: A = 2(1 + √2) s² ≈ 4.8284 s².
  • An octagon with side 10 has area ≈ 482.84, apothem ≈ 12.071 and circumradius ≈ 13.066.
  • Width across the flats: w = (1 + √2) s ≈ 2.4142 s. From the width, A = 2(√2 − 1) w² ≈ 0.8284 w².
  • Each interior angle is 135°; the eight angles add up to 1,080°.
  • An octagon has 20 diagonals in three different lengths.

Octagon formulas

For a regular octagon with side s:

A = 2(1 + √2) s² ≈ 4.8284 s²
Apothem a = (1 + √2) s ÷ 2 ≈ 1.2071 s
Circumradius R = s ÷ (2 sin 22.5°) ≈ 1.3066 s
Width across flats w = 2a = (1 + √2) s
Perimeter P = 8s

How to use the octagon calculator

  1. Choose what you know: side, apothem, circumradius, area or perimeter. If you have the width across the flats, enter half of it as the apothem.
  2. Enter the value and optionally a unit.
  3. Read the area, side, perimeter, apothem, circumradius, angles and diagonal count.

Worked examples: octagons

Example 1: from the side

Side 10 in. A ≈ 4.8284 × 100 = 482.84 in². The apothem is about 12.07 in, so the octagon is about 24.14 in across the flats.

Example 2: a stop sign

A stop sign 30 in across the flats has apothem 15 in and side 30 ÷ (1 + √2) ≈ 12.43 in. Its area is 0.8284 × 30² ≈ 745.6 in², about 5.18 ft².

Example 3: an octagonal deck

You want a deck 4 m across the flats. The side is 4 ÷ 2.4142 ≈ 1.657 m, the perimeter is about 13.25 m and the area is 0.8284 × 16 ≈ 13.25 m². Each frame piece is mitred at 22.5° at both ends.

Example 4: from the apothem

An octagon with apothem 5 has side ≈ 4.142 and area ≈ 82.84.

Octagon measurements at a glance

MeasurementIn terms of side s
Area4.8284 s²
Perimeter8 s
Apothem1.2071 s
Circumradius1.3066 s
Width across flats2.4142 s
Width across corners2.6131 s
Interior angle135°
Exterior angle45°

Cutting an octagon from a square

Start with a square of side w and cut off each corner as an isosceles right triangle with legs s ÷ √2 ≈ 0.2929 w. The result is a regular octagon with side s = w ÷ (1 + √2). This is the quickest way to mark out an octagonal table top or planter from square stock.

Diagonals

From any corner of an octagon you can draw five diagonals, in three lengths: about 1.848 s (skipping one corner), 2.414 s (skipping two, the same as the width across flats) and 2.613 s (to the opposite corner). Altogether there are 8 × 5 ÷ 2 = 20 diagonals.

Mistakes to avoid with octagons

  • Confusing the width across the flats with the width across the corners.
  • Using the side as the radius; unlike a hexagon, an octagon’s circumradius is larger than its side.
  • Cutting mitre joints at 45° instead of 22.5° per piece for an octagonal frame.

For other shapes with equal sides, use the regular polygon calculator, the hexagon calculator or the pentagon calculator.

The octagon on every street corner

The world’s most familiar octagon is the stop sign. The US adopted the eight-sided shape in the early 1920s, when highway officials chose shapes by danger level and gave the octagon to the most important instruction, so drivers could recognize it even from behind or when covered in snow. It was standardized as red with white letters in the US Manual on Uniform Traffic Control Devices in 1954, and the 1968 Vienna Convention on Road Signs and Signals made the red octagon the international standard.

Octagons also appear in architecture and sport. The Tower of the Winds in Athens, built around 50 BCE, is an octagonal marble clock tower with a relief of a wind god on each face; the Dome of the Rock in Jerusalem stands on an octagonal base; and the Ultimate Fighting Championship fights in an eight-sided cage it calls the Octagon. A regular octagon can be made by cutting the corners off a square: if the square’s side is a, each cut removes a right isosceles triangle with legs a ÷ (2 + √2). Octagons and squares together tile the plane, a pattern common in floor tiles. For any regular shape, use the regular polygon calculator; for six sides, the hexagon calculator; and for areas in general, the area calculator.

How this calculator works

  • Area of a regular 8-gon with side s: A = 8 × s² ÷ (4 × tan(180° ÷ 8)).
  • From any one measurement (side, apothem, circumradius, area or perimeter), the others are worked out.
  • Interior angle = (8 − 2) × 180° ÷ 8; exterior angle = 360° ÷ 8; number of diagonals = 8 × (8 − 3) ÷ 2.
  • Assumes all sides and angles are equal; irregular shapes need splitting into triangles.

Frequently asked questions

What is the formula for the area of an octagon?

For a regular octagon, A = 2(1 + √2) × s², about 4.828 times the side squared.

What is the area of an octagon with side 10?

About 482.84 square units.

How do I find the area from the width?

If w is the width across the flats, A = 2(√2 − 1) × w², about 0.8284 w².

What is the interior angle of an octagon?

135°. The eight angles add up to 1,080°.

How many diagonals does an octagon have?

Twenty.

How do I find the side of an octagon from its width?

Divide the width across the flats by 1 + √2, about 2.414.

What angle do I cut for an octagon frame?

Each piece is mitred at 22.5° at both ends so the joints meet at the 135° corners.

What shape is a stop sign?

A regular octagon.

Sources

  1. Wolfram MathWorld: Octagon
  2. Math is Fun: Octagon
  3. Wolfram MathWorld: Regular polygon

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "Octagon calculator." calcroster.com/octagon-calculator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.