Dirt Calculator

Enter the area and how deep you need to fill. The calculator gives cubic yards to order, the weight in tons and the number of bags — with an allowance for settling and compaction.

  • Free, no sign-up
  • Feet, inches or metric
  • Formula shown
  • Reviewed Nov 26, 2026

1Your measurements

Area shape
sq ft
For irregular shapes, split them into rectangles and add the areas together.
%
10–15% for settling, 20–25% if compacting
tons / yd³
Dry fill dirt ≈ 1.0–1.3 t/yd³; wet clay up to 1.5
If buying bagged instead of bulk

Your resultsUpdates as you type

How to use the dirt calculator

  1. Pick the shape of the area and enter its dimensions in any unit.
  2. Enter the fill depth. For an uneven hole, measure the depth in several spots and use the average.
  3. Set the compaction allowance (15% is a safe default) and, if you know it, the price per yard or ton.

Fill dirt formula

cubic yards = length (ft) × width (ft) × depth (ft) × (1 + compaction %) ÷ 27
tons = cubic yards × weight per yard

Worked example

Raising a 20 × 30 ft area by 6 inches, with 15% for compaction:

  1. Volume: 20 × 30 × 0.5 ft = 300 cu ft
  2. Add 15%: 300 × 1.15 = 345 cu ft = 12.78 cubic yards
  3. Weight at 1.2 t/yd³: 15.3 tons — about 460 bags if bought in 0.75 cu ft bags, so bulk delivery makes far more sense

Cubic yards of dirt by area and depth

Cubic yards (no compaction allowance added)
Area2" deep4" deep6" deep12" deep
10 × 10 ft (100 sq ft)0.621.231.853.7
10 × 20 ft (200 sq ft)1.232.473.77.41
20 × 20 ft (400 sq ft)2.474.947.4114.81
20 × 40 ft (800 sq ft)4.949.8814.8129.63
50 × 50 ft (2,500 sq ft)15.4330.8646.392.59
100 × 100 ft (10,000 sq ft)61.73123.46185.19370.37

How much dirt for a raised garden bed?

For a garden bed, enter the bed's length and width and its depth as the fill depth. Raised beds are usually filled with a soil mix rather than fill dirt, and a 10–15% extra allowance covers settling after the first watering.

Soil to fill a raised bed, no settling allowance
Bed sizeCubic feetCubic yards1.5 cu ft bags
2 × 8 ft, 12" deep160.5911
3 × 6 ft, 12" deep180.6712
4 × 4 ft, 12" deep160.5911
4 × 8 ft, 12" deep321.1922
4 × 8 ft, 18" deep481.7832
4 × 12 ft, 12" deep481.7832
4 × 8 ft, 24" deep642.3743

Tips for ordering fill dirt

  • Bulk beats bags above about 1 cubic yard. Most suppliers deliver by the yard; one yard is 36 small (0.75 cu ft) bags.
  • Check truck capacity. Dump trucks commonly carry 10–14 cubic yards, but weight limits may cap heavy, wet soil lower.
  • Compact in lifts. If the fill will support a slab, shed or patio, spread and compact it in 4–6 inch layers.
  • Ask for screened fill if you need it free of rocks, roots and debris.

Frequently asked questions

How much dirt do I need for a 4 × 8 raised garden bed?

A 4 × 8 ft bed filled 12 inches deep holds 32 cubic feet, about 1.19 cubic yards or 22 bags of 1.5 cu ft. At 18 inches deep it takes 48 cubic feet (1.78 yards). Add 10–15% for settling.

How many yards of dirt do I need?

Multiply length × width × depth in feet and divide by 27 to get cubic yards, then add 10–25% for compaction. For example, a 20 × 30 ft area filled 6 inches deep is 11.1 cubic yards, or about 12.8 yards with 15% extra.

How much does a cubic yard of fill dirt weigh?

Dry fill dirt typically weighs about 1 to 1.3 tons (2,000–2,600 lb) per cubic yard; wet or clay-heavy soil can reach 1.5 tons or more. The calculator uses 1.2 tons per yard by default — change it to match your supplier.

How much extra dirt should I order for compaction?

Loose fill shrinks as it settles or is compacted. Add about 10–15% for light settling and 20–25% if you will mechanically compact the fill, for example under a slab or patio.

How many bags of dirt make a cubic yard?

A cubic yard is 27 cubic feet, so it takes 36 bags of 0.75 cu ft, 27 bags of 1 cu ft, 18 bags of 1.5 cu ft or 14 bags of 2 cu ft (13.5 rounded up).

What is the difference between fill dirt and topsoil?

Fill dirt is subsoil with little organic matter — ideal for raising grades and filling holes because it compacts and stays put. Topsoil is the nutrient-rich top layer used for lawns and gardens. Use fill below and finish with 4–6 inches of topsoil where you want things to grow.

Estimates are for planning and ordering. Material densities, product sizes and site conditions vary, so confirm quantities with your supplier and follow local building codes. See how we calculate.