Multiply length × width × depth (all in feet), then divide by 27 to get cubic yards. A 21 ft × 10 ft area filled 3 inches deep needs about 1.94 cubic yards (52.5 cu ft), which is roughly 2.14 tons of topsoil before the buffer. Add 15% for settling, then pick your bag size to see how many bags to buy.
- 1. Topsoil, Compost & Fill Dirt Calculator
- 2. How to Use the Calculator (3 Steps)
- 3. Soil Calculation Formula: Square Feet, Inches, cm & Litres
- 4. Topsoil vs. Compost vs. Fill Dirt
- 5. Soil Weight Calculator: kg, Tons & Litres
- 6. How Many Bags of Soil Do I Need?
- 7. 3 Practical Tips Before You Order
- 8. Worked Example: 8×4 ft Raised Bed
- 9. Frequently Asked Questions
- 10. All Free Gardening Calculators
1. Topsoil, Compost & Fill Dirt Calculator (Cubic Yards, Bags & Weight)
Shares are percentages of the total order volume. For shallow vegetable beds, set fill dirt to 0%.
Optional: compare bags vs. bulk delivery cost
Use any currency. Prices are yours, so the result reflects your supplier. In Mode 2 the same bag price is applied to every material.
Weights use typical moist densities. Your supplier’s delivery ticket is the final word.

2. How to Use the Calculator (3 Steps)
- Enter the size. Type length, width and depth, or drag the sliders. Use feet and inches, or switch to metres and centimetres.
- Pick the material, bag size and buffer. Choose topsoil, compost or fill dirt. Keep the 15% settling buffer unless you have a reason not to.
- Read the result. You get total weight, bag count and order volume. Download the plan as CSV for Excel, or print it as a PDF.
Building a layered raised bed? Switch to Mode 2 and split the volume between compost, topsoil and fill dirt.
3. Soil Calculation Formula: Square Feet, Inches, cm & Litres
Depth (ft) = Depth (in) ÷ 12
Cubic metres = Length (m) × Width (m) × Depth (cm) ÷ 100
Litres = Cubic metres × 1,000
Soil calculator in square feet. If you know the area, multiply it by the depth in feet. A 100 sq ft bed filled 3 inches deep is 100 × 0.25 = 25 cu ft, which is 0.93 cubic yards.
Soil calculator in inches. Divide the depth by 12 first. Three inches is 0.25 ft, six inches is 0.5 ft, twelve inches is 1 ft.
Soil calculator in cm and litres. A 5 m × 2 m bed filled 15 cm deep is 5 × 2 × 0.15 = 1.5 m³, which is 1,500 litres. For the 21 × 10 ft example at 3 inches, 52.5 cu ft equals about 1,487 litres.
Useful conversions. 1 cubic yard = 27 cu ft = 0.765 m³ = 765 L. 1 m³ = 1.308 cubic yards = 35.3 cu ft = 1,000 L. If you work in cents, 1 cent is 435.6 sq ft, so spreading 3 inches of soil over one cent takes about 109 cu ft, or 4 cubic yards.
4. Topsoil vs. Compost vs. Fill Dirt: What to Use and When
| Material | What It Is | Best For | Weight / Cu Yd | Weight / m³ | Avoid For |
|---|---|---|---|---|---|
| Topsoil | Upper soil layer with mineral soil and organic matter | Lawn top-dressing, middle layer of raised beds, levelling with growth | 2,200 lb (1.10 tons) | 1,305 kg | Large pots on roofs (heavy) |
| Compost | Decomposed organic matter | Top layer, soil improvement, feeding beds | 1,000 lb (0.50 tons) | 593 kg | Filling deep volumes (it shrinks as it breaks down) |
| Fill dirt | Subsoil used to raise or level ground | Filling holes, raising grade, base layer of deep beds | 2,700 lb (1.35 tons) | 1,602 kg | Vegetable beds (low in nutrients) |
Typical moist densities. Always check with your supplier.
Never use fill dirt as the growing layer for vegetables. It levels ground well, but it carries few nutrients. Put it at the bottom of a deep bed if you need to save on topsoil, and keep topsoil and compost where the roots are.
5. Soil Weight Calculator: kg, Tons and Litres
Weight (kg) = Cubic metres × Density (kg per m³)
1 cubic meter of soil weight in kg: about 1,305 kg for topsoil, 593 kg for compost and 1,602 kg for fill dirt.
How many litres is 1 kg of soil? About 0.77 L of topsoil, 1.69 L of compost, or 0.62 L of fill dirt.
What is 20 litres of soil in kg? About 26 kg of topsoil, 12 kg of compost, or 32 kg of fill dirt.
Rain and moisture. Wet soil weighs more, but its volume barely changes. If you order after heavy rain, expect a heavier load for the same number of cubic yards.
Check your vehicle. One cubic yard of topsoil is about 1.1 tons. That can exceed what a light pickup should carry in one trip. Look up your payload rating before loading, or ask for delivery.
6. How Many Bags of Soil Do I Need?

Divide your order volume by the bag size and round up. For example, 52.5 cu ft of soil in 0.75 cu ft bags is 70 bags. With a 15% buffer, it is 81 bags.
| Bag Size | Bags per Cubic Yard | Bags per Cubic Metre |
|---|---|---|
| 0.75 cu ft | 36 | 48 |
| 1 cu ft | 27 | 36 |
| 1.5 cu ft | 18 | 24 |
| 2 cu ft | 14 | 18 |
| 25 L | 31 | 40 |
| 40 L | 20 | 25 |
| 50 L | 16 | 20 |
Rounded up to whole bags. A “40 lb” bag is sold by weight, so divide the total weight by 40 instead.
7. 3 Practical Tips Before You Order
Tip 1: Order 15% extra
Fresh soil settles by roughly 10 to 15% after the first watering or rain. Order 15% more than the calculated volume so the bed does not end up short.
Tip 2: Plan for the weight
Soil is heavy. One cubic yard of topsoil is about 1.1 tons, and compost is about half that. Think about your vehicle, your wheelbarrow route, and, on a roof or balcony, what the structure can carry.
Tip 3: Get the mix right
A common raised-bed mix is about 60% topsoil, 30% compost and 10% coarse sand or perlite. This calculator splits compost, topsoil and fill dirt. If you add sand or perlite, take that 10% off the other shares and buy it separately. For container mixes, use the Pot Volume & Soil Calculator or the Mel’s Mix Soil Calculator.
Bulk or bags? Once you need more than ten bags, compare the two. Enter your local bag price, bulk price and delivery fee in the optional cost box in the calculator. It shows which option costs less for your exact quantity.
8. Worked Example: 8×4 ft Raised Bed, 18 Inches Deep
- Volume: 8 × 4 × 1.5 ft = 48 cu ft = 1.78 cubic yards.
- With 15% buffer: 2.04 cubic yards, or about 55.2 cu ft.
- Layers (30% compost, 60% topsoil, 10% fill dirt): 0.61 cu yd compost, 1.23 cu yd topsoil, 0.20 cu yd fill dirt.
- Weight: about 613 lb compost, 2,698 lb topsoil and 552 lb fill dirt, a total of roughly 3,863 lb or 1.93 tons.
- Bags (0.75 cu ft): 23 compost, 45 topsoil and 8 fill dirt, 76 bags in all.
Pick the “8×4 ft bed” preset in the calculator to see the same numbers. Before you fill a bed, size the plant spacing with the Raised Bed Spacing Calculator and cover the top with the Mulch Calculator. To improve your compost, try the C:N ratio calculator. For soil health basics, see the USDA NRCS soil health guide and the TNAU horticulture guides.
9. Frequently Asked Questions (FAQ)
How do I work out how many litres of soil I need?
Multiply length × width × depth in metres to get cubic metres, then multiply by 1,000. A 5 m × 2 m bed at 15 cm deep is 1.5 m³, or 1,500 litres.
How many 25 L bags of soil are in a cubic meter?
A cubic metre is 1,000 L, so it holds 40 bags of 25 L.
How many litres is 1 kg of soil?
It depends on the material. About 0.77 L of topsoil, 1.69 L of compost or 0.62 L of fill dirt weighs 1 kg.
What is 20 litres of soil in kg?
About 26 kg of topsoil, 12 kg of compost or 32 kg of fill dirt, using typical moist densities.
How much does a cubic yard of topsoil weigh?
Typically about 2,200 lb (1.1 tons). Compost is about 1,000 lb and fill dirt about 2,700 lb per cubic yard.
How many bags of soil are in a cubic yard?
27 bags of 1 cu ft, 36 bags of 0.75 cu ft or 18 bags of 1.5 cu ft, because a cubic yard is 27 cubic feet.
What is the soil calculation formula?
Length (ft) × Width (ft) × Depth (ft) ÷ 27 = cubic yards. Convert inches to feet by dividing by 12.
How do I calculate soil in square feet?
Multiply the area in square feet by the depth in feet. Then divide by 27 for cubic yards. A 100 sq ft bed at 3 inches deep needs 25 cu ft, or 0.93 cubic yards.
How much extra soil should I order?
Add about 15%. New soil usually settles by 10 to 15% after watering.
Can I use fill dirt in a vegetable garden?
Not as the growing layer. Fill dirt has few nutrients. Use it only as a base in deep beds and keep topsoil and compost around the roots.
Is bulk soil cheaper than bags?
Often, once you need more than about ten bags, but prices vary. Enter your local prices in the calculator’s cost box to compare.
10. All Free Gardening Calculators on Gardening Forever Ever
Plan every step of your raised bed, terrace or backyard garden with these free browser-based tools:
- Topsoil, Compost & Fill Dirt Calculator (this page): cubic yards, bags and weight.
- Pot Volume & Soil Calculator: litres, gallons, bags and wet weight for any pot.
- Vegetable Yield Calculator: estimate harvest per plant and per m².
- Raised Bed Soil Calculator: calculate cubic feet, yards and soil bags.
- Mulch Calculator: estimate mulch volume and bag counts for moisture retention.
- Raised Bed Spacing Calculator: find exact plant counts per square foot.
- Grow Bag Soil Volume Calculator: potting mix liters and kg for terrace bags.
- NPK Fertilizer Calculator: organic and mineral nutrient dosing.
- Drip Irrigation Calculator: emitter flow rate and watering runtime.
- Mel’s Mix Soil Calculator: 1/3 compost, 1/3 peat or coir, 1/3 vermiculite.
- Coco Coir Expansion Calculator: water needed to hydrate 5 kg blocks.
- Hügelkultur Raised Bed Calculator: layer volumes for logs, branches and topsoil.
- Compost, Bokashi & Jeevamrit C:N Ratio Calculator: balance green nitrogen and brown carbon.
Government & Global Authority References
- USDA Natural Resources Conservation Service: Soil Health (US Government)
- FAO Global Soil Partnership (United Nations)
- Soil Health Card Portal, Ministry of Agriculture & Farmers Welfare (Government of India)
About the Author
S. Sethupathi (எஸ். சேதுபதி) holds a B.Tech in Agricultural Engineering and writes Gardening Forever Ever from Tamil Nadu. He builds free, no-signup calculators for home growers.
Over to you: What are you filling, a raised bed, a lawn or a pit? Share your size in the comments and I will reply.

