Octagon Calculator

Regular octagon calculator to find area, perimeter, side length, inradius (apothem), circumradius and the size of the square it fits in. Enter any one measure — side, area, perimeter, inradius, circumradius — and get the rest. Includes formulas and step-by-step explanation.

Full original guide (expanded)

Geometry / Polygons

Octagon Calculator

Solve octagon area, perimeter, side length, inradius, and circumradius.

Calculator

Results

Side length

Perimeter

Area

Inradius (apothem)

Circumradius

Square side (if cut)

Steps

Regular octagon formulas

For a regular octagon with side \( s \):

Area: \( A = 2(1 + \sqrt{2})s^2 \)

Perimeter: \( P = 8s \)

Inradius (apothem): \( r = \frac{s}{2 \tan(\pi/8)} \)

Circumradius: \( R = \frac{s}{2 \sin(\pi/8)} \)

Numerically, \( 2(1 + \sqrt{2}) \approx 4.82842712 \), so \( A \approx 4.82842712 s^2 \).

Octagon obtained by cutting the corners of a square

If you start from a square of side \( S \) and cut equal isosceles right triangles from each corner so that a regular octagon remains, the octagon side is:

\( s = S(\sqrt{2} - 1) \)

and so \( S = \dfrac{s}{\sqrt{2} - 1} \)

FAQ

Is this only for regular octagons?

Yes. Irregular octagons need coordinates or side-angle data; this tool follows the regular case like the common online calculators.

What unit should I use?

Use whatever you measure in (mm, cm, m, in, ft). We convert everything internally and show some alternative units.


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\\]
','\
Formula (extracted text)
Area: \( A = 2(1 + \sqrt{2})s^2 \) Perimeter: \( P = 8s \) Inradius (apothem): \( r = \frac{s}{2 \tan(\pi/8)} \) Circumradius: \( R = \frac{s}{2 \sin(\pi/8)} \)
Formula (extracted text)
\( s = S(\sqrt{2} - 1) \) and so \( S = \dfrac{s}{\sqrt{2} - 1} \)
Variables and units
  • No variables provided in audit spec.
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).