Cubic feet calculator
A box 24 × 18 × 18 in is 4.5 cubic feet (33.66 US gallons, or 127.43 litres).
Measure in inches, feet, yards, centimetres or metres. Unit conversions are exact, from NIST Handbook 44. Checked 6 December 2026. Sources
Your volume
Box, measured in inches
- Cubic inches
- 7,776
- Cubic yards
- 0.167
- US gallons
- 33.66
- Litres
- 127.43
- Cubic metres
- 0.1274
Measure inside a box, tank or room for the space it holds, and outside for the space it takes up.
How this is worked out
- Volume: 24 × 18 × 18 in = 7,776 cu in.
- Cubic feet: 7,776 ÷ 1,728 cubic inches per cubic foot = 4.5 cu ft.
- Gallons: 4.5 × 1,728 ÷ 231 cubic inches per gallon = 33.66 US gallons.
- Litres: 4.5 × 28.316846592 = 127.43 L. Cubic yards: 4.5 ÷ 27 = 0.167 cu yd.
Cubic feet of common box sizes
Box sizes are length × width × height in inches. Multiply them and divide by 1,728, the cubic inches in a cubic foot.
| Box, inches | Cubic feet | Litres |
|---|---|---|
| 12 × 12 × 12 | 1 | 28.3 |
| 16 × 12 × 12 | 1.33 | 37.8 |
| 18 × 14 × 12 | 1.75 | 49.6 |
| 18 × 18 × 16 | 3 | 85 |
| 24 × 18 × 18 | 4.50 | 127.4 |
| 24 × 18 × 24 | 6 | 169.9 |
| 24 × 24 × 24 | 8 | 226.5 |
Cubic feet to gallons and litres
| Cubic feet | US gallons | Litres |
|---|---|---|
| 1 | 7.48 | 28.32 |
| 2 | 14.96 | 56.63 |
| 5 | 37.40 | 141.58 |
| 10 | 74.81 | 283.17 |
| 20 | 149.61 | 566.34 |
| 50 | 374.03 | 1,415.84 |
| 100 | 748.05 | 2,831.68 |
Rooms and tanks
A room 12 × 12 ft with an 8 ft ceiling is 12 × 12 × 8 = 1,152 cubic feet. A round tank 24 inches across and 48 inches high is π × 12² × 48 = 21,715 cubic inches: 12.57 cubic feet, or 94 US gallons.
The conversions
- 1 cubic foot = 12 × 12 × 12 = 1,728 cubic inches.
- 1 cubic yard = 3 × 3 × 3 = 27 cubic feet.
- 1 US gallon = 231 cubic inches, so 1 cubic foot = 1,728 ÷ 231 = 7.4805 gallons.
- 1 cubic foot = 0.3048³ m³ = 28.316846592 litres, exactly.
Questions
How do I calculate cubic feet?
Multiply length × width × height in feet. If you measured in inches, multiply the inches and divide by 1,728.
How many cubic feet is a 24 × 18 × 18 inch box?
24 × 18 × 18 = 7,776 cubic inches, and 7,776 ÷ 1,728 = 4.50 cubic feet.
How many gallons are in a cubic foot?
7.48 US gallons. A gallon is 231 cubic inches and a cubic foot is 1,728.
How many cubic feet are in a cubic yard?
27: a cubic yard is 3 feet on each side, and 3 × 3 × 3 = 27.
Sources
Checked on 6 December 2026. If a figure here differs from the official page, the official page is right; please tell us.
Filling a bed or a slab? Work it out in cubic yards.
Cubic yard calculator