Backfill Calculator

Loose backfill to order24.92 cu yd
Excavated volume22.22 cu yd
Pipe displacement1.45 cu yd
Compacted backfill in place20.77 cu yd
How this was calculated
  1. Trench volume = 50 x 3 x 4 ft = 600 cubic ft = 22.22 cubic yards.
  2. The pipe displaces pi x (0.5 ft radius)^2 x 50 ft = 39.3 cubic ft = 1.45 cubic yards, which needs no fill.
  3. Net compacted backfill = 22.22 - 1.45 = 20.77 cubic yards in place.
  4. Loose material swells by 20% once dug: order 20.77 x 1.20 = 24.92 cubic yards to end up with enough after compaction.

A backfill calculator tells you how much material you need to fill a trench after accounting for everything buried in it. Start with the trench itself: length x width x depth, converted at 27 cubic feet per cubic yard. Anything buried displaces fill, so a 12-inch pipe, for example, displaces pi x (0.5 ft) squared x length, or 1.45 cubic yards over a 50-foot run. Loose soil also swells, meaning excavated material takes up 10 to 30 percent more room than it did in the ground, so orders are grossed up by the swell factor. In the worked example, a 50 x 3 x 4 foot trench is 22.22 cubic yards; net of the pipe, 20.77 cubic yards compacted, and 24.92 cubic yards loose at 20 percent swell.

The underlying method is the accepted standard because it respects the key distinction every job depends on: compacted-in-place volume is what the trench swallows, while loose volume is what the truck must carry. Confusing the two is the classic under-order. Imported fill is specified when native soil is unsuitable, such as clay lumps, rock, or contamination, but the same net-plus-swell math sizes the order. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every figure before you place the order.

Worked examples

Utility trench with 12-inch pipe

Primary result: 24.92 cu yd — A 50 ft trench holds 22.22 cu yd; after the pipe and 20% swell, order 24.92 cu yd. (50 · 3 · 4 · 12 · 20)

Loose backfill to order24.92 cu yd
Excavated volume22.22 cu yd
Pipe displacement1.45 cu yd
Compacted backfill in place20.77 cu yd

Plain trench, no pipe

Primary result: 23.00 cu yd — No pipe and 15% swell: 23.00 cu yd of loose fill for a 20.00 cu yd trench. (90 · 2 · 3 · 0 · 15)

Loose backfill to order23.00 cu yd
Excavated volume20.00 cu yd
Pipe displacement0.00 cu yd
Compacted backfill in place20.00 cu yd

Big pipe, tight trench

Primary result: 23.41 cu yd — A 24-inch pipe displaces 3.49 cu yd — order 23.41 cu yd loose. (30 · 4 · 5 · 24 · 25)

Loose backfill to order23.41 cu yd
Excavated volume22.22 cu yd
Pipe displacement3.49 cu yd
Compacted backfill in place18.73 cu yd

How backfill is calculated

A backfill calculator starts with the trench itself. Multiply length by width by depth to get the raw volume in cubic feet, then divide by 27 to convert to cubic yards. That number represents the total void you need to fill — but it is not the amount of material you order, because anything buried in the trench takes up space that would otherwise be filled with soil.

Anything buried in the trench displaces fill. A 12-inch pipe, for example, displaces pi multiplied by the square of its radius (0.5 feet) multiplied by the length of the run. Over a 50-foot run, that pipe displaces 1.45 cubic yards. Subtract that figure from the trench volume to get the compacted-in-place volume — the amount of material the trench actually swallows once the pipe is in position. In our worked example, a 50 by 3 by 4 foot trench holds 22.22 cubic yards total; net of the 12-inch pipe, it needs 20.77 cubic yards of compacted fill.

Loose soil swells, though. Excavated material takes up 10 to 30 percent more room than it did in the ground, so orders are grossed up by the swell factor to account for the extra air between particles. Applying a 20 percent swell to the 20.77 compacted cubic yards gives 24.92 cubic yards of loose material. That loose volume is what the truck must carry to the site. Confusing compacted-in-place volume with loose volume is the classic under-order: the trench swallows 20.77 cubic yards, but the truck needs to deliver 24.92.

The same three-step calculation applies when there is no pipe at all. A bare trench still starts as length times width times depth, divided by 27. With nothing buried inside, there is no displacement to subtract, so the compacted-in-place volume equals the full trench volume. Multiply by the swell factor and you have the loose volume to order. Imported fill is specified when native soil is unsuitable — clay lumps, rock, contamination — and the same net-plus-swell math sizes the order, whether the material comes from down the street or a quarry across the county.

Compacted-in-place volume is what the trench swallows; loose volume is what the truck must carry. Mixing them up is the most common reason a job comes up short.

Swell and compaction explained

Soil changes volume depending on its state, and a backfill calculator has to account for all three. Bank volume is the soil as it sits undisturbed in the ground — the literal hole you dug, measured as length x width x depth and converted at 27 cubic feet per cubic yard. Loose volume is that same soil after excavation, when it has been broken up and loaded into a truck. Compacted volume is the amount of fill the trench ultimately swallows once the material is placed and tamped down. Confusing compacted volume with loose volume is the classic under-order: the trench may only need 20 cubic yards compacted, but the truck has to carry considerably more because the soil is fluffy and aerated.

When soil is excavated it swells — the material takes up 10-30% more room than it did in the ground, so orders are grossed up by the swell factor. Typical swell depends on soil type. Sand tends to swell 10-15%, while clay can swell 20-40%. A backfill calculator applies the swell factor to the compacted volume to determine how many loose yards to buy or haul. If you skip this step, you will run short on delivery day because a truck measured in loose yards cannot carry enough to meet a compacted-yard target.

Compaction reverses part of that swell. Once loose fill is placed and tamped, it shrinks back down — a reduction called shrink. The compacted-in-place volume is what the trench actually swallows, so the math runs: start with the trench volume, subtract anything buried in the trench that displaces fill, then add the swell factor to get the loose volume to order. A 50x3x4 ft trench is 22.22 cu yd. A 12-inch pipe running through it displaces pi x (0.5 ft) squared x length — about 1.45 cu yd over a 50 ft run. Net of the pipe, the trench needs 20.77 cu yd compacted. At 20% swell, the loose volume to order is 24.92 cu yd.

The same logic applies when native soil is unsuitable and imported fill must be brought in. Clay lumps, rock, or contamination can render excavated material unfit for reuse as backfill. When that happens, imported fill is specified and the same net-plus-swell math sizes the order: calculate the compacted volume the trench requires, then gross up by the swell factor of the imported material to find the loose yards the truck must deliver.

What displaces fill

A backfill calculator has to account for everything buried in the trench, because every pipe, conduit, bedding layer, and structure displaces fill that would otherwise go back into the hole. Backfill volume starts from the trench itself: length x width x depth, converted at 27 cubic feet per cubic yard. Anything buried in the trench then subtracts from that gross volume. A 12-inch pipe, for example, displaces pi x (0.5 ft) squared x length, which works out to 1.45 cubic yards over a 50 ft run. Conduits and smaller utilities are computed the same way using their actual outside diameter.

Bedding stone adds a wrinkle because it occupies trench space that native backfill cannot. When bedding is specified, it wraps around the pipe in a defined layer, so you calculate its volume separately from the general backfill above it. The order of operations matters: trench volume minus pipe displacement minus bedding volume equals the space left for fill. If the bedding layer changes during construction, the remaining fill quantity changes with it.

The worked example shows the full chain. A 50 x 3 x 4 ft trench is 22.22 cubic yards. Net of the pipe, 20.77 cubic yards of compacted fill is needed. But loose soil swells: excavated material takes up 10 to 30 percent more room than it did in the ground, so orders are grossed up by the swell factor. At 20 percent swell, that 20.77 cubic yards becomes 24.92 cubic yards loose. Compacted-in-place volume is what the trench swallows; loose volume is what the truck must carry. Confusing the two is the classic under-order.

Imported fill is specified when native soil is unsuitable, whether due to clay lumps, rock, or contamination. The same net-plus-swell math sizes the order: figure the compacted volume the trench requires, then apply the swell factor to determine how much loose material to buy and haul. Pipes, conduits, and bedding all reduce that net volume before the swell factor is applied.

  • Trench volume: length x width x depth, divided by 27 for cubic yards
  • Pipe displacement: pi x (radius in feet) squared x length
  • Subtract pipe and bedding volumes before applying the swell factor
  • Compacted volume is what fits in the trench; loose volume is what the truck delivers
Always subtract buried objects first, then apply the swell factor. Applying swell to a volume that still includes the pipe will overstate the order.

Ordering without the classic mistakes

A backfill calculator removes the guesswork from ordering, but only if you feed it the right numbers and then apply them to how material is actually sold and delivered. The first and most common mistake is confusing compacted-in-place volume with loose volume. Compacted-in-place volume is what the trench swallows; loose volume is what the truck must carry. If you order the compacted number, you will come up short every time, because loose soil swells. Excavated material takes up 10 to 30 percent more room than it did in the ground, so orders must be grossed up by the swell factor.

The worked example makes this clear. A trench measuring 50 feet long by 3 feet wide by 4 feet deep is 22.22 cubic yards, since volume in cubic feet divided by 27 gives cubic yards. Anything buried in the trench displaces fill, and a 12-inch pipe displaces pi times 0.5 feet squared times the length, which works out to 1.45 cubic yards over a 50-foot run. Net of the pipe, that trench needs 20.77 cubic yards of compacted fill. Apply a 20 percent swell factor and the truck must carry 24.92 cubic yards of loose material. Order the 20.77 figure and you will be staring at an empty trench with work still to finish.

Settlement is the second mistake people make. Even properly compacted backfill settles over the first few seasons, and a trench that finishes flush on day one will often sit slightly below grade by the following year. Allowing a small amount of settlement overfill at the surface, typically a modest crown of a couple inches, keeps the finished grade where it belongs after the material has done its settling. Skip this step and you end up with a low spot that collects water or requires a return trip with more material.

The third mistake is ignoring how material is delivered. Fill arrives by the truckload, and a standard delivery truck carries a set number of yards. If your adjusted order is 24.92 cubic yards, you are not ordering 24.92 yards. You are ordering 25, or rounding to whatever the next full truck size happens to be. This is where the math meets the real world, and it is why one extra yard is almost always cheaper than a second delivery. A single yard of fill costs a fraction of what a second truck trip costs in fuel, time, and delivery fees. Order exactly what you need and you risk a shortage of a fraction of a yard that still requires a full second delivery to cover. Round up, accept the small surplus, and keep the spare material for patching, settlement, or the next project on the list.

Imported fill follows the same logic. When native soil is unsuitable due to clay lumps, rock, or contamination, imported fill is specified instead, and the same net-plus-swell math sizes the order. The source of the material changes, but the ordering discipline does not.

Order loose volume, not compacted volume. A 50x3x4 ft trench with a 12-inch pipe needs 20.77 cu yd compacted but 24.92 cu yd loose at 20% swell. Round up to the next truck size and keep the surplus.

FAQs

How much backfill do I need for a trench?

Calculate the trench volume minus whatever the pipe displaces, then gross up by the swell factor. For example, 22.22 cubic yards excavated leaves 20.77 net after the pipe, and at 20% swell you need 24.92 loose cubic yards to order.

What is a swell factor?

The swell factor is the percentage loose soil expands when dug — 15-25% is typical. It converts the compacted volume the trench needs into the loose volume you must order, so you do not come up short on delivery day.

Does the pipe really displace much fill?

More than intuition says. A 24-inch pipe over 30 feet displaces 3.49 cubic yards — a small truckload that does not need ordering. Skipping this step means ordering too much and paying for material you cannot place.

What if I am backfilling with the dug soil?

The same math applies in reverse. Surplus after swell and compaction is the spoil to haul away — expect a surplus, not a shortage. Because excavated soil expands, you will have more loose material than the trench can hold.

Bank, loose and compacted yards — what is the difference?

A bank yard is in the ground, a loose yard is in the truck (bigger), and a compacted yard is in place (smaller again). Quotes and orders must name which one you mean, or the volumes will not match across the project.

How deep should bedding under the pipe be?

Typically 4-6 inches of bedding stone or sand under and around the pipe. Its volume displaces backfill too and belongs in the calculation, so subtract the bedding as well as the pipe when figuring how much fill to order.

Sources

Related calculators

Trench Volume Calculator
Excavation and backfill volumes for a trench in cubic yards: gross dig, pipe displacement and net backfill, with the swell factor called out.
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.
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.