Skip to content

Estimating trench quantities: excavation, bedding, backfill, and haul-off

November 12, 2026 · 6 minute read · TrackOver

How to estimate trench quantities: cubic yards, sloped walls, swell and shrink, bedding and backfill minus the pipe, spoil to haul, and a worked example.

A trench looks like the simplest thing in dirt work to estimate. Length times width times depth, and you are done. Then the job runs over, because the trench had to be sloped, the stone order came up short, and the spoil pile was bigger than the hole it came out of. Each of those is a quantity that should have been figured before the bid went out.

Here is how to take off a trench from start to finish: the cut, the pipe zone, the backfill, and what leaves on trucks.

How do you calculate cubic yards in a trench?

Work in feet, multiply length by width by depth, and divide by 27, since there are 27 cubic feet in a cubic yard.

Cubic yards = length (ft) times width (ft) times depth (ft), divided by 27

A few habits keep this honest:

  • Convert inches first. A 30-inch trench is 2.5 feet wide. Mixing inches and feet is the most common arithmetic mistake in takeoffs.
  • Use the width you will really dig. The bucket and the pipe decide the trench width, not the plan's neat line. If your bucket cuts 3 feet, the trench is 3 feet.
  • Break it into sections. If the depth changes along the run, figure each stretch at its own average depth and add them up.

Sloped walls change everything

Vertical walls only happen in a trench box, with shoring, in stable rock, or in shallow cuts where no protection is needed. A sloped trench is a trapezoid in cross section, and the math follows the shape:

Cross-section area = (bottom width plus top width) divided by 2, times depth

Multiply that area by the length and divide by 27. The top width is the bottom width plus the layback on each side, and the layback depends on the soil. Our article on sloping, shoring, and trench boxes covers when a trench needs protection and what slope each soil type allows.

The difference is large. A 6-foot-deep trench with a 3-foot bottom, sloped at 1:1, is 15 feet across the top. Its average width is 9 feet, three times the vertical-wall trench. Three times the digging, three times the spoil, and a lot more backfill. That is part of why a trench box often pays for itself on long runs.

Bank, loose, and compacted

The same dirt takes up three different volumes depending on where it is:

  • Bank is the soil in the ground, undisturbed. Your trench takeoff is in bank yards.
  • Loose is the soil after it is dug. It fluffs up, which is called swell. Trucks and spoil piles are in loose yards.
  • Compacted is the soil after it is placed back and compacted. It usually ends up denser than it was in the bank, which is called shrink.

The factors vary with the soil and its moisture, so the numbers here are only examples: a swell of 25 percent, meaning 1 bank yard becomes 1.25 loose yards, and a shrink factor of 0.9, meaning 1 bank yard fills 0.9 compacted yards. Use factors that match your ground and your own experience. Our page on bank vs. loose yards goes deeper.

Bedding and backfill, minus the pipe

The pipe zone is usually stone or sand: bedding under the pipe, material worked in along its sides, and a cover layer over the top. To figure it, take the depth of that whole zone times the trench width times the length, then subtract the pipe itself, since the pipe takes up room the stone does not fill.

Pipe volume in cubic feet = 3.1416 times the radius squared, times the length, using the outside diameter in feet to get the radius.

On small pipe the displacement barely matters. On larger pipe it can be a real part of the stone order.

Backfill above the pipe zone is the trench volume that is left. If the native soil is going back in, that is the part of the spoil that stays. Since compacted soil takes up less room than it did in the bank, it takes more than one bank yard of spoil to fill each compacted yard of trench.

A worked example

These are made-up round numbers to show the method. They are not real specs or production rates. Use your plans, your spec, and your own soil factors.

Say you are laying 300 feet of pipe with a 12-inch outside diameter, in a trench box, with these numbers:

  • Trench: 300 feet long, 3 feet wide, 6 feet deep, vertical walls
  • Pipe zone: 6 inches of stone under the pipe, the 1-foot pipe, and 12 inches of stone over it, so 2.5 feet deep
  • Native soil goes back in above the pipe zone
  • Example factors: 25 percent swell, 0.9 shrink
  • Trucks hauling 12 loose yards a load

Now the takeoff:

  1. Excavation. 300 times 3 times 6 is 5,400 cubic feet. Divided by 27, that is 200 bank yards.
  2. Pipe zone. 300 times 3 times 2.5 is 2,250 cubic feet.
  3. Pipe displacement. The radius is 0.5 feet. 3.1416 times 0.25 times 300 is about 236 cubic feet.
  4. Stone. 2,250 minus 236 is 2,014 cubic feet, or about 75 yards in place. Order stone by the supplier's unit, and allow for waste.
  5. Backfill. The remaining 3.5 feet of depth: 300 times 3 times 3.5 is 3,150 cubic feet, or about 117 compacted yards.
  6. Spoil needed for backfill. 117 divided by 0.9 is about 130 bank yards.
  7. Spoil to haul. 200 minus 130 leaves about 70 bank yards. Times 1.25, that is about 88 loose yards. At 12 yards a load, that is 7.3, so figure 8 loads.

If the native soil is not suitable for backfill, all 200 bank yards leave the site, which is 250 loose yards or about 21 loads, and you buy about 117 compacted yards of backfill on top of the stone. That is a very different job, and it is why the soil question belongs on the site visit.

Spoil and haul-off

Once you know the loose yards leaving the site, the trucking math takes over: cycle time, dump fees, and whether weight or box size limits each load. Our articles on pricing trucking and haul-off and how many yards fit in a dump truck cover that side. Also figure where the spoil sits while the trench is open. It has to stay back from the edge, and on a tight site that may mean hauling it off and bringing backfill back.

Production: turning yards into days

Quantities tell you how much. Production tells you how long, and hours are what you are actually pricing. On pipe work, the digging is often not what sets the pace. The pipe crew, the stone deliveries, the compaction lifts, and the box moves usually do.

So think in feet of finished pipe per day, not just yards per hour. If a crew can dig, lay, bed, and backfill 150 feet a day in this example, the 300 feet is two days of crew time, even if the machine could dig the 200 yards in a few hours. The best rates to use are the ones from your own past jobs in similar ground.

Our free trench calculator gives spoil, bedding, and backfill quantities with truckloads from the trench dimensions.

TrackOver ties crew hours and equipment time to each job, so you can compare the feet and hours you estimated with what the job actually took. If you want that record for your next takeoff, try TrackOver free.

Common questions

How do you calculate cubic yards for a trench? Multiply length by width by depth, all in feet, and divide by 27. A trench 300 feet long, 3 feet wide, and 6 feet deep is 5,400 cubic feet, or 200 cubic yards.

How do you figure the volume of a sloped trench? Average the bottom and top widths, multiply by the depth to get the cross-section area, then multiply by the length and divide by 27 for cubic yards.

Why does spoil take more trucks than the trench volume suggests? Because soil swells when it is dug. A trench measured in bank yards becomes more loose yards on the trucks, and the amount varies with the soil.

Do you subtract the pipe when figuring bedding stone? Yes. Figure the full pipe zone volume, then subtract the volume the pipe takes up, using its outside diameter. On small pipe the difference is minor, but on larger pipe it adds up.

Keep reading
Quote it, win it, and see if it paid

Build the estimate from your own prices, send it, and compare it to what the job really cost.

  • No card to start
  • Cancel any time, no contract
  • Export your data whenever you want

Running this kind of work? See Trucking & Hauling software or the plans and the free tier, or find your trade.

Built for: