Materials & Quantities

Trench Excavation & Backfill Volume Calculator

Estimate the total excavated volume and the loose backfill material needed to fill a pipe trench.

Loose backfill material needed: 50.9 yd³ for Trench Length 165 ft, Trench Width 24 in and Trench Depth 4 ft, the page's opening figures; on the metric page, 50 m, 60 cm and 1.2 m give 37.3 m³ (loose). Sources are cited below.

  • Answers as you type
  • 1 source cited
  • Calculated in your browser
SettingsSettings for this calculationUS
Market
Imperial · sales tax
The total length of the trench.

Centre to centre of the structures at each end — a manhole, a chamber, a building face — measured along the pipe run rather than as the crow flies. Bends add length; a run that doglegs round an obstruction is longer than the plan dimension between its ends. If the trench changes depth or width along its length, work it in sections: an average depth under-counts the deep end, which is where the volume is.

The width of the trench.

Typically the pipe diameter plus 12-18 in of working clearance on each side.

The depth of the trench.

Depends on frost line, pipe type, and local code requirements.

The outer diameter of the pipe being laid; 0 for a trench with no pipe.

Its volume is subtracted from the backfill needed, since the pipe occupies space in the trench. Enter 0 for a trench with nothing in it — a footing trench, or the fill above a footing — and nothing is deducted.

Depth of bedding material under the pipe; 0 if the pipe sits on the trench bottom.

The granular bed the pipe is laid on, from the trench bottom to the underside of the pipe — commonly 100 to 150 mm (4 to 6 in), deeper in rock, and set by the pipe maker or the utility's specification. With this or the cover above set above 0, the bed, the sides of the pipe and the cover over it become their own row, and come out of the backfill.

Depth of the same bedding material over the top of the pipe; 0 for none.

The selected fill carried over the crown before ordinary backfill starts — often 150 to 300 mm (6 to 12 in). The bedding row is the full trench width from the trench bottom to this depth over the crown, less the pipe itself; everything above it is backfill.

Extra loose material needed to achieve full compaction in the void.

15-20% is common for granular backfill compacted in lifts.

Loose backfill material needed

50.9 yd³

Medium confidence

Assumes the excavated soil itself isn't reused as backfill (e.g. importing clean granular fill) — if reusing native soil, account for its own swell factor separately.

Excavation volume (the depth entered)
48.89 yd³
Pipe volume (subtracted)
4.6 yd³
Compacted backfill void
44.29 yd³

Formula with your numbers

  1. Work out the excavation × × = 48.89 yd³
  2. Take out the pipe48.89 yd³ − 4.6 yd³ (and any bedding zone) = 44.29 yd³
  3. Add the loose-volume allowance44.29 yd³ + % = 50.9 yd³
Then change the inputs to see how far the answer moves.

Show calculation logic

How this was calculated

Formula source(s)

  • Backfill volume = trench excavation volume minus the pipe's own volume, minus any bedding and surround zone (trench width x (bed below + pipe diameter + cover above) x length, less the pipe it holds); loose material ordered accounts for the extra volume lost when compacting loose fill back into a denser state

Inputs used

Trench Length
165 ft
Trench Width
24 in
Trench Depth
4 ft
Pipe Diameter
11.75 in
Bedding Below the Pipe
0 in
Surround Cover Above the Pipe
0 in
Compaction Loose-Volume Factor (%)
15

Intermediate steps

Excavation volume (the depth entered)
48.89 yd³
Pipe volume (subtracted)
4.6 yd³
Compacted backfill void
44.29 yd³
Final result50.93 yd³

Confidence note: Assumes the excavated soil itself isn't reused as backfill (e.g. importing clean granular fill) — if reusing native soil, account for its own swell factor separately.

What this calculation does not cover

  • The trench is modelled as a plain rectangular prism — vertical faces, one width and one depth over the whole run. Battered or benched sides, the extra width a trench box needs, over-break outside the drawn line, and a bottom that falls with the pipe's gradient are all outside it. A run cut back to a safe slope holds considerably more than this figure, and the shortfall rises with the square of the depth rather than in proportion to it.
  • This is a quantity take-off, not an excavation safety assessment. Nothing here classifies the soil, checks the depth against sloping, benching or shoring requirements, or sizes a protective system — that comes from a competent person on site, and past the depths the rules set, from an engineer.
  • Only the single pipe you enter is deducted. A second pipe or duct sharing the trench, cable bundles, manholes, chambers, valve boxes, thrust blocks and concrete surround all displace backfill and are not subtracted. No check is made that the pipe fits the trench you described either: where its volume exceeds the excavation, the answer is floored at zero rather than reported as impossible geometry.
  • At most two materials: a bedding and surround zone when you enter a bed or a cover, and one backfill above it at one flat percentage. The bedding row is an in-place volume across the full trench width, capped at the trench depth, with no compaction or waste allowance, so add your own for a graded bedding that is compacted. Marker tape or protective tiles, and the sub-base, blacktop or topsoil at the surface are further materials in further thicknesses and are not split out. The percentage is a loose-volume allowance on the backfill and nothing else — it is not a density or Proctor specification, and it says nothing about lift thickness or how many passes the plant makes.
  • Nothing is said about the spoil. The excavation row is a bank volume measured in place, not the loose volume that leaves in the truck, and the calculation does not judge whether the arisings can go back, how much of the void they would fill, or what has to be carted away. Rock, groundwater and dewatering, and over-excavation to remove unsuitable ground are all excluded.

Estimated cost — your price

This site holds no price list for this material — local prices vary too much to publish honestly. Enter your supplier's price and the result is costed with it.

The pipe is drawn to scale inside the trench. Backfill is everything else in the section, which is why the pipe diameter changes the answer at all.

Perforated pipe — 1′Backfill4′2′1′ 8″

Part of bigger jobs

This trade is one line of several job takeoffs. Run the whole job and every other trade comes back with it, off the same measurements.

Or plan the space itself: measure it once, doors and windows included, and this figure comes back worked out on that space, with what goes with it.

Computed in your browser — nothing you enter is uploaded. Presented in US customary units and US trade terminology. Where a formula follows a published standard, that standard and its edition are cited beside it on this page; where none governs, the page says so. Local amendments override model codes — verify against the code in force where you build.

Sources checked 2026-09-26 · 5 test vectors · v1.1.0

Regulatory standards & verification citations1
  1. Backfill volume = trench excavation volume minus the pipe's own volume, minus any bedding and surround zone (trench width x (bed below + pipe diameter + cover above) x length, less the pipe it holds); loose material ordered accounts for the extra volume lost when compacting loose fill back into a denser state
Cite this page

Your workspace

Most jobs need more than one number. Add the calculators you need next and they open right here, underneath this one — your figures stay on screen and nothing is lost to a page change.

Tools and safety for this job

To excavate by hand and excavate by machine. Generic types, no brands, no prices.

Protection this work requires

  • Boards, blocks and bagged material cause most lasting back injuries on small sites: two people or a lifter for full sheets, and never a bag on one shoulder up a ladder.
  • Digging blind strikes gas, water and power every day: get the plans, scan with a cable avoidance tool, and hand-dig trial holes over anything you find.

Excavate by machine: Operating an excavator is a trained and, in most markets, formally certified activity, and hiring one does not include that training. Underground services must be traced before any machine dig. This list covers the tools, not the competence.

Show the 6 tools this job needs

Essential

  • Cable and pipe detector

  • Shovel and spade

  • Tape measure

  • Wheelbarrow

Recommended

  • Spirit level

  • String line and pins

what each groundwork tool is for, and the spec that decides which to buy where one does.

Now that you have the number

These guides cover the work this quantity is for — the first ones run this calculator inside the section that raises the question.

  • A manhole inside the footprint is a consent question before it is a building one: whose pipe it is, whether it moves, and who signs it off.

  • Most strikes happen on holes too small to feel like excavation — so here is the records, scan, trial hole and machine-margin sequence in full.

  • Draining a Waterlogged Lawnuses this calculator

    Standing water is either a pan you can break or a table you must drain to. Separate the two, then set laterals, fall and an outfall you may legally use.

Still deciding? Backfill Volume vs Compaction Lifts — the factors that actually differ, with no invented prices.

Worked examples: Garden room slab — step 1 of 9 · Block retaining wall — step 9 of 11

Worked for one job: A water service trench, in loose backfill

How to calculate trench excavation & backfill volume in 3 steps

  1. Work out the excavationMultiply the trench's length along the run by its width and its depth for the volume dug, measured in place.
  2. Take out the pipeSubtract the pipe's volume, π × radius² × length, and any bedding and surround zone you entered, for the space the backfill fills.
  3. Add the loose-volume allowanceAdd the compaction allowance, since loose fill shrinks when it is compacted in lifts, and order that loose volume.

Loose backfill material needed by trench length

Page defaults, not your figures above.

Trench LengthLoose backfill material needed (yd³)
100 ft29.8
150 ft44.7
200 ft59.5
250 ft74.4
300 ft89.3

Key facts

  • OSHA 29 CFR 1926.652(a)(1) requires a protective system against cave-ins in an excavation unless it is entirely in stable rock, or under 5 ft (1.52 m) deep with no sign of cave-in found by a competent person. (29 CFR 1926.652(a)(1))
  • OSHA 29 CFR 1926.651(c)(2) requires a stairway, ladder, ramp or other safe exit in trenches 4 ft (1.22 m) deep or more, within 25 ft (7.62 m) of lateral travel. (29 CFR 1926.651(c)(2))
  • OSHA 29 CFR 1926.651(j)(2) requires spoil, materials and equipment to be kept at least 2 ft (0.61 m) from the edge of an excavation. (29 CFR 1926.651(j)(2))
  • Trench backfill is the excavation volume less the pipe and any bedding and surround zone, and more loose fill is ordered than that void because loose fill compacts into a denser state. (Craft Quantities trench backfill formula)

Frequently asked questions

Why subtract the pipe's volume?
The pipe itself occupies space in the trench — backfill only needs to fill the remaining void around and above it.
Why order more loose material than the void volume?
Loose material has more air gaps between particles than the same material once compacted — you need extra loose volume to end up with a properly densified fill after compaction.
Does this include bedding material below the pipe?
Only if you ask for it. Enter the bed depth under the pipe and the cover over its crown, and the bedding row gives that zone — the full trench width from the bottom to the cover, less the pipe — as an in-place volume, and takes it out of the backfill. Leave both at 0 and the whole void is treated as one backfill, as it would be where the same material goes in throughout.
Can I use it for a trench with no pipe?
Yes. Set the pipe diameter to 0 and nothing is deducted. The excavation row is then the length x width x depth you entered, which is only the whole dig if the depth entered is the whole trench — fed the depth above a footing, it is the fill space above the footing, not the excavation.
How much backfill does the opening 50 m trench take?
About 37.3 m³ of loose fill for the opening 50 m trench, 0.6 m wide and 1.2 m deep, round a 300 mm pipe: 36 m³ dug, 3.53 m³ of pipe taken out, 32.5 m³ of void to fill, plus the 15% loose-volume allowance. The US opening, a 165 ft trench 24 in wide and 4 ft deep round its pipe, takes about 50.9 yd³. Bedding and surround, when you enter them, come out of the backfill as their own row.
When does a trench need shoring or a trench box?
Under OSHA 29 CFR 1926.652(a)(1), a trench 5 ft (1.52 m) deep or more needs a protective system against cave-ins, sloping, shoring or a shield, unless it is entirely in stable rock; a shallower one needs one too where a competent person finds signs of a possible cave-in. This page sizes no protective system and does not model sloped sides, which hold considerably more spoil and backfill than the vertical-sided figure; check with your local OSHA office or building department.
Where does the spoil go, and how much is there?
OSHA 29 CFR 1926.651(j)(2) keeps spoil, materials and equipment at least 2 ft (0.61 m) back from the trench edge, and the pile is bigger than the excavation row: that row is the bank volume in place, and dug soil bulks up once it is loosened. The page does not judge whether the arisings can go back in or how much has to be carted away; work that from the soil's own swell figure.
Preliminary estimate, not certified engineering. This tool produces an indicative quantity calculation for planning purposes only — it is not a certified structural analysis, a guaranteed material takeoff, or a substitute for building department approval. Always verify measurements on-site and have a licensed contractor or structural engineer review any load-bearing, code-sensitive, or safety-critical work before purchasing materials or starting construction. Spotted an arithmetic or standards error? Report it to contact@craftquantities.com with your inputs — a confirmed fix gets a permanent check of its own, so the same mistake cannot come back.