Raised bed soil calculator

Calculate how much soil, compost and bags you need to fill one or more raised garden beds.

Quick sizes:
ft
ft
in
Use inches, e.g. 3 for 3 inches
$
Optional. Shows the total cost.

The numbers start with a worked example. Change any box and the result updates instantly. Your last entries are remembered on this device.

Soil for 2 beds

64.0

cubic feet

Cubic yards2.37
Bags (1.5 cu ft)43
Mix: topsoil 60%38.4 cu ft
Mix: compost 30%19.2 cu ft
Mix: perlite or bark 10%6.4 cu ft
Estimated cost$387.00

Estimate only. Check product labels and local codes. Updated December 2026.

How to use the raised bed soil calculator

Raised beds take more soil than most people expect. Enter your bed size and number of beds to get cubic feet, bags and a simple mix recipe.

Enter your measurements in the boxes above. Every result updates as you type, and you can add a price to see the total cost. Use Copy result to save the numbers to your phone before you go to the store.

Formula

Soil (cu ft) = length × width × depth (in) ÷ 12 × number of beds
Cubic yards = cubic feet ÷ 27

Worked example

With bed length 8 ft, bed width 4 ft, soil depth 12 in, number of beds 2, bag size: 1.5 cu ft bag, you need 64.0 cubic feet (cubic yards: 2.37; bags (1.5 cu ft): 43). With a price per bag of $9.00, the estimated cost is $387.00.

Quick reference chart

Common sizes worked out with the same formula and the default settings above.

One bed, 12 in deepCubic feet1.5 cu ft bags
4 × 4 ft16.011
3 × 6 ft18.012
4 × 6 ft24.016
4 × 8 ft32.022
4 × 10 ft40.027
4 × 12 ft48.032

Tips before you buy

  • 12 inches is enough for most vegetables. Use 18 inches or more for root crops.
  • Past about 1 cubic yard, bulk garden mix is cheaper than bags.
  • Water the bed after filling; the soil settles by about 10 to 20%.

Frequently asked questions

How much soil for a 4x8 raised bed?

A 4 × 8 ft bed 12 inches deep needs 32 cubic feet, about 1.2 cubic yards or 22 bags of 1.5 cu ft.

What soil mix is best for raised beds?

A common mix is about 60% topsoil, 30% compost and 10% perlite or fine bark.

Can I fill the bottom with something cheaper?

In deep beds, logs and branches at the bottom (hugelkultur) can reduce soil needs. Expect more settling.

Add this calculator to your website

Run a blog, a store or a contractor website? Paste this code to give your visitors this free raised bed soil calculator.

Raised Bed Soil Calculator by HatCalc – more free calculators →