Circle Tangent Line Calculator
Find the tangent line equation to a circle in slope-intercept y = mx + b and standard forms, evaluate external point tangents, and visualize perpendicular radial geometry with interactive SVG plots.
The radius vector (amber) is strictly perpendicular (∠ = 90°) to the tangent line (emerald) at point of contact P.
Step-by-Step Mathematical Derivation
Circle Tangent Line Equation
A circle tangent line is a straight line that intersects the circle at exactly one point P(x₁, y₁). Because the tangent line is perpendicular to the radius drawn to that point, its slope is the negative reciprocal of the radial slope: m_tangent = −(x₁ − h) / (y₁ − k).
What Is a Circle Tangent Line?
In Euclidean plane geometry, a tangent line to a circle is a straight line that touches the circle at exactly one single point, known as the point of tangency (or point of contact).
The defining geometric principle of a tangent line—first formalized in Euclid's Elements (Book III, Proposition 18)—is that the tangent line is perpendicular to the radius vector drawn to the point of tangency:
This perpendicularity means that if the radius has slope mradius, the tangent line must have the negative reciprocal slope:
mtangent = −1 / mradius.
Algebraic Formulas for Circle Tangents
Where (x₁, y₁) is the point of contact on the circle. In slope-intercept form (when y₁ ≠ 0):
y = −(x₁ / y₁) x + (r² / y₁).
Splitting the quadratic terms (x − h)² into (x₁ − h)(x − h) immediately converts the quadratic circle equation into the linear tangent line equation!
For any prescribed slope m, there are always exactly two parallel tangent lines touching opposite sides of the circle.
Step-by-Step Worked Examples
Circle: x² + y² = 25. Point P: (3, 4).
1. Check point: 3² + 4² = 9 + 16 = 25 ✓ (Point lies on circle).
2. Apply Joachimsthal's formula: x₁x + y₁y = r² ⇒ 3x + 4y = 25.
3. Solve for y: 4y = −3x + 25 ⇒ y = −(3/4)x + 25/4 = −0.75x + 6.25.
Circle: (x − 2)² + (y + 1)² = 25. Center C(2, −1). Point P(5, 3).
1. Check point: (5 − 2)² + (3 − (−1))² = 3² + 4² = 25 ✓.
2. Substitute: (5 − 2)(x − 2) + (3 − (−1))(y − (−1)) = 25.
3. Expand: 3(x − 2) + 4(y + 1) = 25 ⇒ 3x − 6 + 4y + 4 = 25.
4. Standard form: 3x + 4y − 27 = 0 ⇒ y = −0.75x + 6.75.
Circle: x² + y² = 25.
At point (5, 0): 5x + 0y = 25 ⇒ 5x = 25 ⇒ x = 5 (Vertical line, slope undefined).
At point (0, 5): 0x + 5y = 25 ⇒ 5y = 25 ⇒ y = 5 (Horizontal line, slope = 0).
Tangents from an External Point & Chord of Contact
When an observer or source point P(x₀, y₀) lies strictly outside a circle (distance d > r), two distinct tangent lines can be drawn from P to the circle:
L = √(d² − r²)
By the Pythagorean theorem on right-triangle ΔOPT, both tangent segments from P to contact points T₁ and T₂ have exactly equal lengths.
(x₀ − h)(x − h) + (y₀ − k)(y − k) = r²
The secant line passing through both points of tangency T₁ and T₂ is known as the chord of contact.
Calculus vs. Geometric Derivation
There are two complementary ways to derive the slope of a circle's tangent line:
(x − h)² + (y − k)² = r²
Differentiate w.r.t x:
2(x − h) + 2(y − k)(dy/dx) = 0
dy/dx = −(x − h) / (y − k)
Center C(h, k), Point P(x₁, y₁)
Radial slope:
m_radius = (y₁ − k) / (x₁ − h)
m_tangent = −1 / m_radius = −(x₁ − h) / (y₁ − k)
Both methods yield the exact same result, demonstrating the seamless unity between differential calculus and classical coordinate geometry.
Vertical and Horizontal Tangent Edge Cases
When solving for tangent lines, two special orientations must be handled with care:
Occur at the easternmost and westernmost points of the circle: (h ± r, k). Because the denominator y₁ − k = 0, division by zero occurs in slope-intercept form. The equation must be expressed in standard linear form: x = h ± r.
Occur at the northernmost and southernmost peaks: (h, k ± r). Here the numerator is zero, yielding m = 0. The equation is y = k ± r.
Common Calculation Mistakes
1. Assuming Any Arbitrary Point Lies on the Circle
Applying the formula x₁x + y₁y = r² to a point that does not lie on the circumference does NOT give a tangent line; it gives the polar line with respect to the circle! Always test (x₁ − h)² + (y₁ − k)² = r² first.
2. Forgetting the Negative Sign in Perpendicular Slope
If the radius has slope +2, the tangent line must have slope −0.5, not +0.5. Forgetting the negative sign creates a normal line instead of a tangent line.
3. Attempting to Draw Tangents from an Internal Point
If a point lies inside the circle (distance d < r), no real tangent lines can pass through it. Any straight line through an internal point is a secant line that intersects the circle at two points.
Engineering Applications in Mechanics & Optics
Mechanical engine timing belts wrap along the common tangent lines between rotating circular pulleys, maintaining constant tension without slip.
When a spacecraft executes a propulsion burn to escape a circular planetary orbit, its tangential departure velocity vector aligns precisely with the circle tangent line.
Automated milling tools use tangential approach and exit paths when cutting curved arcs to prevent gouging the workpiece surface.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.