ft
Enter trench length in ft
ft
Enter trench width in ft
ft
Enter trench depth in ft
inches
Enter pipe diameter in inches

Cross-section diagram

Ready to calculate

Enter dimensions and click Calculate to see your results.

Show Work
  1. Enter values and click Calculate to see step-by-step work.

Trench Backfill Calculator: Free Online Trench Backfill Calculator

Use our free trench backfill calculator to determine how much backfill material you need after laying pipe or utilities in a trench. Built for utility contractors and foundation crews, it subtracts the volume taken up by the pipe from the total trench volume to give you the actual backfill quantity, in cubic yards.

How to use this calculator.

  1. Enter the trench length. Measure the full run of the trench, in feet.
  2. Enter the trench width and depth. Measure the excavated width and depth of the trench, in feet.
  3. Enter the pipe diameter. Input the outside diameter of the pipe or utility being laid, in inches. Enter 0 if there's no pipe (an open trench being backfilled directly).
  4. Review your results. The calculator returns total trench volume, the volume displaced by the pipe, and the net backfill needed.

How do you calculate trench backfill material volume?

The calculator finds the full trench volume, then subtracts the cylindrical volume the pipe occupies along the trench length, leaving the actual volume of material needed to backfill around and above it.

Trench Volume (cu yd) = Length × Width × Depth ÷ 27

Pipe Volume (cu yd) = π × (Radius in ft)² × Length ÷ 27

Backfill (cu yd) = Trench Volume − Pipe Volume

Where:

  • Length, Width, Depth: The excavated dimensions of the trench, in feet.
  • Pipe Diameter: The outside diameter of the pipe, in inches, converted to a radius in feet (diameter ÷ 24) for the cylinder formula.
  • Pipe Volume: Treats the pipe as a solid cylinder running the length of the trench; this is a simplification that ignores bedding and haunching zones, so treat it as a close estimate rather than an exact figure.

Example calculation.

Let's calculate backfill for a sewer lateral installation.

Scenario: The trench is 100 ft long, 2 ft wide, 4 ft deep, carrying a 6-inch diameter pipe.

  1. Calculate trench volume: 100 ft × 2 ft × 4 ft ÷ 27 = 800 ÷ 27 = 29.63 cu yd
  2. Convert pipe diameter to radius in feet: 6 in ÷ 24 = 0.25 ft
  3. Calculate pipe volume: 3.14159 × 0.25² × 100 ÷ 27 = 3.14159 × 6.25 ÷ 27 = 0.73 cu yd
  4. Calculate backfill needed: 29.63 cu yd − 0.73 cu yd = 28.90 cu yd

Result: This trench needs approximately28.9 cubic yards of backfill material after the pipe is set.

Tips from the field.

  • Use select bedding around the pipe. Clean sand or fine gravel directly around and over the pipe zone protects it from point loads; save native soil for backfilling above that zone.
  • Never backfill with rocky material against the pipe.Sharp stone in direct contact can crack or puncture pipe walls, especially under compaction or vehicle loading.
  • Compact in 6–12 inch lifts. Backfilling the whole trench in one pass leaves voids and uneven support that show up later as settlement cracks in the surface above.
  • Budget $15–$30 per cubic yard for material.Add $2–$5 per linear foot for compaction labor; native soil backfill costs less but imported sand or gravel drains and compacts more reliably.
  • Expect roughly 60–80% of trench volume as backfill.The rest is accounted for by the pipe, bedding stone, and the space lost to compaction settlement.

Disclaimer: This calculator provides estimates for planning purposes only. Actual backfill requirements vary based on pipe bedding specifications, compaction method, and native soil conditions. For utility installations subject to code, consult your local authority's specifications. PavementCalculator.com assumes no liability for material overages or shortages.

Cost, price, and density figures on this page reflect approximate U.S. averages as of August 2026 and vary by region, supplier, and material availability.

Frequently asked questions.

How do I calculate backfill for a trench?

Trench volume = Length × Width × Depth. Backfill volume = Trench volume - Volume of pipe/utility. For a 100 ft trench, 2 ft wide, 4 ft deep with 6-inch pipe: Trench = 100 × 2 × 4 = 800 cu ft = 29.6 cu yd. Pipe volume = π × (0.25)² × 100 = 19.6 cu ft = 0.73 cu yd. Backfill = 29.6 - 0.73 = 28.9 cu yd. Add 15-25% for compaction.

How do I use this calculator?

Enter your project dimensions in the input fields above and the results update automatically. For the most accurate results, measure carefully and use consistent units (feet for length/width, inches for depth). Add 5-10% extra for waste and variations.

What material is used for trench backfill?

Select backfill (clean sand or gravel) is used around pipes and utilities. Native soil is used above the pipe zone. Never use rocky material directly against pipes: it can damage them. Compact backfill in 6-12 inch lifts for proper support.

How is trench backfill calculated?

Backfill volume = trench volume - pipe volume - bedding volume. Typically 60-80% of trench excavation is backfilled. The remaining 20-40% accounts for pipe, bedding stone, and compaction settlement. Use our calculator for exact quantities.

How much does trench backfill cost?

Backfill material: $15-$30 per cubic yard. Labor for compaction: $2-$5 per linear foot. For a 100-ft trench: $500-$1,500 total. Native soil backfill is cheapest (free, just labor). Imported select fill (sand/gravel) costs more but provides better drainage and compaction.

Advertisement

Start typing to find calculators.