How this calculation works
At the tangency point the radius is perpendicular to the tangent, so the distance to the centre is the hypotenuse.
t = √[(d−r)(d+r)]A worked example
At distance 13 from the centre of a radius-5 circle, the tangent length is 12.
Good to know
The point must be on or outside the circle.
Reference: OpenStax Algebra and Trigonometry, Trigonometric Applications (opens in a new tab) ↗
Use the perpendicular radius at the touching point
A radius drawn to a point of tangency is perpendicular to the tangent line. Joining the circle centre O, touching point T and external point P creates a right triangle with hypotenuse OP = d, radius OT = r and tangent segment PT = t.
Pythagoras gives t² + r² = d², so t = √(d² − r²). With radius 5 and centre distance 13, t = √(169 − 25) = √144 = 12. The SVG shows this 5–12–13 triangle and the right-angle marker at the touching point.
Check where the starting point lies
If d > r, two tangents can be drawn from the external point and their segment lengths are equal. At d = r, the starting point lies on the circle and the tangent segment length is zero. For d < r, the point is inside the circle and no real tangent segment exists, so that input is rejected.
The tool evaluates √[(d − r)(d + r)], the factored version of the difference of squares. This helps avoid some cancellation from separately squaring two nearly equal lengths. The Circle radius from chord and sagitta calculator can supply a radius from measured arc geometry. Be sure to enter centre distance rather than the gap from the external point to the nearest circle edge. If that gap is g, then d = r + g.
A few questions, answered
Does the answer include the radius?
No. It is the straight segment from the external point to the touching point along the tangent.
Why do both tangents have the same length?
Their right triangles share the centre-to-point hypotenuse and have equal radii, so Pythagoras gives the same remaining side.