Dirt Calculator
Free dirt volume calculator for fill dirt, topsoil, garden beds, and raised beds. Calculate cubic yards of dirt, cubic feet, tons, bags, settling, and cost in one place.
Quick answer
To calculate yards of dirt, multiply length × width × depth (all in feet) ÷ 27 for cubic yards. A 10 × 8 raised bed at 12 inches = 2.96 cubic yards. Add 15–25% for settling — topsoil settles 20–30%, fill dirt 10–15%. Loose topsoil weighs about 1.0 US tons per cubic yard. Use the calculator below for multi-area projects, or read how to calculate yards of dirt.
Project areas
Dirt type (for weight estimate)
Results
Enter your measurements to see results.
How much dirt do I need?
To figure out how much dirt you need, calculate the volume of your project area. Measure length, width, and depth in feet, then multiply them together for cubic feet. Divide by 27 for cubic yards (the standard unit for bulk dirt orders). For example, a 10 × 8 raised bed at 12 inches deep needs 10 × 8 × 1 = 80 cubic feet ÷ 27 = 2.96 cubic yards.
Dirt settles after placement, so always add an allowance on top of your calculated volume. Topsoil settles 20–30% (add 25%), while fill dirt settles 10–15% (add 10–15%). Without this allowance, you will end up short — under-ordering is the most common mistake with dirt projects. Order the adjusted volume to reach your target compacted depth.
Dirt is sold three ways: bulk (by the cubic yard, delivered by truck), bagged (by the cubic foot, from a home center), and sometimes by the ton. Bulk is cheapest for projects over about 2 cubic yards; bagged is convenient for small raised beds and repairs. For a full walkthrough, see how much dirt do I need.
Fill dirt calculator
A fill dirt calculator uses the same volume math as a general dirt calculator, but you should pick fill-dirt density and a lower settling factor. Fill dirt (subsoil) is for grading, leveling, backfill, and structural pads — not planting beds. Formula: cubic yards = length × width × depth (ft) ÷ 27. Example: 20 × 10 at 6 inches = 3.70 cubic yards; add 10–15% and order about 4.1–4.3 cubic yards.
Fill dirt typically costs $5–$15 per cubic yard bulk and weighs about 1.1–1.25 US tons per cubic yard. For compaction on a slope or under a pad, place in thin lifts and tamp. Full fill-dirt guidance: fill dirt calculator guide. Convert area alone with the square feet to cubic yards converter.
Garden bed dirt calculator
For a garden bed dirt calculator workflow, measure the bed interior, choose planting depth (often 6–12 inches), and convert to cubic yards. A 4 × 8 bed at 12 inches needs 32 cubic feet (1.19 cubic yards) before settling. Use topsoil or a topsoil–compost blend — not fill dirt — so plants have organic matter and drainage.
Small beds are easy with bagged soil; larger beds are cheaper with bulk topsoil. Add 10–15% so the bed stays full after the first season. Pair this tool with the cubic yard calculator when you only need volume math, or the raised-bed table below for common sizes.
Calculate cubic yards of dirt (formula)
Volume (cu ft) = Length (ft) × Width (ft) × Depth (ft)
Cubic yards = Cubic feet ÷ 27
Cubic meters = Cubic feet × 0.0283
With settling allowance:
Order volume = Volume × (1 + Settling %)
Weight (US tons) = Cubic yards × Density (tons per cu yd)
Depth conversion: inches ÷ 12 = feet
Shortcut: cubic yards = square feet × depth (in) ÷ 324
Worked example
Inputs: 10 ft × 8 ft raised bed, 12 in depth, topsoil
Step 1 — cubic feet: 10 × 8 × (12 ÷ 12) = 80 cu ft
Step 2 — cubic yards: 80 ÷ 27 = 2.96 cu yd
Step 3 — with 25% settling: 2.96 × 1.25 = 3.70 cu yd to order
In bags: 80 cu ft ÷ 1.5 = 53 bags (1.5 cu ft each), or order ~3.7 cu yd bulk
Weight at 1.0 tons/cu yd: ~3.0 US tons (loose topsoil)
How to calculate cubic feet of dirt
Cubic feet is the most useful unit for smaller dirt projects — raised beds, container gardens, and bagged-soil calculations. To calculate cubic feet, multiply length × width × depth, all in feet. A 4 × 8 raised bed that is 1 foot deep: 4 × 8 × 1 = 32 cubic feet.
If your depth is in inches, convert to feet first by dividing by 12. A 6-inch depth is 0.5 feet; a 4-inch depth is 0.333 feet. Once all three dimensions are in feet, the multiplication gives you cubic feet directly. To convert to cubic yards (for bulk orders), divide by 27; to convert to bags, divide by the bag size in cubic feet.
For irregular shapes — an L-shaped garden bed, for example — break the area into rectangles, calculate each volume separately, and add the results. For round beds, use the cylinder formula: π × radius² × depth.
Raised bed dirt calculator
Raised beds are one of the most common dirt projects. To calculate how much soil you need, measure the bed's interior dimensions (not the exterior — the boards take up space) and multiply length × width × depth in feet. A standard 4 × 8 foot raised bed, 12 inches deep, needs 32 cubic feet (about 1.2 cubic yards) of soil mix.
Most raised beds perform best with a blended mix, not pure topsoil. A common recipe is 60% topsoil, 30% compost, and 10% aeration (perlite or vermiculite) — sometimes called "Mel's Mix" or a 5-way blend. Calculate the total volume first, then split it across the ingredients. Add 10–15% for settling in the first season; raised-bed soil drops noticeably as it consolidates.
| Bed size (ft) | Depth | Cubic feet | Cubic yards | Bagged equivalent |
|---|---|---|---|---|
| 4 × 4 | 12 in | 16 | 0.59 | 11 bags (1.5 cu ft) |
| 4 × 8 | 12 in | 32 | 1.19 | 21 bags (1.5 cu ft) |
| 8 × 4 | 10 in | 26.7 | 0.99 | 18 bags (1.5 cu ft) |
| 10 × 8 | 12 in | 80 | 2.96 | 53 bags (1.5 cu ft) |
| 4 × 4 | 18 in | 24 | 0.89 | 16 bags (1.5 cu ft) |
Volumes are for the interior of the bed. Add 10–15% for settling.
Topsoil vs. fill dirt
Choosing the right dirt matters as much as calculating the right quantity. The two main types serve very different purposes:
Topsoil
The organic-rich surface layer (top 2–12 inches of soil). Used for lawns, gardens, and raised beds where plants will grow. Contains humus, microorganisms, and nutrients. Costs $10–$50 per cubic yard bulk. Settles 20–30%.
Fill dirt
Subsoil from below the topsoil layer — mostly clay, sand, and rock with little organic matter. Used for grading, leveling, and filling holes under pavement or structures. Compacts well. Costs $5–$15 per cubic yard bulk. Settles 10–15%.
Use fill dirt under paved surfaces (driveways, patios) and topsoil where plants will grow. Never use fill dirt in raised beds — it lacks the organic matter and structure plants need. For structural fill under buildings, use engineered fill that has been tested for compaction.
Dirt calculator tons & weight
To convert dirt volume to weight (for delivery truck limits or tonnage pricing), multiply cubic yards by the material's density. Loose, dry topsoil weighs about 2,000 lb per cubic yard (1.0 US tons); moist topsoil and fill dirt are heavier at 2,200–2,500 lb per cubic yard. A typical pickup truck safely carries about 1 cubic yard of dirt — larger loads require delivery.
| Material | lb / cu yd | US tons / cu yd | Notes |
|---|---|---|---|
| Topsoil (loose, dry) | 2,000 | 1.00 | Settles 20–30% |
| Topsoil (loose, moist) | 2,200 | 1.10 | Heavier when wet |
| Fill dirt (loose) | 2,200 | 1.10 | Settles 10–15% |
| Fill dirt (compacted) | 2,500 | 1.25 | After settling |
| Clay (loose) | 2,200 | 1.10 | Heavy when wet |
| Sandy loam | 2,400 | 1.20 | Drains well |
Densities are typical loose values. Actual weight varies with moisture content, organic matter, and compaction. Wet dirt can weigh 20–30% more than dry.
Settling and compaction
Loose dirt delivered by truck takes up more volume than the same dirt after it settles and compacts. Topsoil — full of organic matter and air pockets — settles the most, often 25–30% in the first season. Fill dirt settles less (10–15%) but still needs an allowance.
If your project specifies a final compacted depth (for example, a 6-inch raised bed after settling), order enough loose material to reach that depth after settling. The table below shows typical settling factors and the extra volume to order.
| Material | Typical settling | Order extra |
|---|---|---|
| Topsoil (loose) | 20–30% | +25% |
| Fill dirt (loose) | 10–15% | +10–15% |
| Compost / amended mix | 25–35% | +30% |
| Sandy loam | 10–15% | +10–15% |
Dirt for common projects
Raised beds
Multiply interior length × width × depth in feet for cubic feet. A 4 × 8 bed at 12 inches needs 32 cu ft (1.19 cu yd). Add 10–15% for settling. Most raised beds use a mix of topsoil, compost, and aeration material (perlite or vermiculite).
Lawn topdressing
Topdressing is typically ¼–½ inch of compost or topsoil spread over existing grass. Calculate the lawn area × depth, keeping depth in feet (0.25 in = 0.021 ft). A 1,000 sq ft lawn at ¼ inch needs about 0.77 cu yd.
Grading and leveling
Fill dirt is used to raise low spots and level ground before sod or paving. Calculate the volume of the depression (area × average depth). Use fill dirt, not topsoil, under paved surfaces — it compacts better.
Filling holes
For post holes and trench fills, calculate the hole volume and subtract the post or pipe volume. Backfill with compacted fill dirt in 6-inch layers, tamping between each layer to prevent future settling.
New garden beds
In-ground beds typically need 6–12 inches of amended topsoil. Calculate bed area × depth, then add 20–30% for settling. Mix topsoil with compost (about 70/30) for better drainage and fertility.
Sod base preparation
Before laying sod, 4–6 inches of topsoil is ideal. Calculate the lawn area × depth, add 15% for settling, and order topsoil (not fill dirt) — sod roots need the organic content to establish.
Bagged dirt calculator
For small raised beds and container gardens, bagged soil from a home center is convenient. Bags are sold by cubic feet, so divide your total cubic feet by the bag size. One cubic yard (27 cubic feet) equals 27 one-cubic-foot bags, 18 one-and-a-half-cubic-foot bags, or 13.5 two-cubic-foot bags.
Bagged soil costs $2–$8 per bag, which works out to $30–$200+ per cubic yard — significantly more than bulk delivery ($10–$50 per cubic yard). For projects over about 2 cubic yards, bulk delivery is far more economical. But for a single 4 × 4 raised bed needing under 1 cubic yard, bags avoid the delivery fee and minimum load.
| Bag size | Cubic feet per bag | Bags per cubic yard |
|---|---|---|
| 1.0 cu ft | 1.00 | 27 |
| 1.5 cu ft | 1.50 | 18 |
| 2.0 cu ft | 2.00 | 13.5 |
Dirt calculator from square feet
If you know your project area in square feet, convert to cubic yards with the shortcut formula: cubic yards = square feet × depth (inches) ÷ 324. The 324 combines the inch-to-feet and cubic-feet-to-yards conversions. For 200 sq ft at 6 inches: 200 × 6 ÷ 324 = 3.70 cubic yards. Add a settling allowance on top.
You cannot convert square feet to cubic yards without a depth — square feet measures area (2D), while cubic yards measures volume (3D). Depth is the third dimension that connects them. For the area calculation alone, use the square footage calculator.
Dirt removal calculator
For dirt removal, calculate the volume being excavated: length × width × depth ÷ 27 for cubic yards. For a 20 × 10 excavation at 2 feet deep: 20 × 10 × 2 = 400 cubic feet ÷ 27 = 14.8 cubic yards. Add 10–20% for swell — excavated (loose) dirt takes up more volume than compacted dirt.
Dirt removal costs $20–$60 per cubic yard (including hauling and disposal), or $200–$500 per dump truck load. A 10-cubic-yard load costs about $300–$500. Clean fill dirt can often be given away for free on local listing sites, saving disposal fees. Contaminated soil costs more to dispose of.
Backfill dirt calculator
Backfill is the dirt used to fill an excavation around a foundation, trench, or structure. Calculate the void volume:
Backfill = (trench length × width × depth) − (structure volume) ÷ 27
For a 30-foot trench at 2 ft wide × 4 ft deep with a 1-ft footing: (30 × 2 × 4) − (30 × 1 × 4) = 240 − 120 = 120 cubic feet ÷ 27 = 4.44 cubic yards. Add 15% for compaction. Use fill dirt (not topsoil) for backfill — it compacts better and settles less.
Black dirt calculator
Black dirt (also called topsoil or loam) is the dark, organic-rich surface soil used for lawns, gardens, and planting beds. It uses the standard formula: area × depth ÷ 27 for cubic yards. For a 500 sq ft lawn at 4 inches: 500 × 0.333 = 166.7 cubic feet ÷ 27 = 6.17 cubic yards. Add 20–25% for settling.
Black dirt costs $20–$50 per cubic yard bulk, or $4–$8 per bag (1–2 cu ft). It’s denser and richer than fill dirt, making it ideal for planting but not suitable for structural fill under pavement.
Dirt weight calculator
To calculate dirt weight, multiply cubic yards by the material’s density. Loose, dry topsoil weighs about 2,000 lb per cubic yard (1.0 US tons). Moist topsoil: 2,200 lb. Fill dirt: 2,200–2,500 lb per cubic yard. Wet dirt can weigh 3,000+ lb per cubic yard.
A typical pickup truck safely carries about 1 cubic yard of dry dirt (2,000 lb) — wet dirt may exceed payload capacity. For delivery, a single-axle dump truck holds 2–5 cubic yards (4,000– 12,500 lb), and a tandem axle holds 10–16 cubic yards (20,000– 40,000 lb). Always account for weight limits as well as volume.
Dirt pad calculator
A dirt pad for a shed or outbuilding is typically 4–6 inches of compacted fill dirt. For a 10 × 12 shed pad at 6 inches: 10 × 12 × 0.5 = 60 cubic feet ÷ 27 = 2.22 cubic yards. Add 25% for compaction, so order about 2.8 cubic yards. Use fill dirt (not topsoil) for structural pads — it compacts better and provides a stable base.
Related volume calculators & guides
For the general cubic-yard math behind dirt calculations, see the cubic yard calculator. For driveway base material, use the gravel calculator. For surface area measurements, try the square footage calculator. Convert cubic yards to tons when suppliers quote by weight. Guides: how to calculate yards of dirt, fill dirt calculator guide, and how much dirt do I need.
Frequently asked questions
Related guides
Learn the math behind this calculator with our step-by-step guides.