Soil Calculator

The soil calculator turns your bed size and fill depth into bags or cubic yards of garden soil, and shows which way to buy it is cheaper.

Updated September 27, 2026Free, no signup

1Your bed or planter size

ft
ft

Odd shape? Measure it with the square footage calculator, it sends the total back here.

2Fill depth

8 in minimum for greens and beans, 12 in or more for tomatoes and squash (UMD Extension).

3Prices (optional)

$
$

Your estimate

For a – bed at – deep you need:

Total soil

–

What to buy

    How we calculated this

      Fresh soil settles after the first waterings. Keep a bag or two for topping up.

      On this page
      1. How much soil do I need?
      2. How to use the soil calculator
      3. Soil volume by bed size and depth
      4. How deep should garden soil be?
      5. Bags of soil per cubic yard
      6. Which soil to buy
      7. How much does a cubic yard of soil weigh?
      8. Soil for pots, planters and containers
      9. Soil mixes for raised beds
      10. Soil cost
      11. Common soil mistakes
      12. Before you order soil
      13. Frequently asked questions

      How much soil do I need?

      Filling a bed uses the same volume math as mulch: area × depth ÷ 27 = cubic yards. The numbers just get bigger, because soil goes in deep. An 8 × 4 ft bed filled 12 inches deep needs about 1.2 cubic yards.

      Soil calculator: garden soil shoveled into a new garden bed
      Garden beds use the same volume math as mulch, just deeper.
      Area (sq ft)×Depth (in) ÷ 12÷27=Cubic yards

      For example, an 8×4 ft bed filled 12 inches deep needs 32 cubic feet: about 1.2 cubic yards, or 22 bags of 1.5 cu ft. Soil, sometimes called dirt, is a bulk material sold by the cubic yard. Round up, because it settles after the first waterings.

      How to use the soil calculator

      It works for a garden bed, a raised bed or a planter. It returns cubic feet, cubic yards and bags, and compares the cost of bags with bulk delivery. The "How we calculated this" panel shows each step, and the PDF report keeps them.

      Step 1: Enter the size of the bed

      Type the length and width in feet. For a round planter, work out π × radius² and choose "I know the sq ft". For an odd-shaped bed, add the pieces in the square footage calculator first.

      Step 2: Choose the fill depth

      Pick 2 to 12 inches. New beds need the full root depth. Topping up an existing bed needs only a few inches. The table below gives the depth crops need.

      Step 3: Compare bags and bulk

      Enter the price of a 1.5 cubic foot bag and the bulk price per cubic yard. The result shows both totals and marks the cheaper way to buy.

      Filling several raised beds with a topsoil and compost mix? The raised bed calculator splits the recipe for you.

      Raised bed calculator

      Soil volume by bed size and depth

      Bed size (sq ft)4 in deep6 in deep12 in deepBags (12 in)
      16 (4×4)0.20 yd³0.30 yd³0.59 yd³11 bags
      32 (8×4)0.40 yd³0.59 yd³1.19 yd³22 bags
      48 (12×4)0.59 yd³0.89 yd³1.78 yd³32 bags
      64 (8×8)0.79 yd³1.19 yd³2.37 yd³43 bags
      100 (10×10)1.23 yd³1.85 yd³3.70 yd³67 bags

      The soil mix, the depth your crops need, and what can go in the bottom.

      Read the guide

      How deep should garden soil be?

      Enough depth ensures healthy root growth. The University of Maryland Extension gives the minimum soil depth by crop.

      CropMinimum soil depth
      Leafy greens, beans, cucumbers8 in
      Peppers, tomatoes, squash12–24 in

      Bags of soil per cubic yard

      Bagged soil is labeled by volume, so read the cubic feet on the bag. Eartheasy lists a small bag of about 40 lb as roughly 0.75 cubic feet, and denser topsoil weighs more for the same volume.

      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

      Which soil to buy

      Garden soil / bed mix

      Topsoil blended with compost for planting. It fills the root zone of a bed.

      Topsoil

      Screened native soil, usually the cheapest. Good for filling and leveling; mix it with compost for beds. See the topsoil calculator.

      Compost

      Organic matter that feeds the soil. Too light to use alone. See the compost calculator.

      Potting mix

      Soilless and light, made for containers. Too expensive to fill big beds with.

      How much does a cubic yard of soil weigh?

      Weight equals volume times density. Inch Calculator says one yard of dry or loose soil weighs about 1.3 tons and one yard of wet or compacted soil about 1.7 tons. In metric, one cubic yard is 0.765 cubic meters (NIST).

      Soil for pots, planters and containers

      A round pot holds π × radius² × depth. A 16 inch pot filled 14 inches deep holds about 1.6 cubic feet. Gardener's Supply says the soil should reach within an inch or so of the rim, and that you can top it off with fresh potting mix after a season as it settles.

      Soil mixes for raised beds

      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.

      Soil cost

      Enter your bag price and your bulk price per cubic yard. The tool multiplies each by the quantity, so you can compare them for your own beds. Add delivery to the bulk price before you compare.

      Common soil mistakes

      • Not allowing for settling. Fresh soil sinks. Order a little extra or keep a bag for topping up.
      • Mixing up the units. Keep length, width and depth in the same unit, or convert the depth from inches to feet.
      • Using potting mix for big beds. It is light and costly. Blend topsoil and compost instead.
      • Buying by weight after rain. Wet soil weighs more, so you get less volume for the same tons.

      Before you order soil

      Measure the bed, pick the depth for what you will plant, and let the soil calculator turn it into bags and cubic yards. Compare the bag and bulk totals with delivery included, keep a spare bag for settling, and download the PDF report.

      Frequently asked questions

      How deep should soil be for a garden bed?

      The University of Maryland Extension recommends at least 8 inches for leafy greens, beans and cucumbers, and 12 to 24 inches for peppers, tomatoes and squash.

      How much does a bag of garden soil cover?

      A 1.5 cubic foot bag covers about 4.5 square feet at 4 inches deep, or 1.5 square feet at 12 inches.

      How many bags of soil are in a cubic yard?

      A cubic yard is 27 cubic feet: 36 bags of 0.75 cu ft, 27 bags of 1 cu ft, 18 bags of 1.5 cu ft or about 14 bags of 2 cu ft. Go by the cubic feet printed on the bag, not the weight.

      How much does a cubic yard of soil weigh?

      Inch Calculator puts dry or loose soil at about 1.3 tons per cubic yard and wet or compacted soil at about 1.7 tons. The weight changes with moisture, so check with your supplier if you buy by the ton.

      Is the soil calculator accurate for round planters and pots?

      Yes. Work out the area first with π × radius² (a 16 inch pot is about 1.4 sq ft), choose "I know the sq ft", and enter the fill depth. Fill a pot or planter to within an inch or so of the rim, as Gardener's Supply advises.

      Should I buy soil in bags or in bulk?

      Under about one cubic yard, bags are easiest. Past one yard, bulk delivery is usually cheaper per cubic foot, as Eartheasy notes. Enter both prices and the calculator picks the cheaper option.

      Sources

      1. University of Maryland Extension: Soil to Fill Raised Beds
      2. Inch Calculator: soil volume, weight and bag sizes
      3. Eartheasy: Soil for Raised Beds, Pots and Planters (mixes and bag sizes)
      4. Gardener's Supply: garden soil amounts and the raised bed soil recipe
      5. NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement