Volume calculator for boxes, cylinders, spheres and cones
Calculate the volume of a box, cube, cylinder, sphere, cone or pyramid and see it in litres, cubic metres and US gallons.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
How much water fits in a tank, soil in a planter or air in a ball? Pick the shape, enter its dimensions and unit, and this calculator returns the volume in cubic units and converts it to litres, cubic metres and US gallons, the units used for liquids and materials.
How to use it
- Choose the shape: box, cube, cylinder, sphere, cone or pyramid.
- Choose the unit of your measurements.
- Enter the dimensions: for a cylinder or cone, radius then height; for a sphere, radius; for a box, length, width and height.
- Run it and read the volume in all four units.
How the calculation works
Box a × b × c; cube a³; cylinder π a² b; sphere 4/3 π a³; cone 1/3 π a² b; square pyramid 1/3 a² b. The cubic result is converted to litres (1 L = 1,000 cm³) and US gallons (3.785 L).
box abc · cylinder πa²b · sphere 4/3πa³ · cone ⅓πa²b · pyramid ⅓a²bWorked example
A round planter is 4 cm in radius and 12 cm deep inside: 603.185789 cm³, or 0.6032 L of potting mix. A beach ball with a 6-inch radius holds 904.778684 in³, which is 14.8267 litres or 3.9168 US gallons of air.
Sample input and result
Shape: Box: a × b × c Unit: Centimetres (cm) a: 10 b: 20 c: 30 → Volume: 6,000 cm³ → Litres: 6 L → Cubic metres: 0.006 m³ → US gallons: 1.585 US gal
Limitations
- Ideal shapes; real containers have wall thickness and rounded corners.
- Square-based pyramids only.
- US gallons, not imperial.
Last updated:
Frequently asked questions
Do I enter the diameter or the radius?
The radius, half the diameter.
How do I calculate a rectangular tank in litres?
Choose box, enter length, width and depth in cm, and read the litres.
How much concrete do I need?
Use the concrete calculator, which adds bag counts and waste.
Troubleshooting
The volume is 8 times too large.
You entered the diameter instead of the radius for a sphere (radius cubed).
A tank holds less than calculated.
Measure inside dimensions and allow for unfilled space at the top.
I need UK gallons.
Convert the litres with the volume converter.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Scientific calculator
Evaluate arithmetic, powers and trigonometric functions in radians without eval.
Maths & educationFraction calculator
Add, subtract, multiply or divide rational numbers exactly.
Maths & educationEquation solver
Solve real linear and quadratic equations ax² + bx + c = 0.
Maths & education