Buildora
Site Work & EarthmovingIRC / IBC FormulasInstant Calculation

Trench Calculator

Free trench excavation calculator. Calculate trench volume, bedding material, backfill, truck loads, and cost for pipe, drainage, foundation, and cable trench projects.

2026 Planning Cost & Code GuidanceLive Imperial & Metric ConversionInstant PDF & Print Spec Export
Technical Guide & Methodology

Trench Calculator β€” Specifications & Reference Guide

Verified Industry Standards

How to Use the Trench Calculator

Enter your trench dimensions β€” length, width, and depth β€” select your bedding material, and click Calculate. The trench calculator instantly returns:

  • Excavation volume in cubic yards (or cubic metres in metric mode)
  • Bedding material needed (gravel, sand, or concrete cradle)
  • Backfill volume β€” how much soil goes back in after pipe installation
  • Loose spoil volume β€” accounting for a 25 % swell factor when soil is loosened
  • Dump truck loads β€” based on a standard 14-cubic-yard soil truck
  • Cost breakdown β€” excavation labor, bedding material, and off-site spoil hauling

Switch between Imperial (ft / cu yd) and Metric (m / mΒ³) with one click. All results update instantly.


Trench Volume Formula

The formula for trench excavation volume is:

Volume (cu yd) = Length (ft) Γ— Width (ft) Γ— Depth (ft) Γ· 27

For metric projects:

Volume (mΒ³) = Length (m) Γ— Width (m) Γ— Depth (m)

Example: A 50 ft long Γ— 2 ft wide Γ— 4 ft deep utility trench:

  • Volume = 50 Γ— 2 Γ— 4 Γ· 27 = 14.81 cu yd
  • With 25 % swell factor, loose spoil = 18.5 cu yd (2 truck loads)

Trench Excavation Cost Guide (2024 US Averages)

Trench excavation cost ranges widely depending on soil type, trench depth, and your local market.

Trench Type Typical Cost per Linear Foot
Shallow utility trench (2–3 ft deep) $8 – $15 / lf
Standard water / sewer line (4–6 ft deep) $15 – $35 / lf
Deep foundation trench (6–10 ft deep) $35 – $80 / lf
Rock excavation (requires blasting/saw) $60 – $150 / lf

Factors that increase cost:

  • Rocky or clay soil requiring additional equipment
  • Shoring requirements (OSHA mandates shoring for trenches > 5 ft deep)
  • Urban locations with traffic management or permits
  • Off-site spoil disposal fees (typically $10–$18 per ton at a landfill)

Trench Bedding Materials Explained

Bedding material is placed at the bottom of the trench to provide a stable, level, and properly graded surface for the pipe or conduit. The right choice protects the pipe from point loading and settlement.

Crushed Gravel / Pea Gravel

The most common choice for gravity sewer, storm drain, and water service lines. It provides excellent drainage and conforms to irregular pipe surfaces. Typical bedding depth: 4–6 inches (100–150 mm). Cost: $25–$45 per cu yd delivered and placed.

Sand

Used where uniform support is critical, such as delicate plastic pipe or conduit. It compacts easily and is often required by municipal specifications. Cost: $20–$38 per cu yd.

Concrete Cradle

For high-load applications β€” large-diameter sewer mains under roads, or where ground conditions are poor β€” a concrete encasement is poured around the pipe. This is the most expensive option. Cost: $140–$220 per cu yd.

No Bedding

Only appropriate for solid-wall conduit in stable, rocky soil that is already at the correct grade. Not recommended for plastic pipe or drainage systems.


Backfill vs Spoil: What's the Difference?

After the pipe or conduit is laid, the trench must be backfilled in controlled lifts and compacted. Not all excavated soil goes back in:

  • Backfill volume = Trench volume βˆ’ bedding volume. This is the amount of native soil (or imported fill) needed to fill the trench back up to grade.
  • Spoil = The excess or unsuitable soil that must be hauled away. Even if you're reusing native soil as backfill, the swell factor (soil expands ~25% when loosened) means you'll have more loose material than can fit back in the trench.

Tip: For projects under 20 cy of spoil, a standard roll-off dumpster is often cheaper than hiring a dump truck. For larger volumes, a 14-cy dump truck at $250–$350 per load is more economical.


OSHA Safety Requirements for Trenches

Trench excavation is one of the most hazardous construction activities. OSHA 29 CFR 1926 Subpart P sets clear requirements:

  • Trenches 5 feet or deeper require a protective system: sloping/benching, trench shield (box), or shoring.
  • Trenches 20 feet or deeper require a design by a registered professional engineer.
  • A competent person must inspect the trench daily and after any rain event.
  • Water accumulation in a trench is a serious hazard β€” dewatering is required before workers enter.
  • Access/egress must be within 25 feet of all workers.

Always obtain the required excavation permits before breaking ground. Most US municipalities require a permit for any trench deeper than 2 feet near underground utilities.


Common Trench Projects and Typical Dimensions

Project Typical Width Typical Depth
Residential water service (3/4β€³ pipe) 12–18 in 36–48 in (frost line)
Sewer lateral (4β€³ pipe) 18–24 in 36–72 in
Electrical conduit (underground) 12–18 in 24 in min. (NEC 300.5)
Natural gas service line 12–18 in 18–24 in
French drain / drainage channel 12–24 in 18–36 in
Irrigation mainline 6–12 in 12–18 in
Strip footing (residential foundation) 16–24 in 24–48 in

Frequently Asked Questions

How many cubic yards is a typical residential trench? A standard 50-foot-long, 18-inch-wide, 4-foot-deep utility trench is approximately 11 cu yd of excavation. Including swell, you'd haul about 14 cu yd of loose spoil.

What is the swell factor for trench excavation? Standard soil swells approximately 20–30% when excavated (loose). A 25% swell factor is widely used: 10 cu yd of in-situ soil becomes 12.5 cu yd of loose spoil. Clay can swell up to 35–40%.

How long does it take to dig a trench? A mini excavator can dig approximately 50–100 linear feet per hour in average soil at 4 ft depth. A standard excavator can dig 100–300 lf/hr. Hand digging: 5–10 lf/hr per worker.

Do I need a permit to dig a trench? Always call 811 (US) or your local utility mark-out service before digging. Most municipalities require a permit for trenches deeper than 18–24 inches near public right-of-way, utility easements, or structures.

Can I reuse excavated soil as backfill? Yes, if the native soil is not expansive clay, organic, or heavily contaminated. Granular soil (sand, gravel, sandy loam) is ideal for backfill. Clay-heavy soil may require importing granular fill to prevent poor compaction and pipe movement.

Help & Guidance

Frequently Asked Questions

QHow do you calculate trench excavation volume?

Trench volume (cu yd) = Length (ft) Γ— Width (ft) Γ— Depth (ft) Γ· 27. For a 50 ft Γ— 2 ft Γ— 4 ft trench: 50 Γ— 2 Γ— 4 Γ· 27 = 14.81 cu yd of excavation.

QHow much does trench excavation cost per linear foot?

Shallow utility trenches (2–3 ft deep) typically cost $8–$15 per linear foot. Standard sewer/water trenches (4–6 ft) run $15–$35/lf. Deep trenches over 6 ft can cost $35–$80/lf depending on soil, shoring, and location.

QHow many cubic yards of soil does one dump truck hold?

A standard dump truck holds approximately 10–14 cubic yards of soil (14 tons). Our calculator uses a 14-CY capacity for truck load estimates. Actual capacity varies by truck size.

QWhat is the swell factor for excavated soil?

Excavated soil expands 20–30% in volume when loosened (swell factor). We apply 25% as the standard. So 10 cu yd of in-situ soil becomes approximately 12.5 cu yd of loose spoil to haul away.

QWhen do I need shoring for a trench?

OSHA 29 CFR 1926 Subpart P requires a protective system (sloping, benching, trench shield, or shoring) for any trench 5 feet or deeper. Trenches 20 feet or deeper require design by a registered PE.

Explore More Trades

Related Calculators

View all 20 calculators β†’