Mathwords logoMathwords

Circle-Line Intersection — Definition, Formula & Examples

A circle-line intersection is the point or points where a straight line crosses or touches a circle. Depending on the geometry, a line can intersect a circle at two points, touch it at exactly one point (a tangent), or miss it entirely.

Given a circle (xh)2+(yk)2=r2(x - h)^2 + (y - k)^2 = r^2 and a line y=mx+by = mx + b (or in general form Ax+By+C=0Ax + By + C = 0), the intersection points are the simultaneous solutions to both equations. The number of real solutions—0, 1, or 2—is determined by comparing the perpendicular distance from the center to the line with the radius rr.

Key Formula

d=Ah+Bk+CA2+B2d = \frac{|Ah + Bk + C|}{\sqrt{A^2 + B^2}}
Where:
  • dd = Perpendicular distance from the center of the circle to the line
  • (h,k)(h, k) = Center of the circle
  • Ax+By+C=0Ax + By + C = 0 = Equation of the line in general form
  • rr = Radius of the circle; compare d to r to determine the number of intersections

How It Works

To find a circle-line intersection, substitute the linear equation into the circle equation. This produces a single quadratic equation in one variable. Solve it using the quadratic formula, and then back-substitute to find the other coordinate. The discriminant of that quadratic tells you how many intersection points exist: if it is positive, the line is a secant (two points); if zero, the line is tangent (one point); if negative, the line misses the circle entirely. You can also use the distance formula as a quick check before solving: compute d=Ah+Bk+CA2+B2d = \frac{|Ah + Bk + C|}{\sqrt{A^2 + B^2}} and compare dd to rr.

Worked Example

Problem: Find the points where the line y = x + 1 intersects the circle x² + y² = 25.
Substitute the line into the circle: Replace y in the circle equation with (x + 1).
x2+(x+1)2=25x^2 + (x+1)^2 = 25
Expand and simplify: Expand the squared term and combine like terms.
x2+x2+2x+1=25    2x2+2x24=0    x2+x12=0x^2 + x^2 + 2x + 1 = 25 \implies 2x^2 + 2x - 24 = 0 \implies x^2 + x - 12 = 0
Solve the quadratic: Factor or use the quadratic formula.
(x+4)(x3)=0    x=4 or x=3(x + 4)(x - 3) = 0 \implies x = -4 \text{ or } x = 3
Find the y-coordinates: Substitute each x back into y = x + 1.
x=4y=3;x=3y=4x = -4 \Rightarrow y = -3; \quad x = 3 \Rightarrow y = 4
Answer: The line intersects the circle at (−4, −3) and (3, 4).

Another Example

Problem: Determine whether the line y = 3x + 10 intersects the circle x² + y² = 9.
Compute the distance from center to line: Rewrite y = 3x + 10 as 3x − y + 10 = 0. The center is (0, 0) and r = 3.
d=3(0)1(0)+1032+(1)2=1010=103.16d = \frac{|3(0) - 1(0) + 10|}{\sqrt{3^2 + (-1)^2}} = \frac{10}{\sqrt{10}} = \sqrt{10} \approx 3.16
Compare d to r: Since √10 ≈ 3.16 > 3 = r, the line does not reach the circle.
d>r    no intersectiond > r \implies \text{no intersection}
Answer: The line and circle do not intersect because the distance from the center to the line exceeds the radius.

Why It Matters

Circle-line intersection problems appear regularly in high-school analytic geometry and standardized tests like the SAT and ACT. In computer graphics and game development, ray-circle (or ray-sphere) intersection is the foundation of collision detection and raycasting. Mastering the substitution-and-discriminant technique also builds skills you will reuse whenever two curves meet—ellipses, parabolas, and beyond.

Common Mistakes

Mistake: Forgetting to expand the squared binomial correctly after substitution, especially dropping the middle term (e.g., writing (x+1)² as x²+1 instead of x²+2x+1).
Correction: Always use the identity (a + b)² = a² + 2ab + b². Write out the expansion term by term before combining.
Mistake: Finding the x-values but forgetting to substitute back into the line equation—or substituting into the circle equation instead, which can give extraneous ± signs.
Correction: Always back-substitute into the simpler linear equation to get the matching y-values. This avoids sign ambiguity from square roots.