Math calculator

Regular Polygon Calculator

Any one measurement fixes all the rest.

Any one measurement fixes the rest

Give whichever you have.

regular hexagon

2.598076

Area, from a perimeter of 6 and an apothem of 0.866025 — half their product, which is the same shape of formula as a circle’s.

Area

2.598076

half perimeter times apothem

Perimeter

6

6 sides of 1

Side

1

each edge

Apothem

0.866025

centre to the middle of a side

Circumradius

1

centre to a corner

Interior angle

120°

at each corner

Exterior angle

60°

these always total 360°

Diagonals

9

n(n − 3)/2 of them

Fills its circle

82.70%

approaches 100% as sides grow

Constructible

yes

with compass and straightedge

  • The area is half the perimeter times the apothem — the same shape of formula as a circle’s half-circumference-times-radius, because a circle is what this becomes as the sides multiply.
  • The exterior angles always add to 360°, whatever the polygon, so each one is 360 ÷ 6 = 60°. That is the quickest route to the interior angle.

Every input route reconstructs the same polygon — the suite checks all five against each other from 3 sides to 24.

What this tool shows

The area is half the perimeter times the apothem — the same shape of formula as a circle’s half-circumference-times-radius, because a circle is exactly what a regular polygon becomes as its sides multiply.

  • Area, perimeter and side length
  • The apothem and the circumradius
  • Interior, exterior and central angles
  • How many diagonals a polygon has
  • What share of its circle it fills
  • Whether it can be constructed with compass and straightedge
Any of five inputs Every measurement out Constructibility Up to 1000 sides

Give the side, apothem, circumradius, perimeter or area.

Updated 7 September 2026 · Works in any browser, no installation

Area = half the perimeter times the apothem. A unit hexagon has perimeter 6 and apothem √3/2, so its area is 3√3/2 ≈ 2.598. The formula holds for every regular polygon, and it is the same one a circle uses with its circumference and radius.

At a glance

Formula shown
Area = ½ × perimeter × apothem = n·s²/(4·tan(π/n)). The apothem is s/(2·tan(π/n)) and the circumradius is s/(2·sin(π/n)). Each interior angle is (n − 2)·180°/n.
Scenario support
Setting out a hexagonal or octagonal shape; working out material for a polygonal frame; a geometry exercise that gives one measurement and asks for another.
Educational estimate
Planning support from the values you enter — not professional advice.

Two radii, not one

A regular polygon has two distances from its centre, and mixing them up is the usual error.

The circumradius reaches a corner. It is the radius of the circle through all the vertices.

The apothem reaches the middle of a side, perpendicular to it. It is the radius of the circle that just touches every side from inside.

The apothem is always the shorter, and the area formula wants that one. Using the circumradius instead overstates the area, and by more the fewer sides there are.

A hexagon is the memorable exception in the other direction: its circumradius exactly equals its side length, which is why six circles pack round a seventh and why honeycomb works.

The angles

Three angles matter, and one of them makes the others easy.

The exterior angles always add to 360°, for every polygon regardless of how many sides it has. So each one is 360/n, and that is the quickest thing to compute.

The interior angle is then 180° minus that, or equivalently (n − 2)×180/n. Going the exterior route avoids the (n − 2) that people misremember.

The central angle — the angle at the centre subtended by one side — is also 360/n, the same number as the exterior angle. That is not a coincidence: the two are corresponding angles across a pair of parallel lines.

Interior angles reaching 180° is why only triangles, squares and hexagons tile the plane on their own — those are the only ones whose interior angle divides 360°.

Which ones can be drawn

With only a compass and an unmarked straightedge, some regular polygons can be constructed exactly and some cannot. The answer is one of the more surprising results in mathematics.

Gauss settled it in 1796, at nineteen: a regular n-gon is constructible exactly when the odd part of n is a product of distinct Fermat primes — 3, 5, 17, 257 and 65537, the only ones known.

So a triangle, square, pentagon, hexagon and 17-gon can all be drawn. A 7-gon cannot — 7 is not a Fermat prime. Nor can a 9-gon, because 9 is 3×3 and the primes have to be distinct.

Gauss was reportedly so pleased with the 17-gon that he asked for one on his gravestone. The stonemason declined, on the grounds that it would be indistinguishable from a circle.

“Not constructible” means not exactly, with those two tools. Every one of them can be drawn to any accuracy you like by other means, which is what this page does.

Towards a circle

Add sides and a regular polygon becomes indistinguishable from its circumscribed circle. This page reports what share of that circle it fills.

A triangle manages 41%. A hexagon 83%. A 20-gon 97%. By a hundred sides it is over 99.9%.

Archimedes turned exactly this into a method. By bounding a circle between inscribed and circumscribed 96-sided polygons he pinned π between 3⅝₁ and 3⅞, which is accurate to two decimal places and stood for centuries.

The area formula shows the limit directly. Half the perimeter times the apothem becomes half the circumference times the radius as the sides multiply — and ½ × 2πr × r is πr².

Where it gets used

Construction and making. Setting out a hexagonal deck, an octagonal gazebo or a polygonal planter needs the apothem to mark the sides and the circumradius to mark the corners.

Engineering. Nuts and bolt heads are hexagonal because six flats give a spanner a good grip while wasting little material. The across-flats measurement is twice the apothem.

Tiling and packing. Hexagons tile the plane with the least perimeter for a given area, which is why honeycomb, basalt columns and graphene all arrive at the same shape.

Games and graphics. Hexagonal grids avoid the diagonal-distance problem that square grids have, since every neighbour is the same distance away.

Sources and methodology

The formulas and the constructibility result are standard; these are the references.

Method. Every input route reduces to the side length first and then derives everything else from it, so the five accepted measurements cannot disagree with each other — the suite checks all five round-trip back to the same polygon for every side count from 3 to 24. Areas are separately verified against the shoelace formula applied to generated vertex coordinates, which is a genuinely independent route rather than the same formula rearranged. That engine is verified on every change against 114 hand-written assertions, including that every one of the five input routes reconstructs the same polygon, and that the areas match a shoelace calculation on generated vertices from 3 sides to 40. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Polygon AreaThe shoelace formula on any number of corners, kept exact — with the signed area whose sign is the winding direction, and a clear warning where a self-intersecting outline breaks it.
CircleRadius, diameter, circumference and area from any one of them — and why a 16-inch pizza is four times an 8-inch one rather than twice.
TriangleSolve any triangle from three measurements — and when two sides and a non-included angle describe TWO triangles, this one shows both instead of picking one.
QuadrilateralRectangle, square, parallelogram, rhombus, trapezoid and kite — each asking for the measurement its own formula needs, with the perpendicular-height trap refused rather than silently wrong.
Circular SegmentSegment area, chord, arc and sagitta from the angle, the chord or the height — with the sector shown alongside, because a segment is not a sector and the gap is large.
EllipseArea, perimeter, foci and eccentricity — with the perimeter approximation's error reported, because an ellipse perimeter has no exact elementary formula at all.

More in Math, or browse all calculators.

Read the guide

For a polygon that is not regular, the Polygon Area Calculator works from the corner coordinates instead.

Educational use disclaimer

This is an educational tool. Values involve trigonometric functions of π/n and are therefore decimal.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 7 September 2026

  1. Published the regular polygon page accepting any of five measurements — side, apothem, circumradius, perimeter or area — since any one of them fixes the rest, and insisting on the side length is an arbitrary choice that makes the page harder to use.
  2. Reports whether the polygon is constructible with compass and straightedge, which Gauss settled at nineteen: only those whose odd part is a product of distinct Fermat primes, which is why a 17-gon can be drawn and a 7-gon cannot.
  3. Separates the two radii a polygon has, since the area formula wants the apothem and using the circumradius instead overstates the answer — by more the fewer sides there are.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.