What is a polygon ring?
A polygon ring is the frame left when a regular n-gon of side b is cut out of a larger regular n-gon of side a with the same centre and the same orientation, so that each inner side runs parallel to an outer side at the constant distance w, the width of the ring.
How to use it
Enter the number of sides n, then either the outer and inner sides or the outer side and the width. Lengths from 0.000001 to 1,000,000,000 are accepted. The unit only labels the results. Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Derivation of the formulas
Each polygon splits into n triangles from the centre, so a regular n-gon of side s has area \(n s^2 / (4\tan(\pi/n))\) and inradius \(s / (2\tan(\pi/n))\). Subtracting the inner polygon from the outer one:
$$A = \dfrac{n\,(a - b)(a + b)}{4\tan(\pi/n)},\quad w = r_a - r_b = \dfrac{a - b}{2\tan(\pi/n)},\quad b = a - 2w\tan(\pi/n)$$
The difference a − b is kept as one factor, so a very thin ring keeps all its digits.
Worked example
The page opens with a hexagon ring, n = 6, a = 10 and b = 6. The outer hexagon has area 259.807621 and the inner one 93.530744; the ring itself has area A = 166.276878, width w = 3.464102, outer inradius 8.660254 and inner inradius 5.196152 (rounded to six decimals).
FAQ
Why must w be smaller than the outer inradius?
At w equal to the inradius the inner polygon shrinks to a point; beyond it there is no ring. The calculator also asks that the inner side stays at least 1% of the outer side, because a thinner core cannot be computed reliably.
How precise are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
Zwillinger, D. (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018
Coxeter, H. S. M., Introduction to Geometry, 2nd ed., 1969