Garden planning
Raised Bed Soil Calculator
Enter your bed size to get the soil you need in cubic feet, cubic yards and bags, split into an extension-recommended mix.
Some links go to Amazon. As an Amazon Associate we earn from qualifying purchases, at no extra cost to you. Disclosure.
How the calculator works
Soil volume = length × width × depth. With length and width in feet and depth in inches, cubic feet = length × width × (depth ÷ 12). Divide by 27 for cubic yards. Bags are rounded up.
How deep to fill
Illinois Extension says a raised bed should be at least 6 to 12 inches deep for good root growth, and Utah State says at least 6 to 12 inches high for most vegetables, with beds shallower than 12 inches built without a bottom so roots can reach the soil below. Maryland Extension says beds on hard surfaces should be at least 8 inches deep for leafy greens, beans and cucumbers and 12 to 24 inches for peppers, tomatoes and squash.
Oregon State Extension says to expect newly filled beds to sink over time as the compost in the mix decomposes, and to refill as needed. It also says not to fill raised beds with compost alone.
What to fill it with
Oregon State Extension advises against filling a raised bed with compost alone. Extension services suggest mixes like these:
- Topsoil, compost and soilless mix (University of Illinois Extension): 60% topsoil, 30% compost, 10% soilless growing mix (peat moss, perlite and/or vermiculite)
- Equal parts topsoil, organic matter and coarse sand (Iowa State Extension): 34% topsoil, 33% organic matter (well-rotted manure, compost or peat), 33% coarse sand
- Topsoil and compost (Iowa State Extension): 70% topsoil, 30% compost
- Compost and soilless growing mix, no topsoil (University of Maryland Extension): 50% compost, 50% soilless growing mix
The calculator above splits your volume into each mix. Buying in bulk by the cubic yard is often cheaper than bags once you need more than a yard or so; bagged raised bed mix is the simplest option for one or two beds.
Sources
- University of Illinois Extension: Raised Bed Checklist
- Iowa State University Extension and Outreach: What would be a good soil mix for a raised bed?
- University of Maryland Extension: Growing Vegetables in Raised Beds
- Utah State University Extension: Raised Bed Gardening
- Oregon State University Extension: How to use compost in gardens and landscapes (EM 9308)
Questions
How much soil do I need for a 4 x 8 raised bed?
How deep should a raised bed be?
Updated December 4, 2026. How we work out these dates.