Plumbing calculator
Pipe Trench Volume Calculator
A pipe trench volume calculator that works out how much a pipe trench really involves: how much soil comes out, how much bedding goes under the pipe, how much backfill goes back in, and how much spoil has to be hauled away. Enter the trench length, width and depth, the pipe size and the bedding depth, and get the excavation, the pipe displacement, the bedding and backfill split and the haul-off. In cubic feet and cubic yards, with a waste allowance and a truck count.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
The full run along the trench, including bends, not the straight-line distance.
Minimum is the pipe outside diameter plus about 12 in on each side for laying and compaction. 24 in is the common width for a 4 in pipe.
From the surface to the bottom of the bedding, the depth of the dig, not the depth of the pipe invert alone.
The displacement uses the outside diameter: a 4 in pipe is 4.5 in outside, a 6 in pipe is 6.625 in outside.
The compacted layer under the pipe invert. 6 in is the standard planning figure (ASTM D2321); 4 in only where the specification allows it.
Applied to the bedding and backfill order quantities, spillage, over-dig and compaction settlement. 10% is the usual planning figure.
A single-axle dump truck carries about 10 cu yd; a tandem about 14–16 cu yd. The count rounds up. A job needing 2.1 loads pays for 3 small loads.
Excavation · 100 ft × 2 ft × 3 ft
22.22 cu yd
18.11 cu yd goes back in as backfill (order 19.92 cu yd with waste), 3.7 cu yd is bedding (order 4.07 cu yd), and 4.11 cu yd is spoil to haul off. 1 truck load at 10 cu yd each.
Excavation
600 cu ft · 22.22 cu yd
Pipe displacement
11.04 cu ft · 0.41 cu yd
Bedding (order)
3.7 cu yd (4.07)
Backfill (order)
18.11 cu yd (19.92)
Spoil to haul off
4.11 cu yd (18.5% of dig)
Truck loads
1 × 10 cu yd
Spoil is bank volume. Excavated soil swells 15–30% when dug, so the loose volume on the truck is larger. Trenches 5 ft or deeper need sloping, benching or shoring (OSHA Subpart P), which this rectangular volume does not include.
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Excavated volume = length × width × depth ÷ 27 (cu yd). Pipe displacement = π × (outside diameter ÷ 2)² × length. Bedding = length × width × bedding depth. Backfill = excavated − bedding − pipe displacement. Spoil = excavated − backfill (the soil the pipe and bedding displace). Order quantities add the waste percentage.
Worked example. A 100 ft trench, 24 in wide and 36 in deep, for a 4 in pipe (4.5 in outside diameter) on 6 in of bedding: excavation is 100 × 2 × 3 = 600 cu ft, or 22.22 cu yd. The pipe displaces π × (4.5 ÷ 24)² × 100 = 11.04 cu ft (0.41 cu yd). The bedding is 100 × 2 × 0.5 = 100 cu ft (3.70 cu yd), so order 4.07 cu yd with 10% waste. The backfill is 600 − 100 − 11.04 = 488.96 cu ft (18.11 cu yd), so order 19.92 cu yd with waste. The spoil is 111.04 cu ft (4.11 cu yd), the soil the pipe and bedding displaced, which is one 10 cu yd truck load.
A 100 ft trench, 24 in wide and 36 in deep, for a 4 in pipe on 6 in of bedding, digs 22.22 cubic yards, but takes less backfill. The pipe displaces 0.41 cu yd and the bedding takes 3.70 cu yd, so the backfill is 18.11 cu yd and the spoil is 4.11 cu yd, one 10 cu yd truck load. A calculator that only multiplies length by width by depth gives the excavation and stops, while the order and the trucking depend on the split.
Key takeaways
- •A 100 ft trench, 24 in wide and 36 in deep, for a 4 in pipe on 6 in of bedding: 22.22 cu yd excavated, 0.41 cu yd pipe displacement, 3.70 cu yd bedding (order 4.07), 18.11 cu yd backfill (order 19.92), 4.11 cu yd spoil, one 10 cu yd truck.
- •Backfill is always less than excavation. Forgetting the pipe displacement and the bedding over-orders the backfill by the spoil volume, 18.5% of the dig on the default trench.
- •Pipe displacement uses the outside diameter, not the nominal size: a 4 in pipe is 4.5 in outside, a 6 in pipe is 6.625 in, an 8 in pipe is 8.625 in. Displacement = π × (OD ÷ 2)² × length.
- •Bedding is length × width × bedding depth. 6 in deep, full trench width, is the common planning figure (ASTM D2321). The pipe must never sit directly on rock or stony native soil.
- •Spoil is the pipe displacement plus the bedding volume. If the job imports select backfill instead of returning native soil, all of the excavation becomes spoil.
- •Excavated soil swells 15–30% when dug (more for clay), so the loose volume on the truck is larger than the bank volume this calculator reports.
- •Trench width is the pipe OD plus about 12 in on each side at minimum. Every extra 6 in of width on a 100 ft, 3 ft deep trench adds 5.56 cu yd of digging.
- •Any trench 5 ft or deeper needs sloping, benching, shoring or a trench box under OSHA Subpart P, and a sloped trench digs more than the rectangular volume here.
- •Water mains run 4–6 ft deep (below frost), sewers 6–20 ft (slope-driven), storm drains 3–8 ft, gas at least 24 in of cover.
- •Order with waste: 10% on bedding and backfill covers spillage, over-dig and compaction settlement. Compaction shrinks the backfill, so the ordered volume is larger than the trench volume it fills.
How to use the pipe trench volume calculator
- Enter the trench length in feet. The full run from the building to the connection, including any bends measured along the trench, not as the crow flies.
- Enter the trench width in inches. The minimum is the pipe outside diameter plus about 12 in on each side for laying and compaction; 24 in is the common width for a 4 in pipe.
- Enter the total trench depth in inches, from the surface to the bottom of the bedding. That is, the depth of the dig, not the depth of the pipe invert alone.
- Pick the pipe size. The calculator uses the pipe's outside diameter for the displacement: 4 in pipe is 4.5 in outside, 6 in is 6.625 in, 8 in is 8.625 in.
- Enter the bedding depth in inches. 6 in is the standard planning figure for the compacted layer under the pipe (ASTM D2321). Use 4 in only where the specification allows it.
- Set the waste percentage (10% is the default) and the truck size (10 cu yd is a typical single-axle dump truck). Read the excavation, the pipe displacement, the bedding and backfill split with their order quantities, and the spoil with its truck count.
Worked examples
1. The default: 100 ft, 24 in wide, 36 in deep, 4 in pipe, 6 in bedding
- Excavation: 100 × 2 × 3 = 600 cu ft ÷ 27 = 22.22 cu yd
- Pipe displacement: π × (4.5 ÷ 24)² × 100 = 11.04 cu ft = 0.41 cu yd (1.8% of the dig)
- Bedding: 100 × 2 × 0.5 = 100 cu ft = 3.70 cu yd; order 3.70 × 1.10 = 4.07 cu yd
- Backfill: 600 − 100 − 11.04 = 488.96 cu ft = 18.11 cu yd; order 18.11 × 1.10 = 19.92 cu yd
- Spoil: 600 − 488.96 = 111.04 cu ft = 4.11 cu yd (18.5% of the dig)
- Trucks: 4.11 ÷ 10 = 1 truck load (a single-axle dump truck)
- The check: bedding + backfill + pipe = 100 + 488.96 + 11.04 = 600 cu ft. The split adds back up to the dig
2. Deeper and bigger: 100 ft, 24 in wide, 48 in deep, 6 in pipe
- Excavation: 100 × 2 × 4 = 800 cu ft ÷ 27 = 29.63 cu yd
- Pipe displacement: π × (6.625 ÷ 24)² × 100 = 23.94 cu ft = 0.89 cu yd (3.0% of the dig)
- Bedding: 100 × 2 × 0.5 = 100 cu ft = 3.70 cu yd; order 4.07 cu yd
- Backfill: 800 − 100 − 23.94 = 676.06 cu ft = 25.04 cu yd; order 27.54 cu yd
- Spoil: 800 − 676.06 = 123.94 cu ft = 4.59 cu yd (15.5% of the dig)
- Trucks: 4.59 ÷ 10 = 1 truck load
- Cross-check: the same trench (100 ft, 24 in wide, 4 ft deep, 6.625 in OD pipe) is the worked example on Calcady's trench bedding estimator, which also gives 29.63 cu yd of excavation and 0.89 cu yd of pipe displacement
- Note the depth: 4 ft is under the 5 ft OSHA threshold, so no sloping or shoring volume is added, at 5 ft or deeper the rectangular volume understates the dig
3. A long main: 200 ft, 36 in wide, 60 in deep, 8 in pipe
- Excavation: 200 × 3 × 5 = 3,000 cu ft ÷ 27 = 111.11 cu yd
- Pipe displacement: π × (8.625 ÷ 24)² × 200 = 81.15 cu ft = 3.01 cu yd (2.7% of the dig)
- Bedding: 200 × 3 × 0.5 = 300 cu ft = 11.11 cu yd; order 12.22 cu yd
- Backfill: 3,000 − 300 − 81.15 = 2,618.85 cu ft = 96.99 cu yd; order 106.69 cu yd
- Spoil: 3,000 − 2,618.85 = 381.15 cu ft = 14.12 cu yd (12.7% of the dig)
- Trucks: 14.12 ÷ 10 = 2 truck loads
- Depth warning: 5 ft deep triggers OSHA Subpart P. This rectangular volume is the minimum, and a sloped or benched trench digs more
- Scale note: the pipe displacement is 3.01 cu yd here. Small against 111.11 cu yd of dig, but it is still three cubic yards of backfill you would over-order if you forgot it
4. A small job: 40 ft, 18 in wide, 30 in deep, 3 in pipe
- Excavation: 40 × 1.5 × 2.5 = 150 cu ft ÷ 27 = 5.56 cu yd
- Pipe displacement: π × (3.5 ÷ 24)² × 40 = 2.67 cu ft = 0.10 cu yd (1.8% of the dig)
- Bedding: 40 × 1.5 × 0.5 = 30 cu ft = 1.11 cu yd; order 1.22 cu yd
- Backfill: 150 − 30 − 2.67 = 117.33 cu ft = 4.35 cu yd; order 4.78 cu yd
- Spoil: 150 − 117.33 = 32.67 cu ft = 1.21 cu yd (21.8% of the dig. The highest share of the four examples, because the trench is small and the bedding is a bigger fraction of it)
- Trucks: 1.21 ÷ 10 = 1 load, in practice a pickup truck or a small trailer, not a dump truck
- The lesson for small jobs: the spoil share is highest on small trenches, because the bedding depth does not shrink with the trench. 6 in of bedding is a bigger fraction of a 30 in deep trench than of a 60 in one
The four numbers: excavation, bedding, backfill, spoil
A trench produces four numbers, and each one is a different order, a different truck or a different cost. The excavation is the soil that comes out: length × width × depth, divided by 27 for cubic yards. It is the dig, the shoring, the dewatering and the first half of the trucking. The bedding is the granular material that goes under the pipe: length × width × bedding depth, usually 6 in deep and full trench width, of clean sand or #57 stone. The backfill is what goes back in after the pipe is laid: the excavation minus the bedding minus the pipe displacement. And the spoil is what cannot go back: the pipe displacement plus the bedding volume, the soil the pipe and the bedding displaced.
| Quantity | Formula | Default trench | What it orders |
|---|---|---|---|
| Excavation | L × W × D ÷ 27 | 22.22 cu yd | The dig, the shoring, the dewatering |
| Pipe displacement | π × (OD ÷ 2)² × L | 0.41 cu yd | Nothing. It is space the pipe occupies |
| Bedding | L × W × bedding depth | 3.70 cu yd (order 4.07) | Sand or #57 stone, delivered |
| Backfill | Excavation − bedding − pipe | 18.11 cu yd (order 19.92) | Native soil returned, or select fill imported |
| Spoil | Excavation − backfill | 4.11 cu yd | Haul-off, 1 truck load |
Default trench: 100 ft long, 24 in wide, 36 in deep, 4 in pipe (4.5 in OD), 6 in bedding, 10% waste. The four volumes add up: bedding + backfill + pipe displacement = excavation.
The split matters because the four numbers go to four different places. The excavation goes to the excavator's price. The bedding goes to the aggregate supplier as an order for sand or stone. The backfill is either free, the excavated soil returned to the trench, or an import order for select fill. And the spoil goes to the trucking company as haul-off. A calculator that returns only the excavation leaves the estimator to work out the other three by hand, and the hand calculation is where the pipe displacement gets forgotten: 0.41 cu yd on the default trench is small, but on the 200 ft, 8 in main it is 3.01 cu yd, and on a 1,000 ft main it would be 15 cu yd of backfill ordered and never used.
The waste percentage is applied to the order quantities, not to the excavation. Bedding and backfill are ordered with 10% waste to cover spillage, over-dig and compaction settlement: the bedding order is 3.70 × 1.10 = 4.07 cu yd, and the backfill order is 18.11 × 1.10 = 19.92 cu yd. Compaction is the reason the waste is needed on the backfill side, compacted soil occupies less volume than loose soil, so the loose volume that fills the trench is larger than the bank volume of the hole, and the order has to cover the difference as well as the spillage.
The spoil share, spoil as a percentage of excavation, is a useful sense-check. On the default trench it is 18.5%; on the deeper 6 in main it is 15.5%; on the 200 ft, 8 in main it is 12.7%; on the small 40 ft job it is 21.8%. The pattern is consistent: the spoil share falls as the trench gets deeper and wider, because the bedding depth stays at 6 in while the trench grows around it. A spoil share above 25% on a large trench usually means the width or the bedding depth was entered wrong. Check the inputs before ordering.
Bedding: what goes under the pipe, and why it matters
Bedding is the most consequential 6 in of a trench. Thermoplastic pipe, PVC, HDPE, ABS, cannot sit directly on rocky native earth, because a stone under the pipe concentrates the load of the backfill onto one point and the pipe cracks there. The bedding is a cushion of clean, compacted granular material, 4–6 in deep under the pipe invert and full trench width, that spreads the load evenly along the pipe's length. ASTM D2321, the installation standard for thermoplastic pipe, defines the bedding classes and the embedment zones around the pipe, and the project specification will name the class and the material. Usually sand or #57 stone.
| Zone | Where it is | Material | Counted here as |
|---|---|---|---|
| Bedding | Under the pipe invert, 4–6 in deep | Clean sand or #57 stone, compacted | Bedding |
| Haunch | Beside the pipe up to the springline | Same granular material, compacted by hand | Backfill (unless the spec calls it granular) |
| Initial backfill | Springline to 6–12 in above the crown | Select material, no stones over ¾ in | Backfill |
| Final backfill | Above the initial backfill to the surface | Native soil, compacted in lifts | Backfill |
Zones per ASTM D2321. This calculator counts only the bedding layer under the pipe as bedding; the haunch and initial backfill are counted as backfill unless the specification requires granular material there too. In which case, add their volume to the bedding order.
The haunch zone deserves a sentence of its own, because it is the half of the job that fails most often in the field. The haunch is the region under the lower curve of the pipe, between the bedding and the horizontal centreline of the pipe (the springline), and it is hard to compact. The tamper cannot reach under the pipe's curve, so the material has to be shovelled in and worked by hand. A poorly compacted haunch lets the pipe settle and ovalise under the backfill, and the settlement shows up later as a dip in the surface above the trench. The bedding volume this calculator gives is only the layer under the pipe; the haunch material is counted as backfill, and if the specification requires granular material in the haunch too, its volume; roughly the trench width times the pipe radius times the length, minus the pipe's lower half, should be added to the bedding order.
The bedding depth of 6 in is the common planning figure, and 4 in is the minimum where the specification allows it. Going from 6 in to 4 in on the default trench saves 33.33 cu ft (1.23 cu yd) of bedding; about a third of the bedding order, but it is not a saving to take without the specification's say-so, because the bedding depth is set by the pipe manufacturer and the soil conditions, not by the estimator. Rocky or uneven trench bottoms need the full 6 in; a smooth, firm bottom in sand may be allowed 4 in.
Spoil, swell and trucking
Spoil is the bank volume. The soil as it sits in the ground, before it is dug. Excavated soil swells when it is dug, because the digging breaks its structure and lets air in: sandy soil swells about 10–15%, mixed native soil about 20%, and clay 25–30% or more. The loose volume that actually goes on the truck is therefore larger than the bank volume this calculator reports, and the truck count; which uses bank volume, is a minimum. On clay, a 4.11 cu yd bank spoil is about 5.3 cu yd loose, which still fits one 10 cu yd truck; on a 111.11 cu yd excavation the spoil is 14.12 cu yd bank and about 18 cu yd loose on clay, which is two 10 cu yd trucks either way, but the margin is thinner than the bank numbers suggest.
The truck size matters as much as the volume. A single-axle dump truck carries about 10 cu yd, a tandem-axle about 14–16 cu yd, and a tri-axle about 18–20 cu yd. This calculator defaults to 10 cu yd and rounds the truck count up. A 4.11 cu yd spoil is one load, a 14.12 cu yd spoil is two. For a long main, set the truck size to the trucks you will actually use: at 14 cu yd per tandem load, the 200 ft main's 14.12 cu yd of spoil is still two loads (14.12 ÷ 14 = 1.01), but a 20 cu yd tri-axle takes it in one. The rounding is where the money is: a job that needs 2.1 loads pays for 3 loads if the trucks are small, and 2 loads if they are large.
The other spoil decision is where it goes. Spoil that is clean native soil can be stockpiled on site and used as backfill. In which case the spoil to haul is only the pipe and bedding displacement, which is what this calculator reports. Spoil that is contaminated, or a job with no room to stockpile, has to be hauled off entirely, and the haul-off becomes the full excavation volume: 22.22 cu yd on the default trench instead of 4.11. And if the specification requires imported select backfill, the arithmetic flips the other way. The backfill order becomes an import of 19.92 cu yd, and all 22.22 cu yd of excavation becomes spoil. Check the specification before pricing the trucking, because the same trench can need one truck or three depending on which of these cases applies.
The trench itself connects to the rest of the drainage chain. The pipe that goes in it is sized from its DFU load on the drain pipe size calculator, laid at the slope the drain pipe slope calculator gives, and the fixtures it serves are counted on the drainage fixture unit calculator. The trench is the hole those numbers are built in, and the bedding, backfill and spoil are the quantities that turn the pipe design into a price.
Common trench-volume mistakes
- •Ordering backfill equal to excavation. The pipe and the bedding occupy space, 18.5% of the dig on the default trench, and ordering the full excavation volume as backfill wastes material and money.
- •Using the nominal pipe size instead of the outside diameter for the displacement. A 4 in pipe is 4.5 in outside; using 4 in understates the displacement by about 20%.
- •Forgetting the fitting and over-dig allowance. The trench is dug wider at bends, at connections and where the excavator over-digs; the 10% waste on the order quantities covers ordinary over-dig, not a trench dug a foot wider than the plan.
- •Using the rectangular volume for a sloped trench. Any trench 5 ft or deeper needs sloping, benching or shoring under OSHA Subpart P, and a sloped trench digs substantially more than length × width × depth with vertical walls.
- •Counting the bedding as backfill, or the backfill as bedding. They are different materials at different prices; sand or stone for bedding, native soil for backfill, and mixing them up misprices both orders.
- •Forgetting swell on the trucking. Bank volume is not loose volume: clay swells 25–30%, and a job priced on bank volume runs short of trucks.
- •Measuring the depth to the pipe invert instead of to the bottom of the bedding. The dig includes the 6 in of bedding under the pipe. A trench measured to the invert is 6 in too shallow in the calculation.
- •Measuring the length as the crow flies instead of along the trench. Bends and offsets add length, and every added foot adds width × depth of excavation.
- •Ignoring compaction on the backfill order. Compacted backfill occupies less volume than loose backfill, so the loose volume ordered must exceed the bank volume of the hole. The 10% waste covers this, but only if it is actually applied.
- •Hauling spoil that could have been backfill. Where the specification allows native soil as backfill, only the pipe and bedding displacement needs hauling, 4.11 cu yd on the default trench, not 22.22.
How this calculator compares with the rivals
The trench-volume search is led by a few strong trade calculators and a long tail of simple volume tools. The leaders all subtract the pipe displacement; that is the standard of the category now, and the gap is the split: a calculator that separates bedding from backfill, prices the spoil and counts the trucks, instead of returning one number and leaving the estimator to do the rest. This page is built to be that calculator.
| Rival | What it offers | Where this page beats it |
|---|---|---|
| Calcady. Trench Bedding Sand & Excavation Estimator | The strongest rival: pipe displacement, net bedding, total spoils and a worked 100 ft example (29.63 cu yd excavation, 0.89 cu yd displacement, 10.61 cu yd net bedding) | Calcady's worked example is the same trench as this page's Example 2, and the numbers agree exactly, 29.63 cu yd and 0.89 cu yd. Where this page goes further is the backfill split, the spoil share, the truck count and the four worked examples across trench sizes, plus the ASTM D2321 zone table Calcady does not show. |
| Gradelog | Trench Volume Calculator | Trapezoidal trench volume with spoil and swell factor, pipe bedding volume and side-slope ratio, built for utility crews | Gradelog is the only rival that handles sloped (trapezoidal) trenches, which this page does not. Its rectangular assumption is the honest limit here. This page beats it on the split: Gradelog gives excavation and spoil, but does not separate bedding from backfill with order quantities, and does not count trucks. |
| nrtechstudio | Pipe Bedding Calculator | A careful bedding calculator: gross envelope, pipe displacement, net material, haunch-zone explanation and a density-to-tons conversion | nrtechstudio is the best bedding-only tool in the search and its haunch explanation is excellent. It is bedding-only: no excavation total, no backfill, no spoil, no trucking. This page is the whole trench, excavation, bedding, backfill, spoil and trucks, with the haunch zone explained in the guide. |
| NovaCalculator | Trench Backfill Calculator | Backfill material for utility trenches: sand, gravel and soil quantities with a worked 100 ft example | NovaCalculator's backfill is total volume minus the pipe zone, which is the right idea, but its pipe zone is a rectangular block (length × width × pipe depth) rather than the pipe's actual cylindrical displacement. It overstates the displacement. This page uses the true cylindrical volume from the outside diameter. |
| Omni Calculator | trench / excavation calculators | Omni's construction section has excavation and trench tools among its 160-plus calculators | Omni's trench entries are single-purpose volume tools with no pipe displacement, no bedding split and no spoil. This page beats them on every feature that matters to an estimator: the displacement, the split, the waste and the trucks. |
| Calculator Soup | excavation and volume calculators | A long-standing hub with cubic-yard and excavation entries | Calculator Soup has no dedicated pipe-trench tool with a bedding and backfill split. This page is the dedicated tool, with the pipe OD table and the four worked examples. |
| Generic cubic-yard calculators (many hubs) | Length × width × depth ÷ 27, and nothing else | One number and no context: no pipe, no bedding, no backfill, no spoil. This page adds all four, plus the truck count and the guide that explains why the backfill is always less than the dig. |
The honest summary: Calcady is the strongest rival and its numbers agree with this page's to the decimal, 29.63 cu yd of excavation and 0.89 cu yd of pipe displacement on the same trench, which is a useful independent check on both tools. Gradelog is the only rival that handles sloped trenches, and that is a genuine gap in this page, stated plainly in the assumptions. Nobody in the top results separates the bedding order from the backfill order, reports the spoil share, and counts the truck loads in one tool. This page wins by being the only one that turns the trench into the four numbers an estimator actually orders and prices.
Assumptions
- •Planning and estimating aid only: trench dimensions, bedding requirements and backfill materials are set by the pipe manufacturer's installation standard, the project specification and the code adopted by the authority having jurisdiction. A licensed plumber or civil engineer signs off the final design, and a competent person plans the excavation.
- •The trench is rectangular with vertical walls: length × width × depth. Real trenches deeper than 5 ft need sloping, benching or shoring under OSHA 29 CFR 1926 Subpart P, which widens the top and increases the excavated volume. This calculator does not add the slope or bench volume, so add it separately for deep trenches.
- •Pipe displacement uses the pipe's outside diameter, not its nominal size: a 4 in PVC Schedule 40 pipe is 4.5 in outside, a 6 in pipe is 6.625 in outside and an 8 in pipe is 8.625 in outside. Using the nominal size instead understates the displacement.
- •Bedding is the compacted layer under the pipe only. 6 in deep, full trench width, the common planning figure. The haunch zone beside the pipe and the initial backfill above the crown are counted as backfill here, not as bedding, unless the specification calls for granular material there too.
- •Spoil is the bank volume. The soil as it sits in the ground. Excavated soil swells 15–30% when dug (more for clay), so the loose volume on the truck is larger than the bank volume this calculator reports; the truck count uses bank volume, so allow for swell when the soil is clay or the trucks are small.
- •Backfill is assumed to be the excavated soil returned to the trench. If the specification requires imported select backfill, the backfill order quantity is the volume to import, and all of the excavated soil becomes spoil to haul off.
Sources✓ Verified
- ASTM D2321 | Standard Practice for Underground Installation of Thermoplastic Pipe for Sewers and Other Gravity-Flow Applications. Bedding classes, embedment zones and compaction requirements for plastic pipe, the basis for the 4–6 in bedding depth and the haunch-zone treatment.
- OSHA 29 CFR 1926 Subpart P | Excavations. Trenches 5 ft or deeper require a protective system (sloping, benching, shoring or a trench box); the rectangular-trench assumption in this calculator does not include the extra volume a sloped trench digs.
- AWWA C600 | Installation of Ductile-Iron Water Mains and Their Appurtenances. Bedding and backfill requirements for ductile iron water mains, including the bedding layer under the pipe.
- International Plumbing Code (IPC) 2021, Section 306 | Trenching, Excavation and Backfill. Trench width, bedding and backfill rules for plumbing piping, and the requirement that the pipe be supported on a firm, stable bed.
- ASTM D2487 / D698 | Soil Classification and Compaction (Standard Proctor). Backfill is placed and compacted in lifts, typically 8–12 in, to the specified compaction, usually 95% of Standard Proctor, which is why backfill is ordered with waste rather than exactly to the trench volume.
Formula reviewed November 2026.
Multiply length × width × depth in feet to get cubic feet, then divide by 27. A 100 ft trench, 2 ft wide and 3 ft deep, is 100 × 2 × 3 = 600 cu ft, or 22.22 cu yd. That is the excavation, the soil that comes out. The backfill is less, because the pipe and the bedding now occupy part of that space: for a 4 in pipe on 6 in of bedding the backfill is 18.11 cu yd, not 22.22, and the difference, 4.11 cu yd, is spoil to haul away.
Bedding is length × width × bedding depth. For a 100 ft trench, 24 in wide, with 6 in of bedding under the pipe, that is 100 × 2 × 0.5 = 100 cu ft, or 3.70 cu yd. Order 4.07 cu yd with 10% waste. The usual bedding depth is 4–6 in under the pipe invert, full trench width, of clean sand or #57 stone (ASTM D2321). The pipe must never sit directly on rock or native soil with stones, because point-loading cracks the pipe under the backfill.
Yes. The pipe's own volume can never be backfill, and forgetting it over-orders the backfill. A 4 in pipe (4.5 in outside diameter) over 100 ft displaces 11.04 cu ft (0.41 cu yd); a 6 in pipe over the same run displaces 23.94 cu ft (0.89 cu yd); an 8 in pipe displaces 81.15 cu ft over 200 ft (3.01 cu yd). The displacement is π × (outside diameter ÷ 2)² × length, and it uses the outside diameter, not the nominal size. A 4 in pipe is 4.5 in outside.
Spoil is the excavated soil that cannot go back in the trench because the pipe and the bedding now occupy that space. For the default trench, 100 ft, 24 in wide, 36 in deep, 4 in pipe, 6 in bedding, the spoil is 111.04 cu ft (4.11 cu yd), or 18.5% of the excavation. It is the pipe displacement plus the bedding volume. If the specification requires imported select backfill instead of returning the native soil, all 22.22 cu yd of excavation becomes spoil. Spoil swells 15–30% when dug, so the loose volume on the truck is larger than the bank volume.
Wide enough to lay and bed the pipe and compact around it: the pipe outside diameter plus about 12 in on each side is the usual minimum, and many specifications call for the pipe OD plus 18–24 in total. A 4 in pipe (4.5 in OD) in a 24 in trench has nearly 10 in of working room on each side; an 8 in pipe in the same trench has under 8 in, which is tight for compaction. Going wider costs excavation; every extra 6 in of width on a 100 ft, 3 ft deep trench adds 150 cu ft (5.56 cu yd) of digging, so the width is a balance between working room and spoil.
Deep enough for the cover the pipe needs: water mains are typically 4–6 ft deep to get below the frost line, sewer mains 6–20 ft depending on the slope they must hold, storm drains 3–8 ft, and gas lines at least 24 in of cover. The depth in this calculator is the total trench depth from the surface to the bottom of the bedding. Any trench 5 ft or deeper needs a protective system under OSHA Subpart P, sloping, benching, shoring or a trench box, which widens the excavation beyond the rectangular volume calculated here.
Converters to use with the Pipe Trench Volume Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
Volume, Area & UnitsFlow Rate Converter1 GPM = 3.785 L/min, both directions.
Volume, Area & UnitsGallons to Cubic Feet Converter7.48 gallons per cubic foot: tanks and ponds.
Slope & MeasurementDrainage Slope Converter (Inches per Foot to Percent)1/4 in per foot = 2.08%, plus total drop.
Slope & MeasurementFeet & Inches to Decimal Feet Converter5 ft 6 in = 5.5 ft, both directions.
Slope & MeasurementDecimal Inches to Fraction ConverterTurn 0.6875 in into 11/16 in and back.More plumbing calculators
PlumbingExpansion Tank CalculatorAn expansion tank calculator that sizes a thermal expansion tank the way the manufacturers size it: first work out how much the water grows when heated, then how much of the tank is free to take it, and divide one by the other. Enter the water heater size, the cold and hot temperatures, and the precharge, system and maximum pressures, and get the expansion volume, the acceptance factor, the minimum tank volume and the next standard tank size. Plus a precharge check against the system pressure.
PlumbingSump Pump Size CalculatorThis sump pump size calculator sizes the pump from the water that actually arrives, not from a guess at the shelf. Enter the drainage area and the design rainfall, and get the inflow in gallons per minute, the pump size with a 1.5x safety factor, the real capacity at your discharge head, the basin volume and how often the pump will cycle. A pump that is too small floods the basement, and one that is too big short-cycles itself to death.
PlumbingBooster Pump CalculatorThis booster pump calculator sizes a booster pump from the pressure you have and the pressure the top fixture needs. Enter the height of the highest fixture, the supply pressure at the street, the residual pressure the fixture needs and the peak flow, and get static head, friction loss, total pressure required, the boost the pump must add, total dynamic head and horsepower. You get the pump that delivers it, not just a pressure number.
PlumbingWater Pressure CalculatorThis water pressure calculator finds the pressure at the tap, where it matters, not at the meter, where it is always higher. Enter the supply pressure, how high the fixture sits above the supply, the pipe run and the flow, and get the elevation loss, the friction loss, the pressure that actually arrives and a diagnosis: low, marginal, good or too high, with the fix for each cause.
PlumbingPump Head CalculatorThis pump head calculator finds the total dynamic head of any pump, well, sump, circulator, transfer or booster, and the duty point to read off the pump curve. Enter the suction lift, the discharge lift, the pipe run, the flow and the discharge pressure, and get static head, friction head, pressure head and velocity head, the TDH in feet and psi, and the horsepower.
PlumbingFriction Loss CalculatorThis friction loss calculator finds the friction loss of a pipe run, not just the straight pipe, but the fittings too. Enter the length, the pipe size and material, the flow and the fittings, and get the loss per 100 ft, the straight-pipe loss, the fittings equivalent length and their loss, the total loss in psi and in feet of head, and a velocity check. The fittings on a real run can add a fifth of the loss.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.