Trench & Excavation Calculator

Volume, spoils, backfill & safety — everything you need for trench planning

Trench Dimensions
Excavation Volume
cubic yards
Cubic Feet
Cubic Yards
Spoils (CY)
Excess to Haul
Truck Loads
Backfill (CY)
Cross-Section Dimensions
Top Width
Bottom Width
Depth
Volume Breakdown
Material Weight Estimates
Material Swell Factor Density (ton/CY) Spoils Weight Net Haul Weight
Backfill & Spoils Summary
Excavated (CY)
Expanded Spoils (CY)
Backfill Needed (CY)
Excess to Remove (CY)
Truck Loads (14 CY)
Pipe Displacement (CY)
Trench Segments
# Label Length (ft) Width (ft) Depth (ft) Volume (CY) Spoils (CY)
Multi-Segment Summary
OSHA Trench Safety Requirements (29 CFR 1926.650-652)
DepthRequirementNotes
0 – 5 ft Inspect daily; shoring may not be required for competent soil Competent person must evaluate site conditions
5 – 20 ft Benching, sloping, shoring, or trench box required Method depends on soil classification
> 20 ft Engineered shoring system required Must be designed by a registered PE
Soil Classification & Required Slopes
Soil TypeDescriptionMax Slope (H:V)Allowed Methods
Type A Cohesive soils, unconfined compressive strength ≥1.5 tsf. Includes hard clays, cemented soils. 0.75:1 (53°) Sloping, benching, shoring, shield
Type B Cohesive soil, 0.5–1.5 tsf. Granular cohesionless soils, fissured or layered soils. 1:1 (45°) Sloping, shoring, shield
Type C Cohesive soil <0.5 tsf. Granular soils (gravel, sand, loamy sand), submerged soil, sloped layers. 1.5:1 (34°) Sloping, shoring, shield
Protective System Summary
Sloping

Cutting back the trench wall at an angle. Least expensive but requires more space and excavation. Angle depends on soil type (Type A: 0.75:1, Type B: 1:1, Type C: 1.5:1).

Benching

Cutting horizontal steps into the trench wall. Only allowed in Type A and Type B soils. Not permitted in Type C soils or in hard rock.

Shoring

Installing supports (timber, hydraulic, or pneumatic) against trench walls. Hydraulic shores are most common — contact the manufacturer for load ratings.

Trench Box / Shield

Prefabricated steel box placed in the trench to protect workers. Does not prevent cave-in — moves with excavation. Rated for specific soil loads by the manufacturer.

Additional Safety Requirements
Egress requirements

For trenches 4 ft or deeper, a safe means of egress (ladder, steps, ramp) must be provided within 25 ft of workers. Ladders must extend 3 ft above the trench lip.

Spoil pile setback

Spoil piles must be placed a minimum of 2 ft from the trench edge. Greater setback is required for deep trenches to prevent surcharge loading on the trench walls.

Underground utilities

Call 811 (USA) before you dig. All underground utility lines must be located and protected before excavation begins. Hand-dig within 18–24 in of marked utilities.

Water accumulation

Workers must not work in trenches with accumulated water unless adequate precautions are taken (dewatering, support systems). Water weakens trench walls significantly.

Atmospheric hazards

Trenches 4 ft or deeper must be tested for hazardous atmospheres (oxygen deficiency, toxic gases, flammable vapors). Confined space entry procedures may apply.

This reference is for general guidance only. Always consult OSHA 29 CFR 1926.650-652 and employ a competent person on-site. Regulations may vary by jurisdiction.

How to Use This Calculator

1
Enter dimensions — length, width, and depth of your trench in feet. Use decimal values for partial feet (e.g., 4.5).
2
Select side slopes — vertical walls maximize excavation; sloped walls add safety and stability. OSHA may require specific slopes based on soil type.
3
Choose material — different soils expand differently when excavated (swell factor). Rock expands the most (50%), gravel the least (12%).
4
Add pipe diameter — if you're laying pipe, this subtracts the pipe's volume from your backfill needs. Leave at 0 for no pipe.

Key Formulas

Trench Volume (CY)
((Wₛ + Wₜ) / 2 × D × L) / 27
Top Width (sloped)
Wₛₙₚ = Wₛ + 2 × D × slope
Expanded Spoils
Spoils = Volume × SwellFactor
Pipe Displacement
π × (d/24)² × L

Glossary

Swell Factor
The ratio by which excavated soil expands relative to its in-place volume. Soil typically expands 15–50% when dug.
Spoils
Excavated material removed from the trench. Volume is greater than the trench volume due to swell.
Backfill
Material used to refill the trench after pipe/utility installation. Usually the excavated spoil minus swell.
Side Slope
The horizontal-to-vertical ratio of the trench wall angle. A 1:1 slope means 1 ft horizontal per 1 ft vertical.
Competent Person
OSHA term for someone capable of identifying hazardous conditions in a trench and authorized to correct them.
Shoring
Support system that prevents trench walls from collapsing. Can be timber, hydraulic, or pneumatic.

Frequently Asked Questions

How many cubic yards per linear foot of trench?

For a vertical-wall trench: (Width × Depth) / 27 cubic yards per linear foot. A 2 ft wide × 4 ft deep trench = 0.296 CY per linear foot. For 50 ft: 14.8 CY total.

Why does my spoil pile take up more space than the trench?

Soil expands when excavated because the compacted structure breaks apart, introducing air voids. This expansion (swell) ranges from 12% for gravel to 50% for rock. Always account for swell when planning stockpile space and truck loads.

When does OSHA require shoring or sloping?

OSHA 29 CFR 1926.652 requires a protective system for all trenches 5 ft or deeper (and shallower if there is a risk of cave-in). Options include sloping, benching, shoring, or a trench shield. The method depends on soil classification determined by a competent person.

How much does a cubic yard of excavated soil weigh?

Typical weights: common soil ~2,200 lb/CY (~1.1 tons), clay ~2,700 lb/CY (~1.35 tons), sand ~2,400 lb/CY (~1.2 tons), gravel ~2,800 lb/CY (~1.4 tons), rock ~4,500 lb/CY (~2.25 tons).

What is a standard dump truck capacity?

Standard dump trucks hold 10–14 cubic yards. This calculator uses 14 CY as the default. For smaller trucks (10 CY) or larger tri-axle trucks (16–18 CY), adjust mentally or use the volume output directly.