Raised Bed Soil Calculator

Calculate the soil to fill one raised bed or several. Enter the inside length, width and fill depth, pick a blend, and get the total volume in cubic feet, yards, metres and litres, with the amount of topsoil, compost and sand and the number of bags of each.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Raised bed soil calculator

ft
ft
in
%
ft³
–

How to use the raised bed soil calculator

  1. Enter the bed size. Measure the inside length and width, and the depth you will fill. Leave an inch or two below the rim for mulch and watering.
  2. Set the number of beds. For identical beds, enter the count and the calculator multiplies the volume.
  3. Choose a blend. Pick 70% topsoil with 30% compost, equal parts topsoil, compost and coarse sand, or a single bagged mix.
  4. Allow for settling. The default 10% covers the sinking that happens as compost breaks down and the soil is watered.
  5. Read the shopping list. See each ingredient in cubic feet or metres and the bags needed at your bag size.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

Raised bed soil formula

Volume (ft³) = length (ft) × width (ft) × depth (in) ÷ 12 × beds × (1 + settling)
Cubic yards = ft³ ÷ 27
Ingredient = volume × its share of the blend

Use the inside dimensions, since the frame does not hold soil. In metric, multiply metres together for cubic metres, and 1 m³ is 1,000 litres.

Worked examples

One 4 × 8 ft bed, 12 inches deep. 32 ft³ = 1.19 yd³. With 10% settling, 35.2 ft³ = 1.30 yd³. A 70/30 blend is 24.6 ft³ topsoil and 10.6 ft³ compost, which is 17 and 8 bags of 1.5 ft³.

Four 3 × 8 ft beds, 6 inches deep. That is 48 ft³ = 1.78 yd³, close to the 1.7 yd³ in Oregon State Extension’s example, and 1.96 yd³ with 10%. As equal thirds, each of topsoil, compost and sand is 17.6 ft³.

A metric bed. 2.4 m × 1.2 m × 0.3 m is 0.864 m³, 0.95 m³ with 10%: 0.665 m³ of topsoil and 0.285 m³ of compost.

Soil volume by bed size

Bed6 in deep12 in deep18 in deep
4 × 4 ft8 ft³16 ft³24 ft³
3 × 6 ft9 ft³18 ft³27 ft³
3 × 8 ft12 ft³24 ft³36 ft³
4 × 8 ft16 ft³32 ft³48 ft³
4 × 12 ft24 ft³48 ft³72 ft³

Filling the bed properly

Remove sod and loosen the ground, then add the first few inches of mix and work it into the soil beneath so no sharp layer forms. Fill with a gentle slope from the centre to the edge, water to settle it, and top up. Check that bulk topsoil is free of contaminants, and that compost is mature and not salty. Mulch the surface to hold moisture.

Features

  • Several beds at once, imperial or metric.
  • Three blend options with per-ingredient volume and bag counts.
  • Settling allowance and a litres figure for bagged mixes.
  • Copy result, reset and a printable report in five themes on A4 or Letter.

Plan the rest of the garden

Learn how much compost to dig in with the compost calculator, mulch the top with the mulch calculator, order bulk fill with the dirt calculator, and space the plants using the plant spacing calculator.

Frequently asked questions

How much soil do I need for a 4×8 raised bed?

A 4 × 8 ft bed filled 12 inches deep needs 32 ft³, which is 1.19 yd³. With 10% for settling, buy about 35 ft³ or 1.3 yd³.

What is the best soil mix for a raised bed?

Iowa State Extension suggests equal parts topsoil, organic matter such as compost, and coarse sand, or about 70% topsoil and 30% compost. Raised beds need soil that is light and well drained.

Can I use only compost in a raised bed?

Oregon State Extension advises against it, because compost lacks the mineral part of soil. If you reuse excavated soil, add up to 25% compost by volume.

How many bags of soil do I need for a raised bed?

Divide the volume in cubic feet by the bag size and round up. A 32 ft³ bed needs 22 bags of 1.5 ft³ before settling. Bulk soil is cheaper per cubic foot once you need around a cubic yard.

How deep should a raised bed be?

Beds are commonly filled 6 to 12 inches deep, and loosening the ground below gives roots extra room. Taller beds mostly add accessibility; Oregon State Extension gives 28 to 34 inches for wheelchair-accessible beds.

Why does the soil sink over time?

Compost and other organic matter decompose and the mix settles after watering. Oregon State Extension notes that beds sink and need topping up, so plan an extra 10% and refill in spring.

Should I mix the soil into the ground below?

Yes. Iowa State Extension advises working up the ground first and mixing the first few inches of the new soil into it, so you avoid distinct layers that slow water and root growth.

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 14 November 2026. See our editorial policy. If you spot a mistake, report it.

Results are estimates for planning and ordering. Coverage, soil and plant needs vary with site and product, so check labels and local advice, and follow the manufacturer's instructions for any chemical or fertiliser. Read the disclaimer.

Calculator by CalcTen — free online calculators.