Polygon Calculator

Calculate the polygon precisely — enter your dimensions and get the result with the formula shown.

Quick Facts

Area formula
A = (1/4) × n × s² × cot(π/n)
Equivalent to (1/2) × perimeter × apothem.
Interior angle
(n − 2) × 180° / n
A hexagon (n = 6) has 120° interior angles.
Apothem
a = s / (2 × tan(π/n))
Distance from the center to the midpoint of a side.

Your Results

Calculated
Area
-
A = (1/4) × n × s² × cot(π/n)
Perimeter
-
P = n × s
Interior Angle
-
(n − 2) × 180° / n
Apothem
-
a = s / (2 × tan(π/n))

Ready

Enter the number of sides and side length, then press Calculate.

Formula and Method for Regular Polygons

A regular polygon has n equal sides and n equal interior angles, all inscribed symmetrically around a common center. Every measurement — area, perimeter, interior angle, apothem, and circumradius — can be derived from just two inputs: the number of sides (n) and the side length (s). This calculator computes the area as A = (1/4) × n × s² × cot(π/n), the perimeter as P = n × s, the interior angle as (n − 2) × 180° / n, and the apothem as a = s / (2 × tan(π/n)).

How the calculation works

Split a regular n-gon into n identical isosceles triangles that meet at the center. The height of each triangle (from the center to the midpoint of a side) is the apothem, a = s / (2tan(π/n)), and each triangle's area is (1/2) × s × a. Multiplying by n triangles gives the total area, A = (n × s × a) / 2 = (1/4) × n × s² × cot(π/n) — since (1/2)a·s·n = (1/2)·(s/(2tan(π/n)))·s·n. The perimeter is simply the side length times the number of sides, P = n × s. The sum of all interior angles of any simple n-gon is (n − 2) × 180°, so each interior angle of a regular polygon is that total divided evenly by n. The circumradius (center-to-vertex distance) follows a similar triangle relationship: R = s / (2sin(π/n)).

Common mistakes

  • Apothem vs. circumradius: the apothem (center to edge midpoint) is always shorter than the circumradius (center to vertex) — do not use one where the other is required.
  • Angle units in the formula: the trig functions here use radians (π/n), not degrees; most calculator software handles this internally, but hand calculations must convert n into π/n radians first.
  • Mixing side length and diagonal: only the side length s belongs in these formulas — a diagonal or width-across-flats measurement must first be converted to a side length.

Real-world applications

  • Architecture and construction use polygon area formulas to size hexagonal or octagonal rooms, gazebos, and paver patios.
  • Manufacturing and machining use the interior angle and apothem to cut regular polygon parts (hex nuts, octagonal flanges) to precise tolerances.
  • Land surveying and civil engineering use perimeter and area formulas for regular-shaped plots and traffic islands.
  • Game design and computer graphics use these formulas to generate and scale regular polygon meshes (stop signs, honeycomb grids, polygon-based sprites).

Frequently Asked Questions

What is the formula for the area of a regular polygon?
Area = (1/4) × n × s² × cot(π/n), where n is the number of sides and s is the side length. This is equivalent to (1/2) × perimeter × apothem. For example, a regular hexagon (n = 6) with side 10 has an area of 0.25 × 6 × 10² × cot(π/6) ≈ 259.81.
How do you find the interior angle of a regular polygon?
Interior angle = (n − 2) × 180° / n. A hexagon (n = 6) has an interior angle of (6 − 2) × 180 / 6 = 120°. The exterior angle is simply 360° / n, and interior + exterior always sum to 180°.
What is the apothem of a regular polygon?
The apothem is the perpendicular distance from the center of the polygon to the midpoint of a side: a = s / (2 × tan(π/n)). It is used to derive the area as (1/2) × perimeter × apothem.
What is the difference between the apothem and the circumradius?
The apothem (a = s / (2tan(π/n))) is the distance from the center to the middle of a side, while the circumradius (R = s / (2sin(π/n))) is the distance from the center to a vertex. The circumradius is always slightly larger than the apothem, and the two converge as the number of sides increases.