Circle and Tangent Calculator
Length and touch points of the tangents from an outside point to a circle, where a line cuts a circle, and the position and common tangent lengths of two circles.
Tangent from an outside point to a circle
Two tangents can be drawn to a circle from a point outside it. A tangent is perpendicular to the radius at the touch point, so the centre, the outside point and the touch point form a right triangle. Its hypotenuse is the distance d from the point to the centre, one leg is the radius r and the other leg is the tangent length: L = √(d² − r²).
Example: from a point 5 units from the centre of a circle of radius 3, the tangent length is √(25 − 9) = 4 units. The angle between the two tangents is 2 × arcsin(3 / 5) = 73.74 degrees.
Does a line cut the circle?
Compare the distance from the centre to the line with the radius. If it is smaller the line cuts the circle at two points, if equal the line is tangent, and if larger they do not meet. When it cuts, the chord length is k = 2 × √(r² − d²).
Example: the circle of radius 5 centred at the origin meets the line y = x + 1 at (3, 4) and (−4, −3). The chord is 9.899 units long.
Position of two circles
Compare the distance d between the centres with the sum and the difference of the radii. If d exceeds the sum the circles are separate, if it equals the sum they touch externally, between the difference and the sum they cut at two points, equal to the difference they touch internally, and below the difference one lies inside the other.
For two separate circles the external common tangent has length √(d² − (r₁ − r₂)²) and the internal one √(d² − (r₁ + r₂)²).
Where is it used?
The straight belt span between two pulleys, the point where a corner fillet meets the straight edge, the clearance of a pipe passing a tank or a column, and whether two circular areas overlap all come from these calculations.
Limits
Enter all dimensions in one unit. No tangent exists from a point inside the circle. Do not expect exact tangency from measured values: the calculator uses a very tight numerical threshold.
Frequently asked questions
How do you calculate tangent length from an external point?
In this example, for a circle centred at (0, 0) with radius 3, the tangent from (5, 0) has length 4 units. Apply Pythagoras by subtracting the squared radius from the squared centre distance and taking the square root, with consistent units and an external point.
Related calculators
-
Geometry
Line Equation Calculator
Equation of a line from two points or from a point and a slope: y = mx + n, general form ax + by + c = 0, slope angle and axis intercepts. -
Geometry
Intersection of Two Lines Calculator
The point where two lines meet and the angle between them. Enter the lines as y = mx + n, ax + by + c = 0 or by two points each. Parallel and coincident cases are flagged. -
Geometry
Area and Perimeter Calculator
Area and perimeter of a rectangle, circle, triangle, trapezoid, ellipse, circular sector, ring and regular polygon, with formulas and working. -
Mechanical Engineering
Belt Length Calculator
Belt length and wrap angles from two pulley diameters and the centre distance, or the centre distance for a given belt length. Open and crossed belts. -
Mechanical Engineering
Bolt Circle (PCD) Hole Coordinates Calculator
Flange bolt pattern: X and Y of every hole from circle diameter, hole count and start angle. Scaled drawing, hole spacing, CSV export and print. -
Geometry
2D Transformation Matrix: Rotate and Translate Coordinates
Translate, rotate, scale and reflect a list of points. Chains the steps in order and gives the 3×3 transformation matrix, the new coordinates and a before and after sketch.
Found a mistake or something missing?
If a value looks wrong, a size is missing or you need a feature, write to us and we will fix it.