Regular Polygon Calculator – Apothem, Inradius, Circumradius
A regular polygon has all sides equal and all interior angles equal.
This calculator links the most common measurements:
side length \(s\), apothem (inradius) \(r\), circumradius \(R\), perimeter \(P\), and area \(A\).
Key angles
- Central angle: \(\theta = \dfrac{2\pi}{n}\) (or \(\theta_\circ = \dfrac{360^\circ}{n}\))
- Half-angle: \(\alpha = \dfrac{\pi}{n}\)
- Interior angle: \(\dfrac{(n-2)180^\circ}{n}\)
Relations between \(s\), \(r\), and \(R\)
Consider one triangle formed by the center, a vertex, and the midpoint of an edge.
Using right-triangle trigonometry:
\[
r = \frac{s}{2\tan(\pi/n)},\qquad
R = \frac{s}{2\sin(\pi/n)}.
\]
Equivalent rearrangements:
\[
s = 2r\tan(\pi/n),\qquad
s = 2R\sin(\pi/n),\qquad
r = R\cos(\pi/n).
\]
Perimeter
\[
P = ns.
\]
Area
A regular polygon can be split into \(n\) congruent triangles. Each triangle has base \(s\) and height \(r\).
Therefore:
\[
A = \frac{1}{2}Pr = \frac{1}{2}(ns)r.
\]
Another common closed form (using \(\cot\)):
\[
A = \frac{n}{4}s^2\cot\left(\frac{\pi}{n}\right).
\]
Checks and common notes
- \(n \ge 3\).
- All length inputs must be \(>0\).
- Exterior angles always sum to \(360^\circ\). For a regular \(n\)-gon, each exterior angle is \(360^\circ/n\).
Example
Hexagon with side \(s=6\text{ cm}\):
- \(R = \dfrac{s}{2\sin(\pi/6)} = 6\text{ cm}\)
- \(r = \dfrac{s}{2\tan(\pi/6)} \approx 5.196\text{ cm}\)