Raised Bed Soil Calculator

Cubic feet of soil = length (ft) × width (ft) × depth (in) ÷ 12; cubic yards = cubic feet ÷ 27. A 4 × 8 ft bed filled 12 inches deep holds 4 × 8 × 12 ÷ 12 = 32 cu ft = 1.19 cu yd, which is about 22 bags of 1.5 cu ft (16 bags of 2 cu ft). In a 70/30 topsoil/compost mix that is 22.4 cu ft of topsoil and 9.6 cu ft of compost.

Quick presets

1. Your beds

2. Soil mix and settling

Raised bed soil diagram: cross-section of a wooden raised bed with a thin compost top-up layer, a root zone of topsoil and compost mix, optional logs and branches at the bottom of a tall bed and loosened native soil below; a 4 by 8 ft bed 12 inches deep is 8 times 4 times 12 divided by 12, or 32 cubic feet, 1.19 cubic yards, about 22 bags of 1.5 cubic feet
Length × width × depth gives the volume; the mix recipe splits it into topsoil, compost and other ingredients. Illustration: Mulch Planner (original artwork).

Key takeaways

  • Cubic feet = L (ft) × W (ft) × depth (in) ÷ 12. A 4 × 8 ft bed is 2.67 cu ft for every inch of depth (derived).
  • Depth: 8–12 in is usually adequate and vegetable beds should be 12–18 in (Texas A&M E-560); 18–24 in on pavement or other hard surfaces (Texas A&M AgriLife).
  • Mix: about 70% topsoil and 30% compost, or equal parts topsoil, organic matter and coarse sand (Iowa State); 2/3–1/2 topsoil with 1/2–1/3 plant-based compost (University of Minnesota).
  • Do not fill with heavy garden soil alone (Texas A&M AgriLife).
  • Soil settles every year; top-dress with a few inches of compost or good topsoil (University of Illinois Extension).

How the raised bed soil calculator works

For each bed the calculator multiplies the inside length by the inside width (or works out a circle’s area from its diameter), multiplies by the soil depth in inches and divides by 12 to get cubic feet. It then adds up every bed, applies the settling allowance if you set one, and converts the total:

Measure the inside of the frame, not the outside: on a 4 × 8 ft bed built from 2-inch-thick boards the soil space is closer to 3.67 × 7.67 ft, which holds about 28 cu ft at 12 inches rather than 32 (derived). If you switch the unit to inches, type 44 × 92 and the calculator converts for you. Use How many for a set of identical beds and + Add another bed for different sizes.

Why the settling allowance starts at 0%. Every extension source we checked agrees that raised bed soil settles, but none of them publishes a percentage to add when you buy. University of Illinois Extension calls settling “simply a fact of raised bed gardening” and plans for it with yearly top-dressing rather than overfilling. So the calculator gives you the exact volume of the bed by default; if you are filling with a very fluffy, compost- or peat-heavy mix, or you would rather mound the bed and let it sink, type your own allowance (up to 25%).

Raised bed soil chart: common sizes and depths

All figures below are our own arithmetic from the formula above (derived), using the nominal size. Bags are rounded up to whole bags.

BedDepthCu ftCu ydBags 1.5 cu ftBags 2 cu ft
2 × 4 ft6 in40.1532
8 in5.330.2043
10 in6.670.2554
12 in80.3064
18 in120.4486
24 in160.59118
2 × 8 ft6 in80.3064
8 in10.670.4086
10 in13.330.4997
12 in160.59118
18 in240.891612
24 in321.192216
3 × 6 ft6 in90.3365
8 in120.4486
10 in150.56108
12 in180.67129
18 in271.001814
24 in361.332418
4 × 4 ft6 in80.3064
8 in10.670.4086
10 in13.330.4997
12 in160.59118
18 in240.891612
24 in321.192216
4 × 8 ft6 in160.59118
8 in21.330.791511
10 in26.670.991814
12 in321.192216
18 in481.783224
24 in642.374332
4 × 12 ft6 in240.891612
8 in321.192216
10 in401.482720
12 in481.783224
18 in722.674836
24 in963.566448

Derived from length × width × depth ÷ 12, ÷ 27 for cubic yards. As a cross-check, Oregon State University Extension says 1.7 cubic yards of soil mix fills four 3 × 8 ft beds 6 inches deep; the formula gives 4 × 24 × 0.5 = 48 cu ft = 1.78 cu yd.

How deep should a raised bed be?

Depth is the biggest lever on how much soil you buy: going from 12 to 18 inches adds 50% more soil, and 24 inches doubles it. The right depth depends on what is under the bed and what you will grow.

Bed depth by crop root depth

The University of Wisconsin–Madison urban agriculture program groups vegetables by effective rooting depth. Use it as a guide to how much good soil the roots will actually use; on open ground, roots can continue below the frame.

Effective rooting depthExamples (UW–Madison)Practical bed depth
6–12 inLettuce, radish, onion, leek, beet, carrot, kale, collards, broccoli, cauliflower, celery, pepper8–12 in on open ground
12–24 inStandard cabbage, Brussels sprouts, cantaloupe, rutabaga12–18 in
18–24 inTomato, snap beans, cucumber, eggplant, peas, potato, summer squash, sweet corn, turnip12–18 in on open ground; 18–24 in on hard surfaces
18–24 in or moreParsnip, pumpkin, rhubarb, sweet potato18–24 in, or open ground below
24 in or moreOkra, winter squash, asparagus, watermelon (24–36 in)Deepest beds, or open ground below

Rooting depths: University of Wisconsin–Madison Irrigation Table. The last column is our practical reading of that table together with the Texas A&M bed depths above, not a figure from either source. UC Master Gardeners of Placer County give the deeper maximum potential rooting depths under ideal conditions: 1–2 ft for shallow-rooted crops, up to 4 ft for moderately deep and up to 6 ft for deep-rooted crops.

What soil mix to use in a raised bed, and why

A raised bed drains faster and warms sooner than the ground, but it only works as well as what you put in it. The goal is a mix that holds moisture and nutrients yet still drains and lets air reach the roots. Extension recipes are simple:

Recipe (by volume)For a 4 × 8 × 12 in bed (32 cu ft, derived)Source
~70% topsoil, ~30% compost22.4 cu ft topsoil + 9.6 cu ft compostIowa State University Extension
Equal parts topsoil, organic matter (well-rotted manure, compost or peat) and coarse sand10.7 cu ft of eachIowa State University Extension
2/3 to 1/2 topsoil with 1/2 to 1/3 plant-based compost16–21.3 cu ft topsoil + 10.7–16 cu ft compostUniversity of Minnesota Extension
1/3 topsoil, 1/3 peat moss, 1/3 sand or coarse perlite (described as the best media for vegetables)10.7 cu ft of eachTexas A&M AgriLife Extension, E-560
A compost-topsoil blend from a landscape supplier or nursery32 cu ft of the blendUniversity of Maryland Extension

Why these ingredients? Topsoil gives the bed body: it holds water and nutrients and does not shrink away the way pure organic matter does. Compost adds organic matter, feeds soil life and loosens heavier soil; it should be fully finished, because Texas A&M warns that material still decomposing will deprive plants of nitrogen. Sand, perlite, peat or vermiculite are there to adjust drainage and water holding.

The soilless equal-thirds mix (compost, peat moss or coir, and vermiculite), popularized by square-foot gardening books, is light and easy to plant into, which is why it is in the calculator. It is a gardeners’ recipe rather than an extension recommendation, it is usually the most expensive way to fill a big bed, and Texas A&M notes that the higher the organic content, the sooner you will need to add more soil or compost as it breaks down. More is not always better either: Minnesota warns that regular, heavy applications of compost can build up phosphorus and soluble salts, and suggests a soil test every 2 to 3 years. To price the compost share on its own, use the compost calculator; for the topsoil share, the topsoil calculator.

Bagged vs bulk soil for raised beds

Bags are convenient for one or two small beds: you can carry them, there is no delivery fee and nothing is left on the driveway. The trade-off is the count. One cubic yard is 27 cu ft, which is 18 bags of 1.5 cu ft or 13.5 bags of 2 cu ft, so a single 4 × 8 ft bed 18 inches deep already needs 32 bags of 1.5 cu ft.

As a general rule, bulk soil from a landscape yard costs less per cubic yard than the same volume in bags once you need more than about a cubic yard, even after a delivery fee, and it saves the plastic and the carrying. Prices vary too much by region to quote, so compare a delivered price per cubic yard against your bag price multiplied by the bag count the calculator gives you. Ask the supplier what is in a “garden mix” or “raised bed mix,” and check it before it is unloaded: the University of Maryland suggests topsoil should be dark and crumbly with an earthy smell, not foul-smelling, mottled gray or chalky. Planning several beds or a whole garden? See how many yards fit in a dump truck before you order a full load.

Filling a tall raised bed without buying all that soil

A 24-inch-tall 4 × 8 ft bed holds 64 cu ft, 2.37 cubic yards. If what you grow only needs 12 to 18 inches of good soil, the bottom of the frame can be filled with cheaper material:

To size the purchase, enter the depth of the real soil layer you will put on top, not the frame height: for a 24-inch frame with 10 inches of woody filler, calculate 14 inches. Two cautions. First, wood, leaves and straw shrink as they decompose, so a bed with a deep organic base will sink more than a solid soil bed; expect to top it up more often in the first few years. Second, keep that material below the root zone: Texas A&M warns that organic matter still breaking down will deprive plants of nitrogen, so plant into finished soil and compost, not into fresh wood chips or sawdust.

Settling and topping up each year

A freshly filled bed will drop. Watering, rain and the breakdown of organic matter all pull the level down, and University of Illinois Extension notes that frequent digging and tilling of an established bed destroys its developing structure and speeds settling, while cover crops slow it (without stopping it). Its advice: each year, top-dress with a few inches of compost or high-quality topsoil, which should be enough to keep up with the settling level.

To size the top-up, set the depth to the inches you will add: 2 inches on a 4 × 8 ft bed is 5.33 cu ft (derived), about 4 bags of 1.5 cu ft. The University of Maryland suggests working in at least two inches of compost if you bought topsoil with no compost in it. Mulching the surface also helps hold moisture and slows crusting; for vegetables, a few inches of straw works well (see straw mulch for vegetable gardens), and for perennials and paths see how deep mulch should be or work out a bark layer with the mulch calculator.

Common raised bed soil mistakes

Bags labeled in cubic feet? The cubic feet calculator converts any bed or planter size.

Building on top of lawn? A layer of cardboard at the bottom of the bed is a common way to smother grass; a 4 × 8 ft bed takes about 6 box sheets per layer.

Frequently asked questions

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

Multiply 4 × 8 ft by the depth in inches and divide by 12. At 12 inches deep a 4x8 bed holds 32 cubic feet, or 1.19 cubic yards. At 6 inches it is 16 cubic feet, at 18 inches 48 cubic feet (1.78 cubic yards), and at 24 inches 64 cubic feet (2.37 cubic yards).

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

Divide the bed volume in cubic feet by the bag size and round up. A 4x8 bed 12 inches deep (32 cubic feet) takes 22 bags of 1.5 cubic feet, 16 bags of 2 cubic feet or 32 bags of 1 cubic foot. One cubic yard equals 18 bags of 1.5 cubic feet.

What soil mix is best for a raised bed?

Iowa State University Extension suggests about 70 percent topsoil and 30 percent compost, or equal parts topsoil, organic matter and coarse sand. University of Minnesota Extension suggests 2/3 to 1/2 topsoil with 1/2 to 1/3 plant-based compost. Texas A&M describes one-third topsoil, one-third peat moss and one-third sand or coarse perlite as the best media for vegetables.

How deep should a raised garden bed be?

Texas A&M says 8 to 12 inches is usually adequate and vegetable beds should be 12 to 18 inches deep. If roots can reach loosened soil below, 8 to 10 inches is high enough; on pavement or another hard surface, Texas A&M AgriLife recommends about 18 to 24 inches.

Can I fill a raised bed with garden soil or topsoil alone?

Not on its own. Texas A&M AgriLife recommends a growing medium made for raised beds rather than heavy garden soil. If you buy topsoil with no compost in it, the University of Maryland suggests working in at least two inches of compost; a blend of about 70 percent topsoil and 30 percent compost is a common target.

How much compost do I need for a raised bed?

Multiply the bed volume by the compost share of your mix. At 30 percent, a 4x8 bed 12 inches deep needs 9.6 cubic feet of compost, about 7 bags of 1.5 cubic feet.

How can I fill a raised bed cheaply?

Buy bulk soil instead of bags when you need more than about a cubic yard, loosen the native soil under the bed instead of building above a barrier, and in tall beds fill the bottom with logs, branches and leaves so you only buy the top 12 to 18 inches of real soil mix. Keep uncomposted wood below the root zone.

How much does raised bed soil settle?

There is no standard percentage; it depends on the mix and how much organic matter it contains. University of Illinois Extension says settling is a fact of raised bed gardening and that top-dressing with a few inches of compost or high-quality topsoil each year should keep up with it. Mixes high in organic matter, and beds with a woody base, sink faster.

Sources