Published
Legally safe trenching has fixed numbers, and you can check every one of them from the yard
Whose checklist this is
Open-trench work — utility lines, foundation digs, the deep end of a cabin lot — is where dirt work turns dangerous, and the federal government has written the numbers down. OSHA’s excavation standard sets exact thresholds for cave-in protection, ladders, air testing, spoil piles, and slopes. Its duties fall on the employer — the crew doing the digging, not the landowner. That is what makes it useful to you: a federal safety standard is a free, public checklist for judging any bid before the backhoe arrives.
The numbers below come from the standard as it stands in the September 24, 2026 edition of the eCFR. OSHA issued it on October 31, 1989, and its last amendment landed August 9, 1994 — old enough that no crew can claim the rules just changed.
| Number | What it triggers | Where it sits |
|---|---|---|
| 5 feet | cave-in protection begins; below it, the competent-person exception | 1926.652(a) |
| 4 feet | ladder or other way out; air testing where hazards are possible | 1926.651(c), (g) |
| 25 feet | maximum lateral travel to that way out | 1926.651(c)(2) |
| 2 feet | minimum standoff for spoil and equipment | 1926.651(j)(2) |
| 19.5 / 20 percent | oxygen floor / flammable-gas ceiling | 1926.651(g) |
| 34 degrees | default maximum slope (1½:1) | 1926.652(b)(1)(i) |
| 20 feet | above this, an engineer designs the protective system | Subpart P App. F |
Five feet: the cave-in line
The rule relaxes below five feet of depth, but only on a named person’s say-so:
“Excavations are less than 5 feet (1.52m) in depth and examination of the ground by a competent person provides no indication of a potential cave-in.”
— OSHA, 29 CFR 1926.652(a)(1)(ii), the only exception to cave-in protection. Retrieved 28 September 2026
Read it in reverse and it becomes a test. At 5 feet and deeper, everyone in the trench needs protection from a cave-in — sloping, shoring, or a trench box. Below 5 feet the exception holds only if a competent person examined the ground and found no warning signs. No named competent person on the job, no exception.
Four feet and twenty-five feet: the way out
“A stairway, ladder, ramp or other safe means of egress shall be located in trench excavations that are 4 feet (1.22 m) or more in depth so as to require no more than 25 feet (7.62 m) of lateral travel for employees.”
— OSHA, 29 CFR 1926.651(c)(2), means of egress from trench excavations. Retrieved 28 September 2026
Once a trench passes 4 feet, a ladder, ramp, or stairway has to sit within 25 feet of anyone in it. The ladder belongs in the trench while people are in it — not leaning on the spoil pile for later.
Four feet again: the air nobody can see
The same depth triggers atmosphere rules where contamination is possible. OSHA requires testing before workers enter “excavations greater than 4 feet (1.22 m) in depth” where “oxygen deficiency (atmospheres containing less than 19.5 percent oxygen) or a hazardous atmosphere exists or could reasonably be expected to exist.” Flammable gas gets its own ceiling: ventilation must prevent exposure to a concentration “in excess of 20 percent of the lower flammable limit of the gas.”
- 19.5 percent oxygen — the floor, below which the air is deficient.
- 20 percent of the lower flammable limit — the ceiling for flammable gas.
- Testing comes before entry, and repeats as often as necessary once controls are running.
Two feet: where the spoil goes
The dirt that comes out of a trench is a load parked at the edge of the hole it came from. The rule for it, and for equipment:
“Protection shall be provided by placing and keeping such materials or equipment at least 2 feet (.61 m) from the edge of excavations…”
— OSHA, 29 CFR 1926.651(j)(2), protection from loose rock or soil. Retrieved 28 September 2026
Two feet is the minimum, and it is the easiest number to check from the yard: spoil piles, tools, and parked machines stay 2 feet or more back from the edge, or behind a retaining device that stops a roll into the trench.
Thirty-four degrees: the default slope
“Excavations shall be sloped at an angle not steeper than one and one-half horizontal to one vertical (34 degrees measured from the horizontal), unless the employer uses one of the other options listed below.”
— OSHA, 29 CFR 1926.652(b)(1)(i), Option 1 sloping. Retrieved 28 September 2026
That 1½:1 slope (34 degrees) is the no-engineering default — conservative enough for Type C soil, the weakest class. Anything steeper needs tabulated data or an engineered design. And Appendix F draws the hard ceiling:
“Protective systems for use in excavations more than 20 feet in depth must be designed by a registered professional engineer in accordance with § 1926.652 (b) and (c).”
— 29 CFR 1926 Subpart P, Appendix F (eCFR edition 2026-09-24). Retrieved 28 September 2026
The competent person, on the record
Every threshold above leans on one role. The daily duty reads:
“Daily inspections of excavations, the adjacent areas, and protective systems shall be made by a competent person… prior to the start of work and as needed throughout the shift. Inspections shall also be made after every rainstorm or other hazard increasing occurrence.”
— OSHA, 29 CFR 1926.651(k)(1), inspections. Retrieved 28 September 2026
And when an inspection finds trouble, the response is not a negotiation: “exposed employees shall be removed from the hazardous area until the necessary precautions have been taken to ensure their safety.” In a mountain climate where an afternoon thunderstorm resets every open trench, the after-rain inspection is the rule most often skipped — and the cheapest one to ask about.
What this page does not cover
This page is about people in the trench. The pipes and cables outside it run under a different law — Idaho’s dig law — which this site covers separately:
- The 811 call and its notice window
- What the paint colors mean
- How long locate marks stay valid
- The 24-inch hand-dig zone around a marked line
Five questions before you hire
- Who is the competent person on this job, by name? Daily and after-rain inspections run under their judgment.
- How deep will the trench go, and what changes at 5 feet? Box, shoring, or slope — the answer should be immediate.
- Where does the ladder live once the trench passes 4 feet? In the trench, within 25 feet of anyone working.
- Where does the spoil go? Two feet or more back from the edge, or behind a retaining device.
- What happens after a rainstorm? Work stops until the competent person inspects — that is the whole answer.
- Then bring the dirt itself: (208) 932-1140.
How deep utility trenches must go is its own question — the trench-depth page sorts out the 32-inch confusion — and the sequence from locates to backfill is walked in the site-prep guide. And if you are weighing renting the machine to dig it yourself: these rules are written for employers, but the hazards do not check who signed the rental agreement — part of the rental-versus-operator math.
Common questions
At what depth does a trench legally require cave-in protection?
At 5 feet and deeper, OSHA requires every employee in an excavation to be protected from cave-ins by sloping, shoring, or a shield. Below 5 feet there is one exception - a competent person must have examined the ground and found no indication of a potential cave-in. No examination, no exception.
When does a trench need a ladder?
At 4 feet of depth or more. A stairway, ladder, ramp, or other safe means of egress must be located so no worker travels more than 25 feet laterally to reach it.
How far back from the edge must spoil and equipment stay?
At least 2 feet from the edge of the excavation, or behind retaining devices sufficient to stop material or equipment falling or rolling in - or a combination of both.
What air levels do the rules set for trenches?
Oxygen deficiency begins below 19.5 percent oxygen, and flammable gas is capped at 20 percent of its lower flammable limit. Where a hazardous atmosphere exists or could reasonably be expected, the air must be tested before workers enter any excavation deeper than 4 feet.
What is the steepest a trench can be sloped without engineering?
One and one-half horizontal to one vertical - 34 degrees measured from the horizontal. That default is built for Type C soil, the weakest class; steeper configurations need tabulated data or a design by a registered professional engineer.
When does a professional engineer have to design the protective system?
Above 20 feet of depth. Subpart P Appendix F states it flatly: protective systems for use in excavations more than 20 feet in depth must be designed by a registered professional engineer.
Who do OSHA's trenching rules actually bind?
The employer - the crew doing the digging. Nothing in the excavation standard imposes duties on a homeowner, which is why this page frames the numbers as a free hiring and safety-readiness checklist. Your practical leverage is refusing to hire the crew that skips them.
How often must a competent person inspect the excavation?
Daily - prior to the start of work and as needed throughout the shift - and again after every rainstorm or other hazard-increasing occurrence. If the inspection finds a possible cave-in, failing protective system, or hazardous atmosphere, exposed employees must be removed from the hazardous area until it is safe.
Do these rules apply if I rent an excavator and dig the trench myself?
The standard is written for employers, so a homeowner digging with no employees is a different situation - but the hazards do not change with the signature on the rental agreement. The numbers still describe what a safe trench looks like, whoever is in it.
Where do the utility-locate rules fit in?
Separately - striking a buried line is governed by Idaho's dig law, not OSHA's excavation standard: call 811 within its two-to-ten-business-day window, read the paint colors, respect the 24-inch hand-dig zone around marked lines, and know the marks expire after four consecutive weeks.