Agriculture calculators

Soil Calculator

Updated Sep 29, 2026 By Infinity Calculator
Soil Type
Affects weight estimates and bag recommendations.
Area & Depth
Enter a valid positive area
Quick depth presets: 6 in – Flowers 8 in – Greens 12 in – Vegetables 18 in – Deep crops 24 in – Shrubs

Soil Requirements Summary
Total Volume
0 cu ft
Cubic Yards
0.00 yd³
Estimated Weight
0 lb
Liters
0 L
Pre-Mixed Bag Estimates (+10% waste factor)
0.75 cu ft bags (typical small bag)0 bags
1.0 cu ft bags0 bags
1.5 cu ft bags0 bags
2.0 cu ft bags (large bag)0 bags
3.0 cu ft bags (extra-large)0 bags
Volume Breakdown
Volume Conversions
Cubic Feet0
Cubic Yards0
Cubic Meters0
Liters0
Gallons (US)0
Quarts (US)0

Introduction

Figuring out how much soil you need for a garden bed, raised planter, or landscaping project can be tricky. Buy too little and you'll make extra trips to the store. Buy too much and you'll waste money and have piles of leftover dirt. This Soil Calculator tells you the exact volume of soil you need based on your project's dimensions.

Simply enter the shape and size of your planting area (a rectangle, circle, triangle, or an irregular shape) along with the desired depth. The calculator instantly gives you results in cubic feet, cubic yards, and liters. It also estimates the total weight based on your soil type (potting mix, garden soil, or topsoil) and tells you how many bags to buy at common store sizes, with a built-in 10% waste factor so you don't come up short.

Need to plan for multiple garden beds at once? Use the multi-zone feature to add separate areas with different shapes and depths, and the calculator will add everything up for you. You can also use the quick depth presets, from 6 inches for flowers to 24 inches for shrubs. This tool helps you get the right amount of soil the first time, for a small container or an entire backyard garden.

How to use our Soil Calculator

Enter the dimensions of your garden bed or planting area, and this calculator will tell you exactly how much soil you need in cubic feet, cubic yards, liters, and bags.

Calculator Mode: Choose between "Dimensions Mode" to enter the length, width, and depth of your space, or "Area Mode" if you already know the total square footage of your planting area.

Soil Type: Select the type of soil you plan to use: Potting Mix, Garden Soil, or Topsoil. Each type has a different weight per cubic foot, which affects the weight estimate and bag count.

Shape (Dimensions Mode): Pick the shape that best matches your garden bed: Rectangle, Circle, Triangle, or Irregular. The calculator will show a diagram and ask for the right measurements based on the shape you choose.

Length and Width (Rectangle): Enter the length and width of your rectangular bed, and choose the unit (feet, inches, yards, meters, or centimeters) from the dropdown next to each field.

Diameter (Circle): If your bed is round, enter the full diameter (the distance across the widest part of the circle) and pick your unit.

Base and Height (Triangle): For a triangular bed, enter the base length and the height from the base to the opposite point, along with their units.

Area (Irregular Shape): If your bed has an odd shape, enter the total area in square feet, square yards, or square meters directly.

Depth: Enter how deep you want the soil to be. You can type in a number and pick a unit, or click a quick preset like 6 inches for flowers, 12 inches for vegetables, or 24 inches for shrubs.

Total Area (Area Mode): If you already know the square footage of your space, enter it here and select the unit: square feet, square yards, or square meters.

Add Another Zone: If you have more than one garden bed, click "Add Another Zone" to enter dimensions for each area separately. The calculator will add them all together and show a zone-by-zone breakdown in the results.

Calculate: Press the "Calculate" button to see your total soil volume, estimated weight, bag recommendations (with a 10% waste factor built in), and a full volume conversion table covering cubic feet, cubic yards, cubic meters, liters, gallons, and quarts.

Soil Calculator: How Much Soil Do You Need?

Figuring out how much soil to buy for a garden bed, raised bed, or planting area can be tricky. If you buy too little, you'll need extra trips to the store. If you buy too much, you waste money and end up with piles of unused dirt. This soil calculator helps you find the exact amount of soil you need based on the size and shape of your planting area.

How Soil Volume Is Calculated

The amount of soil you need depends on three things: the length, width (or diameter), and depth of the area you want to fill. The calculator multiplies these measurements together to get a volume, usually shown in cubic feet or cubic yards. For a rectangular bed, the formula is simple: length × width × depth. For circular areas, it uses the diameter to find the area of the circle first, then multiplies by depth. Triangular and irregular shapes each have their own formulas built in.

Why Soil Depth Matters

Different plants need different amounts of soil to grow healthy roots. A soil-and-organic mix about 8 inches deep is enough for the roots of most vegetable plants.3 On a hard surface such as a driveway, a raised bed should be at least 8 inches deep for leafy greens, beans, and cucumbers, and 12 to 24 inches deep for peppers, tomatoes, and squash.2 The quick presets use these depths:

  • 6 inches: flowers and shallow-rooted annuals
  • 8 inches: leafy greens like lettuce and spinach
  • 12 inches: vegetables like tomatoes, peppers, and beans
  • 18 inches: deep-rooted crops like carrots, potatoes, and parsnips
  • 24 inches: shrubs, berry bushes, and small trees

Choosing the right depth helps your plants develop strong root systems, which leads to better growth and bigger harvests.

Understanding Soil Types and Weight

Not all soil weighs the same. Potting mix is lightweight, typically around 25 pounds per cubic foot, because it contains perlite, peat moss, and other airy materials. Garden soil and topsoil are much heavier, since they contain more minerals, clay, and moisture. Loose, dry loam weighs about 1,900 to 2,200 pounds per cubic yard, and wet loam 2,800 to 3,200 pounds.1 Dry, that is about 70 to 81 pounds per cubic foot, so the calculator uses 75 pounds per cubic foot for garden soil and topsoil; wet soil weighs much more. Knowing the weight matters when you're hauling bags in your car or planning a bulk delivery by the truckload.

Buying Bags vs. Bulk Soil

Bagged soil comes in standard sizes like 0.75, 1.0, 1.5, 2.0, and 3.0 cubic feet. For small projects like a single raised bed, bags are convenient. For larger jobs, buying soil in bulk by the cubic yard is usually cheaper. One cubic yard equals 27 cubic feet.5 That is enough to fill a 4×8-foot raised bed about 10 inches deep.

The calculator adds a 10% waste factor to its bag estimates. This accounts for soil that spills, settles after watering, or gets left behind in bags. Soil naturally compacts over time, so having a little extra on hand is always a smart idea.

Tips for Filling Raised Beds and Garden Areas

  • Mix soil types: For a raised bed, mix compost and topsoil in a 1:2 or 1:1 ratio, or compost and a soilless growing mix in a 1:1 ratio.2
  • Expect settling: A newly filled bed sinks over time as the compost in the mix breaks down.4 Top off beds as needed.
  • Use the zone feature: If your garden has beds of different shapes and sizes, add multiple zones to get one combined total instead of calculating each bed separately.
  • Test your soil: Before adding new soil, send a sample to a soil testing lab, which reports pH and nutrient levels along with fertilizer and amendment recommendations.2 This helps you pick the right amendments and the right amount of fertilizer from the start.
  • Plan complementary materials: Many garden projects also call for mulch, pea gravel for drainage layers, or sand for soil amendment.

Knowing your exact soil needs saves time, money, and effort on a new raised bed, containers on a patio, or a large garden plot. Enter your measurements above to get started.


Formulas used

Rectangular Volume
V = L \times W \times D
Circular Volume
V = \pi \left(\frac{d}{2}\right)^2 \times D
Triangular Volume
V = \frac{1}{2} \times B \times H \times D
Irregular Shape Volume
V = A \times D
Estimated Weight
W = V_{\text{cu ft}} \times \rho_{\text{soil}}
Bags Required (with 10% waste)
N = \left\lceil \frac{V \times 1.10}{V_{\text{bag}}} \right\rceil

Frequently asked questions

What is the 10% waste factor and why is it included?

The calculator adds 10% extra to your bag estimates. This covers soil that spills, settles after watering, or stays stuck in bags. Soil compacts over time, so having a little extra means you won't come up short.

How do I calculate soil for a round garden bed?

Select the Circle shape in Dimensions Mode. Enter the diameter, which is the distance across the widest part of the circle. Then enter your desired depth. The calculator uses the formula π × radius² × depth to find the volume automatically.

How many cubic feet are in a cubic yard?

There are 27 cubic feet in one cubic yard.5 The calculator converts between these units for you so you can see your results in whichever unit is most helpful for buying soil.

How deep should soil be for a vegetable garden?

A soil-and-organic mix about 8 inches deep is enough for the roots of most vegetable plants.3 On a hard surface, use at least 8 inches for leafy greens, beans, and cucumbers, and 12 to 24 inches for peppers, tomatoes, and squash.2 The calculator has quick depth presets you can click to set common depths fast.

How do I calculate soil for an odd-shaped garden bed?

Select the Irregular shape option in Dimensions Mode. Then enter the total area of your bed in square feet, square yards, or square meters. The calculator multiplies that area by your chosen depth to get the volume.

Should I use potting mix or garden soil?

Potting mix is best for containers and raised beds because it is lightweight and drains well. Garden soil and topsoil work better for in-ground beds and large areas. The calculator uses about 25 lb per cubic foot for potting mix and 75 lb per cubic foot for garden soil. Loose, dry loam weighs about 1,900 to 2,200 lb per cubic yard.1

How much soil settling should I expect?

A newly filled bed sinks over time as the compost in the mix breaks down.4 This is normal. Plan to top off your beds after they settle. The 10% waste factor in the bag estimates helps account for some of this settling.

When should I buy bags versus bulk soil?

Bags are best for small projects like a single raised bed or a few containers. For larger projects, buying in bulk by the cubic yard is usually cheaper. One cubic yard is 27 cubic feet.5 That is enough for a 4×8-foot bed about 10 inches deep.


Sources

  1. FM 5-434, Earthmoving Operations. Department of the Army. 2000;Table 1-2. Accessed September 29, 2026.
  2. Traunfeld J. Soil to Fill Raised Beds. University of Maryland Extension. 2019;Filling raised beds; Scenarios 1, 2 and 4. Accessed September 29, 2026.
  3. Edmunds B. Raised bed gardening (FS 270). Oregon State University Extension Service. 2020;Creating an unframed, raised garden bed. Accessed September 29, 2026.
  4. Miller W, Mann J. How to use compost in gardens and landscapes (EM 9308). Oregon State University Extension Service. 2021;How to fill raised beds. Accessed September 29, 2026.
  5. NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement. National Institute of Standards and Technology. 2026;Units of Volume, p. C-6. Accessed September 29, 2026.