How to measure
- Box: measure length, width and height. Mixed units are fine — enter inches for one and feet for another.
- Cylinder: measure the diameter straight across the centre, and the height or depth.
- For tanks and planters, measure the inside to get the capacity rather than the outside size.
- Several identical containers? Set 'How many'.
How the cubic feet calculation works
Box = length × width × height Cylinder = π × (diameter ÷ 2)² × height 1 cu yd = 27 cu ft · 1 cu ft = 1,728 cu in 1 cu ft = 7.48 US gal = 28.32 L
Every measurement is converted to one unit before multiplying, so inches and feet can be mixed safely.
A cylinder is a circle swept up through its height: the area of the circle times the height.
Gallon and liter conversions come from exact definitions — a US gallon is 231 cubic inches — so the 7.48 gal per cu ft figure is exact to the digits shown.
Worked example
A storage box 4 ft long, 3 ft wide and 2 ft high.
- Volume: 4 × 3 × 2 = 24 cu ft
- Cubic yards: 24 ÷ 27 = 0.89 cu yd
- Gallons: 24 × 7.48 = 179.5 gal
- Liters: 24 × 28.32 = 679.6 L
24 cubic feet — just under a cubic yard, or about 180 gallons if it held water.
Reading your result
Cubic feet is how bagged soil, mulch and concrete yields are labelled; cubic yards is how bulk material is sold.
Gallons and liters give liquid capacity — water tanks, ponds and containers.
Assumptions
- Sides are straight and square. Tapered planters hold less than a box with the same top dimensions.
- Gallons are US liquid gallons (231 cu in). An imperial gallon is about 20% larger.
Unit conversions use exact definitions (1 in = 25.4 mm, 1 US gal = 3.785 L). See the calculation methodology for rounding rules.
Frequently asked questions
How do I calculate cubic feet?
Multiply length × width × height in feet. If a measurement is in inches, divide it by 12 first. A 4 × 3 × 2 ft box is 24 cu ft.
How many gallons are in a cubic foot?
7.48 US gallons, or 28.3 liters.
How do I calculate the volume of a cylinder?
Halve the diameter, square it, multiply by 3.1416 and by the height. A 2 ft wide, 2 ft tall drum holds 3.1416 × 1 × 1 × 2 = 6.3 cu ft, about 47 gallons.
How do I convert cubic inches to cubic feet?
Divide by 1,728 (12 × 12 × 12).