CalcKit CalcKit
My Calculators
Sign in Sign up

Octagon Calculator

Octagon Calculator

Table of Contents

Octagon definition

An octagon is a flat shape with eight straight sides and eight corners. This calculator works with the regular octagon, the shape of a stop sign: all eight sides have the same length and all eight angles are equal.

Enter any one value and the calculator finds the others. It works in any unit: the results are in the unit of the value you enter, and the area in its square.

For regular octagons, the following properties apply:

  • All sides are equal in length.
  • All interior angles measure 135°.
  • Opposite sides are parallel, in four pairs.
  • It can be divided into eight identical triangles that meet at its center.
  • It is a square with its four corners cut off.

For other shapes of this kind, see the Hexagon Calculator and, for any number of sides, the Polygon Calculator.

Parts of an octagon

The eight parts of a regular octagon in this tool are the side (a), the width across flats (s), the width across corners (e), the area (A), the perimeter (P), the apothem (r), the circumradius (R) and the corner cut (c).

Two numbers appear in most of the formulas: 1 + √(2), about 2.4142, and √(4 + 2 * √(2)), about 2.6131.

Side (a)

The side is the length of one of the eight equal edges.

It can be found with the following formulas:

  • If you know the width across flats:

    a = s / (1 + √(2))

  • If you know the width across corners:

    a = e / √(4 + 2 * √(2))

  • If you know the perimeter:

    a = P / 8

  • If you know the area:

    a = √(A / (2 + 2 * √(2)))

  • If you know the apothem:

    a = 2 * r / (1 + √(2))

  • If you know the circumradius:

    a = 2 * R / √(4 + 2 * √(2))

  • If you know the corner cut:

    a = c * √(2)

So the side is about 41.4% of the width across flats, and about 38.3% of the width across corners.

Across flats (s)

The width across flats runs from the middle of one side to the middle of the opposite side, through the center. It is how wide the octagon is when it rests on a side, and the side of the square it can be cut from. It is twice the apothem.

s = a * (1 + √(2)) = 2 * r

Across corners (e)

The width across corners runs from one corner to the opposite corner, through the center. It is the longest line in the octagon, the diameter of the circle through its eight corners, and twice the circumradius.

e = a * √(4 + 2 * √(2)) = 2 * R

It is always about 8.24% more than the width across flats:

e = s * √(4 - 2 * √(2))

Area (A)

The area is the size of the surface inside the octagon.

  • If you know the side:

    A = 2 * (1 + √(2)) * a²

  • If you know the width across flats:

    A = 2 * (√(2) - 1) * s²

  • As for any regular polygon, if you know the apothem and the perimeter:

    A = r * P / 2

In numbers, the area is about 4.8284 × a² or 0.8284 × s². An octagon covers about 82.8% of the square around it.

Perimeter (P)

The perimeter is the distance all the way around the octagon, its eight sides together.

P = 8 * a

Apothem (r)

The apothem runs from the center to the middle of a side, which it meets at a right angle. It is the radius of the largest circle that fits inside the octagon, and half the width across flats.

r = a * (1 + √(2)) / 2

Circumradius (R)

The circumradius runs from the center to a corner. It is the radius of the circle through all eight corners, and half the width across corners.

R = a * √(4 + 2 * √(2)) / 2

Corner cut (c)

A regular octagon is a square with its four corners cut off. The corner cut is how far from each corner of the square a cut starts, measured along the square's edge. The square's side is the width across flats.

c = a / √(2) = s * (1 - 1 / √(2))

That is about 29.3% of the square's side. To cut an octagon from a square 24 in wide, mark every edge 7.0294 in from both of its ends and cut from mark to mark across each corner. The eight sides then measure 9.9411 in each.

Octagon dimensions

A deck, a gazebo, a table top or a window is usually sized by its width across flats, since that is the room it takes up. The "diameter" of an octagon mostly means this width too, but sometimes the width across corners, so check which one a plan gives.

Example: an octagon 8 ft across

A gazebo floor is 8 ft wide from side to side. To get its sides in inches, work with the width in inches, which is 96.

  1. Side: divide the width across flats by 1 + √(2).

    a = 96 / (1 + √(2)) = 39.7645 in

  2. Across corners: multiply the side by √(4 + 2 * √(2)).

    e = 39.7645 × √(4 + 2 × √(2))

    That is 103.9097 in, or 8.6591 ft.

  3. Perimeter: eight sides.

    P = 8 × 39.7645 = 318.116 in

    That is 26.5097 ft.

  4. Area: from the width in feet, to get square feet.

    A = 2 × (√(2) - 1) × 8² = 53.0193 ft²

In the calculator, enter 96 as the width across flats for results in inches, or 8 for results in feet and square feet.

Octagon sizes

Across flats (ft) Side (in) Across corners (ft) Area (ft²)
4 19.88 4.33 13.25
6 29.82 6.49 29.82
8 39.76 8.66 53.02
10 49.71 10.82 82.84
12 59.65 12.99 119.29
16 79.53 17.32 212.08
20 99.41 21.65 331.37

The UFC's Octagon is 30 ft across flats. That gives it sides of 12.4264 ft and an area of 745.5844 ft², the 746 square feet usually quoted for it.

Octagon angles

The angles of a regular octagon are always the same, whatever its size:

  • Each interior angle is 135°, and the eight of them add up to 1,080°.
  • Each exterior angle is 45°, and so is the angle between two neighboring corners seen from the center.
  • To join eight boards into an octagon, cut both ends of each board at 22.5° (the miter saw set to 22.5°). Two cut ends meet in a 135° corner.
  • When an octagon is cut from a square, each cut runs at 45° to the square's edges.

Frequently asked questions

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

It depends on which diameter you have. From the width across flats, multiply by 0.4142. From the width across corners, multiply by 0.3827. An octagon 10 ft across flats has sides of 4.1421 ft, and one 10 ft across corners has sides of 3.8268 ft.

How do I work out the square footage of an octagon?

Measure its width from side to side in feet, square it and multiply by 0.8284. An octagon 12 ft wide covers 119.29 square feet:

0.8284 × 12² = 119.29 ft²

How many diagonals does an octagon have?

Twenty, in three lengths. The short ones skip one corner and measure a * √(2 + √(2)), about 1.8478 times the side. The medium ones skip two corners and are as long as the width across flats. The four long ones go through the center, and are the width across corners.