Tangent Line to a Circle Calculator

Find the equation of the tangent line to a circle at any point on its circumference — in both general and slope-intercept form.

Enter the circle's center coordinates, radius, and a point on the circle to compute the tangent line equation instantly.

Tangent Line to a Circle Calculator
Find the equation of the tangent line to a circle at any point on its circumference — in both general and slope-intercept form.

About the tangent line to a circle calculator

In Euclidean geometry, a tangent line to a circle is a straight line that touches the circle at exactly one point without crossing into its interior. That single contact point is called the point of tangency. This concept is a cornerstone of coordinate geometry and underpins a surprising range of real-world calculations — from the direction a spinning object flies off when released, to the way light reflects off a curved surface. The key geometric relationship is the Tangent-Radius Theorem: the radius drawn from the circle's center to the point of tangency is always perpendicular to the tangent line. Because perpendicular lines have slopes that are negative reciprocals of each other, this theorem gives us a clean algebraic path to the tangent equation. Given a circle with center (h, k) and radius r, and a point (x₁, y₁) on its circumference, the derivation starts with the slope of the radius: m_radius = (y₁ − k) / (x₁ − h). The slope of the tangent is the negative reciprocal: m_tangent = −(x₁ − h) / (y₁ − k). Using the point-slope form of a line, y − y₁ = m_tangent(x − x₁), we arrive at the final equation. The general form of the tangent line is (x₁ − h)(x − h) + (y₁ − k)(y − k) = r², which can be rewritten as (x₁ − h)x + (y₁ − k)y = r² + (x₁ − h)h + (y₁ − k)k. Two special cases arise: when the point is directly above or below the center (x₁ = h), the radius is vertical and the tangent line is horizontal — its equation is simply y = y₁. When the point is directly to the left or right of the center (y₁ = k), the radius is horizontal and the tangent is vertical — its equation is x = x₁ and the slope-intercept form does not apply. A common pitfall when using this calculator is entering a point that does not actually lie on the circle. To verify, check that (x₁ − h)² + (y₁ − k)² equals r² (allowing for small floating-point tolerance). If the equality fails, the specific tangent formula is not valid and the calculator will report an error. Tangent lines to circles appear throughout physics, engineering, and computer science. In mechanics, the instantaneous velocity of a particle moving in a circle is directed along the tangent at the particle's current position. In gear and pulley design, tangent lines define the path of the belt or chain between wheels. In computer graphics, tangent vectors are used to compute lighting normals, smooth curves, and collision responses. In road engineering, horizontal curves are connected by tangent sections, and the entry and exit points of those curves are precisely the points of tangency.

Tangent line examples

Four worked examples illustrating the most common configurations.

InputTangent EquationNotes
Center (0, 0), r = 5, point (3, 4)3x + 4y − 25 = 0 | y = −0.75x + 6.25Standard circle at origin. Slope of radius = 4/3; tangent slope = −3/4.
Center (2, −1), r = 10, point (8, 7)6x + 8y − 104 = 0 | y = −0.75x + 13Offset circle. Verify: (8−2)²+(7+1)²=36+64=100=10². ✓
Center (1, 1), r = 3, point (1, 4)y = 4Point is directly above the center (x₁ = h), so the tangent is a horizontal line.
Center (−2, 3), r = 4, point (2, 3)x = 2Point is directly to the right of the center (y₁ = k), so the tangent is a vertical line.

How to use the tangent line calculator

  1. Enter the x-coordinate h and y-coordinate k of the circle's center in the first two fields.
  2. Enter the radius r (must be a positive number) in the Radius field.
  3. Enter the coordinates x₁ and y₁ of the point on the circle where the tangent touches. The point must satisfy (x₁−h)²+(y₁−k)²=r².
  4. Click Calculate. The general form and slope-intercept form of the tangent equation are shown. For a vertical tangent line, the slope-intercept form is marked as not applicable.
  5. Click Reset to clear all fields and start a new calculation.

Tangent line to a circle FAQ

What makes a line tangent to a circle rather than a secant?
A tangent line touches the circle at exactly one point, while a secant intersects it at two distinct points. Algebraically, substituting the line's equation into the circle's equation produces a quadratic with exactly one real solution for a tangent and two distinct real solutions for a secant.
Does the point of tangency always have to be on the circle?
Yes. The formula used here is specifically for the tangent at a point on the circumference. If you specify a point that is outside the circle, two tangent lines exist and a different formula applies. If the point is inside the circle, no real tangent line can be drawn from it to the circle.
Why is the slope of the tangent the negative reciprocal of the radius slope?
The Tangent-Radius Theorem states that the radius and the tangent are perpendicular at the point of tangency. Two perpendicular lines with slopes m₁ and m₂ satisfy m₁ × m₂ = −1, so m₂ = −1/m₁. This perpendicularity follows from the fact that the shortest distance from any external point to the circle runs along the radius direction.
What happens when the tangent line is vertical?
A vertical tangent occurs when the point of tangency lies directly to the left or right of the center, meaning y₁ = k. In that case, the radius is horizontal (slope = 0) and the perpendicular tangent has undefined slope. The equation is simply x = x₁. The slope-intercept form y = mx + b does not apply for vertical lines.
How can I verify that my point lies on the circle?
Compute (x₁ − h)² + (y₁ − k)². If this equals r², the point is on the circle. For example, with center (2, −1) and radius 10, the point (8, 7) gives (8−2)² + (7+1)² = 36 + 64 = 100 = 10², confirming it lies on the circle.
Can this calculator handle circles not centred at the origin?
Yes, the formula works for any centre (h, k). The circle does not need to be centred at the origin. Simply enter the actual h and k values and the calculator applies the general form of the tangent equation, which accounts for any offset.