Courses delivered by HAZWOPER OSHA Training, LLC, an IACET Accredited ProviderDelivered by an IACET Accredited Provider

Leer en español

Free Guide

OSHA Trench Safety Rules: The Numbers Every Crew Should Know

Most of OSHA's excavation standard can be remembered as a handful of numbers. Here they are in one place, with what each one means on the job.

  • 7 min read
  • Updated October 25, 2026
On this page
  1. The numbers at a glance
  2. The slopes
  3. The things that don't have a number
  4. Test yourself
  5. FAQ

OSHA's excavation standard, 29 CFR 1926 Subpart P, is short but full of specific numbers. Learn these and you know most of the rules that inspectors look for and crews depend on.

The numbers at a glance

NumberRuleWhere
2 feetKeep spoil, materials and equipment at least 2 feet from the edge (or use retaining devices)1926.651(j)(2)
2 feetYou may dig up to 2 feet below a shield or support system only if it's rated for the full depth and no soil is lost1926.652(e)(2), (g)(2)
3 feetLadder rails extend at least 3 feet above the top of the trench1926.1053(b)(1)
4 feetTrenches 4 feet or deeper need a ladder, stair or ramp1926.651(c)(2)
4 feetTest the air before entering excavations deeper than 4 feet where a hazardous atmosphere could exist1926.651(g)(1)(i)
5 feetExcavations 5 feet or deeper need a protective system unless entirely in stable rock1926.652(a)(1)
6 feetWalkways 6 feet or more above lower levels need guardrails; hidden excavations 6 feet or deeper need barricades1926.651(l), 1926.501(b)(7)
18 inchesA shield below a sloped section must extend at least 18 inches above the vertical sideAppendix B
19.5%Minimum oxygen level1926.651(g)(1)
20%Keep flammable gas below 20% of its lower flammable limit1926.651(g)(1)(iii)
15 feetA trench is no more than 15 feet wide at the bottom1926.650(b)
20 feetProtective systems for excavations deeper than 20 feet must be designed by a registered professional engineer1926.652(b), (c)
25 feetMaximum lateral travel to the nearest means of egress in trenches 4 feet or deeper1926.651(c)(2)
24 hoursUtilities that don't respond within 24 hours: proceed with caution using detection equipment1926.651(b)(2)

The slopes

SoilMax slope (H:V)Angle
Stable rockVertical90°
Type A¾:153°
Type B1:145°
Type C1½:134°

Short-term Type A excavations (12 feet or less, open 24 hours or less) may use ½:1. Calculate your setbacks with the trench slope calculator.

The things that don't have a number

Some of the most important rules are about people and timing, not measurements:

  • A competent person must inspect before work, as needed during the shift, and after every rainstorm or hazard-increasing event (1926.651(k)).
  • Workers must be removed when there are signs of a cave-in, protective system failure or hazardous atmosphere.
  • No one may be under loads handled by lifting or digging equipment (1926.651(e)).
  • Mobile equipment near an edge the operator can't see needs a warning system (1926.651(f)).
  • Workers exposed to traffic wear high-visibility garments (1926.651(d)).
  • Utilities must be located before digging and exposed by safe means (1926.651(b)).
  • Water accumulation requires precautions and competent person monitoring of pumps (1926.651(h)).

Test yourself

Take our free trench safety practice test or start with lesson 1.

Sources and official references

Last reviewed: October 25, 2026 · Free general education based on OSHA 29 CFR 1926 Subpart P. It does not replace the site-specific training and competent person your employer must provide, and it does not issue a certificate. Nothing you enter on this page is saved or sent.

FAQ

Frequently asked questions

OSHA requires a protective system for excavations 5 feet or deeper unless the excavation is made entirely in stable rock. Shallower excavations also need protection if a competent person sees any indication of a potential cave-in.

A stairway, ladder, ramp or other safe means of egress is required in trench excavations 4 feet or more deep, located so that no worker has to travel more than 25 feet laterally to reach it.

At least 2 feet from the edge of the excavation, or held back by retaining devices, or both. Placing spoil farther back reduces surcharge load on the trench wall.

Sloping, benching and other protective systems for excavations deeper than 20 feet must be designed by a registered professional engineer, as must any system not covered by OSHA's appendices or approved tabulated data.

Need Documented Excavation Training?

Self-paced online courses aligned with OSHA Subpart P. Certificate of completion. English & Spanish.