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.
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
| Shape | Dimensions | Volume (m³) | Volume (L) |
| Box | 2 × 1.5 × 1 m | 3.0000 | 3,000.00 |
| Cylinder | r 0.5 m, h 2 m | 1.5708 | 1,570.80 |
| Sphere | r 0.4 m | 0.2681 | 268.08 |
| Cone | r 0.3 m, h 0.9 m | 0.0848 | 84.82 |