Raised Garden Bed Soil Calculator
Work out soil for a raised bed in cubic feet, cubic yards, and 1.5 cu ft bags, with a full worked example for two 4 x 8 ft beds.
Loading the raised bed soil calculator...
A 4 x 8 ft raised bed filled 12 in deep needs 32 cu ft of soil, which is 1.19 cu yd or 22 bags of 1.5 cu ft. Measure the inside of the bed, use the fill depth you will plant in, and add 10 percent for settling so you do not end up one bag short.
The formula for raised bed soil
Cubic feet = length (ft) x width (ft) x depth (ft). Cubic yards = cubic feet / 27. Bags = cubic feet / bag size in cu ft, rounded up.
Depth trips people up. Convert inches to feet first: 6 in = 0.5 ft, 10 in = 0.83 ft, 12 in = 1 ft. Use the soil depth, not the board height. If your frame is 12 in tall and you leave 1 in at the top so soil does not wash over, your fill depth is 11 in, or 0.92 ft.
| Bed size, 12 in deep | Cubic feet | Cubic yards | Bags at 1.5 cu ft |
|---|---|---|---|
| 4 x 4 ft | 16 | 0.59 | 11 |
| 4 x 6 ft | 24 | 0.89 | 16 |
| 4 x 8 ft | 32 | 1.19 | 22 |
| 4 x 12 ft | 48 | 1.78 | 32 |
| 3 x 6 ft | 18 | 0.67 | 12 |
Bag sizes vary, so read the bag in front of you. A common bag is 1.5 cu ft, as listed for Miracle-Gro garden soil at retail. You will also see 0.75, 1, and 2 cu ft bags. The bag count changes with the bag, the volume does not.
The raised bed calculator above does this math for any number of beds. It adds each bed volume and shows cubic feet, cubic yards, and bags.
Worked example: two 4 x 8 ft beds, 12 in deep
You built two beds, each 4 x 8 ft (1.2 x 2.4 m), and you will fill them to 12 in of soil. The beds sit on grass in a flat yard, and you want to buy once.
Step 1, volume for one bed. 4 ft x 8 ft x 1 ft = 32 cu ft.
Step 2, volume for two beds. 32 x 2 = 64 cu ft.
Step 3, add settling. Soil drops after the first few waterings. Add 10 percent: 64 x 1.10 = 70.4 cu ft to buy.
Step 4, cubic yards for a bulk order. 70.4 / 27 = 2.61 cu yd. Rounded up like a buyer, order 2.75 cu yd if your yard sells in quarter yard steps, or 3 cu yd if it sells in half or full yards only.
Step 5, bags for a bag order. 70.4 / 1.5 = 46.93 bags. Rounded up, you need 47 bags of 1.5 cu ft soil.
Step 6, check the math a second way. Without the settling extra, 64 / 27 = 2.37 cu yd, and 64 / 1.5 = 42.67 bags, rounded up to 43 bags. The settling extra adds 4 bags, from 43 to 47, which fits the 10 percent bump. Both routes agree.
Price both routes. Past about one cubic yard in total, bulk soil often costs less per cu ft, even with a delivery fee. Ask for a raised bed blend, not raw fill dirt. For flat beds, our mulch calculator uses the same volume math at a shallower depth.
How to measure your bed the right way
Measure inside the frame, not outside. A bed built with 2 in boards can lose close to 4 in of length and width on the inside, and that cuts volume. On a small bed the gap is minor. On a long bed it can be a full bag.
Measure depth at the soil line you want after watering, not at the top of the board. Leave 1 to 2 in of free board at the top to hold soil in hard rain and leave room for fall compost.
For a bed on a slope, use the average depth. A bed 14 in deep at one end and 10 in at the other fills as a 12 in bed.
Count every bed before you order. Two beds at 32 cu ft each plus a herb bed at 12 cu ft is 76 cu ft in total. Our square footage calculator helps for odd shapes.
Bags or bulk, and what mix to buy
Buy bags for one small bed, a top-up, or a yard with no truck access. Buy bulk for two or more full beds, or any total over about 27 cu ft. A bulk pile needs a tarp on the drive and a wheelbarrow, but you move the soil once, not bag by bag.
Plain topsoil alone is a weak fill. It can be dense and low in food for plants. A good blend has topsoil for body, compost for food, and peat or coir to hold water and air. If you buy bulk, ask the yard how much compost the blend holds.
For beds over 18 in deep, fill the bottom third with small logs, branches, and leaves, then soil on top. Most roots live in the top 12 in. The fill sinks as it rots, so plan a top-up in year two.
Do not use free pile soil for food beds if you do not know its past use. Old yards can hold lead or chemicals. A known blend is safer, and your state extension can test soil for a small fee.
Common mistakes that cost a second trip
The top mistake is using board height as soil depth. The second is forgetting settling. Fresh soil can drop 1 in or more in a 12 in bed after rain. Buy the extra 10 percent now.
Guessing bag size is next. A 0.75 cu ft bag looks close to a 1.5 cu ft bag on a pallet. If you do the math at 1.5 and load 0.75 bags, you buy half the soil you need. Read the cu ft line on each bag.
For paths around the beds, check amounts with our gravel calculator.
Frequently asked questions
How much soil does a 4 x 8 ft raised bed need?
At 12 in deep it needs 32 cu ft, which is 1.19 cu yd or 22 bags of 1.5 cu ft. At 10 in deep it needs 26.7 cu ft, or 18 bags of 1.5 cu ft rounded up.
How many bags of soil are in a cubic yard?
One cubic yard is 27 cu ft. That is 18 bags at 1.5 cu ft, 14 bags at 2 cu ft rounded up from 13.5, or 36 bags at 0.75 cu ft.
Should I add extra soil for settling?
Yes, add about 10 percent. In our worked example, 64 cu ft grew to 70.4 cu ft with the extra, which moved the bag count from 43 to 47 bags.
How deep should soil be in a raised bed?
Most vegetables do well in 10 to 12 in of soil. Leaf crops can grow in 6 to 8 in. Root crops and tomatoes do better at 12 in or more, or in a bed open to good soil below.
Is bulk soil cheaper than bags for raised beds?
Often, yes, past about one cubic yard in total. Bags cost more per cu ft but need no delivery fee and leave no pile. Price your total both ways with your local yard fee in the math.
Can I fill a raised bed with topsoil only?
You can, but plants often do better in a blend with compost in it. Plain topsoil can pack down and drain poorly. If you use it, mix in compost at about one part compost to two parts topsoil by volume.
Next step
Enter your bed sizes in the calculator at the top of this page for a buy list, then plan paths and top-up mulch with the mulch calculator.


