Free. No signup. Metric and imperial.

Pipe Trench Calculator

Compute excavation, bedding, and backfill volumes for a utility pipe trench. Pick the pipe material and size, enter trench depth and length, and get spoil loads out, bedding tons in, backfill yards to order, and total truck loads. OSHA minimum trench width is calculated automatically from the pipe OD.

Loading calculator...

The math, shown transparently

No black box. Here is exactly what the calculator computes for a pipe trench. The trench width is derived from the pipe OD, then everything flows from width x depth x length.

// 1. Trench width from pipe OD (OSHA 1926.651)

trench_width = pipe_OD + 16" (pipes up to 24")

trench_width = pipe_OD + 24" (pipes over 24")

// 2. Excavation volume

trench_yd³ = (width_ft × depth_ft × length_ft) / 27

loose_yd³ = trench_yd³ × swell_factor

// 3. Pipe displacement

pipe_yd³ = pi × (OD/24)² × length_ft / 27

// 4. Bedding volume (rectangular minus pipe)

bedding_height = (below + OD + above) / 12

bedding_yd³ = (width_ft × bedding_height × length_ft / 27) - pipe_yd³

// 5. Backfill (trench minus pipe minus bedding)

backfill_void = trench_yd³ - pipe_yd³ - bedding_yd³

backfill_order = backfill_void × (swell / shrink)

// 6. Truck loads (always rounded up)

total_loads = spoil_out + bedding_in + backfill_in

Worked example

An 8" PVC water main, 8 ft deep, 200 ft long in common earth with 6" sand bedding above and below, hauled with a 12 yd³ tandem dump:

pipe OD = 8.6" (PVC 8", ASTM D2241)

trench width = 8.6 + 16 = 24.6" = 2.05 ft

trench volume = 2.05 × 8 × 200 / 27 = 121.48 yd³

loose spoil = 121.48 × 1.25 = 151.85 yd³ (13 loads out)

pipe volume = pi × (8.6/24)² × 200 / 27 = 0.95 yd³

bedding height = (6 + 8.6 + 6) / 12 = 1.717 ft

bedding volume = (2.05 × 1.717 × 200 / 27) - 0.95 = 25.13 yd³ (3 loads in)

backfill void = 121.48 - 0.95 - 25.13 = 95.40 yd³

backfill order = 95.40 × (1.25 / 0.90) = 132.50 yd³ (12 loads in)

total loads = 13 + 3 + 12 = 28 loads

Understanding pipe trench zones

A utility pipe trench has three distinct material zones, each with different requirements for material type, compaction, and volume calculation.

  • Bedding zone: The bottom of the trench, from the subgrade up through the pipe crown plus cover. Uses select granular material (sand, pea gravel, or crusher run) placed around and under the pipe. This protects the pipe from point loads and provides uniform bearing. Per ASTM D2321, minimum 4 inches below the pipe barrel.
  • Backfill zone: Everything above the bedding zone up to the ground surface. Typically uses native excavated material or imported fill, placed in lifts and compacted. This is the largest volume in the trench.
  • Spoil: Excavated material that leaves the site. In most utility trenches, you haul out the full trench volume as spoil, then import bedding and backfill. Some projects re-use native material for backfill if it meets spec.

Frequently asked questions

How wide should a pipe trench be?

OSHA and industry practice: pipe OD + 16 inches for pipes up to 24 inches, OD + 24 inches for larger. This gives room for bedding placement, compaction equipment, and worker access.

What goes under the pipe?

Bedding material: 4-6 inches of sand, pea gravel, or crusher run below the pipe. Protects against point loads and provides uniform support per ASTM D2321.

How do I calculate backfill for a pipe trench?

Trench volume minus pipe volume minus bedding volume = backfill void. Then apply compaction shrinkage factor because loose fill compacts when placed.

What material should I use for pipe bedding?

Depends on the application. Sand (Class I) for most utility pipes. Crusher run for roads and heavy loads. Pea gravel for drainage. Check the project spec.

Does this account for OSHA sloping?

This version calculates for shored or boxed trenches (vertical walls). For open-cut sloped trenches, use the Excavation Volume Calculator with the wider top width.

Related free tools