Trench Volume Calculator

Excavated volume55.56 cu yd
Excavated volume1,500 cu ft
Pipe displacement2.91 cu yd
Backfill needed52.65 cu yd
How this was calculated
  1. Gross excavation = length x width x depth = 100.00 x 3.00 x 5.00 = 1,500 cubic feet.
  2. In cubic yards: 1,500 / 27 = 55.56 cu yd of spoil to haul away, stockpile or reuse on site.
  3. The 12-inch pipe displaces pi x (0.50 ft)^2 x 100.00 ft = 78.54 cu ft = 2.91 cu yd of that space.
  4. Backfill needed = 55.56 - 2.91 = 52.65 cu yd, before any compaction allowance.
  5. Excavated soil bulks up by roughly 20 to 30% when dug (the swell factor), and compacted backfill shrinks back — order and haul with that swing in mind, not with the neat in-ground number alone.

A trench volume calculator takes the three basic dimensions you measure on site — length, width, and depth — and returns the volume of your excavation. Multiply those three figures and you have cubic feet; divide by 27 and you have cubic yards, the unit trucks and yards bill in. But the real job is rarely that simple. A pipe in the trench displaces its own volume — pi times radius squared times length — which comes off the backfill you must bring in. Dug soil bulks, too: the swell factor for common earth is roughly 20 to 30 percent, so a 55 cubic yard in-ground trench can mean 66 to 72 loose cubic yards to haul. Compacted backfill shrinks back below its loose volume, so ordering exactly the in-ground figure is the classic way to run short. And bedding and haunching material — sand or fine gravel around the pipe — is extra volume on top of native backfill in most specifications.

The length-times-width-times-depth method is the accepted standard because it maps directly to how excavation work is priced, hauled, and inspected. Every adjustment that matters on a real job — pipe displacement, soil swell, compaction shrinkage, and bedding material — layers on top of that base figure in a known, documented way. Trench safety is not optional arithmetic either: OSHA requires protective systems (sloping, benching, shoring, or shields) in trenches 5 ft or deeper. This page shows the formula, step-by-step workings, worked examples, and sources so you can check every number before you order trucks or dig a foot deeper.

Worked examples

A piped utility trench

Primary result: 55.56 cu yd — 100 ft of trench moves 55.56 cu yd, and the 12-inch pipe hands 2.91 cu yd back. (100 · 3 · 5 · 12)

Excavated volume55.56 cu yd
Excavated volume1,500 cu ft
Pipe displacement2.91 cu yd
Backfill needed52.65 cu yd

A plain footing trench

Primary result: 14.81 cu yd — no pipe, so backfill equals the full 14.81 cu yd dug. (50 · 2 · 4 · 0)

Excavated volume14.81 cu yd
Excavated volume400 cu ft
Pipe displacement0.00 cu yd
Backfill needed14.81 cu yd

A long, wide trench

Primary result: 177.78 cu yd — 200 ft at 4 by 6 ft moves 177.78 cu yd — a serious haul-away job. (200 · 4 · 6 · 24)

Excavated volume177.78 cu yd
Excavated volume4,800 cu ft
Pipe displacement23.27 cu yd
Backfill needed154.51 cu yd

How trench volume is calculated

A trench volume calculator starts with the basic box formula: length x width x depth. Multiply those three dimensions, all in feet, and you get cubic feet. Because trucks and yards bill in cubic yards, divide that cubic-foot figure by 27 to convert. A trench 100 ft long, 3 ft wide, and 4 ft deep yields 1,200 cubic feet, which divided by 27 gives about 44.4 cubic yards of in-ground volume.

When a pipe sits in the trench, it displaces its own volume, so that amount comes off the backfill you must bring in. The pipe's volume is pi x radius^2 x length. For a 100 ft run of 12-inch pipe (radius of 0.5 ft), that works out to pi x 0.25 x 100, or roughly 78.5 cubic feet — about 2.9 cubic yards. Subtracting that from the 44.4 cubic-yard trench figure leaves about 41.5 cubic yards of actual backfill needed to fill the void around the pipe.

Dug soil bulks up once it leaves the ground. The swell factor for common earth is roughly 20-30%, so a 55 cu yd in-ground trench can mean 66-72 loose cu yd to haul off-site. Running short works the other way: compacted backfill shrinks back below its loose volume, so ordering exactly the in-ground figure is the classic way to run short. Bedding and haunching material — sand or fine gravel placed around the pipe — is extra volume on top of native backfill in most specifications, so factor that in before placing orders.

  • In-ground volume: length x width x depth, in feet
  • Convert to cubic yards: divide cubic feet by 27
  • Subtract pipe volume: pi x radius^2 x length
  • Add swell for haul-off: common earth bulks 20-30%
  • Add bedding and haunching material per specification
Trench safety is not optional arithmetic: OSHA requires protective systems — sloping, benching, shoring, or shields — in trenches 5 ft or deeper.

Swell and compaction: why the neat number lies

A trench volume calculator gives you a clean number — length times width times depth, divided by 27 to convert cubic feet into the cubic yards that trucks and yards bill in. That figure is the bank volume: the exact space the soil occupied while it was still in the ground. The problem is that soil does not stay put in the same density once you dig it up, and it does not go back in the same way either. Three different volumes are in play here, and confusing them is the fastest way to order the wrong amount of material.

When you excavate common earth, it bulks up. The swell factor for typical soil runs roughly 20-30%, which means that 55 cubic yard in-ground trench can expand to 66-72 loose cubic yards sitting in the truck bed or the spoil pile. That is the volume you are hauling away and, in many jurisdictions, paying disposal fees on. A trench volume calculator that only reports the bank volume hides this spread entirely, so a crew that planned trucking around the neat 55 yard figure will be short on trucks, short on time, or both.

Compacted backfill shrinks back below its loose volume, but not necessarily all the way to the original bank volume. Ordering exactly the in-ground figure is the classic way to run short, because the material you bring in will settle and be compacted into a denser state than the loose pile it came from. If you need to fill that 55 cubic yard trench with imported material and you order 55 yards, you will be looking at a shallow trench before the job is done. Most experienced crews add a margin to account for compaction, and that margin depends on the material and the spec.

Two more volumes sit on top of the native backfill math. A pipe in the trench displaces its own volume — pi times the radius squared times the length — which comes off the backfill you must bring in, since that space is now occupied by the pipe itself. Bedding and haunching material, the sand or fine gravel packed around the pipe, is extra volume on top of native backfill in most specifications. These are not optional line items; they are part of the real material order, and skipping them in the initial calculation is how projects end up with a pile of native fill and no sand to put under the pipe.

Backfill, bedding and the pipe zone

A trench volume calculator gives you the total hole, but what goes back in is not just the dirt that came out. Most specifications call for a layer of bedding beneath the pipe, haunching material packed at its sides, and a cover depth above the pipe before native fill resumes. Bedding and haunching are typically sand or fine gravel, placed to support the pipe and distribute load. Because this material is extra volume on top of native backfill, you cannot simply subtract the pipe and assume the rest is reused soil.

Start with the trench volume: length times width times depth. Divide cubic feet by 27 for cubic yards, the unit trucks and yards bill in. A pipe in the trench displaces its own volume, which is pi times radius squared times length, and that amount comes off the backfill you must bring in. But the remaining space is not filled entirely with native soil. Bedding sits under the pipe, haunching fills the zone around its lower sides, and a specified cover depth sits above the pipe before native backfill resumes. Each of these zones may require a different material, ordered and placed separately.

Dug soil bulks when excavated. The swell factor for common earth is roughly 20 to 30 percent, so a 55 cubic yard in-ground trench can mean 66 to 72 loose cubic yards to haul. That swollen volume is what you see in the pile, not what fits back in the hole. Compacted backfill shrinks back below its loose volume, so ordering exactly the in-ground figure is the classic way to run short. When bedding, haunching, and cover material take up part of the trench, the native backfill portion is smaller still, and the imported material must be ordered on its own line.

Trench safety is not optional arithmetic. OSHA requires protective systems, including sloping, benching, shoring, or shields, in trenches 5 ft or deeper. Those systems can widen the cut and change the volume you calculate. Plan the excavation, the protective system, and the material zones together so the backfill order matches the actual hole, not a rough guess.

Trench safety in one section

Trench safety is not optional arithmetic: OSHA requires protective systems (sloping, benching, shoring or shields) in trenches 5 ft or deeper. If your trench hits that 5 ft mark, you must step back from a straight vertical cut and open the walls to a stable angle. The most common method is sloping, and the ratio you must use depends on the soil type your crew is digging through. Stable rock allows the steepest cut, Type A soil calls for a 3/4H:1V slope, Type B requires 1H:1V, and Type C — the least stable — demands 1.5H:1V. These ratios mean the trench opening grows wider as depth increases, which changes the amount of dirt you move and the space you need on site.

This is where the trench volume calculator on this page gives you the in-ground figure only. It computes length x width x depth, then divides cubic feet by 27 for cubic yards, the unit trucks and yards bill in. That math describes a rectangular box with vertical walls. A sloped trench is wider at the top than at the bottom, so its actual excavated volume is larger than the box this page computes. The deeper you go and the looser the soil, the more extra material you pull out beyond the simple rectangular calculation.

That extra volume has real cost consequences. Dug soil bulks: the swell factor for common earth is roughly 20-30%, so a 55 cu yd in-ground trench can mean 66-72 loose cu yd to haul. When you add sloped walls to the mix, you are increasing the in-ground figure before the swell factor even applies. More loose cubic yards mean more truckloads, more disposal fees, and more time on the job. A pipe in the trench displaces its own volume — pi x radius^2 x length — which comes off the backfill you must bring in, but bedding and haunching material (sand or fine gravel around the pipe) is extra volume on top of native backfill in most specifications.

Compacted backfill shrinks back below its loose volume; ordering exactly the in-ground figure is the classic way to run short. When safety sloping adds volume to the dig, the gap between what you pulled out and what you need to put back grows even wider. Plan your material orders around the sloped geometry, not the rectangular box, or you will be making a second delivery run before the job is done.

  • OSHA requires protective systems in trenches 5 ft or deeper
  • Sloping ratios by soil type: Stable rock — steepest allowed; Type A — 3/4H:1V; Type B — 1H:1V; Type C — 1.5H:1V
  • A sloped trench is wider at the top than at the bottom, so its volume exceeds the rectangular box this calculator computes
  • More excavated volume means more loose cubic yards after the 20-30% swell factor, which means more truckloads and higher haul costs
The trench volume calculator on this page gives you the in-ground rectangular figure. A sloped trench is larger than that box — plan materials and trucking around the sloped geometry, not the simple rectangle.

FAQs

How do I calculate trench volume?

Multiply length by width by depth for cubic feet, then divide by 27 for cubic yards. A 100 x 3 x 5 ft trench is 1,500 cu ft, which equals 55.56 cu yd. This gives you the neat in-ground volume of a vertical-sided trench.

How much backfill do I need after the pipe goes in?

Subtract the pipe's displacement: pi x (diameter/2)^2 x length. A 12-inch pipe in that trench displaces 2.91 cu yd, leaving 52.65 cu yd of backfill. This accounts for the space the pipe occupies so you order only what is needed.

What is the swell factor for trench soil?

Excavated earth bulks by roughly 20-30% when dug, with common earth around 25%. Haul and stockpile by the loose figure, not the in-ground one. This means a trench that holds 55.56 cu yd in the ground may expand to about 69 cu yd when loose.

Why do I run short if I order the exact volume?

Backfill compacts to less than its loose volume and some excavated material is wasted or unsuitable. Ordering the neat in-ground number with no allowance is the usual cause. You need extra material to make up for compaction and waste during the backfill process.

Does the trench shape change the volume?

Yes. Sloped or benched sides, required for safety in deep trenches, widen the top and increase the dig. This page computes the vertical-sided box; add the slope wedges for a sloped design. The added material from sloping can significantly raise the total volume.

How deep can a trench be without protection?

Under OSHA rules, trenches 5 ft or deeper need a protective system such as sloping, benching, shoring or a trench shield. Even shallower trenches need one in unstable soil. Always check soil conditions and follow safety standards before working in any excavation.

Sources

Related calculators

Soil Swell Calculator
Bank, loose and compacted earthwork volumes: how much dug soil swells for hauling and how far it shrinks when compacted back, by soil type.
Excavation Calculator
Bank and loose cubic yards for a dig, truck loads, and the weight of the spoil — with the swell factor that makes dug soil bigger than the hole.
Concrete Calculator
Concrete volume for a slab in cubic yards and m³, plus exactly how many 60 lb and 80 lb pre-mix bags — with and without 10% waste.