What is a round-edged polygon?
A round-edged polygon is a regular polygon with n edges of length a in which every edge is replaced by a circular arc that bulges outward. All n arcs have the same radius r, and the central angle of each arc is equal to the interior angle of the polygon, (n − 2)·180°/n. The shape is the polygon together with the n circular segments cut off by its edges; its outline is made of the n arcs only. Where two arcs meet, the angle inside the shape is twice the interior angle of the polygon: 120° for n = 3, which is the Reuleaux triangle; exactly 180° for n = 4, where the four arcs lie on one circle and the shape is the circle through the corners of the square; and more than 180° for every n from 5 on, so those shapes have inward-pointing notches at the corners and look like a flower. A polygon with rounded corners and straight edges is a different shape, the rounded polygon.
How to use it
Type the number of edges n, a whole number from 3 to 1,000 (the upper limit is this page's choice), choose which length you know, and type it: the edge length a of the polygon, the radius r of the arcs, the length l of one arc or the height h of one segment. The page gives the other three, the perimeter and the area; the length you typed is shown back too, rounded like the other results. The length unit is only a label: lengths come out in that unit and areas in its square. The number of edges n must be a whole number from 3 to 1,000 and edge length a of the polygon, arc radius r, arc length l and segment height h must each be from 0.000001 to 1,000,000,000; a number may also be typed in exponent form such as 2.5e3. Anything else, including text, is refused with a sentence that says why, and so is a set of values that cannot form the shape.
Derivation of the formulas
Each arc spans one edge as its chord and has the central angle θ = (n − 2)π/n, the interior angle of the polygon. A chord of length a under a central angle θ belongs to a circle of radius r with a = 2r sin(θ/2), and θ/2 = π/2 − π/n, so
$$ a = 2r\cos\frac{\pi}{n}, \qquad l = \theta r = \frac{(n-2)\pi r}{n}, \qquad h = r\left(1 - \cos\frac{\theta}{2}\right) = r\left(1 - \sin\frac{\pi}{n}\right) $$
Whichever length you type, these three relations give r and then the other lengths. The area is the regular polygon plus n circular segments of radius r and central angle θ:
$$ A = \frac{n a^{2}}{4\tan(\pi/n)} + \frac{n r^{2}}{2}\left(\theta - \sin\theta\right), \qquad P = n l = (n - 2)\pi r $$
The tangent of an arc at its end makes the angle θ/2 with its chord, so at a corner the shape has the interior angle θ + 2·θ/2 = 2θ. For n = 3 this is 120°, r = a and every arc is centred on the opposite corner: the Reuleaux triangle, with A = (π − √3)a²/2. For n = 4 it is 180°: r = a/√2 is the circumradius of the square, all four arcs are centred at its middle and the shape is the circle of radius r, with A = πr² and P = 2πr. For every n from 5 on the angle 2θ exceeds 180°.
The page evaluates these forms in 64-digit decimal arithmetic, with sine, cosine and π/n from their series, and rounds each result once.
Worked example
The page opens with number of edges n = 6, edge length a of the polygon = 2. Then area A ≈ 15.305784; perimeter P (the n arcs) ≈ 14.510395; arc radius r ≈ 1.154701; arc length l (one edge) ≈ 2.418399; segment height h ≈ 0.57735. Each value is shown rounded once, from the computed number, to six decimals or to 12 significant digits, whichever is fewer; a value of 10¹² and more is written as its 12 significant digits times a power of ten, such as 1.23456789012 × 10¹⁵, since a computed number holds no more digits than that; a value below 0.0000005 is shown as its plain 12-digit number instead.
Frequently asked questions
What is special about n = 3 and n = 4?
For n = 3 every arc is centred on the opposite corner and the shape is the Reuleaux triangle, a curve of constant width. For n = 4 the four arcs join without a corner into the circle through the corners of the square, so the page then gives the values of that circle and says so under the result.
Is the shape convex?
Only for n = 3 and n = 4. From n = 5 on, two neighbouring arcs meet at an angle of more than 180° inside the shape, so the corners point inward and the shape is not convex.
Which values of n does the page accept?
Whole numbers from 3 to 1,000. A polygon needs at least three edges; the upper limit is this page's choice. A fraction, text or a number outside that range is refused with a sentence that says so.
Why does the unit not change the numbers?
The calculator does not convert between units. Every length is read in the unit you chose, so the unit only labels the results; areas come out in that unit squared.
How accurate are the results?
Every result is computed in 64-digit decimal arithmetic, with π to 57 digits and sine, cosine and arctangent summed from their series until a term falls below 10⁻⁶⁶, by forms that lose no digits to cancellation; each shown value is that result rounded once to six decimals or to 12 significant digits, whichever is fewer. Every digit shown is correct for every input the page accepts.
References
H. S. M. Coxeter, Introduction to Geometry, 2nd edition, Wiley, 1969
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018