What is a sphere-cylinder intersection?
The sphere-cylinder intersection is the part of a solid circular cylinder that lies inside a ball, when the axis of the cylinder passes through the centre of the ball and the cylinder radius a is at most the sphere radius r. It is a cylinder piece closed at both ends by a spherical cap. It is not the ring that is left when the cylinder is drilled out of the ball; that shape has its own spherical ring calculator.
This calculator finds the volume, the total surface, the area of one cap, the area of the cylindrical side, the cap height, the length of the cylindrical part, the overall length and the surface-to-volume ratio from the two radii.
How to use it
Enter the sphere radius r and the cylinder radius a. The cylinder radius may equal the sphere radius, which gives the whole ball. The values you enter are shown back unchanged and every other measure is solved from them. The length unit is a label only: lengths are shown in that unit, areas in its square and volumes in its cube. The page shows results rounded to at most 6 decimal places and writes very large and very small values out in full.
Derivation of the formulas
The cylinder wall meets the sphere where \(z^2 + a^2 = r^2\), at the heights \(\pm c\) with
$$c = \sqrt{r^2 - a^2} = \sqrt{(r - a)(r + a)}$$so the cylindrical part has length 2c, and beyond it the solid is a spherical cap of height
$$k = r - c = \frac{a^2}{r + c}$$(the second form avoids subtracting two nearly equal numbers when a is small). A cap of height k cut from a ball of radius r has volume \(\tfrac{1}{3}\pi k^2 (3r - k)\) and curved area \(2\pi r k\) (Archimedes: a zone of a sphere has the area of the matching band of the circumscribed cylinder). Adding the cylinder piece:
$$V = 2\pi a^2 c + \frac{2}{3}\pi k^2 (3r - k), \qquad S = 4\pi a c + 4\pi r k$$The overall length is 2r. With a = r the cylindrical part vanishes and the solid is the whole ball, \(V = \tfrac{4}{3}\pi r^3\) and \(S = 4\pi r^2\).
Worked example
The default is a sphere of radius r = 5 with a cylinder of radius a = 3. The cylindrical part is 8 units long and each cap is 1 units high. The solid has a volume of about 255.516202 cubic units and a total surface of about 213.6283 square units.
FAQ
What happens when the cylinder is as wide as the sphere?
The cylinder part shrinks to nothing and the two caps become the two halves of the ball, so the result is the whole ball.
Why is the overall length always 2r?
The caps reach the two poles of the sphere on the cylinder axis, which are a diameter apart.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
T. M. Apostol, Calculus, Vol. 1, 2nd ed., Wiley, 1967
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018