Shapes & spaces

Circle tangent to three circles calculator

Solve for finite positive-radius circles tangent to three given circles under an explicit external/internal tangency pattern.

Your numbers

Exactly three rows. Radii must be positive; centers must be noncollinear and numerically well separated.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The three-circle Apollonius problem seeks an unknown circle tangent to each supplied circle. Different external/internal choices can produce different solutions, so this page makes all three choices explicit. Subtracting squared distance equations removes the unknown center’s common squared terms and expresses its coordinates as affine functions of the unknown radius. One remaining quadratic supplies candidate radii; each positive candidate is checked against all original tangency distances.

THE FORMULA|C−C_i|²=(r+s_iR_i)²; s_i=+1 for external and −1 for internal tangency, followed by original-distance verification.

A worked example

Place three unit circles at (0,0), (4,0) and (2,2√3). For all-external tangency, the solution center is the equilateral triangle’s circumcenter (2,2√3/3) and the unknown radius is 4/√3−1≈1.30940108. For all-internal tangency, the enclosing solution has the same center and radius 4/√3+1≈3.30940108. The selector pattern therefore changes the requested geometry, not just a display label.

Good to know

The three given radii must be positive, with finite centers within ±10⁹ and noncollinear, sufficiently separated center geometry. Collinear-center and underdetermined solution families are unsupported and rejected. Only positive finite-radius circles are returned; straight-line generalized solutions are not. Internal tangency permits either circle to contain the other. Squared-equation candidates are verified numerically, and coincident circles are not counted as a single tangent contact.

An internal contact is a distance difference, not a negative physical radius

External tangency means the distance between centers is the sum of the two radii. Internal tangency means it is their absolute difference, because one disk contains the other and their boundaries meet at one point. The squared algebra can represent that difference without choosing in advance which circle is larger. The final geometric check uses the absolute distance relation and requires the unknown radius itself to remain positive.

Squaring can conceal distinctions that matter to the original geometry. A coincident circle satisfies a zero distance and zero radius difference but shares an entire boundary, not one tangency point. Such candidates are not accepted as ordinary tangent-circle solutions. The residual column reports the largest remaining distance mismatch across the three constraints, which is more informative than displaying a radius obtained from the quadratic alone.

Three equal input circles admit a central externally tangent solutionExternal radius:4/√3 − 1Verify all three center-distance equations
Unit circles centered at the vertices of an equilateral side-four triangle have an externally tangent central circle of radius 4/√3−1. The internal enclosing solution instead has radius 4/√3+1. Only the central external solution is drawn.

The Circle rectangle overlap area calculator measures an existing common region. Apollonius tangency instead solves for a new circle satisfying three distance constraints.

One selector pattern is not the entire Apollonius solution catalogue

Three binary tangency choices give eight patterns to inspect. A pattern can have no valid finite positive circle, one circle or more than one, depending on the supplied geometry. The page solves only the pattern currently selected and sorts its surviving candidates by radius. Changing selectors is the way to ask a different pattern; it is not a procedure for discarding an inconvenient answer from an otherwise fixed problem.

Noncollinear centers let the two subtracted equations determine the center’s affine dependence on radius. Collinear centers require a separate treatment and can produce symmetric alternatives or more degenerate families. Rather than returning an arbitrary side or silently dividing by a nearly zero determinant, this bounded implementation rejects that configuration. It also does not claim a compass-and-straightedge construction: the result is a numerical solution of stated tangency equations with explicit geometric checks.

A few questions, answered

Why do different patterns return different counts?

They impose different tangency relations, and positivity plus geometric verification can reject candidates. There is no universal one-solution guarantee for every pattern.

Does the internal selector require the unknown circle to be larger?

No. It uses center distance |r−R| and permits either containment direction, while excluding coincident boundaries as ordinary tangency.

Find your calculator

Start typing to explore the library.