Soil and raised bed calculators: raised garden beds filled with soil

Soil Calculators for Garden Beds, Topsoil, Fill Dirt and Compost

Soil calculators for every kind of dirt your yard needs: garden soil, raised beds, topsoil, fill dirt, compost and plant spacing, in cubic yards and bags.

Updated September 27, 20266 calculators

Which of our soil calculators do you need?

Each material has its own depth and its own weight, so each gets its own calculator. Pick the one that matches the job:

How soil calculators work

Every soil calculator runs the same three steps. Only the depth, the weight and the extra allowance change from one material to the next.

Length × width (ft) × depth (in) ÷ 12=Cubic feet÷27=Cubic yards

Worked example: an 8 × 4 ft raised bed filled 12 inches deep

32 sq ft × 12 in ÷ 12 = 32 cubic feet, or 1.19 cubic yards. In 1.5 cubic foot bags that is 22 bags. Buying in bulk, order 1.2 yards. The same bed at 6 inches takes half as much, which is why the depth matters more than anything else.

Soil types compared: fill dirt, topsoil, garden mix, compost and potting mix

These are different products with different jobs. Depths come from the Old Farmer's Almanac, the University of Maryland Extension, Soil Depot and Oregon State University Extension. Weight is Topsoil.com's range for soil and Omni Calculator's figure for compost.

MaterialWhat it is forTypical depthWeight per cubic yard
Fill dirtRaising grade and filling holes. Not for planting alone.6–12 in to build up grade2,000–2,700 lb
TopsoilLawns and beds. Screened native soil.1–3 in to level a lawn, 4–6 in under sod2,000–2,700 lb
Garden mixTopsoil blended with compost, for vegetables and flowers.6–12 in in a raised bedvaries with the blend
CompostFeeds the soil. Too light to use alone.¼–½ in on a lawn, 3–4 in mixed into a new bedabout 1,080 lb
Potting mixSoilless mix for pots. Too costly for big beds.To within an inch of the rimlight, varies

Soil depth by job

The depth you choose drives the order. These are the numbers the calculators start from.

JobDepthSource
Leveling or repairing a lawn1–3 in of topsoilAlmanac
Covering sown grass seed¼–½ in of topsoilUMD Extension
Under new sod4–6 in of topsoilAlmanac
New garden bed over existing soil6 in of topsoilAlmanac
Raised bed6–12 inAlmanac
Leafy greens, beans, cucumbers8 in minimum soil depthUMD Extension
Peppers, tomatoes, squash12–24 in minimum soil depthUMD Extension
Compost on an existing lawn¼–½ inOSU Extension
Compost in a new vegetable bed3–4 in mixed into the top 8–12 inOSU Extension

How to measure beds of any shape

Measure the bed's dimensions in feet, including the height of the fill.

A rectangular bed is length × width × height. A round bed or a pot is π × radius² × height. A triangle is half the base times the width times the height. For an L-shaped or U-shaped raised garden bed, split it into rectangles, work out each volume and add them for the total volume.

Measure the fill depth, not the wall

Raised beds are rarely filled to the top of the wall. Measure the depth you will actually fill, and leave an inch or two below the rim.

Soil for pots, planters and containers

Containers take potting mix, not garden soil. Potting mix is soilless and made from materials such as peat, perlite and vermiculite, so it drains well and weighs less. A 16 inch pot filled 14 inches deep holds about 1.6 cubic feet. Gardener's Supply says the mix should reach within an inch or so of the rim.

Mulch goes on top of the soil, not instead of it, so work it out separately in the mulch calculator.

How many bags of soil are in a cubic yard?

Bagged soil is labeled by volume, so read the cubic feet on the bag. A cubic yard is 27 cubic feet.

Bag sizeBags per cubic yardBags for a 32 cu ft bed
0.75 cu ft3643
1 cu ft2732
1.5 cu ft1822
2 cu ft1416

Common project sizes

ProjectSizeDepthSoilAbout
Raised bed4 × 8 ft12 inGarden mix1.19 yd³
Garden bed10 × 10 ft6 inGarden mix1.85 yd³
Lawn leveling1,000 sq ft2 inTopsoil6.2 yd³
Under new sod1,000 sq ft4 inTopsoil12.3 yd³
Filling a low spot20 × 10 ft8 in, +15% compactionFill dirt5.7 yd³

Soil mixes for raised beds

Raised-bed gardening works for vegetables, herbs and flowers, and an easy mix saves money.

Gardener's Supply recommends 60 percent topsoil, 30 percent compost and 10 percent soilless potting mix for most raised beds. If you lack good topsoil, a 50-50 blend of soilless growing mix and compost works. The University of Maryland Extension suggests compost and topsoil at 1:2 or 1:1.

The raised bed soil calculator splits any of these recipes into the yards of each ingredient. Our guide on how to fill a raised bed covers the depth your crops need and what can go in the bottom.

Settling and compaction: how much extra soil to order

Fresh soil sinks, and fill compacts. CalcSummit gives about 15 percent extra for general residential fill, 10 to 12 percent for granular or sandy fill, and 20 to 25 percent for clay-heavy or structural fill. Soil Depot gives 15 to 25 percent when fill is compacted in lifts.

For beds that are not compacted, order a little extra for settling and top up the first season. The fill dirt calculator adds the allowance for you, and the other calculators let you add waste.

Weight and delivery

Topsoil.com gives 2,000 to 2,700 lb per cubic yard, or 1 to 1.35 tons. Inch Calculator says dry or loose soil weighs about 1.3 tons per yard and wet or compacted soil about 1.7 tons. Suppliers selling by the ton weigh the soil as it is that day, so a quote by the ton can buy less soil after rain.

Test the soil before you amend it

A soil test shows the pH and the nutrients your soil already has, so you buy only the amendments it needs. Iowa State Extension notes that a soil test can answer other nutritional needs of a lawn, and many extension services offer one. Take the test before you order compost or fertilizer.

Estimating the cost of soil

Price depends on the material, the screening and the distance from the supplier, so our calculators never guess it. Type your bag price and your bulk price per cubic yard, and each calculator multiplies them by the quantity.

  • Bags suit small beds. Past about a cubic yard, bulk is usually cheaper.
  • Delivery is part of the price. A truckload has a minimum and a flat fee.
  • Compare in the same unit. Convert tons to yards, or yards to bags, before you compare quotes.

Common mistakes when ordering soil

  • Using fill dirt to plant in. Fill is rough and unscreened. Plant in topsoil or a garden mix.
  • Compost alone in a raised bed. Mix it with soil, at up to 25 percent by volume.
  • Forgetting settling and compaction. Order extra, or the bed ends up short.
  • Going too shallow. Roots need the depth in the table above.
  • Buying potting mix for a big bed. It is light and costs far more per yard.

Frequently asked questions

Are the soil calculators free?

Yes. Every Terrainity soil calculator is free, works on a phone, needs no account, and lets you download the estimate as a PDF report.

How much soil do I need for a raised bed?

Multiply length by width by depth in feet. An 8 × 4 ft bed filled 12 inches deep holds 32 cubic feet, or 1.19 cubic yards, which is 22 bags of 1.5 cubic feet.

How many bags of soil make a cubic yard?

A cubic yard is 27 cubic feet: 36 bags of 0.75 cu ft, 27 bags of 1 cu ft, or 18 bags of 1.5 cu ft.

What is the difference between topsoil and fill dirt?

Topsoil is screened, organic soil for the top layer where plants grow. Fill dirt is rougher, unscreened soil for raising grade. Fill goes under, and topsoil goes on top.

How much does a cubic yard of soil weigh?

Topsoil.com gives 2,000 to 2,700 lb, or 1 to 1.35 tons. Wet or compacted soil weighs more, about 1.7 tons according to Inch Calculator.

Pick the one of our soil calculators that matches your job, measure once, and download the PDF report with your cubic yards and bags before you call the supplier.