Home›Raised Bed Calculator
Raised Bed Calculator
A raised bed is only as good as what fills it — and what holds it. Enter the bed size and fill depth to get the soil volume in cubic feet and cubic yards, the bag count, the topsoil-compost-perlite split, and the boards and posts for the frame itself.
Calculate a raised bed
Your results
How the raised bed formula works
Volume = Length × Width × Depth (all in feet) · Cubic yards = Cubic feet ÷ 27 · Bags = Volume ÷ bag size, rounded up
The only trick is the units: depth is usually in inches, so divide it by 12 first. A 4 × 8 ft bed filled 12 in deep is 4 × 8 × 1 = 32 cu ft, and 32 ÷ 27 = 1.19 yd³ — the unit bulk suppliers quote in. Fresh soil settles after the first watering, so add 10% (20% for fluffy compost-heavy mixes) and buy for the settled volume. The mix is by volume, not weight: the classic raised-bed blend is 60% topsoil, 30% compost and 10% perlite or coarse sand — harvestmath.com and gardencalctools.com both use it, and a 50/30/20 blend is the common alternative for heavier native soils that need more drainage. For a round bed the area is π × radius² instead of length × width. The frame is 2 × (length + width) of board, bought in 8 ft lengths, plus four corner posts.
Worked example
Worked example: a 4 × 8 ft bed, 12 in deep, 60/30/10 mix
One rectangular bed, 8 ft long and 4 ft wide inside, filled 12 in deep, with 10% settling:
- Volume: 8 × 4 × 1 = 32 cu ft
- With 10% settling: 32 × 1.10 = 35.2 cu ft
- Cubic yards: 35.2 ÷ 27 = 1.30 yd³
- Bags: 35.2 ÷ 1.5 = 23.47, so 24 bags of 1.5 cu ft
- Mix split: topsoil 60% = 21.1 cu ft, compost 30% = 10.6 cu ft, perlite 10% = 3.5 cu ft
- Weight: 21.1 × 69 + 10.6 × 37 + 3.5 × 7 = 1,873 lb
- Frame: perimeter 24 ft, so 3 boards of 2×10 × 8 ft + 4 corner posts = $36 + $24 = $60
- Cost: frame $60 + 24 bags × $6 = $144, total $204 (bulk soil: 1.5 yd³ × $40 = $60, total $120)
Cross-check: slickcalcs.com gives exactly the same answer for this bed — 35.2 cu ft, 1.30 yd³ and 24 bags — and raisedbedguide.com gives the same mix split of 21.1 / 10.6 / 3.5 cu ft. A second example: a 4 × 4 ft bed filled 10 in deep is 4 × 4 × (10 ÷ 12) = 13.3 cu ft, 14.7 cu ft with 10% settling, 0.54 yd³, so 10 bags of 1.5 cu ft — harvestmath.com gives 13.3 cu ft for the same bed before settling.
Do not fill with straight topsoil or garden soil from the ground — it compacts in a confined bed, drains poorly and stunts the plants. And never fill with pure compost: it shrinks dramatically as it keeps decomposing.
How much does a raised bed cost? (US, 2026)
Typical 2026 US prices for this job. "Installed" rates include labour; get 2-3 written quotes before you commit, because local prices vary.
| Item | Typical cost (US, 2026) |
|---|---|
| Raised bed mix, bagged 1.5 cu ft | $5-$7 per bag |
| Raised bed mix, bulk (per yd³) | $35-$55 delivered |
| Topsoil, bulk (per yd³) | $30-$50 |
| Compost, bulk (per yd³) | $25-$45 |
| Perlite, 4 cu ft bag | $20-$30 |
| 2×10 lumber, 8 ft board | $10-$14 |
| 4×4 post, 8 ft | $12-$18 |
| 4 × 8 ft bed, materials (bags route) | ~$204 |
| US 2026 prices, checked November 2026. Sources: US retail listings, slickcalcs.com soil calculator, harvestmath.com raised bed soil calculator. | |
Waste allowance
The settling allowance covers the soil packing down after the first few waterings. Fresh, fluffy soil settles about 10% — slickcalcs.com and raisedbedguide.com both use 10% as the default, 5% for pots and up to 20% for compost-heavy mixes. Over open soil the bed only has to hold the top of the root zone, because roots go straight down into the ground below; over concrete or paving the bed is the whole root zone, so fill it to 12 in minimum and 18 in for root crops.
Frequently asked questions
How much soil do I need for a 4x8 raised bed?
At 12 in deep, 32 cu ft — 1.19 yd³ — or 35.2 cu ft with the usual 10% settling allowance, which is 24 bags of 1.5 cu ft. At 10 in deep it is 26.7 cu ft, or about 0.99 yd³. Measure the inside of the bed, not the outside.
What is the best soil mix for a raised bed?
About 60% topsoil, 30% compost and 10% perlite or coarse sand by volume. A 50/30/20 blend suits heavier soils that need more drainage, and a thirds blend (33% each) is the other common recipe. Never use pure compost or straight garden soil.
How deep should a raised bed be?
Most vegetables and herbs grow well in 10–12 in of soil. Root crops like carrots need 12–18 in, and salad leaves and herbs manage in 6–8 in. Over open soil the bed only holds the top of the root zone; over concrete or paving it is the whole root zone, so go 12 in minimum.
How many bags of soil for a raised bed?
Divide the volume (with settling) by the bag size and round up. A 4 × 8 ft bed at 12 in deep takes 24 bags of 1.5 cu ft, 18 bags of 2 cu ft, or 12 bags of 3 cu ft. Bulk soil is cheaper past about 1 yd³.
How much lumber do I need for a raised bed?
Two boards of the bed length and two of the width, bought in 8 ft lengths, plus four corner posts. A 4 × 8 ft bed takes 3 boards of 2×10 × 8 ft (two 8 ft sides, two 4 ft ends cut from one board) and 4 posts.