Volume of cylinders, spheres, cones, boxes, pyramids, tanks and more — with every unit and a step-by-step formula breakdown.
All dimensions must be greater than 0. Results update live as you type; switching the unit converts the numbers you already entered instead of changing the shape.
How to use this tool
Choose from cylinder, sphere, cone, box, pyramid, triangular prism, capsule or ellipsoid. Only the dimensions that shape needs will be shown.
Type each measurement as a number greater than 0, then choose your length unit — millimetres, centimetres, metres, inches or feet. Switching the unit converts the numbers you already entered.
The volume updates as you type, shown in cubic centimetres, cubic metres, litres and US gallons, so you can use whichever unit your project needs.
Below the results, the substituted formula shows exactly which numbers were used, so you can verify the answer by hand or in a spreadsheet.
Formula & worked example
Cylinder with radius 5 cm and height 10 cm: V = π × 5² × 10 = 785.4 cm³, which is 0.785 litres. A sphere of radius 3 cm gives V = (4/3) × π × 3³ = 113.1 cm³. A box measuring 2 m × 3 m × 4 m gives V = 2 × 3 × 4 = 24 m³, or 24,000 litres.
Limitations — read this before you rely on it
This calculator assumes perfect geometric shapes with straight edges and exact dimensions. Real containers, tanks and rooms have wall thickness, rounded corners and manufacturing tolerances, so treat the result as the ideal geometric volume and allow a small margin for real-world use. It does not account for material thickness or the volume displaced by fittings inside a tank.
Frequently asked questions
Pick a shape, enter its dimensions and choose a unit. The calculator applies that shape's volume formula instantly and converts the answer into cubic centimetres, cubic metres, litres and US gallons, with the substituted numbers shown underneath.
The volume of a cylinder is π × radius² × height. For example, a cylinder with radius 5 cm and height 10 cm has volume π × 5² × 10 = 785.4 cm³. The calculator above does this in any unit — just enter the radius and height and select Cylinder.
The cone volume formula is V = (1/3) × π × r² × h, where r is the radius of the circular base and h is the vertical height. A cone holds exactly one third of the volume of a cylinder with the same base and height.
The sphere volume formula is V = (4/3) × π × r³, where r is the radius. For a sphere of radius 3 cm, that is (4/3) × π × 27 = 113.1 cm³.
Rectangular prism volume is length × width × height, with all three measurements in the same unit. A box measuring 2 m × 3 m × 4 m has volume 24 m³. In the calculator, choose Box / rectangular prism and enter the three sides.
