Loading…

Sphere and Cylinder Intersection Solver

Math Geometry • Three Dimensional Geometry

View all topics

Sphere & Cylinder Intersection Calculator – Find Circle/Ellipse

Compute the intersection curve between a sphere and an (infinite) cylinder. The tool reports existence/tangency, identifies the special two-circle case (axis through the center), and samples the curve numerically for a clean 3D render.

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Sphere
Sphere equation: \((x-c_x)^2+(y-c_y)^2+(z-c_z)^2=R_s^2\).
Cylinder
Cylinder surface = all points whose distance to the axis line equals \(R_c\).
Sampling & view

Drag to orbit • Shift+drag to pan • wheel/trackpad to zoom. “Reset view” fits the sphere/cylinder. Units are square.

Ready
3D view (interactive • square units)

Sphere and cylinder are wireframes. Intersection curve points are highlighted.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

When do a sphere and a cylinder intersect?

Let d0 be the distance from the sphere center to the cylinder axis line. The surfaces intersect when Rs >= |d0 - Rc|; equality indicates a tangent (touching) case.

Why do I sometimes get two circles as the intersection?

If the cylinder axis passes through the sphere center (d0 = 0) and Rs > Rc, then the intersection consists of two circles in planes perpendicular to the axis at offsets h = sqrt(Rs^2 - Rc^2).

How does the calculator compute the intersection curve points?

It parameterizes the cylinder by an angle around the axis and solves the sphere constraint as a quadratic along the axis direction. Each angle can produce 0, 1, or 2 intersection points depending on the discriminant.

Is the intersection always a flat ellipse?

No. Except for symmetric circle cases, the sphere–cylinder intersection is generally a 3D space curve rather than a single planar conic.