Math & Statistics

Octagon Calculator

Enter any one measurement of a regular octagon, the side, the width across the flats, the area, the perimeter, a radius or a diagonal, and the octagon calculator works out all the others. It also gives the 135° interior angle and the 22.5° miter cut angle for building octagonal frames.

Free, runs in your browserUpdated October 2026
units

A regular octagon has 8 equal sides and 8 equal angles. The width across flats is the distance between two opposite parallel sides.

Area
–
Side length a–
Perimeter–
Width across flats–
Long diagonal (2R)–
Circumradius R–
Inradius (apothem) r–
Short diagonal–
Angles135° inside, 22.5° cut

Octagon Calculator diagram: a regular octagon with 5 cm sides has an area of 120.71068 cm² and width 12.07 cm
How the Octagon Calculator works: Solves a regular octagon from any one known measurement

How to Use the Octagon Calculator

How to use the Octagon Calculator: known measurement menu, value, unit and the area result
Numbered steps on the Octagon Calculator. Follow them in order.
  1. Choose the measurement you know: side, width, diagonal, radius, perimeter or area.
  2. Enter its value.
  3. Pick the length unit.
  4. Read the area and every other dimension, with a labeled diagram.

Choose the measurement you already know from the menu: the side length, the width across flats, the long or short diagonal, the circumradius, the inradius (also called the apothem), the perimeter or the area. Type its value and pick a unit. Every other dimension of the regular octagon appears at once, together with a labeled diagram.

The result panel shows the area in square units and the side, perimeter, width, both diagonals and both radii in your unit. When you start from a side length, the note also gives the exact area and width in terms of √2. The angles line is a reminder for builders: each interior angle is 135°, and each of the 16 miter cuts on an octagonal frame is 22.5°.

Regular Octagon Formulas

Area: A = 2(1 + √2)a² ≈ 4.828427a²    Perimeter: P = 8a
Width across flats: W = a(1 + √2) ≈ 2.414214a    Inradius: r = W ÷ 2
Long diagonal: D = a√(4 + 2√2) ≈ 2.613126a    Circumradius: R = D ÷ 2
Short diagonal: a√(2 + √2) ≈ 1.847759a

All of these come from cutting a square of side W at the corners. Each corner triangle is a right isosceles triangle with legs a/√2, so W = a + 2(a/√2) = a(1 + √2). The octagon's area is the square, W², minus four corner triangles of area a²/4 each.

Worked Examples

  • Side 5 cm: area = 2(1 + √2) × 25 = 50 + 50√2 ≈ 120.71068 cm². The perimeter is 40 cm, the width across flats is 5(1 + √2) ≈ 12.07107 cm, the long diagonal is 13.06563 cm and the short diagonal is 9.238795 cm.
  • Width 24 in (an octagonal table top cut from a 24-inch square): a = 24 ÷ (1 + √2) ≈ 9.941125 in, and the area is about 477.17402 in².
  • Area 100 m²: a = √(100 ÷ 4.828427) ≈ 4.550899 m, so the perimeter is about 36.40719 m.

Octagon Dimensions for Common Sides

Side aWidth across flatsLong diagonalArea
12.414212.613134.82843
512.071113.0656120.711
1024.142126.1313482.843
1228.970631.3575695.294

Each value scales with the side: double the side and every length doubles while the area quadruples.

Building an Octagon

For an octagonal frame, gazebo floor or planter, each of the eight boards is cut at 22.5° at both ends, so neighboring boards meet at the 135° interior angle. To lay out an octagon inside a square of width W, measure W ÷ (2 + √2) ≈ 0.2929W in from each corner along both edges and cut off the corner triangles. A stop sign is a familiar example of a regular octagon.

Area Shortcuts From the Width or Radius

If you measure the width across flats W instead of the side, you do not need to find the side first. Substituting a = W ÷ (1 + √2) into the area formula gives a simpler result, and the same trick works with the circumradius R:

A = 2(√2 − 1)W² ≈ 0.828427W²    A = 2√2 R² ≈ 2.828427R²

For a 24-inch octagonal table top, A ≈ 0.828427 × 576 = 477.17 in². That is about 82.8% of the 24-inch square it is cut from, so roughly 17% of the material is trimmed away at the corners. An octagon with a circumradius of 10 m covers 2√2 × 100 ≈ 282.84 m².

Tips and Limits

  • The formulas apply to regular octagons only, with all sides and angles equal.
  • Do not confuse the width across flats with the long diagonal. The long diagonal, corner to corner, is about 8% longer.
  • Results are shown to 8 significant figures. Round to a practical precision before cutting material.

Frequently asked questions

What is the formula for the area of an octagon?

For a regular octagon with side a, the area is 2(1 + √2)a², about 4.828a². A side of 5 cm gives 50 + 50√2 ≈ 120.71 cm².

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

Divide the width across flats by 1 + √2, which is about 2.4142. For example, an octagon that is 24 inches wide from flat to flat has sides of about 9.94 inches.

What angle do I cut to make an octagon?

Cut each end of each of the eight pieces at 22.5°. Two such cuts meet to form the 135° interior angle of a regular octagon.

What is the interior angle of an octagon?

Each interior angle of a regular octagon is 135°. The angles add up to (8 − 2) × 180° = 1,080°, and 1,080 ÷ 8 = 135.

What is the difference between the width and the diagonal of an octagon?

The width across flats is measured between two opposite parallel sides. The long diagonal runs between opposite corners, so it is longer: about 1.082 times the width.

How do you find the perimeter of an octagon?

Multiply the side length by 8. If you only know the area, first find the side with a = √(A ÷ 4.828427), then multiply by 8.