Octagon Calculator

Enter the side of a regular octagon to find its area exactly.

A length more than 0.

Try

Result

You enteredn=8, s=1n = 8,\ s = 1

A=2+22≈4.828427\displaystyle A = 2 + 2\sqrt{2} \approx 4.828427

Interior angle

135∘\displaystyle 135^\circ

Exterior angle

45∘\displaystyle 45^\circ

Sum of interior angles

1080∘\displaystyle 1080^\circ

Apothem

1+22≈1.207107\displaystyle \frac{1 + \sqrt{2}}{2} \approx 1.207107

Circumradius

1.306563\displaystyle 1.306563

Perimeter

8\displaystyle 8

Number of diagonals

20\displaystyle 20
Show the work
  1. Half of the central angle

    The centre of a regular polygon joins to the corners to make n=8n = 8 equal triangles. Half of one side and the apothem form a right triangle at the centre with half-angle 180∘n\frac{180^\circ}{n}.

    180∘8=22.5∘\frac{180^\circ}{8} = 22.5^\circ
  2. Area of a regular polygon

    Each of the nn triangles has base s=1s = 1 and height equal to the apothem s2tan⁡(180∘/n)\frac{s}{2\tan(180^\circ / n)}, so the area is nn times half base times height. Here tan⁡22.5∘\tan 22.5^\circ is exact.

    A=ns24tan⁡(180∘n)=8×124×tan⁡22.5∘=84×(2−1)=2+22≈4.828427\begin{aligned} A &= \frac{ns^2}{4\tan\left(\frac{180^\circ}{n}\right)} \\ &= \frac{8 \times 1^2}{4 \times \tan 22.5^\circ} \\ &= \frac{8}{4 \times \left(\sqrt{2} - 1\right)} \\ &= 2 + 2\sqrt{2} \approx 4.828427 \end{aligned}
  3. Result

    So the area is 2+22≈4.8284272 + 2\sqrt{2} \approx 4.828427 square units.

Worked examples