Backfill Calculator: Measure the Right Fill Volume Fast

A backfill calculator should measure only the refill zone above bedding and against the excavation wall, then subtract any pipe, footing, or structure volume; use the trench or foundation void dimensions, not the full dig, for the fill number. Measure the wrong zone and you overorder, underfill, or invite settlement that needs rework. We built this guide around the backfill formula, fill-material choices, and worked examples for trench and foundation backfill.

Backfill Calculator
Quick start:

Use the run length of the trench or gap you are backfilling.

Average inside width to be filled.

Use the average vertical depth that will actually be filled.

%

Adds extra material for compaction, spillage, and uneven conditions.

tons/yd³

Optional for tons. The source notes clean sand often plans near 1.3 tons per cubic yard loose.

—
Backfill volume (ft³) (ft³)
—
Backfill volume (yd³) (yd³)
—
Backfill to order (yd³)
—
Estimated material weight (tons)
Results update as you type.
Show the math

This is an estimate based on average fill dimensions and an added buffer; actual backfill needed can vary with trench shape, settlement, and compaction method.
Formula reviewed October 2026.

What does a backfill calculator measure?

A backfill calculator measures the void being refilled, not the whole excavation. For a prism-shaped refill zone, we calculate length × width × fill height, then divide by 27 to convert cubic feet to cubic yards. That is the backfill volume, and it is different from total trench cut volume.

Backfill volume versus total excavation volume

Backfill volume starts at the point where usable fill begins. For a utility trench, that usually means above bedding and haunching, not at the trench bottom. For a foundation, it usually means the wall zone around the footing and any drainage layer, not the footing cut itself.

This is where estimates go wrong most often. A full excavation may include working room, footings, drainage stone, pipe bedding, or forms. Backfill only covers the portion that actually returns to fill.

The length × width × fill height formula

The calculator formula is simple: fill cubic yards equals length times width times fill height divided by 27. Length, width, and depth can be entered in feet or converted to feet first. If the measure is in inches, divide by 12 before calculating.

Example: 30 ft long × 2 ft wide × 1.5 ft fill height equals about 90 cubic feet. 90 ÷ 27 is about 3.3 cubic yards. That is the theoretical in-place backfill volume before buffer or swell.

When to convert cubic feet to cubic yards

Convert to cubic yards when ordering by the yard. Convert to tons when the quote is by the ton or the truck payload is the controlling limit. Cubic feet are useful on paper, but yards and tons are the common order units for soil, sand, and granular fill.

📊 The worked example uses a 52-foot water service backfill. Source: Yardscalculator.

How do you calculate backfill for a trench?

For a trench, calculate the refill zone above bedding, not the full trench depth. Measure the length of the run, the trench width that will actually receive fill, and the fill height from the top of bedding to finish grade or cover elevation. Then convert the result to yards or tons.

Measure above bedding, not full trench depth

Pipe backfill should start above bedding. Bedding supports the pipe, while the backfill volume is the material returned around and above that layer. If the full cut depth is used instead of the fill zone, the estimate will be too large.

For example, a trench can be 36 in deep, but only the upper portion may count as backfill after bedding and pipe embedment are removed. That distinction is why trench backfill is not the same as trench excavation.

Include haunching and cover depth where needed

Utility trench calculations often need three zones: bedding below the pipe, haunching around the pipe sides, and cover above the pipe. The fill number depends on which of those zones the job spec says to include. Some estimates only count cover; others count the full refill above bedding.

If a spec calls for granular support around the pipe, the haunching material may be sand or fine stone. If the spec allows native spoil above a certain elevation, then only the specified backfill layer should be ordered in imported material.

Convert the result to tons for ordering

To convert yards to tons, multiply cubic yards by the material density. The planning densities used here are 1.2 t/cu yd for general loose soil, 1.3 t/cu yd for topsoil mix, 1.35 t/cu yd for clay or wet soil, and 1.4 t/cu yd for heavy or saturated material.

A 4.0 cubic yard trench fill using topsoil mix at 1.3 t/cu yd works out to 5.2 tons before buffer. If an eight percent buffer is added, the order rises to 4.3 cubic yards, or about 5.6 tons, which matches the worked example below.

Gloved hands mark fill height above bedding in a trench with gravel and compacted soil layers
Photo: mccun934 via Openverse (BY 2.0)

How do you calculate backfill for a foundation?

For a foundation, calculate the wall zone outside the footing, not the footing cut. Measure the perimeter length, the average width of the backfill band, and the fill height from the top of footing or drainage stone to grade. Then adjust for over-excavation, waterproofing, and compaction.

Measure the wall zone, not the footing cut

Foundation backfill wraps around the wall, not the whole excavation pit. The footing may sit below the fill line, and the excavation may be wider than the finished backfill zone. Using the full excavation width inflates the order.

Where drainage board, waterproofing, or geotextile protection is installed, the backfill zone should protect those layers. That means material choice matters as much as volume.

Allow for over-excavation and drainage layers

Foundation work often includes over-excavation, stone drainage, and filter fabric. Those layers reduce the void that actually receives soil backfill. If the estimate ignores them, the fill quantity will be too high.

Imported granular fill may be specified near the wall for drainage, then native or approved fill can be used farther away. The calculator should be set to the actual refill zone, not the whole dig.

Factor in compaction lifts and loose volume

Granular backfill is often placed in roughly 6–8 in lifts. That changes ordering because loose volume is larger than compacted in-place volume. The order should reflect the material as delivered and placed, not just the final compacted space.

If the job requires compaction verification, the estimate should include the compaction allowance and any shrink from handling. A compacted lift plan cuts settlement risk and helps the final grade hold.

Which backfill material should you use?

The right fill depends on the use, drainage needs, and spec. Native soil can be acceptable when the spoil is clean, free of debris, and allowed by the spec. Sand backfill is common around water services and utilities. Flowable fill is an option when the specification allows it and cure time is acceptable.

Native soil versus imported fill

Native soil works when it is clean, free of debris, and acceptable to the engineer or inspector. It is often the lowest-cost option, but it is not automatically the right choice. Wet clay, organics, and debris-filled spoil can settle or fail compaction.

Imported fill gives more control over drainage and compaction. It is often preferred when the native spoil is not suitable or when the trench needs consistent material properties.

Sand backfill for water service and utilities

Sand backfill is common around water services, conduits, and utility lines because it beds the pipe and fills voids without large stones. It is usually planned by volume first, then converted to tons for ordering. Placement still needs compaction in lifts where required.

Sand is not always the same as granular stone. The spec controls the material, and the fill should match the utility’s bedding and cover requirements.

Flowable fill when the spec allows it

Flowable fill can replace traditional granular backfill in some trench applications. It is useful where the specification allows a self-leveling material and where future re-excavation is not the priority. Cure time matters, so it is not a universal substitute.

Because flowable fill behaves differently from soil or sand, the quantity decision should follow the project spec. It is a placement choice as much as a volume choice.

How do swell factor and buffer percentage change the order?

Swell factor and buffer percentage both increase the ordered quantity, but for different reasons. Swell covers hauling volume after excavation loosens the material. Buffer covers over-excavation, trimming loss, and waste. A common swell example is plus 25% volume for hauling.

Why hauling volume is larger than in-place volume

Excavated material usually occupies more space when it is loose than when it is undisturbed. That is why a truckload estimate can be higher than the in-place refill volume. The loose yard number helps with hauling, while the compacted yard number helps with placement.

If the backfill is imported, the supplier may quote by loose cubic yard or by ton. If the material is reused spoil, the order may still need a swell adjustment if hauling or stockpiling is involved.

A plus 25% swell example

Take 4.0 cubic yards of in-place backfill and apply a 25% swell factor. The hauling volume becomes 5.0 cubic yards. That is the number to think about for truck planning, not the compacted trench volume.

For heavy or saturated soil, the tonnage can climb quickly even when the yardage does not change. Density drives the weight side of the order.

How buffer percentage covers waste and over-dig

Buffer percentage is added for over-excavation, minor grading losses, and job-site waste. An eight percent buffer on 4.0 cubic yards produces 4.3 cubic yards, which is the example used on the calculator page. That same buffer can keep a small job from running short.

Buffer is not the same as swell. Buffer adjusts the order for practical waste. Swell adjusts for loose hauling volume.

Backfill planning table for three common jobs

This table shows three common planning cases. It ties together what to measure, which material fits the application, and how to convert loose yards to tons using the planning densities shown on the page.

Scenario What to measure Fill material Worked loose-yard to ton conversion
Pipe trench Length of run, trench width above bedding, fill height from top of bedding to grade Sand backfill or approved granular fill 4.0 yd × 1.3 t/yd = 5.2 tons; with 8% buffer: 4.3 yd × 1.3 = 5.6 tons
Foundation wall Perimeter length, wall-zone width, fill height to grade outside drainage layers Imported fill or approved native soil, depending on spec 6.0 yd × 1.2 t/yd = 7.2 tons; with 25% swell for haul planning: 7.5 yd loose equivalent
Conduit run Run length, trench width, cover depth above conduit and bedding allowance Sand backfill or flowable fill if allowed 2.5 yd × 1.3 t/yd = 3.25 tons; with 8% buffer: 2.7 yd × 1.3 = 3.51 tons

The table above uses the planning densities shown on the page: 1.2 t/cu yd for general loose material, 1.3 t/cu yd for topsoil mix, 1.35 t/cu yd for clay or wet soil, and 1.4 t/cu yd for heavy or saturated material. The right density depends on what is actually being ordered.

What mistakes cause backfill estimates to be wrong?

The biggest mistake is using the full trench depth instead of the fill zone above bedding. Another common error is skipping haunching or cover depth. Ignoring compaction, moisture, or the difference between loose and compacted volume also throws off the order.

Using the full cut depth instead of the fill zone

A trench can be deeper than the actual backfill requirement because part of the section is bedding, pipe space, or footing space. If the full cut depth is used as the fill height, the estimate will overshoot. Backfill volume should follow the void that is actually being refilled.

Skipping bedding, haunching, or cover depth

For pipes and conduits, the support zone matters. Bedding under the line, haunching at the sides, and cover above the pipe may all be specified separately. Leaving one of those out can undercount the fill or send the wrong material to the site.

Ignoring compaction and moisture effects

Compaction lifts change how much loose material is needed to achieve the finished grade. Moisture also changes the weight per yard, especially in clay or saturated soils. A wet load can weigh more than a dry load of the same yardage, so tonnage must match the material condition.

How much backfill do I need calculator?

Enter length, width, and fill depth for the actual refill zone, then convert the result from cubic feet to cubic yards by dividing by 27. Add a buffer for waste or over-dig, and apply the correct density if the order is being planned in tons. The calculator is for trench and pad backfill, not the full excavation.

How do you calculate backfill and excavation?

Excavation is the cut volume. Backfill is the part of that cut that gets refilled. To calculate both, find the excavation dimensions first, then isolate the refill zone above bedding, around the wall, or behind the structure. Those numbers are related, but they are not the same.

Keep reading

Frequently asked questions

What is the difference between trench volume and backfill volume?

Trench volume is the full cut, from bottom to top, including space for bedding, pipe embedment, and working room. Backfill volume is only the portion that will be returned to fill. If the full trench is used instead of the refill zone, the estimate will be too large.

How much sand backfill for a trench?

Sand backfill for a trench is measured from the top of bedding to the required cover or grade, not from the bottom of the excavation. The length, trench width, and fill height are multiplied, then divided by 27 for cubic yards. Convert to tons using the sand density being ordered.

What depth should I use for backfill above bedding?

Use the vertical distance from the top of bedding to the finished fill line required by the spec. That may be to pipe cover, to grade, or to a point above a drainage layer. The correct depth is the refill height, not the full trench depth.

How many tons of backfill material do I need?

Multiply the cubic yards by the material density. Use 1.2 t/cu yd for general loose soil, 1.3 t/cu yd for topsoil mix, 1.35 t/cu yd for clay or wet soil, and 1.4 t/cu yd for heavy or saturated material. Add buffer or swell first if the order requires it.

Can I use native soil for backfill?

Native soil can be used when it is clean, suitable, and allowed by the project spec. It is not a universal choice. Debris, organics, wet clay, and oversized stone can make native spoil a poor backfill option, especially near utilities or foundation drainage components.