What is a lune?
Two circles with the radii a and b whose centres lie the distance c apart overlap when c is less than a + b and greater than the difference of the radii. Their overlap is the lens; each lune (also called a crescent) is one circle with the lens taken away. The line through the two crossing points is the common chord; it cuts the lens into one circular segment of each circle.
This calculator finds the area of the lune of circle a, the area of the lune of circle b, the area of the lens, the area covered by the two circles together, the length of the common chord, and the angle at each centre between the lines to the two crossing points. The two circles calculator starts from the same three numbers and also gives the perimeters of the lens and of the union.
How to use it
Enter the two radii and the distance between the centres; the radii may be entered in either order, and each lune is named after its own circle. The page refuses a distance at which the circles do not cross (they lie apart or touch from outside, or one lies inside the other or touches it from inside), and decides that on the exact digits you typed. Every measure is solved from the values you enter. The length unit is a label only: lengths are shown in that unit and areas in its square. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
Let the circles cross at P and Q. The triangle formed by the two centres and P has the sides a, b and c, and with p = a + b + c, u₁ = b + c − a, u₂ = a + c − b and u₃ = a + b − c (all greater than 0 exactly when the circles cross) Heron's formula gives its area and so the half chord h:
$$h = \frac{\sqrt{p\,u_1 u_2 u_3} }{2c}$$A circle cut by a chord of half length h into a piece of height H (measured from the chord, H may exceed the radius) has the radius r = (h² + H²)/(2H) and the piece spans the angle 2θ at the centre with tan(θ/2) = H/h, so with τ = H/h its area is the circular segment r²(θ − sin θ cos θ), which simplifies to
$$G = h^2\,\Gamma(\tau), \qquad \Gamma(\tau) = \frac{(1 + \tau^2)^2}{2\tau^2}\arctan\tau - \frac{1 - \tau^2}{2\tau} = \sum_{n=1}^{\infty} \frac{(-1)^n\, 4\,\tau^{2n-1} }{(2n+1)(2n-1)(2n-3)}$$The common chord cuts each circle into two pieces. The piece of circle a inside circle b has the height u₁u₃/(2c) and the piece outside has the height p u₂/(2c); for circle b the inside piece has the height u₂u₃/(2c) and the outside piece p u₁/(2c). The lens is the sum of the two inside pieces, and the lune of circle a is its outside piece minus the inside piece of circle b, two pieces on the same side of the chord whose heights differ by exactly u₂ = a + c − b:
$$\tau_{a,\mathrm{in} } = \sqrt{\frac{u_1 u_3}{p\,u_2} },\quad \tau_{b,\mathrm{in} } = \sqrt{\frac{u_2 u_3}{p\,u_1} },\quad L = h^2\left(\Gamma(\tau_{a,\mathrm{in} }) + \Gamma(\tau_{b,\mathrm{in} })\right),\quad M_a = h^2\left(\Gamma\left(\sqrt{\tfrac{p\,u_2}{u_1 u_3} }\right) - \Gamma(\tau_{b,\mathrm{in} })\right)$$This holds also when a centre lies beyond the common chord, on the side of the other centre: that circle's inside piece is then more than half of it and its τ is greater than 1. When the circles nearly touch, the two pieces in that difference are almost equal; the page then never subtracts the two areas, it subtracts the arguments inside the series (each power difference τ₁ᵏ − τ₂ᵏ as a sum of positive terms times τ₁ − τ₂, which is u₂·2c/√(p u₁u₂u₃) exactly), or uses arctan τ₁ − arctan τ₂ = arctan((τ₁ − τ₂)/(1 + τ₁τ₂)). The union is the sum of the two lunes and the lens, the common chord is 2h, and the angle at the centre of circle a over the chord is 4 arctan τ_{a,in}. The same areas were also obtained another way when the page was built: the classical form a²(α − sin α cos α) + b²(β − sin β cos β) for the lens with cos α = (c² + a² − b²)/(2ac), worked at several hundred digits, and a numerical integration over thin horizontal strips.
Worked example
With the defaults a = 3, b = 5 and c = 6 the lens has the area 6.927129 square units, the lune of circle a 21.347205 and the lune of circle b 71.612687; together the circles cover 99.887021 square units, the common chord is 4.988877 long, and the angles at the centres over the chord are 112.502023° and 59.85287°.
FAQ
Which inputs are refused?
A distance c equal to or greater than a + b (the circles touch from outside or lie apart), a distance c equal to or less than the difference of the radii (one circle inside the other), a value that is 0, negative or text, and values outside 0.000001 to 1,000,000,000. For every pair of radii some distance in that range makes the circles cross, so each of these refusals can be fixed by changing c alone.
Does it matter which radius I enter first?
No. The lens, the union and the chord stay the same when a and b are swapped; the two lunes and the two angles change places, because each is named after its own circle.
Why is the angle sometimes greater than 180°?
The angle is measured at the centre between the lines to the two crossing points, on the side of the arc that bounds the lens. When the centre of circle a lies beyond the common chord, on the side of the other centre (exactly when c² + a² is less than b²), that arc is more than half of circle a and the angle is more than 180°; with c² + a² equal to b² it is exactly 180°.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits from the exact sums a + b + c, b + c − a, a + c − b and a + b − c of your digits (square roots and inverse tangents to that precision, π to 90 digits), a thin lune or a thin lens directly from these sums by a series or a rearranged formula, never as the difference of two nearly equal areas. The common chord is rounded exactly: its square is a fraction of your digits, so the page decides with whole-number arithmetic on which side of each rounding point it lies; an angle of exactly 120°, 180° or 240° is shown exactly. For the areas and the other angles, when a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits; a value typed with hundreds of digits could still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Accuracy and input range
Each value is rounded once to the digits shown, a value exactly halfway being rounded up, from a calculation carried well beyond those digits: 80 significant digits from the exact sums a + b + c, b + c − a, a + c − b and a + b − c of your digits (square roots and inverse tangents to that precision, π to 90 digits), a thin lune or a thin lens directly from these sums by a series or a rearranged formula, never as the difference of two nearly equal areas. The common chord is rounded exactly: its square is a fraction of your digits, so the page decides with whole-number arithmetic on which side of each rounding point it lies; an angle of exactly 120°, 180° or 240° is shown exactly. For the areas and the other angles, when a value lies very close to the halfway point between two shown values, the page recalculates with 160 and then 320 digits; a value typed with hundreds of digits could still lie closer to a halfway point than that, and its last shown digit may then be off by one.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (circles: segments, and the triangle formulas for the half angles)