# Trench Excavation & Backfill Volume Calculator

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

Page: https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.1.0, sources checked 2026-09-26, 5 published test vectors.

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.

## 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)](https://www.law.cornell.edu/cfr/text/29/1926.652): 29 CFR 1926.652, Requirements for protective systems (Legal Information Institute, Cornell Law School))
- 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)](https://www.law.cornell.edu/cfr/text/29/1926.651): 29 CFR 1926.651, Specific excavation requirements (Legal Information Institute, Cornell Law School))
- 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)](https://www.law.cornell.edu/cfr/text/29/1926.651): 29 CFR 1926.651, Specific excavation requirements (Legal Information Institute, Cornell Law School))
- 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](https://craftquantities.com/methodology/bulking-and-swell/): 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

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Trench Length | `trenchLength` | 50 m | 165 ft | mm, cm, m, in, ft, yd; range 0.01–1000 m |
| Trench Width | `trenchWidth` | 60 cm | 24 in | mm, cm, m, in, ft, yd; range 0.01–3 m |
| Trench Depth | `trenchDepth` | 1.2 m | 4 ft | mm, cm, m, in, ft, yd; range 0.01–6 m |
| Pipe Diameter | `pipeDiameter` | 30 cm | 11.75 in | mm, cm, m, in, ft, yd; range 0–1.5 m |
| Bedding Below the Pipe | `beddingBelow` | 0 cm | 0 in | mm, cm, m, in, ft, yd; range 0–0.6 m |
| Surround Cover Above the Pipe | `surroundAbove` | 0 cm | 0 in | mm, cm, m, in, ft, yd; range 0–0.6 m |
| Compaction Loose-Volume Factor (%) | `compactionFactorPercent` | 15 | 15 | range 5–30 |

- **Trench Length**: The total length of the trench.
- **Trench Width**: The width of the trench.
- **Trench Depth**: The depth of the trench.
- **Pipe Diameter**: The outer diameter of the pipe being laid; 0 for a trench with no pipe.
- **Bedding Below the Pipe**: Depth of bedding material under the pipe; 0 if the pipe sits on the trench bottom.
- **Surround Cover Above the Pipe**: Depth of the same bedding material over the top of the pipe; 0 for none.
- **Compaction Loose-Volume Factor (%)**: Extra loose material needed to achieve full compaction in the void.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Loose backfill material needed** | 37.3 m³ (loose) |
| Excavation volume (the depth entered) | 36 m³ |
| Pipe volume (subtracted) | 3.53 m³ |
| Compacted backfill void | 32.47 m³ |

### US customary

| Result | Value |
|---|---|
| **Loose backfill material needed** | 50.9 yd³ |
| Excavation volume (the depth entered) | 48.89 yd³ |
| Pipe volume (subtracted) | 4.6 yd³ |
| Compacted backfill void | 44.29 yd³ |

- Confidence: medium.

## Formula with your numbers

1. **Work out the excavation**: 165 ft × 24 in × 4 ft = 48.89 yd³
2. **Take out the pipe**: 48.89 yd³ − 4.6 yd³ (and any bedding zone) = 44.29 yd³
3. **Add the loose-volume allowance**: 44.29 yd³ + 15% = 50.9 yd³

Worked on the figures the page opens on; the page re-works each step on the reader's own.

## How to calculate trench excavation & backfill volume in 3 steps

1. **Work out the excavation**: Multiply the trench's length along the run by its width and its depth for the volume dug, measured in place.
2. **Take out the pipe**: Subtract 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 allowance**: Add the compaction allowance, since loose fill shrinks when it is compacted in lifts, and order that loose volume.

## How it is worked out

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.

The working the page shows, in order: Excavation volume (the depth entered); Pipe volume (subtracted); Compacted backfill void; then loose backfill material needed.

The method, derived in full:

- [Bulking, Swell and the Three Volumes of One Soil](https://craftquantities.com/methodology/bulking-and-swell/): Why a hundred cubic metres dug out becomes a hundred and twenty-five to cart away and ninety when it is put back, and why a cut-and-fill balance struck in the wrong state does not balance.

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.

A professional must decide:

- 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.

## Sources

As the calculator cites them (sources checked 2026-09-26):

- 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

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**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.

## Related calculators

- [Gravel Driveway Calculator](https://craftquantities.com/calculators/auto-utility/gravel-driveway-calculator/)
- [Pipe Volume Calculator](https://craftquantities.com/calculators/plumbing-hvac/pipe-volume-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/trench-excavation-backfill-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/trench-excavation-backfill-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `trench-excavation-backfill-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/trench-excavation-backfill-calculator.json

---
Source: https://craftquantities.com/calculators/materials-quantities/trench-excavation-backfill-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
