Volume of a Cone

Calculates the volume of a cone as π × radius² × height ÷ 3, exactly one third of the cylinder with the same base and height.

A cone rises from a circular base to a single point, the apex. Its volume is exactly one third of the cylinder that shares its base and its height.

V=13πr2hV = \dfrac{1}{3} \pi r^2 h

Example

With the defaults, a radius of r=3r = 3 and a height of h=6h = 6. The base area is π×32=9π\pi \times 3^2 = 9\pi, so

V=13×9π×6=18π56.5487V = \dfrac{1}{3} \times 9\pi \times 6 = 18\pi \approx 56.5487

The volume is about 56.5487. A cylinder with the same base and height would hold 9π×6=54π9\pi \times 6 = 54\pi, and the cone is precisely a third of that.

Watch out

The height is the perpendicular distance from the base to the apex, not the slant height, which is the sloping line from the apex down to the rim. If you know the slant height \ell but not hh, recover the height with h=2r2h = \sqrt{\ell^2 - r^2} before using the formula. Forget to divide by 3 and you have computed the cylinder instead. Pyramids obey the same rule: base area times height, divided by three. Both the radius and the height must be positive.