Skip to main content
FigureCalc

Dirt Calculator

By Uzair Arshad , Senior Civil and Structural Engineer

Last updated: April 27, 2026

This dirt calculator estimates how many yards of dirt you need in cubic yards, cubic feet, and tons for fill projects, garden beds, raised beds, and leveling jobs. Enter your project dimensions and depth to get supplier-ready quantities with an adjustable waste allowance.

Average depth in inches. Use 2-4 in for garden beds, 6-12 in for leveling, 12+ in for deep fill.

Add extra for settling, compaction, or uneven ground. 10% covers most jobs.

Choose a preset or enter a custom density from your supplier.

Enter bag volume to see a bag count. Common bags: 0.75, 1.0, or 1.5 cu ft.

How to use this calculator

  1. Choose how you know the area. Select "Length & width" if you measured the space, or "Known square footage" if you already calculated the area. For irregular shapes, split into smaller rectangles, calculate each one, and add the results.
  2. Enter dimensions or area. Measure length and width in feet. For holes and low spots, measure the longest and widest points. If one section is deeper than another, run this dirt calculator once for each zone and add the totals.
  3. Enter dirt depth in inches. Use the average depth, not the deepest single point. Measure at three or more spots and average them. Use 2 to 4 inches for garden topping, 6 to 12 inches for leveling and raised bed fill, and 12+ inches for deep fill.
  4. Set a waste or compaction allowance. Dirt shrinks after settling and compaction. Use 10% for garden beds and light fill. Use 15% to 20% for backfill that will be tamped. Skip the allowance only when the fill sits undisturbed.
  5. Choose a bulk density. Fill dirt averages about 1.15 tons per cubic yard. Loose, dry dirt is closer to 0.90 tons per cubic yard. If your supplier quotes a specific density, choose "Custom" and enter their number.
  6. Enter bag size (optional). If you plan to buy bagged dirt from a hardware store, enter the bag volume in cubic feet. Common bags are 0.75, 1.0, or 1.5 cubic feet. The dirt calculator will show how many bags you need.
  7. Review your results. Use the cubic yards figure when ordering bulk dirt. The round-up line shows the nearest half yard for easy ordering. If your supplier quotes by the ton, use the estimated tons instead.

Pro tip: Measure depth at three different points and average them. I once ordered dirt based on the deepest corner of a low spot and ended up with nearly two extra cubic yards piled in the driveway. Three quick depth checks with a tape measure save money and hauling time.

How the calculation works

Volume:
Depth (ft) = Depth (in) / 12
Cubic feet = Area (sq ft) × Depth (ft)
Cubic yards = Cubic feet / 27

Order quantity:
Adjusted cubic yards = Cubic yards × (1 + Allowance %)

Weight:
Tons = Adjusted cubic yards × Density (tons/yd³)
Area
Project area in square feet (length × width, or entered directly)
Depth
Dirt thickness converted to feet
Allowance
Percentage added for waste, compaction, or settling
Density
Weight per cubic yard in tons (fill dirt ~1.15, loose dirt ~0.90)

This dirt calculator converts your project measurements into cubic yards, the standard ordering unit for bulk dirt. Use it as a dirt volume calculator and dirt yardage calculator in one step. The math follows three steps: depth conversion, volume calculation, and order adjustment.

Volume:

Depth (ft) = Depth (in) / 12

Cubic feet = Area (sq ft) × Depth (ft)

Cubic yards = Cubic feet / 27

Order quantity:

Order cubic yards = Cubic yards × (1 + Allowance / 100)

Weight:

Tons = Order cubic yards × Density (tons per cubic yard)

Variables:

  • Area = project surface in square feet (length × width, or entered directly)
  • Depth = average dirt thickness converted to feet (divide inches by 12)
  • Allowance = percentage added for waste, settling, or compaction loss
  • Density = weight of one cubic yard of dirt in tons (fill dirt ~1.15, loose dirt ~0.90)

Example:

A 12 ft by 8 ft garden bed filled 6 inches deep.

  • Area = 12 × 8 = 96 sq ft
  • Depth in feet = 6 / 12 = 0.5 ft
  • Cubic feet = 96 × 0.5 = 48 ft³
  • Cubic yards = 48 / 27 = 1.78 yd³
  • With 10% allowance = 1.78 × 1.10 = 1.96 yd³
  • At 1.15 tons/yd³ = 1.96 × 1.15 = 2.25 tons

Most local suppliers deliver in half-yard increments, so you'd order 2.0 cubic yards for this job.

Quick rule: One cubic yard of dirt covers about 108 sq ft at 3 inches deep, or 54 sq ft at 6 inches deep. Use that to sanity-check your result before ordering.

Recommended depth by project type:

Project Depth Notes
Garden bed topping 2 to 4 in Refreshes existing beds without smothering plants
Raised bed fill 6 to 12 in Mix with compost for better drainage and root growth
Yard leveling 4 to 6 in Add 15% compaction allowance for tamped areas
Foundation backfill 12 to 24 in Use engineered fill dirt, compact in 6 in lifts
Hole or low spot fill Varies Measure average depth at 3+ points across the area

Assumptions:

  • The area is roughly rectangular. For irregular shapes, split into smaller sections and add the volumes
  • Depth is the average across the project area. Uneven ground can throw off estimates if you only measure one spot
  • Fill dirt density varies by moisture and clay content. Dry sandy dirt weighs about 0.90 tons/yd³, while wet clay-heavy fill can reach 1.3 tons/yd³
  • Compacted dirt loses 10% to 25% of its loose volume depending on soil type and equipment used
  • For raised bed dirt, most gardeners use a mix of topsoil, compost, and amendments rather than straight fill dirt. This dirt calculator estimates volume only, not soil blend ratios
  • Cost estimates use $8 to $25 per cubic yard for unscreened fill dirt in 2026, material only. Delivery adds $50 to $150 per load depending on distance

Frequently Asked Questions

How much dirt do I need?

Multiply length × width × depth in feet, then divide by 27. A 20 ft by 10 ft area at 3 inches deep needs 20 × 10 × 0.25 = 50 cubic feet, or 1.85 cubic yards. Add 10% for settling before you place your order with the supplier.

How to calculate yards of dirt?

Convert depth to feet first. Multiply length × width × depth in feet to get cubic feet, then divide by 27. For a 12 ft by 8 ft garden bed filled 6 inches deep, calculate 12 × 8 × 0.5 = 48 cubic feet, then 48 / 27 = 1.78 cubic yards.

How to calculate cubic yards of dirt?

Convert every dimension to feet, multiply all three together, then divide by 27. A hole 6 ft long, 4 ft wide, and 2 ft deep equals 48 cubic feet, or 1.78 cubic yards. Always order slightly above the measured volume to account for settling.

How many bags of dirt do I need?

Divide total cubic feet by the bag volume. If the dirt calculator shows 18 cubic feet and each bag holds 1.5 cubic feet, you need 12 bags. Round up because bags settle during transport and your measurements are rarely exact.

How much fill dirt do I need?

Measure the area and target depth, then calculate volume. A 15 ft by 12 ft low spot filled 8 inches deep needs 15 × 12 × 0.667 = 120 cubic feet, or 4.44 cubic yards. Add 10% to 15% if the dirt will be compacted after delivery.

Learn more about dirt and backfill