Rounded Polygon Calculator

Rounded Polygon Calculator

Emerging AI Skill PRO

Enter Calculation

Formula

A=na24tan⁡πn−nr2tan⁡πn+πr2,P=na−2nrtan⁡πn+2πr,s=a−2rtan⁡πnA = \frac{n a^2}{4\tan\frac{\pi}{n} } - n r^2 \tan\frac{\pi}{n} + \pi r^2,\; P = n a - 2 n r \tan\frac{\pi}{n} + 2\pi r,\; s = a - 2r\tan\frac{\pi}{n}
Usage stats

Advertisement

Results

Area A
64.629396
square units
Side a of the sharp polygon5
Straight edge s3.845299
Corner radius r1
Perimeter P29.354982
Area of the sharp polygon64.951905square units
Inradius (centre to each straight edge)4.330127
Outer radius (centre to the middle of each corner arc)4.845299

Report an error on this page

What this calculator does

A rounded polygon here is a regular polygon with n sides of length a whose corners are all rounded with the same radius r: at every corner an arc of radius r replaces the tip and touches the two sides it joins. What is left of each side is a straight edge s = a − 2r·tan(180°/n). The radius can be anything from 0 (the sharp polygon) to the polygon’s inradius (then the shape is its inscribed circle).

Derivation of the formulas

Area:

$$ A = \frac{n a^2}{4\tan\frac{\pi}{n} } - n r^2 \tan\frac{\pi}{n} + \pi r^2 $$

Perimeter:

$$ P = n a - 2 n r \tan\frac{\pi}{n} + 2\pi r $$

Straight edge:

$$ s = a - 2r\tan\frac{\pi}{n} $$

Each interior angle of the regular polygon is \(\pi - \tfrac{2\pi}{n}\). An arc of radius r that touches both sides of a corner meets them at the tangent length \(r\cot\tfrac{\text{angle} }{2} = r\tan\tfrac{\pi}{n}\) from the tip, and it turns through the exterior angle \(\tfrac{2\pi}{n}\). The tip cut off is a kite of area \(r^2\tan\tfrac{\pi}{n}\) minus the circular sector \(\tfrac{1}{2}r^2\cdot\tfrac{2\pi}{n}\). Over the n corners the arcs add up to one full turn, so \(A = A_{\text{polygon} } - n r^2\tan\tfrac{\pi}{n} + \pi r^2\) and \(P = na - 2nr\tan\tfrac{\pi}{n} + 2\pi r\), where the sharp polygon has \(A_{\text{polygon} } = \tfrac{na^2}{4\tan(\pi/n)}\).

Solving from what you know

Choose what you know: Sides n, side a of the sharp polygon and corner radius r; Sides n, straight edge s and corner radius r; Sides n, side a of the sharp polygon and area A. The calculator first solves for the sizes that define the shape and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000 (a length the shape allows to shrink away, such as an inner radius, may also be 0), and each area from 0.000000000001 to 1,000,000,000,000,000,000; anything outside is refused with a sentence that names the range. A combination that cannot form the shape is refused with a sentence that says why; a limit that is still a real shape, such as an inner radius of 0, is answered.

Worked example

With the defaults n = 6, a = 5 and r = 1: the sharp hexagon has A ≈ 64.951905; rounding removes 6·tan 30° − π ≈ 0.322467, so A ≈ 64.629438 and P = 30 − 12·tan 30° + 2π ≈ 29.355010.

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.

Advertisement
A rounded hexagon overlaid on its sharp outline, with the number of sides, original side length, and corner radius marked.
In the worked example, the sharp hexagon has 6 sides of length 5, and each corner is rounded with radius 1.

Frequently asked questions

Is the side a measured before or after rounding?

Mode one takes a as the side of the sharp polygon before its corners are rounded. If you measured the straight part of a side on a rounded object, use the "straight edge s" mode.

Does rounding change the inradius?

No. The straight edges stay on the polygon’s sides, so the distance from the centre to each edge is still a / (2 tan(180°/n)); only the corners come closer to the centre.

How accurate are the results?

Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.

Advertisement
The worked-example rounded hexagon leads to its calculated area and perimeter.
For the example inputs, the rounded polygon has area approximately 64.629438 and perimeter approximately 29.355010.

Reference

D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018

Last updated: