Volume Calculator: Box, Cylinder, Sphere, Cone

Calculate the volume of a box, cylinder, sphere, or cone, and convert the result to liters, US gallons, or cubic yards.

Volume Calculator (m³)

Report an Issue

Found a bug or have a suggestion for Volume Calculator: Box, Cylinder, Sphere, Cone? Let us know!

Choose a shape and enter dimensions.

Volume Calculator

This calculator finds the volume of a box, a cylinder, a sphere, or a cone. Dimensions can be entered in meters, centimeters, millimeters, inches, or feet. The metric result is shown in cubic meters with liters as a second unit, while the imperial result is shown in cubic feet with US gallons and cubic yards alongside it.

How the formulas work

Each shape uses its own formula. A box's volume is length times width times height. A cylinder's volume is pi times the radius squared times the height. A sphere's volume is four thirds pi times the radius cubed. A cone's volume is one third pi times the radius squared times the height. Every dimension converts to meters before the formula runs, using 1 inch = 0.0254 m and 1 foot = 0.3048 m, so one unit choice applies to the whole calculation; centimeters for one side and inches for another are not mixed within a single shape.

Worked examples

A cylindrical tank with a radius of 0.5 m and a height of 2 m has a volume of pi times 0.5 squared times 2, about 1.5708 m³, equal to 1,570.8 liters, or roughly 414.96 US gallons in imperial units. A storage box measuring 2 m by 1.5 m by 1 m has a volume of 2 times 1.5 times 1, exactly 3 m³, which is 3,000 liters, about 105.94 ft³, or close to 3.92 cubic yards.

Formula and example volumes

V(box) = L × W × H
V(cylinder) = π × r² × h
V(sphere) = (4/3) × π × r³
V(cone) = (1/3) × π × r² × h
ShapeDimensionsVolume (m³)Volume (L)
Box2 × 1.5 × 1 m3.00003,000.00
Cylinderr 0.5 m, h 2 m1.57081,570.80
Spherer 0.4 m0.2681268.08
Coner 0.3 m, h 0.9 m0.084884.82

Frequently Asked Questions