Garden Bed Math

📘 Know-howSoil and mulch5 min read

Compost or topsoil: which does your bed need?

Quick answer

Use compost for the thin yearly layer: Oregon State suggests a quarter inch to 1 inch on a planted bed each year. Use topsoil, usually mixed with compost, when a bed has lost real depth. Maryland Extension mixes compost and topsoil 1:2 or 1:1 to fill a bed. A 4 x 8 ft bed that sank 2 inches needs 5.33 cu ft. At 1:1 that's 2 bags of compost (1.5 cu ft) and 4 bags of topsoil (0.75 cu ft).

Source: OSU Extension EM 9308, using compost, checked October 6, 2026; Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026; Kellogg Garden compost product page, checked October 6, 2026; Scotts Premium Topsoil product page, checked October 6, 2026.

Updated October 15, 2026 Sources checked October 15, 2026 Printable checklist

A gloved hand shoveling dark compost into an orange tub beside a large compost pile

Two jobs

What each one is for

The two bags sit side by side at the store and look alike, but you buy them for different jobs. Compost is broken-down plant material. You spread it in thin layers to keep the top of a bed in good shape. Topsoil is mineral soil from the top layer of the ground. It adds bulk, so it's the one to reach for when a bed has lost several inches of depth.

Compost in a bed keeps breaking down, so beds sink. Oregon State says to expect newly filled beds to settle as the compost decomposes, and to refill as needed. Illinois Extension says a few inches of compost or good topsoil each year should keep up with the settling. That gives you a simple rule: a thin layer on a bed that's holding its level, and something with more bulk when it has dropped.

Source: OSU Extension EM 9308, using compost, checked October 6, 2026; Illinois Extension, refreshing raised bed soil, checked October 6, 2026.

Compost or topsoil: which job wants which Compost is the thin top layer. Topsoil brings back depth and bulk. Compost Planted bed, each year 1/4 to 1 in on top Oregon State EM 9308 New or tired bed about 2 in, worked 6 to 8 in Virginia SPES-304 Bed on good garden soil 2 to 4 in, mixed into top 4 in Maryland Extension Topsoil Bed sank, needs depth back a few inches a year, or compost Illinois Extension Filling a bed 1 part compost to 1 or 2 topsoil Maryland Extension New in-ground garden 2 to 3 in, mixed into 6 to 8 in Scotts bag (maker) Extension guides from Oregon, Virginia, Maryland and Illinois, plus one bag label. Checked October 15, 2026.
The common bed jobs and the depth each source gives. Checked October 15, 2026.

Pick one

Which one your bed needs this spring

  1. Measure how far it dropped

    Lay a straight board across the frame and measure down to the soil in three places. Average the three numbers.

  2. Under an inch: compost only

    A bed that's close to full only needs its yearly layer. Oregon State's range is a quarter inch to 1 inch, spread on top.

    Source: OSU Extension EM 9308, using compost, checked October 6, 2026.

  3. Two inches or more: bring in topsoil too

    Several inches of compost alone will keep sinking as it breaks down. Maryland fills beds with compost and topsoil at 1:2 or 1:1. Some sellers sell the two premixed.

    Source: Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

  4. Bed on a hard surface? Skip most of the topsoil

    For a bed sitting on concrete or a driveway, Maryland uses compost and a soilless mix 1:1. It adds topsoil, up to 20% of the mix, only in beds at least 16 inches deep.

    Source: Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

  5. Turn the inches into bags

    Square feet times inches, divided by 12, is cubic feet. Split that by your ratio, then divide each part by its bag size and round up.

Worked example

A 4 x 8 bed that sank 2 inches

The bed is 32 sq ft. Two inches over that is 32 x 2 / 12 = 5.33 cu ft. Compost here comes in 1.5 cu ft bags and topsoil in 0.75 cu ft bags. The chart and the table show four ways to fill the same 5.33 cu ft.

Source: Kellogg Garden compost product page, checked October 6, 2026; Scotts Premium Topsoil product page, checked October 6, 2026.

A 4 x 8 ft bed that sank 2 in: 5.33 cu ft, four ways to fill it Compost bags 1.5 cu ft, topsoil bags 0.75 cu ft, each rounded up All compost 4 bags compost (5.33 cu ft) no topsoil Compost and topsoil 1:1 2 bags compost (2.67 cu ft) 4 bags topsoil (2.67 cu ft) Compost and topsoil 1:2 2 bags compost (1.78 cu ft) 5 bags topsoil (3.56 cu ft) All topsoil no compost 8 bags topsoil (5.33 cu ft) 32 sq ft x 2 in / 12 = 5.33 cu ft. Ratios from Maryland Extension, Soil to Fill Raised Beds.
The same 5.33 cu ft filled four ways. Bags rounded up separately for each material.
MixCompost (1.5 cu ft bags)Topsoil (0.75 cu ft bags)
All compost5.33 cu ft, 4 bagsnone
1:12.67 cu ft, 2 bags2.67 cu ft, 4 bags
1:21.78 cu ft, 2 bags3.56 cu ft, 5 bags
All topsoilnone5.33 cu ft, 8 bags

Cubic feet = 32 sq ft x 2 in / 12, split by the ratio. Bag sizes vary, so check the cubic feet printed on the bags you buy.

Buying bulk

What to look at before a load of topsoil arrives

Topsoil sales aren't regulated in Maryland, and Maryland Extension suggests looking at a load before you buy. Good topsoil is dark and crumbly and smells earthy. Pass on soil that's very sandy or heavy clay, smells bad, or has grayish streaks or a chalky, sticky or rough feel.

Source: Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

A spade pushed into a pile of dark, loose soil
Look at a bulk pile before it's delivered: dark, crumbly and earthy is what you want.

Print it, tick it off

Compost or topsoil checklist

Fill this in before you head to the store or call for a load.

  • Bed length and width in feet
  • Drop measured at three spots, averaged in inches
  • Job named: yearly layer (compost) or depth back (compost and topsoil)
  • Ratio picked: all compost, 1:1 or 1:2
  • Cubic feet worked out (square feet x inches / 12), split by the ratio
  • Bag sizes read off the bags, in cubic feet
  • Bags rounded up for each material, or a bulk quote
  • Bulk load looked at: dark, crumbly, earthy smell

Open the printable compost or topsoil checklist

What people learn the second year

Tips and tricks

  • Mix them on a tarp first. Dump both materials onto a tarp next to the bed and turn them with a shovel a few times. You get an even blend instead of a layer of each.
  • Mound it a little. Leave the new mix slightly above the level you want, since it settles once it's watered.
  • Write down what went in. Note the date, the inches and the ratio for each bed. Next spring's measurement tells you whether that mix held its level.
  • Price both ways for a big job. Once the bag count climbs past a dozen or so, ask a supplier what a premixed compost and topsoil load costs for the same cubic feet.

Common questions

Questions

Should I use compost or topsoil in a raised bed?

Both, for different jobs. Compost is the thin layer you add each year, a quarter inch to 1 inch per Oregon State. When the bed needs depth back, Maryland Extension mixes compost and topsoil 1:2 or 1:1.

Source: OSU Extension EM 9308, using compost, checked October 6, 2026; Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

What ratio of compost to topsoil should I mix?

Maryland Extension uses 1 part compost to 1 or 2 parts topsoil to fill a raised bed. For a bed on a hard surface it uses compost and a soilless mix 1:1 instead.

Source: Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

How much compost and topsoil for a 4 x 8 raised bed?

It depends on the depth. For a 2 inch drop, 32 sq ft x 2 / 12 = 5.33 cu ft. At 1:1 that's 2.67 cu ft of each: 2 bags of 1.5 cu ft compost and 4 bags of 0.75 cu ft topsoil.

Source: Kellogg Garden compost product page, checked October 6, 2026; Scotts Premium Topsoil product page, checked October 6, 2026.

Can I top up a raised bed with just topsoil?

Illinois Extension says a few inches of compost or high-quality topsoil each year should keep up with settling, so topsoil alone works for a top-up. The yearly compost layer can go on top afterward.

Source: Illinois Extension, refreshing raised bed soil, checked October 6, 2026.

Is bagged garden soil the same as topsoil?

Often not. Maryland Extension says bagged organic soils usually don't contain topsoil, just mixes of bark, compost, peat and similar materials. Check the ingredients on the bag.

Source: Maryland Extension, Soil to Fill Raised Beds, checked October 15, 2026.

The arithmetic, done for you

Tools for this job

Keep reading

More guides

Sources

Planning guide, not a guarantee. See every source on the site on the sources page. Spotted an error? Tell us.

Photos: Greta Hoffman / Pexels, Alfo Medeiros / Pexels, Annie Spratt / Unsplash