Formula
Box: V = l × w × hCube: V = s³Cylinder: V = π r² hSphere: V = 4/3 π r³Cone: V = 1/3 π r² hPyramid: V = 1/3 × l × w × h
How it works
Enter every dimension in the same unit. The volume is returned in cubic units of that unit, and converted to liters and US gallons with exact unit definitions (1 ft = 0.3048 m, 1 US gal = 231 in³).
A cone holds one third of a cylinder with the same base and height, and a pyramid one third of the matching box — which is why those formulas carry the 1/3.
Worked examples
Raised garden bed
An 8 × 4 ft bed filled 1 ft deep needs 32 cubic feet of soil (about 1.19 cubic yards).
- Length
- 8
- Width
- 4
- Height
- 1
- Unit
- Feet (ft)
- Volume
- 32 ft³
Water tank
A cylindrical tank 60 cm across and 120 cm tall.
- Radius
- 30
- Height
- 120
- Unit
- Centimeters (cm)
- Volume
- 339,292.006588 cm³
Ball
A regulation basketball has a radius of about 4.7 inches.
- Radius
- 4.7
- Unit
- Inches (in)
- Volume
- 434.892765 in³
Ordering soil, mulch, or concrete
Bulk materials are sold by the cubic yard in the US. Divide cubic feet by 27 to get cubic yards, and add 5–10% for settling and waste.
Capacity vs. outer size
For containers, measure the inside dimensions. Wall thickness can reduce the usable volume of a tank or planter noticeably.
Related calculators
- Area CalculatorFind the area of a rectangle, square, circle, triangle, trapezoid, parallelogram, or ellipse.
- Volume ConverterConvert cups, tablespoons, teaspoons, fluid ounces, pints, quarts, and gallons to milliliters and liters — and back.
- Length ConverterConvert between inches, feet, yards, miles, millimeters, centimeters, meters, kilometers, and nautical miles.
Last reviewed: