CalcWorldHub
Free online calculator · no signup

Line circle intersections calculator

Find zero, one, or two intersections between an infinite planar line and a circle.

4,000 tools
Line circle intersections calculator — First point on line (x,y), Second point on line (x,y), Circle center (x,y) and calculation method
Line circle intersections calculator: inputs and calculation method.

How to use this calculator

Find zero, one, or two intersections between an infinite planar line and a circle.

  1. Enter First point on line (x,y), Second point on line (x,y), Circle center (x,y), Circle radius. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Original calculation guide

Line circle intersections explained

Two distinct points define an infinite line P(t)=A+t(B−A). The calculator substitutes this parameterization into the circle equation and reports zero, one, or two real intersection points.

Line-circle intersection count2points
Line-circle intersection count: 2 points in the worked scenario below.

Inputs and units

First point on line (x,y)
One point defining the infinite line.
Second point on line (x,y)
A distinct point on the same infinite line.
Circle center (x,y)
Center in the same coordinate units.
Circle radius
Positive circle radius.

Formula and method

Substitute P(t)=A+t(B−A) into |P−center|²=r² and solve the resulting quadratic.

A worked example

First point on line (x,y) = -3,0; Second point on line (x,y) = 3,0; Circle center (x,y) = 0,0; Circle radius = 2.

  • Line-circle intersection count: 2 points
  • Intersection coordinates: (-2, 0); (2, 0)

For the horizontal line through (−3,0) and (3,0) with a radius-2 circle centered at the origin, y=0 and x²=4, so the intersections are (−2,0) and (2,0).

Assumptions and special cases

The line is infinite, not the segment between the two entered points. Tangency is identified with a floating-point tolerance.

Circle–circle chord length concerns two circles. This page solves a line against a single circle.

Frequently asked questions

Can an intersection lie beyond the entered points?

Yes. The points define an infinite line.

What does one intersection mean?

The line is tangent within the numerical tolerance.

Can both defining line points match?

No. A nonzero line direction is required.

How do I use the Line circle intersections calculator?

Enter First point on line (x,y), Second point on line (x,y), Circle center (x,y), Circle radius. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Line circle intersections?

First point on line (x,y) = -3,0; Second point on line (x,y) = 3,0; Circle center (x,y) = 0,0; Circle radius = 2. Line-circle intersection count: 2 points Intersection coordinates: (-2, 0); (2, 0) For the horizontal line through (−3,0) and (3,0) with a radius-2 circle centered at the origin, y=0 and x²=4, so the intersections are (−2,0) and (2,0).