Last verified · v1.0
Calculator · math
Tangent Circle Calculator
Calculate tangent line lengths from an external point to a circle, or the external and internal common tangent lengths between two circles.
Inputs
Tangent Length
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How the Tangent Circle Calculator Works
The tangent circle calculator determines the length of tangent line segments using the fundamental geometric principle that a tangent to a circle is always perpendicular to the radius at the point of tangency. This right-angle relationship transforms every tangent-length problem into a straightforward application of the Pythagorean theorem. The calculator supports three modes: tangent length from an external point to a single circle, external common tangent length between two circles, and internal common tangent length between two circles.
The General Formula
All three modes share the same structural form: L = √(d² − k²), where d is a center-to-center or point-to-center distance and k is a radius term that changes by mode. The distance d is always computed from the coordinate distance formula: d = √((x2 − x1)2 + (y2 − y1)2).
Mode 1: Tangent Length from an External Point
In this mode k = r, the single circle's radius. Given an external point P(x1, y1) and a circle centered at C(x2, y2) with radius r, the tangent length is L = √(d² − r²). The radius, the tangent segment, and line PC form a right triangle with hypotenuse d, so the Pythagorean theorem isolates L directly. Example: A point at (0, 0) and a circle centered at (5, 12) with radius 5 give d = √(25 + 144) = √169 = 13, so L = √(169 − 25) = √144 = 12 units.
Mode 2: External Common Tangent Between Two Circles
An external common tangent runs alongside both circles without crossing between them. Setting k = |r1 − r2| gives Lext = √(d² − (r1 − r2)2). This formula is valid when d > |r1 − r2|, meaning one circle does not contain the other. Example: Two circles with radii 7 and 3 whose centers are 10 units apart yield L = √(100 − 16) = √84 ≈ 9.165 units.
Mode 3: Internal Common Tangent Between Two Circles
An internal common tangent crosses through the gap between the two circles. Setting k = r1 + r2 gives Lint = √(d² − (r1 + r2)2), valid only when d > r1 + r2. Extending the example to centers 15 units apart with radii 7 and 3: L = √(225 − 100) = √125 ≈ 11.180 units.
Derivation and Theoretical Basis
The tangent-radius perpendicularity theorem is a cornerstone of Euclidean circle geometry. As detailed in the Baruch College Precalculus tutorial on equations of tangents to circles, the tangent point is the unique location on the circle where the radius and the tangent line meet at exactly 90°. Applying the Pythagorean theorem to the resulting right triangle — hypotenuse d, one leg r — isolates L = √(d² − r²) directly.
For the two-circle cases, the geometry reduces to an equivalent single-right-triangle problem by projecting onto the line connecting the two centers. Dr. Steven Gubkin's research on tangent circles at Cleveland State University demonstrates how the relative positions of mutually tangent circles constrain possible tangent configurations, providing the rigorous geometric foundation for both external and internal formulas.
Practical Applications
- Mechanical engineering: Computing open and crossed belt lengths over pulleys of different radii, where tangent segments determine the straight-run sections between contact arcs.
- Civil engineering: Designing horizontal road alignments where straight tangent sections meet circular curve segments at transition points.
- Robotics: Building Dubins paths — the shortest curves between two directional poses — which consist of circular arcs joined by straight tangent segments.
- Computer graphics: Blending circular arcs smoothly in vector font outlines and CAD spline curves by computing tangent-point transitions.
- Surveying: Measuring unobstructed sight-line distances from an observation station past cylindrical structures such as storage tanks or grain silos.
Validity Conditions
The tangent length is real only when the expression under the square root is non-negative. Mode 1 requires d ≥ r. Mode 2 requires d ≥ |r1 − r2|. Mode 3 requires d ≥ r1 + r2. When equality holds exactly, the tangent length is zero, corresponding to a geometric tangency condition — the external point sits on the circle, or the two circles touch at a single point.
Reference