Line–Circle Intersection

After this page you can find every intersection of a nonvertical line and a circle by substitution, including exact radical and tangent cases.

Substitute the line into the circle

Write the line as y = mx + b and replace y in the circle equation. The result is one quadratic in x. Its real roots give the x-coordinates of all common points.

find intersections of x^2+y^2=25 and y=3

Substitution gives x² + 9 = 25, so x² = 16. The two roots lead to (4, 3) and (−4, 3). Using both roots is essential: the quadratic, rather than a sketch, tells us that the secant meets the circle twice.

Keep radical intersections exact

When the quadratic discriminant is positive but not a perfect square, the intersection coordinates involve square roots. Simplify the radical and retain it exactly instead of rounding.

find intersections of x^2+y^2=4 and y=1

Here x² = 3, and the exact points are (√3, 1) and (−√3, 1). Both have y-coordinate 1 because every intersection must also lie on the original line.

A zero discriminant means tangency

After substitution, inspect the discriminant B² − 4AC. A positive value gives two intersections, zero gives one tangent point, and a negative value would mean that the line misses the real circle.

find intersections of x^2+y^2=25 and y=3/4x+25/4

The substituted quadratic has a repeated root at x = −3. The line equation then gives y = 4, so (−3, 4) is the single tangent point. Report it once rather than as two identical intersections.

Practice

Practice: problems like this one, made and checked in your browser.

Recap

  • Replace y in the circle with its expression from the line, then solve the resulting quadratic.
  • Use each x root in the line equation to recover the matching y-coordinate.
  • A positive discriminant gives two points; zero gives one tangent point.
  • Keep radical coordinates exact and include every distinct real intersection.