The Length of a Side of a Regular Polygon calculator computes the length of the individual sides (segments) of a regular polygon given the number of sides and the radius, r, of an inscribed circle.
INSTRUCTIONS: Choose units and enter the following:
Polygon Side Length (s): The calculator returns the length of the side in meters. However, this can be automatically converted to compatible units via the pull-down menu.
A regular n-sided polygon is a polygon with n equal length sides and has n equal angles at the n vertices of the polygon. Because of the symmetries of this construction, the sides of the polygon touch the inscribed circle as tangents at the midpoint of the polygon side. As shown in the picture, Figure 1, lines from the vertices to the circle's center form n isosceles triangles of equal area.
Theand number of sides is:
The n-sided regular polygon, as can be seen in Figure 1, is comprised of n isosceles triangles. The radius of the circle is constructed to touch the side of the polygon at exactly one point, and thus the polygon's side touches the circle at a tangent point and this makes the side of the polygon perpendicular to the circle's radius. It also can be shown that the radius splits each sector of the circle in half, and thus the triangles composing the polygon are also split into two equal right triangles.
If we imagine the sides of the polygon as the bases of these isosceles triangles, then we can see the area of each of the n triangles is given by the simple formula:
 `A_"(triangle)" = 1/2 * base * height = s/2 * r`
We can find the length of the polygons side s by noting first that the triangle with base s/2 and height r is a right triangle. We also note that the angle, `alpha`, is given by:
 `alpha = (2 * pi) /n`
We also see that line L is the hypotenuse of the right triangle and thus is related to r and s/2 as:
 `tan(alpha/2) = (1/2s) / r`
Substituting equation  into equation  we get:
 `tan( ((2*pi) / n)/2 ) = s / (2*r)`
And rearranging we finally get the polygon side, s, in terms of the radius, r, and the number of sides of the regular polygon, n:
 `s = 2*r *tan( pi / n)`