Largest cylinder inside a sphere

Relate cylinder radius and height to the sphere radius with a right triangle, then maximise volume.

Key formulas

r² + (h/2)² = R²
V = πr²h

Cut through the axis

A vertical cross-section shows a rectangle inside a circle of radius R. Half the cylinder height and the cylinder radius form a right triangle with hypotenuse R.

Express V with one variable

From r² = R² − (h/2)², V = π(R² − h²/4)h. Calculus or a completed-square argument finds the maximum.

Result to remember

The maximum occurs when h = (2R)/√3. You rarely need to re-derive it under time pressure if the question only asks for the relation.

Worked example

Worked example

Problem. A sphere of radius R = 6 has an inscribed cylinder of height h = 6. Find the cylinder radius.

Solution. r² + (h/2)² = R² → r² + 9 = 36 → r² = 27 → r = 3√3.

Constraint

Always start from r²+(h/2)²=R² before writing V.

Review quiz

Sphere R=5, cylinder height h=6. Cylinder radius r satisfies:

Practice questions

  1. If R=6 and h=6, find r.
  2. Why is h/2 used rather than h in the right triangle?

Study notes

Is the cylinder always upright?

This standard model assumes the cylinder axis through the sphere centre.

More in Spatial Geometry