Regular polygon calculator

Measurements
sides

A whole number of at least 3.

cm

Advanced

Changing a measurement unit keeps its number: 3 cm becomes 3 m. Unit for all measurements applies to every input and the result. Result unit converts only the answers.

Equal sides and equal angles. Number of sides is a whole number of at least 3; scale measurements are positive.

Number format

Use a decimal point or comma, without thousands separators. Up to 15 significant digits and 64 characters; no fractions or expressions.

Regular polygon schematic. Equal sides and equal angles. Number of sides is a whole number of at least 3; scale measurements are positive.sρRO

Not to scale

Enter your measurements to see the results.

No personal result is available. These are the regular polygon formulas and conditions.

One side count and one known measurement

A regular polygon has equal sides and equal angles. Enter its whole number of sides n, at least 3, then choose side length, perimeter, area, inradius or circumradius. Any one of these scale measurements determines the remaining four.

The inradius ρ, also called the apothem, meets the midpoint of a side at a right angle. The circumradius R reaches a vertex. Keep these two distances separate.

Perimeter
P=ns
Area
A=Pρ2
Inradius / apothem
ρ=s2tan(πn)
Circumradius
R=s2sin(πn)
Side from area
s=4Atan(πn)n

Why the formulas work

Join the centre to every vertex. This makes n congruent triangles, each with base s and height ρ. Their total area is n × sρ/2 = Pρ/2. Bisect one triangle: its angle at the centre is π/n, its opposite side is s/2, its adjacent side is ρ and its hypotenuse is R. The tangent and sine ratios give the two radius formulas.

For a known perimeter use s = P/n. For an inradius use s = 2ρ tan(π/n); for a circumradius use s = 2R sin(π/n). Trigonometric formulas here use radians. Area takes square units; the other four measurements take length units. Number of sides has no length unit.

Check another known value

Optional extra measurements check the same polygon. Typed decimals are exact inputs, so a rounded result entered as an extra value can be inconsistent. The calculator reports an unresolved calculation if it cannot certify a result within its precision budget.

Large side counts keep their exact value in the calculation. When individual sides would be too small to see, the diagram shows a labelled detail with interruption marks. This changes the schematic only.

Check a square and a hexagon

  1. With n = 4 and s = 3 cm, P = 4 × 3 = 12 cm and A = 3² = 9 cm². Starting with A = 9 cm² returns s = 3 cm.
  2. With n = 6 and s = 2 cm, six equilateral triangles give A = 6√3 cm², P = 12 cm, ρ = √3 cm and R = 2 cm.

Formula source

Wolfram MathWorld: regular polygon definitions and measurement formulas. The explanations, derivation and worked calculations here are original to Geometry Glance.