Trench Backfill Calculator

Calculating the correct amount of trench backfill avoids ordering excess material and ensures the pipe zone is properly supported. The calculation subtracts the cylindrical pipe volume from the rectangular trench volume: Backfill (ft3) = L x W x D - pi x (pipe OD / 2)^2 x L, where all dimensions are in feet. Divide by 27 to convert to cubic yards. For plastic pipe, use the outside diameter (OD). Enter all dimensions in feet for the trench, and the pipe outside diameter in inches.

Nominal pipe OD in inches (e.g. 6 for 6-inch pipe)
0.00
0.00

Trench backfill formula

Trench volume (ft3) = Length x Width x Depth
Pipe volume (ft3) = pi x (OD in / 24)^2 x Length
Net backfill (ft3) = Trench volume - Pipe volume
Backfill (yd3) = Net backfill / 27 x (1 + waste%)

The pipe OD is divided by 24 (12 to convert to feet, then 2 to get radius) to find the pipe radius in feet. The pipe volume formula is the standard cylinder formula V = pi x r^2 x L.

Trench backfill zone guidelines

  • Pipe bedding zone (below pipe): use clean sand or pea gravel compacted to 85% proctor density minimum per ASTM D2321.
  • Pipe haunching zone (around pipe): use granular material to prevent pipe ovalization under load.
  • Initial backfill (6 inches above crown): granular material, compacted in 6-inch lifts.
  • Final backfill (above pipe zone): native soil free of large rocks, compacted to specification.
  • OSHA 29 CFR 1926.651 governs trench safety and must be followed for any trench over 5 feet deep.

Trench backfill calculator: frequently asked questions

How do I calculate trench backfill volume?

Backfill volume = Trench volume - Pipe volume. Trench volume = Length x Width x Depth. Pipe volume = pi x (radius squared) x Length. Subtract pipe volume from trench volume, then convert to cubic yards by dividing by 27.

Why subtract the pipe volume from the trench volume?

The pipe displaces backfill material in the trench. Ordering backfill equal to the full trench volume would result in too much material. Subtracting the pipe volume gives the net backfill needed.

What type of material is used for trench backfill?

The zone immediately around the pipe (pipe bedding and haunching zone) should use granular material such as clean sand or pea gravel per ASTM D2321. The upper trench zone can often use excavated native soil if it is free of large rocks and organic matter.

Should I account for soil expansion (swell) when backfilling?

When using excavated native soil as backfill, account for soil swell. Undisturbed soil expands 10 to 30 percent in volume when excavated. This means you may have enough native soil on site for backfill; measure carefully.

What compaction is required for trench backfill?

OSHA 29 CFR 1926.651 requires trench backfill to be compacted to prevent settlement. Water and sewer lines typically require 90 to 95 percent proctor density in the pipe zone. Roadway trenches may require 95 to 100 percent.

Official sources

Reviewed by the CalculatorHub team, edited by James Graham, 15 June 2026. See our methodology.