Soil Calculator

Enter your garden bed's length, width, and desired soil depth to find the volume needed and number of bags.

Total bed volume ()
—
Volume with allowance ()
—
Total bed volume (yd³)
—
Packages
—
Estimated cost
—
Soil volume before allowance ()
—
Drainage volume ()
—
Topsoil ()
—
Compost ()
—
Aeration component ()
—

Enter your own drainage share and mixture percentages; the mixture must total 100%. The editable 60/30/10 split is an example, not a planting recommendation. Mixture volumes include the allowance.

Vb=L·W·d·N; V=Vb(1−r/100); Vₒ=V(1+w/100); n = ⌈Vₒ/v⌉; N ∈ ℕ₀; n ≤ 10⁹. Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

Method, assumptions and limits

Enter your garden bed's length, width, and desired soil depth to find the volume needed and number of bags.

Vb=L·W·d·N; V=Vb(1−r/100); Vₒ=V(1+w/100); n = ⌈Vₒ/v⌉; N ∈ ℕ₀; n ≤ 10⁹. Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined.

Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

Frequently asked questions

How should I interpret this estimate?

Vb=L·W·d·N; V=Vb(1−r/100); Vₒ=V(1+w/100); n = ⌈Vₒ/v⌉; N ∈ ℕ₀; n ≤ 10⁹. Whole packages round up after allowance. Optional prices use the displayed basis. Blank optional fields leave the associated result undetermined. Decimal input uses a dot, up to 12 digits before and after it, and an optional exponent from −24 to 24. Input magnitudes are limited to 10¹²; each formula has additional domain limits. Displayed approximate results use up to 12 significant digits.

How we verified this calculator

The calculator is checked against 4 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Length = 12.5
Width = 3
Layer thickness = 8
Number of beds = 3
Extra allowance (%) = 7.5
Finished volume per bag (optional) = 1.5
Price per package (optional) = 6.49
Total bed volume (yd³): 2.77777777778
Packages: 54
Estimated cost: 350.46
2
Price basis = Soil volume
Price per soil volume = 38
Drainage share of bed volume (%) = 15
Topsoil (%) = 50
Compost (%) = 40
Aeration component (%) = 10
Total bed volume (yd³): 0.740740740741
Estimated cost: 23.9259259259
3
Units = Metric (SI)
Length = 3
Width = 1.2
Layer thickness = 30
Number of beds = 2
Extra allowance (%) = 10
Finished volume per bag (optional) = 50
Price per package (optional) = 4.99
Drainage share of bed volume (%) = 20
Total bed volume (yd³): 2.82517333772
Packages: 39
Estimated cost: 194.61
4
Units = Metric (SI)
Price basis = Soil volume
Length = 4
Width = 2
Layer thickness = 25
Price per soil volume = 45.5
Topsoil (%) = 100
Compost (%) = 0
Aeration component (%) = 0
Total bed volume (yd³): 2.61590123863
Estimated cost: 91

How we test our calculators →

Also try:

Back to category →