Free Online Tool

Soil Calculator for Gardens

Find exactly how much soil you need for raised beds, garden beds, and lawns — in cubic yards and bags.

✓ Raised beds & lawns ✓ Topsoil, potting mix & compost ✓ Instant results
🌱

Soil Calculator

Enter your measurements below

Select soil type:

🌍 Topsoil Lawns, leveling
🪴 Potting Mix Raised beds, pots
♻️ Compost Amendment, enrichment
ft
Length of bed or area
ft
Width of bed or area
in
Raised bed: 10–12 in
beds
Multiple same-size beds

Your Results

Cubic Yards
Cubic Feet
Bags (1 cu ft each)
Bags (2 cu ft each)

💡 Tip will appear here.

📊 Quick Reference — Common Raised Bed Sizes
Bed SizeDepthCubic Feet Needed
4 × 4 ft12 inches16 cu ft (~10 bags)
4 × 8 ft12 inches32 cu ft (~16 bags)
4 × 12 ft12 inches48 cu ft (~24 bags)
4 × 8 ft18 inches48 cu ft (~24 bags)

How Much Soil Do You Need?

The formula is simple: Cubic Feet = Length × Width × (Depth in inches ÷ 12). Then divide by 27 to get cubic yards. Our calculator also tells you how many bags to buy — whether you're picking up 1 cu ft or 2 cu ft bags from the store.

Best raised bed mix: A great all-purpose raised bed soil is 60% topsoil, 30% compost, and 10% potting mix (or perlite for drainage). This gives roots plenty of nutrients, good drainage, and moisture retention.

Soil Types Explained

Topsoil is the top 2–8 inches of native soil. It's dense and heavy, great for filling large areas or leveling lawns. Not ideal alone for raised beds because it can compact and drain poorly.

Potting Mix is lightweight and formulated for containers and raised beds. It drains well, holds moisture, and is usually sterile (no weed seeds). More expensive per cubic foot than topsoil.

Compost is decomposed organic matter — the best natural fertilizer. Adding 2–4 inches of compost annually improves any soil. It adds nutrients, improves drainage in clay soils, and helps sandy soils retain moisture.

Pro tip: Soil settles 10–15% after watering. Add 10–15% more than your calculated amount so the bed stays full after the first few waterings.