Soil Calculator
Calculate exactly how much soil you need for garden beds, raised planters, or lawn topdressing. Enter the area dimensions and fill depth, choose your bag size, and get volume in cubic feet, cubic yards, and bag count plus a cost estimate.
Soil quantities are estimates based on your input dimensions. Actual needs may vary due to soil settling, irregular bed shapes, and existing soil levels. Always add 10–15% to account for compaction and settling after watering.
How to Calculate How Much Soil You Need
Every garden project begins with a simple question: how many bags of soil do I need? Whether you are filling a raised bed, topdressing a lawn, or enriching an in-ground border, getting the volume right before you shop prevents expensive over-buying and frustrating return trips to the store. The formula is straightforward — length times width times depth — but the units trip up many gardeners.
Soil depth is almost always measured in inches on the ground, but volume calculations require feet. A 6-inch fill is 0.5 feet; a 12-inch fill is 1 foot. Once you have all three dimensions in feet, multiply them together to get cubic feet. Divide cubic feet by 27 to get cubic yards (the unit used for bulk soil orders). Divide cubic feet by your bag size (1, 1.5, or 2 cubic feet per bag) and round up to the next whole bag.
For example: a 10 × 8 ft raised bed filled to 6 inches deep. Volume = 10 × 8 × 0.5 = 40 cubic feet. In cubic yards: 40 ÷ 27 = 1.48 yd³. Using standard 1.5 cu ft bags: ceil(40 ÷ 1.5) = 27 bags. At $8.99 per bag, total cost is $242.73. That is the kind of information that helps you shop efficiently and stay on budget.
Soil Calculator
Enter bed dimensions and fill depth, then click Calculate
Types of Garden Soil: Topsoil, Garden Mix, and Potting Soil Explained
Not all soil sold in bags or by the yard is the same. Understanding the differences between topsoil, garden soil, potting mix, and specialty blends helps you choose the right product for your project and avoid expensive mistakes.
Topsoil
Topsoil is native soil harvested from the upper 6 to 12 inches of the ground. It varies enormously in quality depending on where it is sourced. Good topsoil is dark, rich in organic matter, and well-structured. Poor topsoil can be heavy clay, sandy, or full of weed seeds. Topsoil is the least expensive bulk material and is best suited for filling large volumes — raising low lawn areas, building up a grade, or as the base layer in deep raised beds. It is not suitable on its own for containers or intensive vegetable growing because it compacts readily and drains poorly.
Garden Soil (Blended Garden Mix)
Garden soil is a blended product designed for in-ground and raised bed planting. It typically combines topsoil with compost, sometimes with perlite, bark fines, or other amendments. It is looser and more fertile than raw topsoil, holds moisture while providing better drainage, and is suitable for vegetable gardens, flower borders, and raised beds. Look for products labeled for vegetables or raised beds — they tend to have higher organic matter content and better structure. Bags labeled simply "garden soil" that are very inexpensive often contain mostly sand or low-quality fill material.
Potting Mix (Container Mix)
Potting mix is a soilless growing medium designed for containers, window boxes, and hanging baskets. It contains no mineral soil at all — instead it is made from peat moss or coconut coir, perlite, vermiculite, and sometimes bark. This structure provides excellent drainage and aeration that container plants require. Potting mix is the right choice for any container that has limited drainage. It is not appropriate for filling large raised beds because it is expensive per cubic foot and compresses significantly over time as the organic matter decomposes. For large raised beds, use a blended garden mix instead.
Compost
Compost is decomposed organic matter — yard waste, food scraps, wood chips. It is dark, crumbly, and rich in nutrients and beneficial microorganisms. Pure compost on its own is too rich and dense for most planting purposes, but mixed into topsoil or garden mix at 20–30% by volume, it dramatically improves soil structure, fertility, and water retention. Bulk compost is one of the most cost-effective amendments available — a single cubic yard can improve hundreds of square feet of garden soil.
Specialty Blends: Raised Bed Mix, Mel's Mix
Many garden centers sell pre-blended raised bed mixes. The widely adopted "Mel's Mix" formula — developed by Mel Bartholomew in Square Foot Gardening — calls for one-third blended compost, one-third peat moss or coconut coir, and one-third coarse perlite or vermiculite. This blend is lightweight, well-draining, and extraordinarily productive but is expensive to buy in bags. For a 4 × 8 ft bed filled 12 inches deep (32 cubic feet), this mix can cost $200–$400 in bagged materials. For large raised beds, sourcing each component in bulk dramatically reduces the cost.
Formulas Used
Soil Volume (Cubic Feet)
Volume (cu ft) = Length (ft) × Width (ft) × (Depth (in) ÷ 12)Where:
Length= Bed or area length in feetWidth= Bed or area width in feetDepth= Fill depth in inches, divided by 12 to convert to feet
Example:
10 ft × 8 ft × (6 in ÷ 12) = 10 × 8 × 0.5 = 40 cu ft
Cubic Yards
Volume (yd³) = Volume (cu ft) ÷ 27Where:
Volume (cu ft)= Total volume in cubic feet27= Number of cubic feet in one cubic yard
Example:
40 cu ft ÷ 27 = 1.48 yd³
Bags Needed
Bags = ⌈Volume (cu ft) ÷ Bag Size (cu ft)⌉Where:
Volume (cu ft)= Total fill volume in cubic feetBag Size= Volume per bag (1, 1.5, or 2 cu ft)⌈ ⌉= Ceiling function — round up to next whole bag
Example:
⌈40 ÷ 1.5⌉ = ⌈26.67⌉ = 27 bags
Cubic Feet vs. Cubic Yards: Understanding Soil Volume Units
The most common source of confusion when buying soil is the relationship between cubic feet and cubic yards. Retail bagged soil is sold in cubic feet (1 cu ft, 1.5 cu ft, or 2 cu ft bags). Bulk soil delivered by truck is sold in cubic yards. These two units differ by a factor of 27 — one cubic yard equals 27 cubic feet — which is not intuitive.
A 1-cubic-yard pile of soil is 3 feet × 3 feet × 3 feet — about the size of a large washing machine. It weighs approximately 1,000–1,500 lbs depending on moisture and soil type, which is why bulk soil typically requires delivery by a dump truck or trailer. Carrying 27 individual 1 cu ft bags to your car is an alternative, but it is labor-intensive and much more expensive per cubic foot.
Here is a quick reference for the most common raised bed sizes:
- 4 × 4 ft bed, 6 in deep: 8 cu ft (0.30 yd³) — 6 bags (1.5 cu ft)
- 4 × 8 ft bed, 6 in deep: 16 cu ft (0.59 yd³) — 11 bags (1.5 cu ft)
- 4 × 8 ft bed, 12 in deep: 32 cu ft (1.19 yd³) — 22 bags (1.5 cu ft)
- 4 × 12 ft bed, 12 in deep: 48 cu ft (1.78 yd³) — 32 bags (1.5 cu ft)
- 8 × 8 ft bed, 12 in deep: 64 cu ft (2.37 yd³) — 43 bags (1.5 cu ft)
The break-even point between buying bags and ordering bulk is roughly 2–3 cubic yards. Below that, the convenience of bags usually outweighs the cost premium. Above that, bulk delivery saves 50–70% on material cost alone.
Bagged Soil vs. Bulk Soil by the Yard: Which Is Right for Your Project?
Deciding between bagged and bulk soil comes down to volume, convenience, access, and budget. Both options have real advantages depending on your situation.
When to Choose Bagged Soil
Bagged soil is the better choice for small projects, precise blends, and locations that bulk delivery cannot reach. If you need less than 1.5–2 cubic yards, the cost difference between bags and bulk often does not justify the logistics of arranging bulk delivery. Bags are also easier to store if you cannot use all the soil at once, and they are available in specialty blends (raised bed mix, cactus mix, seed starting mix) that are not available in bulk. Urban gardeners with container gardens or small courtyard beds almost always use bagged materials.
When to Choose Bulk Soil
Bulk soil is the economical choice for filling large raised beds, building up lawn grades, or filling new planting areas. A cubic yard of quality garden mix from a landscape supply company typically costs $35–$75 delivered (plus a delivery fee), compared to $135–$180 for the equivalent volume in 1.5 cu ft bags at $8 each. For a project requiring 3+ cubic yards, that gap in cost is substantial. When ordering bulk, always ask for a soil analysis if available, look at the material in person if possible, and add a 10–15% buffer to your estimate for settling.
Cost Comparison Example
For a 4 × 8 ft raised bed filled 12 inches deep (32 cubic feet, 1.19 cubic yards):
- Bagged (1.5 cu ft bags at $8.99): 22 bags × $8.99 = $197.78
- Bulk garden mix at $50/yd³ + $40 delivery: 1.19 yd³ × $50 + $40 = $99.50
- Potential savings: $98.28 by ordering bulk — even after delivery fee
The savings compound quickly as project size increases. For three raised beds of this size, bulk delivery becomes even more attractive. Use the calculator above to enter your own pricing and compare the two options.
Recommended Soil Depth for Different Plants
One of the most important decisions when filling a raised bed or planting area is how deep to fill it. Depth directly determines which plants thrive, how much soil you need, and how much the project costs. Under-filling is a common mistake that limits plant performance for years.
Shallow-Rooted Plants (6–8 inches)
Lettuce, spinach, arugula, herbs (basil, parsley, cilantro, chives), strawberries, and most annual flowers have shallow root systems that work well in 6 to 8 inches of quality soil. This depth also works for lawn topdressing applications where you are improving the top layer without filling a deep bed. At 6 inches, a 4 × 8 ft bed requires only 16 cubic feet — making it one of the most affordable raised bed configurations.
Medium-Rooted Vegetables (10–12 inches)
Tomatoes, peppers, eggplant, cucumbers, squash, beans, peas, kale, chard, and most brassicas (broccoli, cabbage, cauliflower) perform best with 10 to 12 inches of quality growing medium. Twelve inches is the standard recommendation for most vegetable raised beds because it supports nearly all common garden crops at adequate depth. This is the minimum depth for a productive all-purpose kitchen garden.
Deep-Rooted Vegetables (16–24 inches)
Root vegetables — carrots, parsnips, beets, turnips, daikon radish, and potatoes — require deeper soil for full development. Carrots in particular need at least 12 inches of loose, stone-free soil to grow straight and long; deep-rooted varieties need 18 inches or more. If you are building a bed specifically for root vegetables, plan for at least 18 inches of prepared soil. Standard raised bed boards are only 6 or 12 inches tall, so deep root crops often require double-height or box-within-box configurations.
Perennials, Shrubs, and Trees
Perennial flowers (coneflower, black-eyed Susan, daylily) develop root systems that extend 12–24 inches deep over several years. Most shrubs need 18–24 inches of prepared soil in a planting hole at least twice as wide as the root ball. Trees need a minimum planting hole depth equal to the root ball height plus 2–3 inches, but soil improvement benefits are most significant in the top 18–24 inches where feeder roots concentrate.
Lawn Topdressing
Topdressing a lawn — spreading a thin layer of soil or compost to level low spots, improve soil quality, or thicken turf — typically involves only 0.5 to 1 inch of material. One cubic yard covers approximately 300–325 square feet at 1 inch deep. Topdressing at more than 1–1.5 inches at a time risks smothering existing grass. For significant lawn repairs, apply topdressing in multiple thin passes over several seasons rather than all at once.
Soil Amendments: What to Add and Why
Raw topsoil or basic garden mix rarely provides the ideal growing conditions for productive vegetables or healthy flowers on its own. Soil amendments — materials added to improve structure, drainage, fertility, or pH — are the difference between mediocre and exceptional garden performance.
Compost
Compost is the single most broadly beneficial amendment for almost any soil. It adds organic matter that improves drainage in clay soils and water retention in sandy soils, feeds beneficial soil microorganisms, releases nutrients slowly as it decomposes, and improves soil structure. Adding 2–3 inches of compost (and tilling or mixing it into the top 6–8 inches) at the beginning of each growing season is a simple practice that consistently improves yields and plant health. Well-finished compost has a dark, earthy smell and no recognizable original materials.
Perlite and Vermiculite
Perlite (volcanic glass) and vermiculite (expanded mica) are lightweight mineral additions that dramatically improve drainage and aeration. Perlite is best for improving drainage in heavy soils and container mixes. Vermiculite holds more water than perlite and also improves nutrient retention — it is better suited for seed starting mixes and potting soils where moisture retention is valued. Both are neutral pH, stable, and do not decompose. Add at 10–20% by volume in raised bed mixes.
Peat Moss and Coconut Coir
Peat moss is the traditional addition to improve moisture retention in light, sandy soils and to lower pH slightly for acid-loving plants (blueberries, azaleas). Coconut coir is a renewable alternative to peat with similar physical properties but a more neutral pH. Both are used at 20–30% by volume in quality raised bed mixes. Coir has become the preferred option in recent years due to sustainability concerns with peat extraction.
Agricultural Lime and Sulfur
Soil pH controls nutrient availability — even perfectly fertilized soil grows poorly if pH is wrong. Most vegetables prefer a pH of 6.0–7.0. If soil is too acidic (below 6.0), add ground limestone (calcitic or dolomitic lime) at rates recommended by a soil test. If soil is too alkaline (above 7.5), add elemental sulfur. Always soil test before applying pH amendments — correcting pH in the wrong direction makes the problem worse.
Building the Perfect Raised Bed Soil Mix
A productive raised bed soil mix balances four properties: drainage, aeration, water retention, and fertility. No single ingredient provides all four. The classic approach is to blend multiple components that complement each other.
A high-performance raised bed mix for vegetables:
- 60% quality topsoil or garden mix: Provides weight, mineral nutrients, and structure.
- 30% compost (multiple types if possible): Adds fertility, microbial life, and organic matter.
- 10% coarse perlite: Prevents compaction and improves drainage in deep beds.
For containers and very intensive beds where drainage is paramount (Mel's Mix style):
- 1/3 blended compost
- 1/3 peat moss or coconut coir
- 1/3 coarse perlite or vermiculite
This soilless mix is extraordinarily productive but expensive. At $20 per 2 cu ft bag of quality compost and $20 per 4 cu ft bag of perlite, filling a 4 × 8 ft bed 12 inches deep (32 cu ft) with this mix can cost $300–$450 in materials. Sourcing components in bulk reduces this to $60–$120. For very large raised bed projects, mixing your own blend from bulk materials is the most economical and often the highest-quality approach.
Soil pH, Drainage, and Why They Matter
Two factors that most gardeners underestimate are soil pH and drainage. Both are invisible and easy to overlook, but both control whether plants can access the nutrients already present in the soil.
Soil pH
Soil pH is measured on a scale of 0 to 14, where 7.0 is neutral. Most vegetables and ornamentals grow best between 6.0 and 7.0. Outside this range, specific nutrients become chemically unavailable even if they are physically present. Nitrogen, phosphorus, and potassium — the three primary nutrients in most fertilizers — are most available between pH 6.0 and 7.0. Iron, manganese, and zinc become unavailable above pH 7.5, causing interveinal chlorosis (yellowing between leaf veins) in susceptible plants. Calcium and magnesium become less available below pH 5.5.
A basic soil pH test costs $10–$20 at any garden center or through your local cooperative extension service. A comprehensive extension soil test ($15–$30) provides pH plus macronutrient levels, micronutrients, and organic matter percentage — far more actionable information than pH alone. Test before filling new beds whenever possible.
Drainage
Poor drainage is one of the most consistent causes of plant failure. Most plants cannot survive extended periods with waterlogged roots because the oxygen displacement in saturated soil causes root death within 24–48 hours in some species. Raised beds solve many drainage problems by elevating the root zone above any hardpan or poorly draining soil layer. In raised beds, the biggest drainage risk is the soil mix itself — if it is too high in fine particles (clay or silt) or if organic matter has decomposed and the bed has compacted, drainage can become poor even in a raised structure.
To improve drainage in a raised bed: add perlite at 10–20% by volume; avoid walking in the bed (place stepping stones if you need access); refresh the top 2–3 inches with compost annually to restore structure as organic matter decomposes.
Common Soil Calculation Mistakes and How to Avoid Them
- Forgetting to convert depth from inches to feet: Volume formulas require consistent units. A 6-inch depth must be entered as 0.5 feet. Use this calculator to handle the conversion automatically — just enter depth in inches and it does the math.
- Confusing cubic feet with cubic yards: There are 27 cubic feet in one cubic yard, not 3. Dividing by 3 instead of 27 gives an answer nine times too large. Always double-check which unit your supplier uses before ordering.
- Ignoring soil settling: Freshly placed soil settles 10–20% after watering and initial use. Fill raised beds slightly over the top edge of the boards, or add 10–15% to your calculated volume when ordering.
- Using potting mix in large raised beds: Potting mix is expensive per cubic foot and is not designed for the large volumes in raised beds. Use a garden mix or topsoil-compost blend for beds, reserving potting mix for containers and smaller pots.
- Not asking about soil composition when ordering bulk: Bulk topsoil quality varies widely. Ask suppliers about organic matter content, whether it is screened (to remove rocks and debris), and whether it has been tested for pH and contaminants. Cheap fill dirt can introduce weed seeds, high clay content, or poor structure.
- Buying too little and making multiple trips: Always round up generously. Returning to the store for two more bags costs time and fuel. Extra soil can always be used for a small project elsewhere in the yard.
Pro Tips for Getting the Most from Your Soil
- Order extra and top off each spring: Raised bed soil compresses and organic matter decomposes over the growing season. Planning to add a 1–2 inch topdress of compost each spring keeps beds at the right level and continually improves the underlying soil structure.
- Layer materials in deep beds: For raised beds over 18 inches deep, the lower portion is rarely reached by most plant roots. Fill the bottom 6–8 inches with logs, wood chips, straw, or other coarse organic material (hugelkultur technique) and fill the upper portion with quality soil mix. This reduces cost, improves drainage, and the decomposing organic material enriches the soil over time.
- Use multiple compost sources: A blend of different composts — yard waste compost, mushroom compost, worm castings, leaf mold — provides a broader spectrum of nutrients and microorganisms than any single source. Diversity in the compost blend leads to more diverse, healthy soil biology.
- Never compact raised bed soil by walking in it: Use boards or stepping stones to access the center of large beds. Foot traffic compacts soil, destroys structure, and eliminates the air pores that roots and soil organisms need.
- Water after filling, before planting: After filling a raised bed, water thoroughly and let the soil settle for 24–48 hours before transplanting. This reveals low spots that need topping off and lets the soil reach a stable moisture level so transplants do not go into excessively dry or waterlogged conditions.
Soil Safety Notes
Wear gloves: Some bagged potting mixes contain perlite dust, fertilizer additives, or composted materials. Wear gloves during extended handling and wash hands afterward.
Dust mask in windy conditions: Pouring dry soil amendments (perlite, vermiculite, peat) can release fine dust particles. Wear a dust mask when working in enclosed spaces or on windy days.
Check for contaminants in topsoil: Low-quality or unknown-source bulk topsoil can contain heavy metals, pesticide residues, or debris. For vegetable gardens, ask for a soil safety analysis or use certified clean topsoil or bagged products.
Frequently Asked Questions
Related Calculators
Authoritative Resources
- Garden Soil Management — University Extension
University of Minnesota Extension — Research-based guidance on soil drainage, amendments, and raised bed preparation.
- Raised Bed Gardening — Cornell University
Cornell University College of Agriculture — Recommendations for soil depth, mix ratios, and filling raised garden beds.
- Soil Health Guide — USDA NRCS
USDA Natural Resources Conservation Service — USDA resources on soil health, organic matter, and sustainable soil management.
Soil quantities are estimates based on your input dimensions. Actual needs may vary due to soil settling, irregular bed shapes, and existing soil levels. Always add 10–15% to account for compaction and settling after watering.
Calculator Assumptions
- Soil volume formula: Volume (cu ft) = Length (ft) × Width (ft) × (Depth (in) / 12)
- Cubic yards: Volume (cu ft) / 27
- Bags needed: ceil(Volume (cu ft) / Bag size (cu ft))
- Settling factor not included in calculation — add 10–15% manually
- Assumes rectangular or square bed shape
- Bag sizes: 1 cu ft, 1.5 cu ft, 2 cu ft are standard retail sizes
Pro Tips
- ✓Add 10–15% to your order to compensate for settling
- ✓For raised beds over 4 cu yd, bulk delivery is 50–70% cheaper than bags
- ✓Mix in compost at a 1:3 ratio (compost:topsoil) to improve drainage and fertility
- ✓Test soil pH — most vegetables prefer 6.0–7.0 for optimal nutrient uptake
- ✓Water the bed after filling to let soil settle before planting
- ✓Layer the bottom of deep raised beds with wood chips to reduce the amount of quality soil needed