Cubic Feet Calculator
Bagged soil, mulch, gravel and sand are sold in cubic feet, and so are planters, raised beds and storage bins. Enter the three dimensions in any unit — inches, feet, yards, centimeters or meters — for a box, or the diameter and height for a round planter or tube, and the calculator returns cubic feet, cubic inches, cubic yards, gallons, liters and the number of bags to fill it. Conversions use the exact NIST Handbook 44 values.
What you'll need
As an Amazon Associate I earn from qualifying purchases.

Orange Mason Line String Line - #18 Braided Nylon String - 250 Ft Length - Nylon Twine for Gardening Or Masonry Tools - Perfect Construction String for A String Level, Twine String for Gardening
$7.99
Check price on Amazon
Best Choice Products Dual-Wheel Home Utility Yard Wheelbarrow Garden Cart w/Built-in Stand for Lawn, Gardening, Construction - Green
Save 17%
$99.99List Price:: $119.99

Rapitest Soil Test Kit for Gardens, Vegetables, Flowers and Lawns. USA designed and assembled soil tester completely, quickly and accurately measures/analyzes soil pH acidity and garden nutrients.
$15.99
Check price on Amazon
VNIMTI Heavy Duty Gardening Shovel, 56 Inch Round Blade with Fiberglass Handle (Orange)
Save 5%
$31.34List Price:: $32.99
Prices and savings as of Oct 1, 2026, 4:34 AM UTC. Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon.com at the time of purchase will apply to the purchase of this product.
Worked example: 8 × 4 ft raised bed, 1 ft deep
| Step | Working | Result |
|---|---|---|
| Cubic feet | 8 × 4 × 1 | 32 cu ft |
| Cubic yards | 32 ÷ 27 | 1.19 yd³ |
| Gallons | 32 × 7.4805 | 239.4 gal |
| 2 cu ft bags | 32 ÷ 2 | 16 bags |
Measured in inches? Divide by 1,728
| Container | Working | Cubic feet |
|---|---|---|
| 24 × 18 × 12 in planter | 5,184 ÷ 1,728 | 3 cu ft |
| 36 × 12 × 10 in window box | 4,320 ÷ 1,728 | 2.5 cu ft |
| Round pot, 24 in across, 18 in deep | 3.1416 × 12² × 18 ÷ 1,728 | 4.71 cu ft |
Conversions are the exact NIST Handbook 44 values: 1 cubic foot = 1,728 cubic inches = 28.317 liters = 7.4805 U.S. gallons, and 27 cubic feet make a cubic yard. Bags of soil, mulch and gravel list their volume in cubic feet on the front, so divide the cubic feet you need by that number and round up.
Filling a raised bed? The raised bed soil calculator sizes the mix, and the bagged gravel calculator compares bags with bulk. For anything sold by the yard, use the cubic yard calculator.
Get the Gravel & Stone Calculator app for Android
Estimate gravel, stone, sand, and mulch on the job site, save projects, and share quantities with your supplier.
Building something else? Try our sister calculators
Smart Roofing Calculator
Free roof replacement cost estimates by material and pitch.
Smart Decking Calculator
Deck cost, boards, joists, and stair estimates.
Smart Fencing Calculator
Fence cost by material and linear footage.
Smart Tile Calculator
Tile quantity, grout, and thinset estimates.
Smart Insulation Calculator
R-value, batt count, and blown-in coverage.
Smart Decking Calculator
Android app — deck cost, boards, and framing on site.
Smart Drywall Calculator
Android app — drywall sheets, mud, and tape estimates.
Smart Sod Calculator
Android app — sod rolls, pallets, and coverage.
Smart Insulation Calculator
Android app — R-value and batt coverage.
Smart Tile Calculator
Android app — tile, grout, and thinset quantities.
Smart Fencing Calculator
Android app — fence cost estimates on the go.
Frequently asked questions
- How do I calculate cubic feet?
- Multiply length × width × height with all three in feet. An 8 × 4 ft raised bed 1 ft deep is 8 × 4 × 1 = 32 cubic feet. If you measured in inches, multiply the three numbers and divide by 1,728.
- How many cubic feet are in a cubic yard?
- 27 cubic feet (3 ft × 3 ft × 3 ft). So 32 cubic feet is 32 ÷ 27 = 1.19 cubic yards.
- How do I convert inches to cubic feet?
- Multiply the three dimensions in inches and divide by 1,728, the number of cubic inches in a cubic foot. A 24 × 18 × 12 in planter holds 5,184 ÷ 1,728 = 3 cubic feet.
- How many gallons are in a cubic foot?
- 7.48 U.S. gallons (NIST: 7.480 519). A 4 × 2 × 1 ft box holds 8 cu ft, or about 59.8 gallons; 1 cu ft is also 28.3 liters.
- How many bags of soil do I need for 32 cubic feet?
- 16 bags of 2 cu ft, 11 bags of 3 cu ft or 32 bags of 1 cu ft. Divide the cubic feet by the bag size printed on the bag and round up.
Related calculators
All calculators →Cubic Yard Calculator
Cubic yards for any rectangle, circle or known area at any depth — the unit soil, mulch, gravel and concrete are sold in — plus cubic feet, cubic meters and bags.
Open calculator →Raised Bed Soil Calculator
Soil to fill one or more raised garden beds: cubic feet, cubic yards, bags, and a compost / peat / vermiculite mix.
Open calculator →Bagged Gravel Calculator
How many bags of gravel you need, and whether bulk delivery would be cheaper.
Open calculator →Mulch Calculator
How much mulch you need in cubic yards and 2 or 3 cu ft bags, with bulk versus bagged cost.
Open calculator →Gravel Calculator
Work out exactly how much gravel you need in cubic yards, tons, and bags for any area and depth.
Open calculator →Cubic Yards to Tons Calculator
Convert between cubic yards and tons for any gravel type, using real in-place densities.
Open calculator →