Volume of a Sphere

Calculates the volume of a sphere as 4 × π × radius³ ÷ 3.

A sphere is the set of all points lying at a fixed distance from a centre. That distance is the radius, and it alone fixes the volume.

V=43πr3V = \dfrac{4}{3} \pi r^3

Example

With the default radius r=5r = 5, and since 53=1255^3 = 125,

V=43π×125=5003π523.5988V = \dfrac{4}{3} \pi \times 125 = \dfrac{500}{3} \pi \approx 523.5988

The volume is about 523.5988.

The link with cylinders and cones

Sit a sphere of radius rr snugly inside a cylinder of base radius rr and height 2r2r. The cylinder holds πr2×2r=2πr3\pi r^2 \times 2r = 2\pi r^3, and the sphere fills exactly two thirds of it. A cone on the same base with the same height holds 23πr3\dfrac{2}{3}\pi r^3, so cone, sphere and cylinder stand in the ratio 1:2:31 : 2 : 3 — a relationship discovered by Archimedes.

Watch out

Only the radius is cubed. Writing r2r^2 in place of r3r^3 turns the expression into something close to the surface area formula, which is 4πr24 \pi r^2. Doubling the radius multiplies the volume by eight. If you know the diameter, halve it to get the radius before entering it.