Every Single CalculatorOne place for every calculator
❋Exterior, landscape and paving

Trench calculator

Enter the size of a trench and the pipe going in it to find how much to dig, how much bedding to bring in and how much backfill goes back.

Example: You are trenching 100 feet for a water line and need to order bedding sand and know how much spoil goes back.

Your numbers

Bedding is the sand or fine gravel laid under and around the pipe. Set it to 0 if you are backfilling with what you dug out.

ft
in
in
in
Enter 0 for cable.
in
Drawn from your numbers. It redraws as you type.
  • Soil to dig0
  • Bedding material0
  • Backfill0
  • Space the pipe takes0

Trench calculator. Estimate from everysinglecalculator.com

Materials list
ItemBuyHow it was worked out

How the volumes are worked out

Soil to dig = length × width × depth ÷ 27

Backfill = soil dug − bedding − the space the pipe takes

A worked example

A trench 100 feet long, 12 inches wide and 36 inches deep is 11.1 cubic yards of digging. Six inches of bedding around a 4 inch pipe takes 1.5 cubic yards of sand or fine gravel. The pipe fills 0.3 cubic yards, leaving 9.3 to go back as backfill.

Good to know

  • Dug soil swells by 20 to 30%, so the pile beside the trench looks bigger than these figures. It settles again when compacted.
  • Call 811 before you dig, and hand dig near any marked line.
  • Minimum burial depths for water, gas, sewer and electrical lines are set by code and differ for each. Water lines go below the frost line.
  • A trench 5 feet deep or more must be sloped, benched or shored before anyone gets in. Trench collapses are fast and often fatal.

Common questions

What slope does a drain line need?

The drain pipe slope calculator gives the total fall for the length of the run.

How we know this calculator is right

Before this calculator went on the site, 8 answers were worked out separately from its code, by hand or straight from the formula above. Each time this page loads, your own browser runs the calculator on those same numbers and compares. Turn on JavaScript to see the comparison.

See every check
Numbers usedResultWorked out separatelyThis calculator

What this proves: the calculator does the arithmetic of the formula shown, correctly. What it cannot prove: your measurements, or figures such as coverage per bag, waste and spacing, which are typical starting values you can change. Go by the product label and your local code.

Used by: electricians, plumbers and pipefitters, irrigation installers, excavation and grading.