Enter the number of sides and the side length and the calculator returns angles, perimeter, apothem, area and circumradius.
Interior angle = (n−2) × 180° / n, where n is the number of sides.
The distance from the center to the midpoint of a side; it equals s / (2 tan(π/n)) for side length s.
Area = (1/2) × perimeter × apothem, or equivalently (1/4)n·s²·cot(π/n).