Skip to content
Mathematics

Regular polygon calculator

Calculate area, perimeter, interior angles, inradius and circumradius from the number of sides and side length of a regular polygon.

Free & no registration Calculated in your browser
01

Your inputs

The starting values are an example.

Decimals: 12.5 · Thousands: 1,234.56. Follow the field instructions for lists.

02

Your result

Enter your values and select Calculate.

Your calculation will appear here.

Your result will include the relevant values and units.

Understand the calculation

Formula and example

How it is calculated

A = n·s²/[4·tan(π/n)], P = n·s. Inradius = s/[2·tan(π/n)], circumradius = s/[2·sin(π/n)].

Worked example

A regular hexagon with 2 cm sides has a perimeter of 12 cm, an area of 6√3 ≈ 10.3923 cm² and 9 diagonals.

Things to check

  • All sides and all interior angles must be equal. A general irregular polygon needs more information.
  • The number of sides must be an integer of at least 3.

Frequently asked questions

How are the diagonals counted?

Each vertex connects to n−3 non-adjacent vertices. Each diagonal is counted twice, so the total is n(n−3)/2.