The Raised Bed Soil Volume Calculator works out exactly how much soil or compost you need to fill a raised garden bed, and translates that into the number of bags to buy. It is built for gardeners filling a new bed who want to avoid the classic mistakes of ordering far too little or wasting money on excess.
How it works
Volume is the product of the three dimensions. The only subtlety is unit conversion — you usually measure a bed in feet and inches but buy soil by the cubic foot, cubic yard or litre:
volume (cu ft) = length(ft) × width(ft) × depth(ft)
cubic yards = cubic feet / 27
litres = cubic feet × 28.3168
bags needed = ceil(cubic feet / bag size in cu ft)
The calculator converts inches to feet (divide by 12) or centimetres to metres internally, so you can enter mixed units naturally. Because you cannot buy part of a bag and soil settles, the bag count always rounds up.
Worked example and tips
A bed 8 ft long, 4 ft wide, filled 12 inches (1 ft) deep:
- Volume = 8 × 4 × 1 = 32 cubic feet
- = 32 / 27 ≈ 1.19 cubic yards
- = 32 × 28.32 ≈ 906 litres
- Using 2 cu ft bags: ceil(32 / 2) = 16 bags
Tips:
- Fill 10-12 inches deep for most vegetables; root crops like 12 inches or more.
- Buy a touch extra. Fresh soil settles and compacts in the first weeks, so a bed filled exactly level will drop below the frame. Hold back a bag to top up later.
- For a custom mix, multiply the total volume by your chosen fractions of compost, topsoil and aeration material.
- Ordering by the cubic yard in bulk is cheaper than bags for large beds — use the cubic-yard figure to compare quotes.