Regular Polygon Perimeter

Also known as perimeter of a hexagon · perimeter of an octagon · n times s

P=nsP = n s

Worked example: octagon of side 3 m → perimeter 24 m — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Learning zone

Regular Polygon Perimeter explained

nsP

Every side is the same length, so the distance around is nn of them: P=nsP = ns. "Regular" is doing more work in that sentence than it appears to. It means equal sides and equal angles, and for anything past a triangle the second does not follow from the first — a rhombus has four equal sides and is not a square. For perimeter it makes no difference; for everything else about the shape it makes all the difference.

The useful direction is s=P/ns = P/n, which turns a length of stock into a cut list. An octagonal planter built from 4.8 m of 2×8 has eight sides of 600 mm. But the cut length is only half of what you need, and here is the fact that belongs on this page: the mitre angle. Going once around a closed shape turns you through 360° in total, so each of the nn corners turns you 360/n360/n — the exterior angle. Split between two mitred ends, each cut is 180/n180/n: 22.5° for an octagon, 30° for a hexagon, 36° for a pentagon, and the familiar 45° for a square. That number and the side length together are the whole job.

Let nn grow and the polygon closes in on a circle, which is exactly how Archimedes got at π\pi: he computed the perimeters of inscribed and circumscribed 96-gons and trapped the circle's circumference between them. The link to a circle is also how you size a polygon from a hole rather than from a side — for a polygon inscribed in a circle of radius RR, s=2Rsin⁡(π/n)s = 2R\sin(\pi/n).

Two traps. The first is treating the perimeter as the stock required. Mitred pieces are cut long point to long point, so each one is longer than the finished side by twice the material thickness times tan⁡(180/n)\tan(180/n), and every cut eats a saw kerf; ordering exactly PP of anything guarantees coming up short. The second catches anyone with a wrench: on a hexagon the side length ss is not the size stamped on the fastener. Across the corners is 2s2s and across the flats is s3≈1.732ss\sqrt{3} \approx 1.732s, and hex hardware is specified across the flats — so a 19 mm nut has sides of 10.97 mm and a perimeter of 65.8 mm. Feeding 19 into ss here answers a different question entirely. Solving for nn should also come back a whole number of at least 3; a fractional result means the side length and perimeter do not describe a closed polygon.

Regular Polygon Perimeter formula

P=nsP = n s
Where
  • PP= Perimeter (m)
  • nn= Number of sides
  • ss= Side length (m)

Missing one of these? Work it out first, then come back