Area Where Two Circles Overlap

Finds the area shared by two circles. The overlap is two circular segments joined along a line, so each sector has its triangle subtracted before the two are added. The length of the common chord is also shown.

Two circles that partly overlap produce a lens-shaped region. Its area is two circular segments, one cut from each circle, joined along their common chord.

S=r12θ1+r22θ212(d+r1+r2)(d+r1r2)(dr1+r2)(d+r1+r2)S = r_1^2 \theta_1 + r_2^2 \theta_2 - \dfrac{1}{2}\sqrt{(-d + r_1 + r_2)(d + r_1 - r_2)(d - r_1 + r_2)(d + r_1 + r_2)}
θ1=arccosd2+r12r222dr1θ2=arccosd2+r22r122dr2\theta_1 = \arccos\dfrac{d^2 + r_1^2 - r_2^2}{2 d r_1} \qquad \theta_2 = \arccos\dfrac{d^2 + r_2^2 - r_1^2}{2 d r_2}

The angles come from the law of cosines. Joining the two centres to one of the intersection points forms a triangle with sides r1r_1, r2r_2 and dd, and its angles are exactly θ1\theta_1 and θ2\theta_2.

The square root subtracted at the end is four times the area of that same triangle, written out from Heron's formula. Adding the two sectors counts the triangle twice, and this removes the duplicate.

Example

Take the defaults: circles of radius 5 and 4 whose centres are 6 apart.

θ1\theta_1 is arccos(45÷60)\arccos(45 \div 60), about 0.7227, and θ2\theta_2 is arccos(27÷48)\arccos(27 \div 48), about 0.9728, both in radians.

Then 25×0.722725 \times 0.7227 is about 18.0683, 16×0.972816 \times 0.9728 is about 15.5647, and half the square-root term is about 19.8431. Combining them gives an overlap of about 13.7995.

The common chord is about 6.6144 long. The smaller circle has an area of about 50.2655, so roughly 27.45% of it lies in the overlap.

Three cases

Centres too far apart mean no overlap at all. That is when dd is at least r1+r2r_1 + r_2, and the area is 0. At exactly that distance the circles touch externally, which still encloses nothing.

Centres too close mean the smaller circle sits entirely inside the larger one. That is when dd is at most the difference of the radii, and the overlap is simply the smaller circle. There are no intersection points, so the common chord is reported as 0.

Only between those two limits does the formula above apply. It is the calculation behind questions such as how much two transmitter or sensor coverage areas overlap.