Quick answer: Cubic feet = length (ft) × width (ft) × depth (ft). Cubic yards = cubic feet ÷ 27. A 4 × 8 ft raised bed filled 12 in deep needs 32 cu ft, which is 1.19 cubic yards or 32 bags of 1 cu ft. Add about 10% if the soil will settle.
Want the answer without the maths? The free Soil & Topsoil Calculator does every step for you, in imperial or metric.
Open the calculatorHow do you calculate how much soil you need?
- Measure the inside length and width of the bed, or the area, in feet.
- Turn the depth into feet: inches ÷ 12.
- Cubic feet = length × width × depth.
- Cubic yards = cubic feet ÷ 27, for bulk soil. Bags = cubic feet ÷ bag size, for bagged soil.
- Add an allowance if the soil will settle. Our calculator uses 10% as a planning default; it is our assumption, not a published figure.
Cubic yards = length × width × depth (all in feet) ÷ 27
How deep should the soil be?
- Raised beds on a hard surface (a patio or driveway): at least 8 in for leafy greens, beans and cucumbers, and 12 to 24 in for peppers, tomatoes and squash, according to University of Maryland Extension.
- Raised beds on the ground: Oklahoma State University Extension says a 6 in rise above the existing ground greatly improves drainage, and beds 18 to 24 in tall suit gardeners who like to sit.
- New lawns: the Connecticut Agricultural Experiment Station says lawns grow best on at least 6 in of well-drained topsoil, and woody plants often need more.
Oklahoma State also suggests a bed no wider than about 4 ft, so you can reach the middle from each side.
Worked example: a 4 × 8 ft raised bed, 12 in deep
- Depth: 12 ÷ 12 = 1 ft
- Volume: 4 × 8 × 1 = 32 cu ft
- Cubic yards: 32 ÷ 27 = 1.19 cu yd
- With 10% for settling: 32 × 1.10 = 35.2 cu ft, which is 1.30 cubic yards
- Bags of 1 cu ft: 35.2, so 36 bags
How much soil for common raised beds?
Exact volumes, before any allowance for settling. Bags are 1 cu ft bags.
| Bed | Depth | Cubic feet | Cubic yards | 1 cu ft bags |
|---|---|---|---|---|
| 4 × 4 ft | 12 in | 16 | 0.59 | 16 |
| 4 × 8 ft | 12 in | 32 | 1.19 | 32 |
| 4 × 8 ft | 18 in | 48 | 1.78 | 48 |
| 3 × 6 ft | 12 in | 18 | 0.67 | 18 |
| 4 × 12 ft | 12 in | 48 | 1.78 | 48 |
Worked example: filling the bed with compost and topsoil
For a bed over compacted or clay soil, University of Maryland Extension suggests compost and topsoil in a 1:2 or 1:1 ratio. For our 35.2 cu ft (with the 10% extra):
- 1:1 mix: 17.6 cu ft of compost and 17.6 cu ft of topsoil
- 1:2 mix: 35.2 ÷ 3 = 11.7 cu ft of compost and 23.5 cu ft of topsoil
Worked example: topsoil for a new lawn, 1,000 sq ft at 6 in
- Depth: 6 ÷ 12 = 0.5 ft
- Volume: 1,000 × 0.5 = 500 cu ft
- Cubic yards: 500 ÷ 27 = 18.5 cubic yards
- With 10% extra: 20.4 cubic yards
- Approximate weight at 0.8 tons per cubic yard: 20.4 × 0.8 = about 16.3 tons
The Connecticut station also suggests mixing about half of the new soil into the existing soil, and spreading it at an even depth over the whole area.
Worked example: a thin top layer, 1,000 sq ft at ¼ in
- Depth: 0.25 ÷ 12 = 0.0208 ft
- Volume: 1,000 × 0.0208 = 20.8 cu ft
- Cubic yards: 20.8 ÷ 27 = 0.77 cubic yards, or 21 bags of 1 cu ft
A quick shortcut for any depth: cubic yards = square feet × inches ÷ 324. See Square Feet to Cubic Yards.
Tips for buying soil
- Measure the inside of the bed, not the outside of the boards.
- Topsoil quality varies, and University of Maryland Extension notes that topsoil sales are not regulated in Maryland. Ask the supplier what is in it.
- Oklahoma State suggests adding about 2 in of compost every spring and fall, so plan a top-up each season rather than overfilling now.
- The Soil Calculator works out cubic yards, bags and approximate weight for any shape.
Questions and answers
How much soil do I need for a raised bed?
Multiply length × width × depth, all in feet. A 4 × 8 ft bed filled 12 in deep holds 4 × 8 × 1 = 32 cu ft, which is 1.19 cubic yards or 32 bags of 1 cu ft. With 10% extra for settling it is 35.2 cu ft: 1.30 cubic yards or 36 bags.
How deep should soil be in a raised bed?
University of Maryland Extension says beds on hard surfaces should be at least 8 in deep for leafy greens, beans and cucumbers, and 12 to 24 in for peppers, tomatoes and squash. Oklahoma State University Extension says even a 6 in rise above the ground greatly improves drainage.
How much topsoil do I need for a new lawn?
The Connecticut Agricultural Experiment Station says lawns grow best on at least 6 in of well-drained topsoil. For 1,000 sq ft at 6 in that is 500 cu ft, or 18.5 cubic yards, before any extra.
How many bags of soil make a cubic yard?
A cubic yard is 27 cu ft: 27 bags of 1 cu ft, 18 bags of 1.5 cu ft or 13.5 bags of 2 cu ft (buy 14).
What should I fill a raised bed with?
University of Maryland Extension suggests compost and purchased topsoil in a 1:2 or 1:1 ratio for beds on compacted or clay soil. For beds on a hard surface it suggests compost and a soilless growing mix 1:1, with topsoil up to 20% of the volume only in beds at least 16 in deep.
How much does a cubic yard of topsoil weigh?
A conversion table published by the New Mexico Energy, Minerals and Natural Resources Department uses 0.8 tons per cubic yard for topsoil. Wet or compacted soil weighs more, so ask your supplier.
Not professional advice
Sources and how this guide was checked
This guide was drafted with the help of AI writing tools and published by Babar Sohail after review. Every number in the worked examples was worked out by hand and is re-checked by automated tests, and every fact comes from the sources below. Found a mistake? Please tell us. Read our editorial policy.
- University of Maryland Extension: Filling raised beds (J. Traunfeld, spring 2019). Accessed December 3, 2026.
- Connecticut Agricultural Experiment Station: Topsoil for the home landscape (23 July 2026). Accessed December 3, 2026.
- Oklahoma State University Extension fact sheet: Raised Bed Gardening (D. Hillock, S. Mitchell). Accessed December 3, 2026.
- New Mexico Energy, Minerals and Natural Resources Department: Conversion Factors for Construction Materials and Common Minerals (adapted from BLM H-3890-1). Accessed December 2, 2026.
- NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement. Accessed December 2, 2026.



