Calculates the volume of a cylinder as π × radius² × height.
A cylinder is a circle carried straight upwards. Its volume is the area of the base multiplied by the height, and since the base is a circle of radius , that area is .
With the defaults, a radius of and a height of . The base area is , so
The volume is about 197.9203.
Imagine stacking thin discs, each a copy of the base, until the pile reaches the height . One disc covers , and the stack is tall, so the volume is . The same argument works for any prism: volume equals base area times height.
The height is measured perpendicular to the base. Enter the radius, not the diameter: a cylinder 6 across has radius 3. Doubling the radius makes the volume four times larger, whereas doubling the height only doubles it, because the radius enters squared. A cone with the same base and height holds exactly one third as much.