Raised Bed Soil Calculator
Calculate cubic feet, cubic yards, and bag count for a rectangular raised bed.

Bed Soil
Convert inside bed dimensions and fill depth into bags or bulk soil volume.
The practical plan will appear here.
Soil for common bed sizes
Cubic feet of soil to fill each bed, by fill depth.
| Bed, cubic feet at | 6 in | 12 in | 18 in |
|---|---|---|---|
| 3 x 6 ft | 9 | 18 | 27 |
| 4 x 4 ft | 8 | 16 | 24 |
| 4 x 8 ft | 16 | 32 | 48 |
| 4 x 12 ft | 24 | 48 | 72 |
Numbers to order by
- 27cubic feet in one cubic yard
- 12 to 18 inof soil for most annual vegetables, per UConn
- 1 to 2 inof mix to replace each year, per Alabama Extension
Before you use the number
Fill to the depth your crops need, then plan to top it up
Published depths differ. Alabama Extension calls 6 to 12 inches of soil desirable for drainage and root development, and UConn Extension says most annual vegetables need 12 to 18 inches, with root vegetables needing more. Utah State University Extension says beds shallower than 12 inches should have no bottom, so roots can reach the soil below.
Raised bed soil sinks over time. Washington State University Extension says the settling of fill material and decay of organic matter reduce the depth, so you refill every year or two to keep the original depth. This calculator shows the volume for the depth you enter and adds no reserve.
How to use this result
What it means
Cubic feet compares with the volume printed on a bag, and the bag count is rounded up to whole bags. Cubic yards compares with a bulk order, and one cubic yard equals 27 cubic feet.
Next action
Decide on a settling reserve yourself, because this tool adds none. Alabama Extension says to expect to replace 1 or 2 inches of the soil mix each year, which is about 2.7 to 5.3 cubic feet for a 4 by 8 foot bed. Then compare bag and bulk prices.
Risk note
The result is the volume that fills the depth you entered on a level bed. Washington State University Extension says a sand-and-compost fill drains water well but dries out more quickly than most native soils, so check moisture often in the first season.
Common mistakes
Buying by bed area. Length and width give square feet. Depth turns that into cubic feet, and cubic feet is what a bag or a cubic yard is sold in.
Filling the bed with compost alone. Oregon State Extension says to use a soil mix in framed raised beds, not compost alone. South Dakota State Extension adds that compost can pack down too tightly for good aeration.
Counting on the first fill lasting. Alabama Extension says you may need to replace 1 or 2 inches of the mix each year as the organic parts compost and shrink.
Using free fill from an unknown source. UConn Extension says free fill or topsoil from unfamiliar sources may contain contaminants, invasive weeds, or invasive jumping worms.
How to measure and order raised bed soil
- Measure inside the frame. Measure length and width between the inside faces of the boards, in feet. Write 6 inches as 0.5 feet. The boards take up room the soil never fills.
- Enter the fill depth. Use the distance from the top of the fill to the bottom of the bed. Published ranges for vegetables run from 6 to 12 inches (Alabama Extension) to 12 to 18 inches (UConn Extension). On a hard surface, University of Maryland Extension gives at least 8 inches for leafy greens, beans, and cucumbers and 12 to 24 inches for peppers, tomatoes, and squash.
- Enter the bag size. Read the volume printed on the bag. Oregon State Extension says bags of purchased compost often contain 1 to 2 cubic feet. The tool divides cubic feet by your bag size and rounds up to whole bags.
- Read cubic feet and cubic yards. Compare cubic feet with the bag count. Compare cubic yards with a bulk quote, since one cubic yard is 27 cubic feet.
- Add your own settling reserve. The tool adds none. Alabama Extension says to expect to replace 1 or 2 inches of mix each year. To price that, add those inches to the depth and read the new total.
Sources give different mixes. UConn Extension suggests about one-half to two-thirds topsoil and one-third to one-half aged compost. UNH Extension often recommends 70 percent topsoil and 30 percent compost and calls 50/50 acceptable. Utah State University Extension describes equal parts compost, a drainage material, and topsoil.
If the bed sits on soil, Washington State University Extension says to add 3 or 4 inches of fill, dig it into the soil underneath, and repeat until the bed is full, so water does not stall at a sharp boundary. Where there is no suitable soil and the fill goes straight onto the surface, it says to build beds at least 15 to 18 inches deep.
What this tool decides
Estimates fill volume before settling; it does not calculate a soil recipe or add a reserve.
Outputs: 3 volumes. Cubic feet, cubic yards, and bag count.
Frequently asked questions
How deep should I fill a raised bed?
UConn Extension says most annual vegetables need 12 to 18 inches of soil, and root vegetables need more. Alabama Extension calls 6 to 12 inches desirable, so the published ranges differ. On a hard surface, University of Maryland Extension gives at least 8 inches for leafy greens, beans, and cucumbers and 12 to 24 inches for peppers, tomatoes, and squash.
How much extra soil should I buy for settling?
The Extension pages cited here give inches of settling per year and no percentage. UNH Extension expects a couple of inches of settling per year in an 18-inch bed, and Alabama Extension says to replace 1 or 2 inches of mix each year. In a 4 by 8 foot bed, each inch is about 2.7 cubic feet, and this tool adds no reserve on its own.
What soil mix should I use?
UConn Extension suggests about one-half to two-thirds topsoil and one-third to one-half aged compost. UNH Extension often recommends 70 percent topsoil and 30 percent compost. Oregon State Extension says to use a soil mix in framed raised beds and not to fill them with compost alone.
Is it cheaper to buy bagged soil or bulk soil?
UConn Extension says buying bulk topsoil by the cubic yard is usually less expensive than bags of raised bed mix, and bagged mix may be more practical for smaller beds. One cubic yard equals 27 cubic feet, and Oregon State Extension says bags of purchased compost often contain 1 to 2 cubic feet.
How do I work out how much soil a bed needs?
Multiply length in feet by width in feet, then by the depth in feet, which is inches divided by 12. Divide cubic feet by 27 to get cubic yards, as Oregon State Extension describes. Measure inside the frame, since the boards hold no soil.
Keep planning
Sources and limits
Depths, mixes, and settling come from the university Extension pages below. Volume conversions follow Oregon State Extension. The tool itself only multiplies length, width, and depth.
- Alabama Cooperative Extension System: Raised Bed Gardening
- UConn Home & Garden Education Center: Starting Raised Beds
- Washington State University Extension: Raised Beds, Will They Benefit Your Vegetable Garden? (Home Garden Series)
- Utah State University Extension: Raised Bed Gardening
- Oregon State University Extension: How to use compost in gardens and landscapes (EM 9308)
- University of Maryland Extension: Soil to Fill Raised Beds
- UNH Extension Yard and Garden Infoline, via Ask Extension: filling raised beds
- South Dakota State University Extension: Using Compost in Raised Beds and Containers