Toolstia / Regular polygon calculator

regular polygon calculator

Pick the number of sides, say which measurement you know, and get everything else about the polygon: side length, apothem, radius, perimeter, area, interior and exterior angles and number of diagonals.

Lengths are in whatever unit you entered, and the area is in that unit squared. Needs a whole number of sides from 3 to 10,000.

How it works

  1. Enter the number of sides, from 3 up.
  2. Choose whether you know the side, apothem, radius or area.
  3. Enter the value and read the results.

Formulas

Side = 2R sin(180/n). Apothem = R cos(180/n). Area = n x side x apothem / 2. Here n is the number of sides and R is the radius from the centre to a corner.

Angles

Each interior angle is (n - 2) x 180 / n degrees, each exterior angle is 360 / n, and the interior angles add up to (n - 2) x 180.

Diagonals

A polygon with n sides has n x (n - 3) / 2 diagonals, so a hexagon has 9.

Units

Use any length unit. The perimeter has the same unit, and the area is that unit squared.

Questions

What is the apothem?

The distance from the centre to the middle of a side. It is the radius of the inscribed circle.

What happens with many sides?

The shape gets closer to a circle, and the area approaches pi times the radius squared.

Is my data saved?

Everything happens in your browser, and nothing you enter is sent anywhere.