Raised Bed Soil Calculator
Work out how much soil fills your raised beds, then split it into the parts of your mix: topsoil and compost, a square foot gardening mix, or your own recipe. Each part comes in bags of every common size and in bulk yards.
Beds
Measure inside the boards. The fill depth is how deep the soil will be. For an L, measure the long arm end to end, then the short arm out from the long arm's inside edge.
Soil mix
Start from a preset, then edit, add or remove parts for your own mix. Parts are by volume, on any scale: 2 and 1, or 70 and 30. Prices are optional.
Raised bed soil
What to buy
4.58 yd³ of soil mix
123.7 cu ft, 3,504 litres for 4 beds.
Includes a 2 in top-up over 107 sq ft of soil, for when the fill settles. Bulk is rounded up to the half yard.
Shopping list
Topsoil
67% of the mix, 82.5 cu ft (3.06 yd³)
55 bags of 1.5 cu ft
or 3.5 cubic yards in bulk
Compost
33% of the mix, 41.2 cu ft (1.53 yd³)
28 bags of 1.5 cu ft
or 2 cubic yards in bulk
- Soil surface
- 107 sq ft9.95 m²
- To fill the beds
- 105.9 cu ft3.92 yd³
- Top-up
- 17.8 cu ft2 in deep
- Cubic yards
- 4.58123.7 cu ft
- Cubic metres
- 3.53,504 litres
| Bag size | Topsoil | Compost |
|---|---|---|
| 1 cu ft bag (28.3 L) | 83 | 42 |
| 1.5 cu ft bag (42.5 L) | 55 | 28 |
| 2 cu ft bag (56.6 L) | 42 | 21 |
| 40 L bag (1.41 cu ft) | 59 | 30 |
| 50 L bag (1.77 cu ft) | 47 | 24 |
Your beds, to scale
| Bed | Depth | How many | Soil |
|---|---|---|---|
| Vegetable beds8 ft × 4 ft | 12 in | 2 | 64 cu ft |
| Herb circle⌀ 3 ft | 10 in | 1 | 5.89 cu ft |
| Corner bedL: 8 ft × 3 ft + 4 ft × 3 ft | 12 in | 1 | 36 cu ft |
| Total | 105.9 cu ft | ||
| With the top-up | 123.7 cu ft | ||
Peat moss and coco coir are sold compressed: buy by the loose volume the bale or brick says it makes, not its packed size.
How to use it
- Measure inside each bed. The boards take up room, so measure between them. For an L-shaped bed, measure the long arm end to end, then the short arm out from the long arm’s inside edge: two rectangles that do not overlap. Several beds of one size go in one row with a count.
- Set the fill depth. How deep the soil will be, usually an inch or two below the top board.
- Choose a mix. Pick a preset or type your own parts; parts are by volume, on any scale.
- Keep the top-up. A new bed settles; the top-up buys the soil to bring it back up, 2 in by default.
- Pick a bag size and add prices. Each part is counted in the bag size you choose, with every other size in a table. Enter bag and bulk prices and a delivery fee, and say whether one load brings every part, to see which is cheaper for each part.
Raised bed soil mixes
There is no single right mix. Most extension recipes pair a mineral soil with a large share of compost for organic matter; the square foot gardening mix leaves the soil out. The University of Maryland puts the organic matter of a bed at 25 to 50 percent by volume. The presets in the calculator:
| Mix | Parts by volume | Recommended by |
|---|---|---|
| Topsoil and compost, 2:1 | Topsoil 2, Compost 1 | University of Maryland Extension, for beds over compacted or clay soil (compost to topsoil 1:2 or 1:1) |
| Topsoil 70%, compost 30% | Topsoil 70, Compost 30 | Iowa State University Extension |
| Topsoil, compost and coarse sand, equal parts | Topsoil 1, Compost 1, Coarse sand 1 | Iowa State University Extension, for a light, well-drained bed |
| Compost and soilless mix, 1:1 (bed on paving) | Compost 1, Soilless growing mix 1 | University of Maryland Extension, for beds on a hard surface |
| Square foot gardening mix, 1:1:1 | Compost 1, Peat moss or coco coir 1, Vermiculite or perlite 1 | WSU Extension Master Gardeners, after Mel Bartholomew |
| One bagged raised-bed soil | Raised-bed soil 1 | One product, so no mixing |
- Topsoil and compost suit a bed on the ground. Iowa State suggests about 70 percent topsoil and 30 percent compost, or equal parts topsoil, organic matter and coarse sand, for the light, well-drained soil it says a bed needs. It also says to add the mix a few inches at a time and work each layer into the soil below, because distinct layers hinder water and roots. Check bought topsoil for contaminants such as lead and pesticides, and use compost that is mature and not salty.
- Compost and soilless mix is the University of Maryland’s fill for a bed on a hard surface, 1:1, with topsoil added (up to 20 percent by volume) only in beds at least 16 in deep.
- The square foot gardening mix is equal parts compost, peat moss and vermiculite, filled 6 in deep, as WSU Extension Master Gardeners describe Mel Bartholomew’s method; coco coir can replace the peat and perlite the vermiculite. It uses no topsoil at all.
How deep to fill
Where the bed sits on open ground, roots go on down into the soil below, and UF/IFAS says a bed should be at least 6 in high (it can be built up to 24 in for gardeners who cannot bend far). Where it sits on paving or another hard surface, the bed is the whole root zone: the University of Maryland asks for at least 8 in of soil for leafy greens, beans and cucumbers, and 12 to 24 in for peppers, tomatoes and squash. The calculator flags any bed filled less than 8 in deep, so you can check which case you are in.
Settling and the top-up
A freshly filled bed sinks as the mix settles, and keeps shrinking over time. UF/IFAS advises filling to the very top, since the level may drop by about 2 in, and topping the bed back up after each planting season; University of Illinois Extension recommends a few inches of compost or good topsoil every year and warns that tilling an established bed speeds up the settling. The calculator buys the first top-up with the fill: the depth you set, over the whole soil surface of every bed. Set it to 0 if you will top up later from the same supplier.
Bags or bulk
Bagged soil, compost and mixes are labelled by volume: 1, 1.5 and 2 cu ft in the US, or litres where soil is sold that way; the calculator offers 40 and 50 L bags too. A cubic yard is 27 cubic feet, so it takes 27 bags of 1 cu ft, 18 of 1.5 cu ft or 14 of 2 cu ft. Bulk soil and compost are usually sold by the yard in half-yard steps and delivered for a fee. The calculator assumes one load brings every part bought in bulk, so the fee is paid once; if each part comes from a different supplier, choose a load for each part. The University of Maryland notes that some vendors sell topsoil already mixed with compost, which makes it one product to order. Peat moss, coco coir, vermiculite, perlite and soilless mixes are counted in bags only. Peat moss and coco coir are sold compressed: buy by the loose volume the bale or brick says it makes, not its packed size.
Worked example: an 8 by 4 ft bed
One 8 by 4 ft bed filled 12 in deep with topsoil and compost at 2:1, plus a 2 in top-up:
Result
- To fill the bed32 cu ft
- Top-up5.3 cu ft
- Total37.3 cu ft (1.38 yd³)
- Topsoil24.9 cu ft
- Compost12.4 cu ft
The bed holds 8 × 4 × 1 = 32 cubic feet, and 2 in over its 32 sq ft adds 5.3, for 37.3 cubic feet in all. Two parts in three are topsoil, 24.9 cubic feet or 17 of the 1.5 cu ft bags; one in three is compost, 12.4 cubic feet or 9 of the 1.5 cu ft bags. In bulk that would be 1 yard of topsoil and 0.5 of compost, so for a single bed bags are usually simpler.
Mistakes people make
- Measuring the outside of the bed. Boards 1 1/2 in thick take 2.9 cubic feet out of an 8 by 4 ft bed filled 12 in deep.
- Filling with soil from the yard alone. It lacks the organic matter extension services call for; mix in compost.
- Forgetting the settling. Expect the level to drop; buy the top-up with the fill.
- Buying compressed peat by its bale size. Read the loose volume on the label.
- Paying for a load per part. Ask whether one delivery can bring every part, or buy topsoil already mixed with compost; for a single small bed, bags may still be cheaper.
Sources
- University of Maryland Extension, Soil to Fill Raised Beds (updated Nov 6, 2024) (read 2026-10-10)
- Iowa State University Extension and Outreach, What would be a good soil mix for a raised bed? (updated Apr 20, 2026) (read 2026-10-10)
- WSU Extension Skagit County Master Gardeners, Square Foot Gardening: Simple, Versatile and Fun! (Custer, 2016) (read 2026-10-10)
- UF/IFAS Extension EP472 (ENH1211), Gardening in Raised Beds (read 2026-10-10)
- University of Illinois Extension, Refreshing raised bed soil generates exceptional results (Enroth, Apr 5, 2021) (read 2026-10-10)
- Lawn Love, How Much Does Topsoil Cost? (Dec 27, 2025) (read 2026-10-05)
- HomeGuide, Compost Costs (Apr 5, 2023) (read 2026-10-05)
Frequently asked questions
How much soil do I need for a 4 x 8 raised bed?
Length times width times depth, in feet: 8 × 4 × 1 = 32 cubic feet for a bed filled 12 in deep, which is 1.19 cubic yards or 906 litres. At 6 in it is 16 cubic feet, at 18 in 48. Add a top-up of about 2 in for settling, 5.3 cubic feet more for this bed.
How many bags of soil does a raised bed take?
Divide the cubic feet by the size on the bag. The 32 cubic feet of an 8 x 4 ft bed 12 in deep is 32 of the 1 cu ft bags, 22 of the 1.5 cu ft bags, 16 of the 2 cu ft bags, 23 of the 40 L bags, 19 of the 50 L bags. A mix is bought part by part, so the calculator counts each part in each size.
What is the best soil mix for a raised bed?
For a bed on the ground, extension services recommend topsoil with compost: Iowa State suggests about 70 percent topsoil and 30 percent compost, or equal parts topsoil, compost and coarse sand for a lighter mix; the University of Maryland suggests compost and topsoil at 1:2 or 1:1 over compacted or clay soil, and compost with a soilless growing mix at 1:1 for a bed on paving. The square foot gardening mix is equal parts compost, peat moss and vermiculite, with coco coir and perlite as alternatives.
How deep should a raised bed be?
On open ground, roots carry on into the soil below, and UF/IFAS says a bed should be at least 6 in high. On paving or a patio the bed is the whole root zone: the University of Maryland calls for at least 8 in for leafy greens, beans and cucumbers and 12 to 24 in for peppers, tomatoes and squash.
How much does raised bed soil settle?
UF/IFAS says to fill a bed to the very top because the level may drop by about 2 in as it settles, and to top it off after each planting season. University of Illinois Extension calls settling simply a fact of raised beds and suggests a few inches of compost or good topsoil each year. The calculator adds the top-up you choose, 2 in to start with, over the whole soil surface.
Is it cheaper to buy raised bed soil in bags or in bulk?
Bulk is cheaper by the yard, but delivery is not free. Lawn Love puts bulk topsoil at $10 to $50 a cubic yard and bagged topsoil at $2 to $5 a bag (December 2025), and a yard takes 27 bags of 1 cu ft or 36 of 0.75 cu ft. A delivery fee can outweigh the saving on a small order. If one supplier brings every part in one load you pay it once, and the University of Maryland notes that some vendors sell topsoil already mixed with compost. Enter both prices and the delivery fee, say whether one load brings everything, and the calculator marks the cheaper way for each part.
Related
- Topsoil calculatorTopsoil and compost in bulk for beds, lawns and low spots.
- Mulch calculatorMulch for the paths between the beds and the borders around them.
- Landscape rock calculatorGravel or river rock for the paths between raised beds.
- Sod calculatorThe lawn around the garden, in sod or seed.
- Cubic yard calculatorAny dimensions to cubic yards, tons and bags.
- Landscaping calculatorSoil, mulch and stone for the whole yard in one shopping list.