Overlapping circle area

Calculate the shared lens area and overlap fraction from radii and center distance.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Lens area = sector areas − triangle areas

Radii 3 and 2 at distance 4 overlap by about 1.98979, a smaller-circle fraction of about 0.158343.

Planar circles only; tangent circles have overlap area 0.

Frequently asked questions

What is the overlap ratio for containment?

Overlap area is divided by the smaller circle area; complete containment gives a ratio of 1.

What happens when circles touch externally?

When center distance equals or exceeds the sum of radii, shared area is 0.

Why are extremely different circle scales rejected?

When the small radius approaches floating-point spacing at the overall scale, containment and crossing cannot be distinguished. A small radius at or below 8×Number.EPSILON×maximum length is rejected.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors