For a rectangular raised garden bed, multiply the inside length, inside width, and intended soil depth in feet to find how many cubic feet of fill you need. Iowa State University Extension · Vego Garden
Measure the space the soil will fill
- Length and width. Measure from inside wall to inside wall in both directions. Vego Garden
- Soil depth. Measure the depth to the planned soil line. Leave room above that line if you plan to add mulch. Vego Garden · Iowa State University Extension
Calculate cubic feet, cubic yards, and bags
Convert each measurement in inches to feet by dividing by 12. Texas A&M AgriLife Extension
Suppose the bed is 4 feet by 8 feet inside, and you plan to fill it 10 inches deep. If you buy bags, this example assumes each bag holds 2 cubic feet.
| What you need | How to calculate it | Worked example |
|---|---|---|
| Fill volume in cubic feet | Multiply inside length × inside width × fill depth, all in feet. Iowa State University Extension | 4 × 8 × (10 ÷ 12) = 26⅔ ft³ |
| Bulk fill in cubic yards | Divide cubic feet by 27. Iowa State University Extension | 26⅔ ÷ 27 ≈ 0.99 yd³ |
| Whole bags | Divide cubic feet by the volume in one bag, then round up to the next whole bag if needed. Iowa State University Extension · Texas A&M AgriLife Extension | 26⅔ ÷ 2 ≈ 13.33, so buy 14 bags |
Choose fill for what’s under the bed
Roots can grow into the soil beneath an open-bottom bed set directly on the ground. If the bed will sit on existing soil, collect a sample from the bed site before amending the soil. Submit the sample to a soil testing laboratory and request the basic soil test. Add a lead test if you plan to grow food in the bed. University of Maryland Extension
| What’s beneath the bed | What to use |
|---|---|
| Existing garden with intact, uncompacted topsoil that drains well | Spread 2 to 4 inches of compost and work it into the top 4 inches of existing soil with a garden fork or spade. University of Maryland Extension |
| Compacted clay with little vegetation | Drive a garden fork or spade into the soil and rock it back and forth. Move the tool 6 to 8 inches and repeat without lifting or turning the soil over. One option is to add 1 part compost to 2 parts purchased topsoil above the loosened soil. University of Maryland Extension |
| Impermeable pavement or concrete | Use equal parts compost and soilless growing mix. For beds at least 16 inches deep, topsoil can make up to 20% of the mix by volume. University of Maryland Extension |
For beds on impermeable pavement, Maryland Extension recommends at least 8 inches for leafy greens, beans, and cucumbers, and 12 to 24 inches for peppers, tomatoes, and squash. On these sites, plant roots depend on moisture within the bed. University of Maryland Extension
When adding fill to a framed bed, blend the compost with soil or a planting mix. Oregon State University Extension
Evidence and limits
The March 2026 University of Maryland Extension raised-bed guide, other Extension guidance including Oregon State’s EM 9308, and Vego Garden’s measuring example were checked on November 29, 2026. The calculations cover rectangular beds. No hands-on testing was performed for this guide.