Mathematics · Geometry

Regular polygon calculator — area, perimeter and angles

Calculate area, perimeter, apothem, circumradius and angles from side count and side length of a regular polygon.

Created v1.0

By Thibaut Grzelak, Mechanical Analysis Engineer

Geometry
01

Calculation inputs

All lengths use the same arbitrary unit u; areas use u² and volumes use u³. Angles are in degrees.

03

Results

Apothem
1u
Radius
1.414u
Interior angle
90°
Exterior angle
90°

Results show up to four significant digits for readability; internal calculations retain full precision.

See calculation details

01Perimeter

FormulaP = ns
Substitution4 × 2
Result
8

02Apothem

Formulaaₚ = s/(2tan(π/n))
Substitution2 / (2 × tan(π / 4))
Result
1

03Radius

FormulaR = s/(2sin(π/n))
Substitution2 / (2 × sin(π / 4))
Result
1.414

04Area

FormulaS = Paₚ/2
Substitution8 × 1 / 2
Result
4

05Interior angle

Formulaα = 180°(n − 2)/n
Substitution180° × (4 − 2) / 4
Result
90

06Exterior angle

Formulaβ = 360°/n
Substitution360° / 4
Result
90
01Formulas and symbols

Formulas used

S

P = ns

aₚ = s/(2tan(π/n))

S = Paₚ/2

n: number of sides; s: side; aₚ: apothem; P: perimeter; S: area.

R

R = s/(2sin(π/n))

α = 180°(n−2)/n

β = 360°/n

R: circumradius; α: interior angle; β: exterior angle.

SymbolMeaning
nNumber of sides
sSide length s (u)
PPerimeter
SArea
aₚApothem
RRadius
αInterior angle
βExterior angle
02Validation example

Reference numerical case

  1. n = 4 and s = 2 u give perimeter 8 u, area 4 u², apothem 1 u, circumradius √2 u and interior angle 90°.
03How it works

Split the polygon into n congruent triangles from its centre. Each has base s and height equal to the apothem aₚ; the total area is nsaₚ/2. Trigonometry gives the apothem and circumradius.

The circumradius reaches a vertex. The interior angle α and exterior turning angle β add to 180°; all n exterior angles sum to 360°.

04Limits and conventions

A convex regular polygon with an integer 3 ≤ n ≤ 1000 and positive equal sides. All lengths use u. Above 100 sides, the visual becomes a labelled circular approximation; results still use the exact n.

05Common mistakes

These relations do not apply to an irregular polygon. The apothem reaches the midpoint of a side; the circumradius reaches a vertex.

06Practical questions

What is the difference between apothem and circumradius?

The apothem is the perpendicular distance from the centre to a side. The circumradius is the distance from the centre to a vertex, so it is larger than the apothem for a finite regular polygon.

How does the number of sides affect the interior angle?

For a regular n-sided polygon, each interior angle is 180°(n−2)/n. As n increases, the interior angle approaches 180° while the exterior angle 360°/n approaches zero.

07Technical references