Octagon Calculator

Octagon Calculator

Leading AI Skill PRO
Regular octagon
Regular octagonRegular octagons = 5ABCDEFGHA = 120.71
Worked stepsStep 2 of 2

Area A=n s24tan⁡(180∘/n)A = \dfrac{n\,s^2}{4\tan(180^\circ/n)}, perimeter P=n⋅sP = n \cdot s

Download figure
Figure data
Side5
Area120.71
Perimeter40
Apothem6.0355
Circumradius6.5328
Regular octagon in the Library: formulas and every calculator

Enter Calculation

Formula

A=2(1+2)s2where{P=8sa=s(1+2)2R=s4+222\begin{gathered} A = 2\left(1+\sqrt{2}\right)\,\text{s}^{2} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} P &= 8\,\text{s} \\ a &= \frac{\text{s}\left(1+\sqrt{2}\right)}{2} \\ R &= \frac{\text{s}\sqrt{4+2\sqrt{2}}}{2} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Octagon Area
120.71
square units
Perimeter 40
Apothem (inradius) 6.0355
Circumradius 6.5328
Longest Diagonal 13.0656

Report an error on this page

What Is the Octagon Calculator?

A regular octagon is an eight-sided polygon where every side has the same length and every interior angle equals 135°. This calculator takes a single input — the side length s — and instantly returns the octagon's area, perimeter, apothem (inradius), circumradius, and longest diagonal. It is useful for tessellation design, stop-sign geometry, tiling layouts, gazebo and deck construction, and math homework.

How to Use It

Enter the length of one side in any unit you like (cm, inches, metres). The results are returned in the matching unit: lengths share your unit, and the area is in those units squared. There is no need to specify a unit — the geometry is identical regardless.

Octagon divided into eight triangles from its center
Splitting the octagon into eight equal triangles explains the area formula.

The Formulas Explained

The area of a regular octagon is $$A = 2\left(1+\sqrt{2}\right)\cdot s^{2}$$, which comes from dividing the octagon into a central square plus four rectangles and four corner triangles. The perimeter is simply \(P = 8s\) because all eight sides are equal. The apothem — the perpendicular distance from the centre to the midpoint of a side — is \(a = \frac{s\left(1+\sqrt{2}\right)}{2}\). The circumradius (centre to a vertex) is \(R = \frac{s\sqrt{4+2\sqrt{2}}}{2}\), and the longest diagonal across the octagon is \(d = s\sqrt{4+2\sqrt{2}}\).

Advertisement

Worked Example

For a side length of \(s = 5\): $$\text{Area} = 2(1+1.41421)\cdot 25 = 2 \times 2.41421 \times 25 \approx 120.71$$ square units. $$\text{Perimeter} = 8 \times 5 = 40$$ $$\text{Apothem} = \frac{5 \times 2.41421}{2} \approx 6.0355$$ Circumradius \(\approx 6.5328\) and longest diagonal \(\approx 13.0656\).

Regular octagon with side, apothem and circumradius labeled
A regular octagon showing side length s, apothem a (center to edge midpoint) and circumradius R (center to vertex).

Key Constants and Ratios for a Regular Octagon

Quantity Exact form Approximate value
√2 \(\sqrt{2}\) 1.41421
Silver ratio \(1+\sqrt{2}\) 2.41421
Area coefficient (A / s²) \(2(1+\sqrt{2})\) 4.82843
Apothem ratio (a / s) \(\frac{1+\sqrt{2}}{2}\) 1.20711
Circumradius ratio (R / s) \(\frac{\sqrt{4+2\sqrt{2}}}{2}\) 1.30656
Long diagonal ratio (2R / s) \(\sqrt{4+2\sqrt{2}}\) 2.61313
Short diagonal across flats (2a / s) \(1+\sqrt{2}\) 2.41421

Angles

  • Interior angle: 135°
  • Exterior angle = central angle: 45°
  • Sum of interior angles: \((8-2)\times 180° = 1080°\)

Reverse conversions

  • Side from width across flats \(W\): \(s = \frac{W}{1+\sqrt{2}} \approx 0.41421\,W\), i.e. \(s = W / 2.41421\).
  • Side from apothem: \(s = \frac{2a}{1+\sqrt{2}} \approx 0.82843\,a\).
  • Side from circumradius: \(s \approx R / 1.30656 \approx 0.76537\,R\).
  • Cutting an octagon from a square of width \(W\): each cut-off corner is an isosceles right triangle with legs \(c = \frac{s}{\sqrt{2}} \approx 0.7071\,s \approx 0.29289\,W\). Check: \(W = s + 2c = s(1+\sqrt{2})\).
Advertisement

Practical Tips for Building and Cutting Octagons

  1. Marking from a square. For a square of width \(W\), measure about \(0.2929\,W\) from each corner along both edges and join the marks. Example: \(W = 1000\) mm gives cuts of about 292.9 mm and a side of about 414.2 mm (\(0.41421 \times 1000\)).
  2. Mitre angle. The interior angle is 135°, so each joint is split into two 67.5° pieces. When framing, set the saw to 22.5° off square on each end of every piece, so that two pieces meet at 135°.
  3. Allow for waste. Add roughly 10% extra material for offcuts, kerf and mistakes. Mitred pieces and patterned materials may need more.
  4. Measure across flats. To size a space or a table, measure the distance between opposite parallel sides (across flats, \(2a = 2.41421\,s\)), not corner to corner. Across corners is larger (\(2.61313\,s\)) and will make the octagon appear to fit when it will not.
  5. Round up. Calculate the area from the side length, then round the material quantity up to the next whole unit (tile box, sheet, bag or litre) rather than to the nearest one.

These are general guidelines; check your material supplier's recommendations and allow for your own tools and tolerances.

FAQ

Does this work for irregular octagons? No — these formulas assume a regular octagon with equal sides and angles. Irregular octagons require coordinate-based methods.

What is the apothem used for? The apothem times half the perimeter gives the area (\(A = \tfrac{1}{2}\cdot P\cdot a\)), and it equals the radius of the inscribed circle.

What are the interior angles? Each interior angle of a regular octagon is 135°, and they sum to 1080°.

Last updated:

Most popular in Geometry

View all Geometry calculators