What is a circular corner?
A circular corner is a right-angled corner closed by a concave circular arc. Take a right triangle with legs a and b and hypotenuse s, and a circle of radius r through the two sharp corners whose centre lies on the far side of the hypotenuse from the right angle. The circular corner is the part of the triangle outside that circle: the triangle with the circular segment on the chord s removed. With equal legs it is mirror symmetric; with a radius equal to one leg on a square corner it is the round corner (fillet). When the circle is small, its arc runs past a leg; then the part of that leg inside the circle is cut off too, and the straight edges a′ and b′ are the parts of the legs that are left.
How to use it
Choose what you know: both legs, or one leg and the chord s; then type the radius r. A leg must be shorter than the chord, and the radius must be greater than s/2. At r equal to s/2 the circle is the circle through all three corners of the triangle and covers it completely, so no corner is left; a smaller radius cannot pass through both ends of the chord. Both are refused with a sentence that says so. These two tests use the values as you typed them, rounded to the 12 significant digits the page shows: a leg that equals the chord to 12 digits, or a radius whose double equals s to 12 digits, counts as equal and is refused. The length unit is only a label: lengths come out in that unit and areas in its square. Leg a, leg b, chord s and circle radius r 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
Put the right angle C at the origin, leg b on the x-axis and leg a on the y-axis. The midpoint M of the hypotenuse is the centre of the circle through all three corners, at distance s/2 from each. The circle of radius r through both ends of s has its centre O on the perpendicular bisector of s at distance d from M:
$$ d = \sqrt{r^{2} - \frac{s^{2}}{4}}, \qquad \theta = 2\arctan\frac{s/2}{d}, \qquad |OC|^{2} = r^{2} + \frac{2abd}{s} $$
The last relation shows that C lies outside the circle exactly when d > 0, that is r > s/2. The segment height is r − d = (s²/4)/(r + d). The arc leaves each end of the chord at the tangent–chord angle θ/2; it stays inside the triangle at the end of leg b while θ/2 is not larger than the triangle angle there, whose sine is a/s, that is while 2ra ≥ s² (and 2rb ≥ s² at the other end). Otherwise the circle meets that leg a second time. With the centre O = (b/2 + da/s, a/2 + db/s), the second meeting points on the axes are x = 2da/s on leg b and y = 2db/s on leg a, so the straight edges that remain are
$$ a' = \frac{2db}{s} \ \text{(arc past leg a)}, \quad b' = \frac{2da}{s} \ \text{(arc past leg b)}, \quad \text{otherwise } a' = a,\ b' = b $$
In every case the circular corner is the right triangle with legs a′ and b′ less the circular segment on its hypotenuse. That chord subtends the central angle ψ = θ with no trimming, ψ = 2·arctan(a/b) when the arc runs past leg b (only b is trimmed), ψ = 2·arctan(b/a) when it runs past leg a (only a is trimmed), and ψ = 180° − θ = 2·arctan(2d/s) when both are:
$$ A = \frac{a'b'}{2} - \frac{r^{2}}{2}\left(\psi - \sin\psi\right), \qquad P = a' + b' + r\psi $$
The page forms d² = r² − s²/4 and, from a leg and the chord, the other leg² = (s − a)(s + a) exactly from the typed decimals before taking any square root, so a radius just above s/2 or a leg just below the chord keeps every digit. Whether the arc runs past leg b is decided by 2ra < s², squared to 4r²a² < s⁴ (past leg a: 4r²b² < s⁴), with the other leg² = s² − a² or s² = a² + b², all exactly from the typed decimals; the two cases give the same shape at the switch, so a radius close to it gets the right straight edges. For ψ below 1 radian it evaluates ψ − sin ψ = ψ³/6 − ψ⁵/120 + … as a series, which keeps every digit even when the corner is a thin sliver.
Worked example
The page opens with leg a = 6, leg b = 8, circle radius r = 10. Then area A ≈ 14.941393; perimeter P ≈ 24.471976; arc length (the curved edge) ≈ 10.471976; segment angle θ (central angle over the chord s) ≈ 60°; segment height (from the chord s to the arc) ≈ 1.339746. 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
Why must r be larger than s/2?
Every circle through both ends of the hypotenuse has radius at least s/2. The one with radius exactly s/2 is the circle through all three corners of the right triangle (Thales), and it covers the triangle, so nothing is left.
What are a′ and b′?
The lengths of the straight edges that remain. They equal the legs unless the arc runs past a leg; the page then says so under the results.
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?
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.
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