Polygon Calculator

Side length, across flats, across corners, area and miter angle for any regular polygon from 3 to 24 sides.

I know the
Miter angle
30.00°
per end, for a frame
Interior angle
120.00°
DimensionValue
Side length4.0000
Across flats6.9282
Across corners8.0000
Perimeter24.000
Area41.569

Regular polygon formulas

interior angle = (n − 2) × 180° / n
frame miter = 180° / n
circumradius R = s / (2 sin(180°/n))
inradius r = s / (2 tan(180°/n))
area = n s² / (4 tan(180°/n))

Across flats is twice the inradius — the wrench size of a hex. Across corners is twice the circumradius — the diameter of round stock you need to turn or mill the shape.

Cutting a frame

Each piece of an n-sided frame is mitered 180°/n at both ends: 30° for a hexagon, 22.5° for an octagon. Cut length on the outside edge equals the side length.

Common questions

What miter angle for an octagon?

22.5° on each end of every piece.

How big a round bar for a 1″ hex?

A 1″ hex across flats is 1.1547″ across corners, so you need at least 1.155″ round stock.

MathApps is free and ad-free for now. If it helped, buy us some art supplies — supporters never see ads, even if we add them.