200+ free tools. No sign-up. No hidden fees.Explore the toolkit ↗
Find a tool ↗

Home›Soil Calculator — Any Soil Type

Soil Calculator — Any Soil Type

Find out how much soil you need — topsoil, garden soil or compost — for raised beds, gardens, lawns, fill or levelling, in cubic yards and bags. Enter length, width and depth, pick the soil type, and the calculator adds a waste allowance and estimates the cost. Buying topsoil by the yard for a lawn or bed and want tons and a bulk vs bagged price? Try the Topsoil Calculator.

Calculate your soil

Units:

Your results

–
cubic yards (with waste)
–
cubic feet
–
bags needed
–
weight (approx.)

How the soil formula works

Soil comes two ways — in bulk by the cubic yard, or by the bag — and the right depth depends on what you are growing: 12 inches is the minimum for most vegetables, 6 inches suits shallow-rooted herbs, and deep-rooted crops like carrots and tomatoes want 12–18 inches. Measure the bed in feet and the fill depth in inches — the calculator works out the cubic yards and bag count from those numbers — then remember the bed will not stay full: soil settles and compacts after the first watering and rain, dropping below the rim within weeks, which is why the calculator adds a waste allowance. Density matters too: topsoil runs 2,000–2,700 lb per yard, garden soil 1,800–2,200 lb, and compost only 1,000–1,400 lb, so the same volume can weigh very differently on a trailer.

Volume in cubic feet = length (ft) × width (ft) × depth (in) ÷ 12

Cubic yards = cubic feet ÷ 27

Combined: cubic yards = L × W × depth (in) ÷ 324 (12 inches in a foot × 27 cubic feet in a yard = 324)

Bags = cubic feet ÷ bag volume. A 40 lb bag holds 0.75 cu ft, so one cubic yard (27 cu ft) is about 36 × 40 lb bags.

Weight is an estimate only — it varies with moisture. Topsoil weighs roughly 2,000–2,700 lb per cubic yard; wet soil is far heavier than dry soil.

Soil settles after watering and rain, so always add a waste allowance — 10% for a flat bed, 15% for irregular edges.

Worked example

A raised bed 4 ft × 8 ft, filled 12 inches deep:

4 × 8 × 12 ÷ 324 = 1.19 cubic yards (32 cubic feet)

With 10% waste: 1.30 cubic yards (35.2 cubic feet)

Bags: 32 ÷ 0.75 = 43 × 40 lb bags (47 bags with 10% waste)

Cost: bulk at $35/yd³ ≈ $46 (1.30 yd³ with waste); bagged at $4/bag ≈ $188 (47 bags)

For a bed this size, bulk topsoil is far cheaper than bags — and you can mix in compost on top for planting.

How much does soil cost? (US, 2026)

Topsoil, garden soil and compost are different products at different prices, and the cheapest yard is not always the best value — screened topsoil costs less than a blended garden soil, while compost is the dearest per yard but the one that actually feeds the bed. These are 2026 US ranges at the yard, with delivery typically adding $50–$100 a load, so for a small top-up under about half a cubic yard the bags can still beat a bulk order once delivery is added, while anything over about a cubic yard is far cheaper in bulk.

OptionTypical price
Bulk topsoil, per cubic yard$25–$50
Bulk garden soil, per cubic yard$35–$65
Bagged soil, 40 lb bag$3–$6
Bulk compost, per cubic yard$30–$60
Delivery (bulk, local)$50–$100 per load
US 2026 prices, checked November 2026. Sources: Home Depot / Lowe's listings (bagged topsoil and compost), Nov 2026; US landscape-supply bulk prices, Nov 2026.

Waste allowance

Add 10% for a flat, even bed. For irregular edges or a bed that will settle, use 15%. Soil compacts after watering and rain, so a bed filled exactly level will drop below the rim within weeks — a little extra now saves a second trip later.

Frequently asked questions

What is the difference between this soil calculator and the topsoil calculator?

This calculator covers any soil type — topsoil, garden soil or compost — and works out the volume for beds, fill or levelling. The Topsoil Calculator is topsoil-only: it adds tons, a settling allowance and a bulk vs bagged cost comparison for buying topsoil for lawns and garden beds.

How deep should soil be for vegetables?

12 inches is the minimum for most vegetables. Shallow-rooted herbs and lettuce manage with 6 inches, but deep-rooted crops like carrots and tomatoes need 12–18 inches.

How many 40 lb bags of soil in a cubic yard?

About 36 bags. One 40 lb bag holds 0.75 cubic feet, and a cubic yard is 27 cubic feet (27 ÷ 0.75 = 36).

How much does a cubic yard of topsoil weigh?

It depends on the soil: topsoil is about 2,000–2,700 lb per yard (roughly 2,200 lb dry, up to about 2,700 lb wet), garden soil is lighter at 1,800–2,200 lb, and compost is lighter still at 1,000–1,400 lb. Wet soil is far heavier than dry, so check with your supplier — and your trailer's payload — before ordering a truckload.

Is bulk delivery or bags cheaper for soil?

Bulk delivery is far cheaper per cubic yard for beds over about 1 cubic yard. Bags only make sense for small jobs, like topping up a single raised bed.

Related calculators