Why trench volume is not just length times width times depth
A trench with vertical walls is a box, and its volume is trivial. Almost no trench over 5 ft deep is legally allowed to be a box. Under OSHA 29 CFR 1926.652, any excavation 5 ft or deeper needs a protective system unless it is cut entirely in stable rock, and the cheapest protective system on open ground is to lay the walls back at a safe angle. The moment you do that, the cross-section becomes a trapezoid and the volume starts growing with the square of the depth rather than in proportion to it.
That is the number that surprises estimators. Take a 100 ft trench with a 2 ft bottom. At 4 ft deep with vertical walls you move 29.6 yd³. Slope it back at 1½:1 for Type C soil and go to 6 ft, and you move 244.4 yd³ — more than eight times the dirt for one and a half times the depth. The excavation cost, the spoil handling, the surface you disturb and the pavement you replace all scale with that number, not with the pipe length.
This calculator does the trapezoid properly, then follows the material through the rest of its life: how much of it goes back in, how much extra room the pile takes once the soil has bulked up, and how many truck trips the surplus becomes.
The trapezoid, the slope ratio and the swell factor
The cross-section of a sloped trench is a trapezoid with bottom width W and top width W + 2SD, where S is the horizontal run per unit of vertical rise and D is the depth. Each wall sets back SD horizontally over the full depth, and there are two walls. The area of a trapezoid is the average of the two parallel sides times the height, so the average width is simply W + SD, and the volume is length × depth × average width.
The slope ratio comes from the OSHA soil classification. Appendix B of Subpart P sets maximum allowable slopes: stable rock may be vertical, Type A soil ¾:1 (53° from horizontal), Type B 1:1 (45°), and Type C 1½:1 (34°). Type C is the fallback: cohesionless granular soil, submerged soil, soil from which water is freely seeping, or any soil a competent person cannot confidently classify better. Note the direction of the ratio — 1½:1 means one and a half feet of horizontal run for every foot of depth, so a 10 ft deep Type C trench sets back 15 ft on each side.
The swell factor handles what happens after the bucket. Soil in the ground is at bank measure: consolidated, with its natural void ratio. Dug, it fragments and gains void space, so the same mass occupies more volume — loose measure. A 25% swell means 1 yd³ in the ground becomes 1.25 yd³ in the truck. Swell is why the pile always looks bigger than the hole, and why truck counts must be figured in loose measure and never in bank measure.
Backfill runs the other way. The volume that goes back in is the excavation minus the space the pipe occupies and minus the bedding stone. That is an in-place figure; because backfill is compacted as it goes in, the loose spoil you draw from the pile shrinks back to roughly its original bank volume as it is placed. What is left over — the space the pipe and the imported stone now occupy — is the surplus, and it leaves the site in loose measure.
Worked example: 100 ft of 12 in pipe, 5 ft deep, shielded
A 100 ft run of pipe with a 12 in outside diameter, laid on 6 in of #57 bedding stone in a 24 in wide trench 5 ft deep, cut vertically inside a trench box, with 25% swell and a 12 yd³ truck.
- Bottom width in feet. 24 ÷ 12 = 2.00 ft.
- Average width. Vertical walls, so S = 0 and the average width is just 2.00 ft.
- Excavated volume. 100 × 5 × 2 = 1,000 ft³ ÷ 27 = 37.04 yd³.
- Bedding stone. 100 × 2.00 × (6 ÷ 12) = 100 ft³ ÷ 27 = 3.70 yd³, which at 2,700 lb/yd³ is 3.70 × 1.35 = 5.00 tons.
- Pipe displacement. π × (1.0 ft)² ÷ 4 × 100 = 78.54 ft³ ÷ 27 = 2.91 yd³.
- Backfill required. 1,000 − 100 − 78.54 = 821.46 ft³ ÷ 27 = 30.42 yd³ in place.
- Loose spoil from the whole cut. 37.04 × 1.25 = 46.30 yd³.
- Surplus to haul. (37.04 − 30.42) × 1.25 = 6.61 × 1.25 = 8.27 yd³ loose.
- Truckloads. 8.27 ÷ 12 = 0.69 → one load.
Now change one thing. Take the trench box out and slope the walls for Type C soil at 1½:1. The average width becomes 2 + (1.5 × 5) = 9.5 ft, the excavated volume becomes 100 × 5 × 9.5 ÷ 27 = 175.9 yd³, and the cut is 2 + 15 = 17 ft wide at grade. That is 4.7 times the excavation and a 17 ft swath of surface to restore, in exchange for not renting a box. On a street or a driveway, the box wins easily; in an open field, sloping is usually cheaper.
Reading the numbers: top width, spoil room and truck counts
Look at the top width before you look at the volume. It is the number that tells you whether the job is even possible on the site you have. A 10 ft deep Type C trench with a 3 ft bottom opens to 3 + 30 = 33 ft at grade. If the easement is 20 ft wide, sloping is off the table and you are renting shoring or a shield, which changes both the price and the excavation quantity.
Next, check the loose spoil against the space beside the trench. OSHA requires spoil to be kept at least 2 ft back from the edge, and the pile itself has a natural angle of repose, so a 46 yd³ pile occupies a strip several feet wide along the whole run. If there is nowhere to put it, you are hauling everything off and importing backfill — a completely different cost structure that the surplus figure alone will not reveal.
Finally, treat the truckload count as a lower bound. Trucks fill by volume or by weight, whichever comes first, and saturated clay or wet sand reaches the legal axle weight long before the body is full. If the spoil is wet or heavy, ask the hauler what they can legally carry rather than assuming the struck body volume. For bedding stone pricing and delivery, run the tonnage through the gravel tonnage calculator; for a footing trench that will be filled with concrete rather than backfilled, the concrete footing calculator is the right tool.
OSHA maximum allowable slopes and what they cost you in volume
| Soil class | Max slope (H:V) | Angle from horizontal | Setback each side at 8 ft | Top width | Volume per 100 ft |
|---|---|---|---|---|---|
| Stable rock | Vertical | 90° | 0 ft | 2.0 ft | 59.3 yd³ |
| Type A | ¾ : 1 | 53° | 6.0 ft | 14.0 ft | 237.0 yd³ |
| Type B | 1 : 1 | 45° | 8.0 ft | 18.0 ft | 296.3 yd³ |
| Type C | 1½ : 1 | 34° | 12.0 ft | 26.0 ft | 414.8 yd³ |
Soil classification is made on site by a competent person under Appendix A of Subpart P. Shoring or a trench shield lets you keep the walls vertical and is often cheaper than the extra excavation and surface restoration sloping demands.
This is a quantity tool, not a protective-system design
Trench collapse kills people, and a cubic yard of soil weighs on the order of a ton and a half. Nothing here classifies your soil, designs shoring, or substitutes for the competent person that 29 CFR 1926 Subpart P requires on site. Slopes in this calculator are the maximum allowable values from Appendix B for simple slopes in excavations less than 20 ft deep; layered soils, adjacent surcharge loads, vibration from traffic, and any water in the trench all require flatter slopes or an engineered system.
Excavations deeper than 20 ft must have a protective system designed by a registered professional engineer. Anyone entering a trench 4 ft or deeper needs a means of egress within 25 ft of lateral travel, and every underground utility has to be located before you break ground.
Where trench quantities go wrong
- Pricing a sloped trench as a box. The most expensive mistake in the list. At 8 ft deep in Type C soil the volume is seven times the vertical figure.
- Reading the slope ratio backwards. 1½:1 is one and a half horizontal to one vertical — the flatter slope, not the steeper one.
- Counting trucks in bank measure. Soil swells when it is dug. A 25% swell factor means one extra truck for every four.
- Forgetting the pipe and the bedding displace backfill. They are imported material occupying space native soil used to fill, and that surplus has to leave.
- Using nominal pipe size instead of outside diameter. A nominal 12 in ductile iron pipe has an outside diameter well over 13 in, and the bell is larger again.
- Ignoring bell holes and structure excavation. Manholes, valve boxes and pipe bells all add volume that a straight prismatic calculation misses.
- Assuming backfill compacts back to bank volume for free. It does approximately, but only with proper lifts and compaction. Poorly compacted backfill settles and the surface fails.
Related methods and when to use them instead
A straight prismatic trench of constant depth is the simplest earthwork problem there is. Two things break it. If the ground surface or the trench invert changes grade along the run, the depth is not constant, and the correct method is average end area: compute the cross-sectional area at each station, average adjacent pairs, and multiply by the station interval. The cut and fill earthwork calculator does exactly that, and it is the right tool for a sewer laid on grade over rolling ground.
The second thing that breaks it is anything non-linear: manholes, thrust blocks, pits, and bell holes. Those are structure excavations, quantified separately as boxes or cylinders and added to the trench total.
For quantities of stone rather than soil, the gravel calculator converts the bedding volume to tons and truckloads at your supplier's density. If the trench crosses a driveway you will have to restore, the asphalt tonnage calculator and the paver base calculator cover the two most common surface types.
