This free raised bed soil calculator tells you how much soil fills your bed, in cubic feet, cubic yards and liters, and how many bags to buy. It works for rectangular and round beds, in feet or meters.
Measure the inside of the bed, pick a depth and press Calculate. If you’re still choosing a filling plan, our guide on how to fill a raised garden bed cheaply pairs well with the numbers below.
Enter your bed size and press Calculate. A 4 x 8 foot bed filled 12 inches deep needs 32 cubic feet of soil.
Nothing you type is saved or sent anywhere. The math runs in your browser.

How to use the raised bed soil calculator
- Pick your units. Feet and inches is the default. Choose meters and centimeters if you measure in metric; the bag sizes switch to liters.
- Choose the bed shape. Rectangle covers squares too. For a round bed or a stock tank, pick Round and enter the diameter (straight across the middle).
- Enter how many beds of that size you are filling. Beds of different sizes need separate runs.
- Measure the inside length and width. Measure inside the boards, not outside. A 2-inch board on each side takes almost 4 inches off a bed’s real width.
- Enter the soil depth, not the wall height. Most people fill to about 1 to 2 inches below the rim so water and mulch don’t spill over.
- Tick “Add 10% extra” if you’re filling a new bed with a mix that holds a lot of compost. It will sink as the compost breaks down.
- Press Calculate soil. You get the total volume, the same amount in the other units, and the number of bags for three common bag sizes.
What this calculator is for
Soil is the most expensive part of a new raised bed, and it’s easy to misjudge. Buying too little means a second trip; buying too much leaves bags sitting by the fence all summer.
The tool suits anyone filling a first bed, topping up an old one, or comparing bags versus bulk soil. It also helps renters and small-space gardeners size a single round tank or a short patio bed before buying anything.
Planning several beds at once? Sketch them out first with our free garden planner tool, then run each size here.
What your result means
| Result line | What it tells you | When to use it |
|---|---|---|
| Cubic feet | The volume of soil the bed holds | Comparing bag sizes in the US and Canada |
| Cubic yards | The same volume ÷ 27 | Ordering bulk soil, which is sold by the yard |
| Liters and cubic meters | The metric volume (1 cubic foot = 28.3 liters) | Buying bagged soil in the UK, Australia or Europe |
| Bags to buy | Volume ÷ bag size, rounded up to whole bags | Your shopping list |
Bag counts always round up. A bed that needs 21.3 bags gets 22 bags, because nobody sells three-tenths of a bag.
If the result is a cubic yard or more, ask a local landscape supplier for a bulk quote. One cubic yard is 27 cubic feet, the same as 18 bags of 1.5 cubic feet.
How raised bed soil volume is calculated
The calculator uses the plain volume formulas, then converts units:
- Rectangle: length × width × depth
- Round: 3.1416 × radius × radius × depth (the radius is half the diameter)
- Depth in inches is divided by 12 to get feet; centimeters are divided by 100 to get meters.
- The total is multiplied by the number of beds, then by 1.1 if you ticked the 10% extra box.
Worked example: one 4 × 8 foot bed filled 12 inches deep. That is 4 × 8 × 1 = 32 cubic feet, or 32 ÷ 27 = 1.19 cubic yards, or about 906 liters.
In 1.5 cubic foot bags, 32 ÷ 1.5 = 21.3, so you buy 22 bags. In 2 cubic foot bags it is exactly 16. Type 8, 4 and 12 into the tool and you’ll see the same numbers.

Raised bed soil chart: common sizes
| Bed size | Soil depth | Cubic feet | Cubic yards | 1.5 cu ft bags | 2 cu ft bags |
|---|---|---|---|---|---|
| 2 × 4 ft | 12 in | 8 | 0.30 | 6 | 4 |
| 4 × 4 ft | 12 in | 16 | 0.59 | 11 | 8 |
| 3 × 6 ft | 12 in | 18 | 0.67 | 12 | 9 |
| 4 × 8 ft | 6 in | 16 | 0.59 | 11 | 8 |
| 4 × 8 ft | 12 in | 32 | 1.19 | 22 | 16 |
| 4 × 8 ft | 18 in | 48 | 1.78 | 32 | 24 |
| 4 × 12 ft | 12 in | 48 | 1.78 | 32 | 24 |
| Round, 4 ft across | 12 in | 12.6 | 0.47 | 9 | 7 |
| Round, 6 ft across | 12 in | 28.3 | 1.05 | 19 | 15 |
What to do with your result
Split the total into a soil mix
Your total is for the finished mix, not for one product. University of Maryland Extension suggests compost and topsoil in a 1:2 or 1:1 ratio.
For the 32 cubic foot bed above, a 1:2 compost to topsoil mix means about 10.7 cubic feet of compost and 21.3 of topsoil. A 1:1 mix is 16 of each.
In the UK, the RHS suggests a mix of seven parts topsoil with organic matter and sharp sand, and filling to about 5 cm below the rim.
Don’t fill the whole bed with bagged mix or compost
Many bags labeled “garden soil” hold no mineral soil at all. Rutgers Extension notes that bagged “soil” products rarely contain real mineral soil, and beds filled only with organic media grew poorly after a few years.
Mineral topsoil holds its volume once it settles. Organic matter keeps shrinking as it breaks down, so a bed of pure compost sinks every season.
Plan for settling and a yearly top-up
Oregon State Extension warns that newly filled beds sink over time as the compost decomposes, and suggests adding a quarter to 1 inch of compost a year to existing beds.
To size next spring’s top-up, run the calculator with your bed size and a depth of 1 inch. A 4 × 8 bed needs about 2.7 cubic feet per inch, or two 1.5 cubic foot bags.

Match the depth to what you’ll grow
UC Master Gardeners call 6 to 12 inches the standard raised bed depth, with the deeper end leaving room for carrots and potatoes.
Beds on concrete or a patio need more. Lettuce and green beans manage in about 8 inches; tomatoes, peppers and zucchini want 12 inches or more.
Small spaces and renters
A round metal bed or stock tank on a patio can’t drain into the ground, so fill it to full depth with a good mix and check it drains before planting.
For pots and planters rather than beds, our container gardening guide covers pot sizes and potting mix.
Limits of this calculator
- It can’t see your soil. The volume is exact for the size you enter, but how much a mix settles depends on how much compost it holds and how wet it is when you fill.
- Bag sizes vary. Check the volume printed on the bag; some brands sell 0.75 or 1 cubic foot bags and UK bags run from 40 to 70 liters.
- Odd shapes need splitting. For an L-shaped bed, run each straight section on its own and add the results.
- It doesn’t test soil. Before adding fertilizer or lime, a soil test tells you the pH and nutrients; our guides on adding nitrogen and raising soil pH pick up from there.
Frequently asked questions
How many bags of soil do I need for a 4×8 raised bed?
Filled 12 inches deep, a 4 x 8 foot bed holds 32 cubic feet of soil. That is 22 bags of 1.5 cubic feet or 16 bags of 2 cubic feet. At 6 inches deep you need half: 11 or 8 bags.
How deep should a raised bed be?
Six to 12 inches of soil suits most vegetables, with the deeper end better for carrots and potatoes. Beds on concrete or a patio need more, about 8 inches for greens and 12 or more for tomatoes, peppers and squash.
How much does raised bed soil settle?
It depends on the mix. Mixes high in compost sink as the compost breaks down, often an inch or two in the first year. Add 10 percent extra when you fill a new bed, then top up with compost each spring.
Should I buy raised bed soil in bags or in bulk?
Bags suit one or two small beds and are easy to carry. Once you need a cubic yard or more (27 cubic feet, or 18 bags of 1.5 cubic feet), ask a local supplier for a bulk quote and compare it, delivery included.
Can I fill a raised bed with only potting mix or compost?
It is better not to. Bagged mixes and compost are mostly organic matter, which keeps shrinking, and beds filled only with organic media can grow poorly after a few years. Blend compost with topsoil instead.
Conclusion
Raised bed soil comes down to length × width × depth, measured inside the boards. The calculator does the unit changes and the bag math so your shopping list matches the bed.
- A 4 × 8 bed filled 12 inches deep needs 32 cubic feet: 22 bags of 1.5 cubic feet or 1.19 cubic yards.
- Mix topsoil with compost instead of filling with bagged mix alone.
- Expect the bed to sink and top it up with compost each year.
If you only do one thing: measure inside the boards before you buy a single bag.