Regular Polygon Area and Perimeter Calculator
A regular polygon — every side and every angle equal — can be fully worked out from just two figures: its number of sides and the length of one side. The same formula covers the pentagon, the hexagon, the octagon… any number of sides at all.
Enter these two values: the calculator gives the perimeter, the apothem (the radius of the inscribed circle) and the area.
Number of sides and side length
Starred words are unpacked in the glossary at the foot of the page.
What “regular” actually requires
Regular means both at once: every side the same length, every interior angle the same size. Drop either condition and the figure leaves the family. A rhombus has equal sides but two pairs of angles; a rectangle has equal angles but two side lengths. Only the square is both, so only the square is regular among those two. A square is the L = W case of the rectangle, and the regular 4-gon of this page. No extra calculator.
n starts at 3 (equilateral triangle) and has no theoretical ceiling. Four is a square, five a pentagon, six a hexagon. All of them are n equally spaced points on a circle, joined in order. That circle is the circumcircle, and it always exists — that is part of what “regular” buys. Convex only, on this page. Star polygons (pentagram, hexagram) are a different catalogue, with different formulae, and are left aside.
The length unit on the form is a label. Side 4 stays 4; the area comes back in that unit squared. Switching millimetres to metres does not convert a previous entry.
The apothem as inradius
Drop a perpendicular from the centre to a side; stop at the midpoint. That segment is the apothem*. Its length is also the inradius: the radius of the unique circle that touches every side and crosses none of them.
The tangent is not decoration. Slice the polygon into n isosceles triangles, then each of those into two right triangles. In one of those, the side opposite π/n is a/2 and the adjacent side is the apothem. Hence tan(π/n) = (a/2) / apothem.
Shop-floor language rarely says “apothem”. Turners talk about the radius to a flat, or the inscribed-circle radius. Same length. On a hexagon it equals (√3 / 2) a — which, not by accident, is also the height of an equilateral triangle of side a. The same quantity, on a triangle rather than a polygon, is the inradius on the incircle and circumcircle page.
n isosceles triangles from the centre
From the centre, draw a radius to each vertex. The result is n identical isosceles triangles with sides R, R and a. The apex angle is 2π/n. One of them has area ½ R² sin(2π/n), so the whole polygon is
A = (n / 2) · R² · sin(2π / n)
This form is given a, not R. But a = 2 R sin(π/n), and the apothem is R cos(π/n). Substitute and A becomes n · a · apothem / 2 — perimeter times apothem, halved. That is the line under the results table.
It is the school formula “triangle = base × height ÷ 2”, used n times, with the apothem as height and one side as base. Nothing fancier. The triangle solver will confirm each of those isosceles slices if the central angle and two radii are preferred as inputs.
Interior angle: (n − 2) × 180° / n
Any convex n-gon has interior angles summing to (n − 2) × 180°. Share that sum equally and the corner of a regular one appears:
interior angle = (n − 2) × 180° / n
Triangle: 60°. Square: 90°. Pentagon: 108°. Hexagon: 120°. Octagon: 135°. As n grows the corner heads for 180° — locally the polygon flattens, vertex by vertex, toward a curve.
The central angle* is 360° / n. It is for drawing, not for measuring a corner. Do not swap them: a hexagon has 60° at the centre and 120° at each vertex. The diagram shows both, without labelling them as such.
Equilateral triangle, square, hexagon
Three values of n collapse by hand, no tangent needed.
- n = 3, equilateral: A = (√3 / 4) a². Apothem a√3 / 6, circumradius a√3 / 3. Same figure as the equal-sided case on the triangle area calculator.
- n = 4, square: A = a², apothem a/2, circumradius a√2 / 2. Nobody reaches for a tangent to do a square.
- n = 6, hexagon: the circumradius equals the side. A = (3√3 / 2) a², apothem (√3 / 2) a. Six equilateral triangles meeting at the centre.
A pentagon wants tan 36°, which is not a schoolbook number. The general formula on this page handles it. Same story for heptagons, nonagons, anything without a famous shortcut.
Starting from the circumradius instead of the side
Sometimes the circle is to hand, not the side. A round blank to mill into an octagon, a barrel, a sighting disc. Then a = 2 R sin(π/n), and
A = (n / 2) · R² · sin(2π / n) · perimeter = 2 n R sin(π / n)
This form asks for the side. If R is known, convert first: for a hexagon a = R, nothing to do; for a square a = R√2. The circle itself has area πR², which an inscribed polygon never quite reaches.
Apothem and R are tied by cos(π/n) = apothem / R. As n grows that cosine heads for 1: the two radii merge, and the polygon sits on its circle. The circumradius* of a triangle, R = abc/(4A), is the same quantity restricted to n = 3.
A regular hexagon of side 4
n = 6, a = 4. Circumradius 4 — the hexagon's privilege. Apothem: 4 / (2 tan 30°) = 4 / (2/√3) = 2√3 ≈ 3.464. Perimeter 24.
A = 24 × 2√3 / 2 = 24√3 ≈ 41.569 · or (3√3 / 2) × 4² = 24√3
Both writings agree, which is the point of a check. Six equilateral triangles of side 4 have area 4√3 each; times six is 24√3. Same cake, cut from the middle. Entered as 6 and 4 on the form, those numbers should come back. The interior angle, 120°, is not printed, but the sketch opens each corner wider than a square and tighter than an octagon.
As n grows, the polygon hugs a circle
Archimedes used this to chase π. A regular n-gon inscribed in a circle of radius R has area (n/2) R² sin(2π/n). Let n run to infinity: sin(2π/n) behaves like 2π/n, and the area tends to πR². The perimeter 2 n R sin(π/n) tends to 2πR.
In practice an octagon already sits fairly snugly. A dodecagon (n = 12) is closer. At n = 60 the eye stops seeing corners. Most drawing software that “draws a circle” is plotting a polygon with a few hundred sides. For any job actually built, the area error has vanished.
Hold R fixed when making that comparison. Hold a fixed and crank n up, and the polygon inflates — its radius is a / (2 sin(π/n)), which diverges. That is not a circle approximation. That is a blow-up.
Numbers, with R = 1. A square inscribed in that circle has area 2. An octagon has area 2√2 ≈ 2.828. A dodecagon, about 3.000. The circle itself is π ≈ 3.142. The leftover shrinks fast: the octagon already captures 90% of the disc, the dodecagon 95%. Archimedes squeezed π between a 96-gon and its circumscribed twin; the same idea, more sides.
The compact formula A = n a² / (4 tan(π/n))
The apothem can be retired from the algebra. Since apothem = a / (2 tan(π/n)) and A = n a · apothem / 2, they cancel to
A = n a² / (4 tan(π / n))
One formula, two inputs. Textbooks often print it that way. This page keeps the apothem in the results because it is visible on the drawing — the inradius, a length a machinist measures. The two writings are identical.
For n = 6, tan(π/6) = 1/√3, so A = 6 a² / (4/√3) = (3√3 / 2) a². The hexagon shortcut falls out by itself. A regular pentagon has a closed form, (¼)√(5(5+2√5)) a², which nobody recites; an octagon has A = 2(1+√2) a². A regular heptagon (7 sides) does not even have a “pretty” finite nested-radical area — and that is fine. tan(π/7) is enough.
One side off, and the figure is no longer regular: back to slicing it into ordinary triangles and running Heron on each. “Regular” gets dropped in speech. A highway octagon is regular. A gym “octagon” is often stretched. This calculator assumes equal sides and equal angles, strictly. The rest of plane geometry on this site treats those irregular cases one shape at a time.
Glossary
- Apothem
- The perpendicular from the centre of a regular polygon to the midpoint of a side. Equal to the inradius: the radius of the unique circle tangent to every side.
- Central angle
- The angle at the centre between two adjacent vertices, 360° / n (or 2π / n radians). Not to be confused with the interior angle at a vertex.
- Circumradius (R)
- The radius of the unique circle through all the vertices of a regular polygon. Related to the side by a = 2 R sin(π / n).