What is a ball head?
A ball head is a sphere segment larger than a hemisphere, cut from a ball of radius r, with a cylinder of radius q and height b standing on its flat face, like the head of a ball-head pin or a joystick knob. The flat face of the segment is a circle of radius q, exactly the base of the cylinder, so the side of the cylinder meets the sphere in a concave circular edge. In textbook terms it is a spherical cap taller than the radius joined to a cylinder.
This calculator finds the volume, the surface area, the surface-to-volume ratio, the height of the sphere segment, the total height, the opening angle of the flat face seen from the sphere centre and the area of the spherical part.
How to use it
Enter the sphere radius r, the cylinder radius q and the cylinder height b. The cylinder radius can be at most r; at q = r the sphere part is a hemisphere. Every measure is solved from the values you enter. 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 values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
The flat face of radius q lies at the distance √(r² − q²) from the sphere centre, on the cylinder side. The segment reaches the far pole, so its height is
$$p = r + \sqrt{r^2 - q^2}$$A cut exists only when q is at most r. The page takes r − q exactly from the typed digits and computes √((r − q)(r + q)). By Archimedes, the zone of a sphere of height p has the area 2πrp, and the segment has the volume πp²(3r − p)/3. The cylinder adds its volume πq²b, its side 2πqb and its top disc πq²; its base covers the flat face exactly:
$$V = \frac{\pi p^2 (3r - p)}{3} + \pi q^2 b, \qquad A = 2\pi r p + 2\pi q b + \pi q^2$$The flat face is seen from the centre under the angle 2 arcsin(q/r): its rim lies at the distance q from the axis and √(r² − q²) from the centre along it, so the half angle is also the angle whose tangent is q/√(r² − q²). The page uses that second form with r − q taken exactly from the typed digits; near q = r it keeps all its digits, where arcsin of a ratio close to 1 would lose them. At q = r the angle is 180 degrees.
Worked example
The default ball head has r = 3, q = 1.5 and b = 4. The segment height is about 5.598076 units, the volume about 139.917157 cubic units and the surface area about 150.288946 square units.
FAQ
Why can the cylinder not be wider than the ball?
The cylinder stands on the flat face of the segment, whose radius is q. A plane cuts a ball of radius r in a circle of radius at most r, so q larger than r describes no solid and the page refuses it.
Is the edge between ball and stem concave?
Yes, for q below r: the sphere surface bends back past the flat face, so the stem leaves the ball in a groove. At q = r the joint is flat.
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
Archimedes, On the Sphere and Cylinder, Book I (the zone of a sphere has the area 2πRh); T. L. Heath (ed.), The Works of Archimedes, Cambridge University Press, 1897
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (solids of revolution, spherical and conical solids)