Formula and Method for the Tangent to a Circle
A tangent line to a circle touches the circle at exactly one point — the point of tangency — and never crosses into the circle's interior. Given a circle with center (h, k) and radius r, and an external point (x₁, y₁) outside the circle, this calculator finds the length of the tangent segment from that point to the circle, the straight-line distance to the center, and the angle formed between the two possible tangent lines.
How the calculation works
The center, the external point, and either point of tangency form a right triangle. The radius drawn to the point of tangency is always perpendicular to the tangent line, so that triangle has a right angle at the point of tangency. First find the distance from the external point to the center: d = √((x₁−h)² + (y₁−k)²). That distance is the hypotenuse of the right triangle, with legs r (the radius) and L (the tangent length). By the Pythagorean theorem, r² + L² = d², so the tangent length is L = √(d² − r²). The angle between the two tangent lines, measured at the external point, is θ = 2·arcsin(r/d), since sin of the half-angle equals the opposite leg (r) over the hypotenuse (d).
Common mistakes
- Point inside the circle: if d < r, the point is inside the circle and no real tangent line exists — d² − r² would be negative under the square root.
- Confusing d with L: d is the straight-line distance to the center; L is the shorter tangent segment length. They are only equal when the radius is zero, which never happens for a real circle.
- Degrees vs. radians: arcsin returns radians in most programming languages and calculators — convert to degrees (multiply by 180/π) before comparing to a protractor reading.
Real-world applications
- Line-of-sight and horizon calculations treat the Earth as a circle and the observer's height as defining the tangent length to the visible horizon.
- Belt and pulley design uses tangent lines to find the straight sections of belt that connect two circular pulleys.
- CAD and technical drawing rely on tangent constructions to blend straight edges smoothly into circular arcs and fillets.
- Surveying and navigation use tangent-length calculations to determine sightlines around circular obstacles or boundaries.