200+ free tools. No sign-up. No hidden fees.Explore the toolkit ↗
Find a tool ↗

Home›Trench Calculator

Trench Calculator

A trench is more than a hole: the soil comes out swollen, the pipe displaces its own volume, and the bedding stone around it is a separate order. Enter the trench, the pipe and the soil to get the bank volume, the bedding, the backfill, the loose spoil to haul and the truck loads — before the excavator arrives.

Calculate a trench

Units:

Your results

29.63 cu yd
bank volume (in place)
11.05 cu yd
bedding stone (net)
17.28 cu yd
native backfill
15.43 cu yd
loose spoil to haul
2 loads
truck loads
$1,982
estimated cost

How the trench formula works

Bank volume = (top width + bottom width) ÷ 2 × depth × length ÷ 27  ·  Pipe displacement = length × π × (OD ÷ 24)² ÷ 27  ·  Loose spoil = (pipe + bedding) × (1 + swell)

Most pipe trenches are trapezoidal — wider at the top because OSHA requires sloped or shored walls, narrower at the bottom where the pipe sits on bedding. The cross-section is the average of the top and bottom widths times the depth; with vertical walls the top and bottom are the same and it reduces to length × width × depth. The pipe displaces its own cylindrical volume, so the bedding stone to order is the bedding zone (bedding below + pipe diameter + cover above) minus the pipe — ordering the gross zone over-orders by about 10%. The native soil above the bedding zone goes back as backfill. What is left over is the pipe plus the bedding, swollen by digging: sandy soil swells 10-15%, clay 20-25%, heavy clay 25-30%, broken rock 40-50% (gradelog.com). Apply the swell to the spoil only, never to the bank volume — that is the most common estimating error.

Worked example

Worked example: 100 ft trench, 2 ft wide, 4 ft deep, 8 in pipe

A 100 ft trench, 24 in wide at the bottom and 4 ft deep, vertical walls, an 8 in pipe with 6 in of bedding below and 6 in of cover above, dry packed earth at 25% swell, 14 cu yd trucks, digging at $8.50/ft, stone at $45/ton, haul-off at $25/cu yd:

Cross-check: engiformula.com gives the same five volumes for this exact trench (29.63 / 1.29 / 11.05 / 17.28 / 15.43), and calcformula.com gives the same 29.63 cu yd bank volume with 3 truck loads at their 25.5% swell basis. A sloped variant: the same trench cut back at 1:1 has a 10 ft top width, a 24 sq ft section and 88.89 cu yd of bank volume — three times the digging for the same pipe.

Trenches 4 ft deep or more need a ladder, stairway or ramp within 25 ft of every worker, and spoil piles at least 2 ft back from the edge (OSHA 29 CFR 1926 Subpart P). This calculator sizes quantities only — the side slope, shoring and soil class come from the competent person on site.

How much does trenching cost? (US, 2026)

Typical 2026 US prices for a utility trench. "Digging" is machine excavation; hand digging in tight access runs 2-3× more.

ItemTypical cost (US, 2026)
Machine digging, per lin ft$6-$12
Bedding stone (#57), per ton$40-$50
Haul-off, per loose cu yd$20-$30
Dump truck, 14 cu yd load$250-$400
100 ft trench, 8 in pipe, all-in~$1,982
US 2026 prices, checked November 2026. Sources: calcformula.com trench volume calculator, gradelog.com trench calculator, engiformula.com trench calculator.

Waste allowance

There is no separate waste allowance on a trench — the soil swell select plays that role. Pick the swell for your soil: sandy soil 10-15%, clay 20-25%, heavy clay 25-30%, broken rock 40-50%. If the trench is dug in wet clay that sticks to the bucket, use the high end; the swell is what decides the truck count, and an extra truck booked late costs more than one booked early.

Frequently asked questions

How do you calculate trench volume in cubic yards?

For vertical walls: length × width × depth in feet, divided by 27. For sloped walls: average the top and bottom widths first, then multiply by depth and length and divide by 27. A 100 ft trench, 2 ft wide and 4 ft deep, is 29.63 cu yd.

What is soil swell, and why does it matter?

Soil takes up more room once it is dug — sandy soil about 10-15% more, clay 20-25%, heavy clay 25-30%, broken rock 40-50%. The swell applies to the spoil pile, not the bank volume. A 29.63 cu yd trench in dry earth makes about 37 cu yd of loose spoil if nothing goes back.

How much bedding stone goes under a pipe?

Usually 4-6 in of bedding below the pipe and 6 in of cover above it, in sand or #57 stone. The bedding zone volume minus the pipe displacement is what you order — for a 100 ft trench with an 8 in pipe that is 11.05 cu yd, about 16.6 tons.

How deep can I dig a trench without shoring?

OSHA requires a protective system (sloping, benching, shoring or a trench box) for trenches 5 ft deep or more, and an egress ladder, stairway or ramp within 25 ft of every worker in trenches 4 ft deep or more. The competent person on site decides the soil class and the slope — this calculator does not.

How many truck loads of spoil will I have?

Divide the loose spoil by the truck capacity and round up. The loose spoil is the pipe plus the bedding, times (1 + swell). A 100 ft trench with an 8 in pipe leaves 15.43 cu yd loose at 25% swell — 2 loads in a 14 cu yd truck.

Related calculators