Trench Calculator: Volume, Backfill, Truck Loads, and Cost

Estimate excavation quantities quickly for utility trenches, drainage lines, cable trenches, and foundation work. Enter your dimensions, apply side slope and swell, and get instant results in cubic meters, cubic feet, and cubic yards.

Free Trench Calculator

0 = vertical trench walls, 0.5 = 0.5 horizontal to 1 vertical on each side.
Pipe, bedding, concrete, duct bank, etc.
Used to estimate loose fill to achieve compacted volume.

Complete Trench Calculator Guide

A trench calculator helps contractors, estimators, and homeowners estimate how much material will be excavated and how much backfill will be required. Whether you are installing a utility line, drainage pipe, irrigation conduit, electrical duct bank, or a shallow foundation element, the same quantity principles apply: you need the trench geometry, the number of trench runs, and the expected behavior of soil after excavation and compaction.

This page combines a practical trench volume calculator with planning guidance so you can make faster, more reliable decisions before work starts. The calculator above is designed for both metric and imperial workflows and supports sloped trench walls, swell, compaction, truck capacity, and estimated hauling cost.

What a trench calculator estimates

For most projects, a trench calculator should provide more than a single volume number. A useful estimate usually includes:

Core trench volume formulas

If trench walls are vertical, the geometry is rectangular:

Volume = Length × Width × Depth

When sides are sloped, cross section is trapezoidal and top width becomes wider than bottom width:

Top Width = Bottom Width + 2 × Depth × Side Slope Ratio

Cross-Section Area = Depth × (Bottom Width + Top Width) ÷ 2

Volume = Cross-Section Area × Length × Number of Trenches

After excavation, soil expands. This is called swell:

Loose Volume = Bank Volume × (1 + Swell%)

For backfill planning, if part of the trench is occupied by pipe, bedding, concrete, or ducts:

Compacted Backfill = Bank Volume − Occupied Volume

If you need to import loose material and compact to a target density:

Loose Backfill Needed = Compacted Backfill ÷ (Compaction% / 100)

Example trench calculation

Suppose you have a 40 m utility trench, 0.7 m bottom width, 1.3 m depth, and no side slope. Bank volume is:

40 × 0.7 × 1.3 = 36.4 m³

If swell is 20%, loose volume becomes:

36.4 × 1.20 = 43.68 m³

If occupied volume is 7 m³ (pipe plus bedding), compacted backfill is:

36.4 − 7 = 29.4 m³

At 95% compaction, loose material to place is:

29.4 ÷ 0.95 = 30.95 m³

This simple calculation framework is enough to improve ordering accuracy and reduce field adjustments.

Why slope matters in trench estimation

Side slope changes can significantly affect excavation quantity. A trench that is narrow at the base can still produce substantial extra volume if the top must be widened for stability and safety. Depending on soil type and regulations, slopes may be required to reduce collapse risk. Even a modest slope ratio can increase total cubic quantity enough to alter labor, trucking, disposal, and import fill cost.

That is why this trench calculator includes side slope directly in the geometry. If your project uses trench boxes or shoring with near-vertical walls, set side slope to zero. If your design or site conditions require sloping, use the actual ratio and re-check quantities before procurement.

Common trench applications

Application Typical Width Range Typical Depth Range Planning Notes
Water service line trench 0.3–0.8 m 0.8–1.8 m Depth often driven by frost requirements and local standards.
Electrical conduit trench 0.3–1.0 m 0.6–1.5 m Account for duct bank concrete or encasement volume.
Drainage trench 0.4–1.2 m 0.7–2.0 m Slope and bedding thickness strongly influence occupied volume.
Sewer line trench 0.6–2.0 m 1.5–4.0+ m Shoring and safety controls can change effective excavation shape.

Backfill, compaction, and realistic field quantities

In many bids, backfill is where quantity drift appears. Some teams only estimate excavation but fail to deduct occupied volume and compaction impact. The result is under-ordering or frequent top-up deliveries.

A better process is:

  1. Calculate bank excavation volume from trench geometry.
  2. Deduct permanent occupied volume (pipe outside diameter zone, concrete encasement, structures).
  3. Use your required compaction target to estimate loose fill deliveries.
  4. Apply a practical contingency for moisture, segregation, and placement losses.

For long utility corridors, even a 5% difference in compaction assumptions can shift total imported material by many truckloads. The calculator’s compaction field is intended to make that effect visible early.

Truck load and hauling cost planning

Excavation quantity is only part of the operational picture. You also need logistics and cost visibility. With loose excavation volume and truck capacity, you can estimate required loads and approximate hauling budget. This helps with dispatch timing, disposal planning, and traffic sequencing.

If disposal rates differ by material class, run multiple scenarios. For example, if some volume is clean reusable fill and some volume is off-site waste, separate each stream and price accordingly. The calculator gives a baseline, and you can then refine by haul distance, idle time, and local tipping fees.

Metric and imperial conversion confidence

Construction teams frequently move between cubic meters and cubic yards. Design drawings may be metric while trucking and supplier rates are in imperial units. To reduce errors, this trench calculator reports both systems at once, so estimating, procurement, and site teams can align without manual rework.

Common conversion 1 m³ = 35.3147 ft³
Common conversion 1 yd³ = 27 ft³
Common conversion 1 m³ ≈ 1.30795 yd³

Best practices when using a trench calculator

Safety and compliance reminder

Volume calculation is a quantity tool, not a safety design substitute. Trench protection requirements depend on local regulations, depth, soil classification, groundwater, nearby loads, and site conditions. Always follow competent-person assessments and applicable standards for sloping, benching, shoring, or shielding.

Frequently asked questions

How accurate is a trench calculator?
Accuracy depends on input quality. With verified dimensions and realistic swell/compaction assumptions, calculators are usually close enough for procurement and planning. Field verification is still required.

Should I use inside or outside pipe diameter for occupied volume?
Use the physical volume that displaces backfill in the trench section, generally based on outside dimensions and any encasement.

Can I use this for multiple trench runs?
Yes. Set the number of trenches or multiply length accordingly. If dimensions differ by run, calculate each segment separately and sum totals.

What swell factor should I enter?
It varies by material and moisture. Use project geotechnical references or historical local data. If uncertain, run conservative low/high scenarios.

Final takeaway

A reliable trench calculator helps control material movement, labor hours, and hauling cost before excavation begins. Use the calculator at the top of this page to test scenarios, compare assumptions, and keep your trench estimate aligned from design to field execution.