All articles

Trench Safety Rules for Builders: OSHA by Depth

By Builtee · November 13, 2026 · 7 min read

Diagram of a trench in cross-section with shoring on both walls, a ladder out, the spoil pile set back from the edge and the 5-foot depth marked.

A sewer line, a footing drain, a new water service. On a house job, most trenches get dug in a morning and filled by the afternoon, so it's easy to treat them as no big deal. OSHA doesn't. Its trenching page says collapses "pose the greatest risk to workers' lives" in this kind of work.

The rules are in OSHA's excavation standard, 29 CFR 1926 Subpart P. Most of what a residential crew needs comes down to three depths: 4 feet, 5 feet and 20 feet. Here they are in the order you hit them, plus the one exception house builders get and the New York rule about calling before you dig.

Trench rules by depth under OSHA Subpart P: at any depth, spoil 2 ft back and daily inspections; at 4 ft, a ladder within 25 ft and air testing over 4 ft where bad air could exist; at 5 ft, a protective system; at 20 ft, an engineer-designed system.
Trench rules by depth under OSHA Subpart P: at any depth, spoil 2 ft back and daily inspections; at 4 ft, a ladder within 25 ft and air testing over 4 ft where bad air could exist; at 5 ft, a protective system; at 20 ft, an engineer-designed system.

Trench or excavation?

OSHA calls any hole, cut or trench you dig an excavation. A trench is a kind of excavation that's narrow for its length. In general it's deeper than it is wide, and no wider than 15 feet at the bottom. The rules below cover both, unless a line says "trench."

Before you dig: call 811

In New York, the law is 16 NYCRR Part 753. You have to call the one-call center at least two and no more than ten working days before you start digging. The day you call doesn't count, and working days are Monday through Friday without public holidays.

On Long Island and in New York City (Nassau, Suffolk and the five boroughs), the center is New York 811. Everywhere else in the state, it's UDig NY. Either way, you dial 811.

OSHA says the same thing in its own words: find out where the sewer, water, gas, electric and phone lines are expected to be before you open the ground. When you get close to one, find its exact spot by safe means before the bucket goes in.

Any depth: keep the edge clear

These apply to every trench, even a shallow one:

  • Spoil and equipment stay at least 2 feet back from the edge. A pile right on the lip can roll back in on the crew. The other option OSHA allows is a retaining device that holds it back.
  • A competent person inspects it. That's someone who can spot cave-in hazards and has the authority to fix them on the spot. They check every day before work starts, as needed during the shift, and again after every rainstorm or anything else that makes it worse. If they find a hazard, everyone gets out until it's fixed.
  • No working in water. If water is standing or coming in, nobody works down there without extra protection, like special supports or a shield, pumping it out, or a harness and lifeline. A competent person watches the pump.
  • Nobody stands under a load being lifted or dug by the machine.

4 feet: a way out, and test the air

Around 4 feet, two more rules kick in:

  • A ladder, stairway or ramp within 25 feet of every worker, once the trench is 4 feet or deeper. OSHA's wording is "no more than 25 feet of lateral travel." On a long trench, that means more than one ladder.
  • Test the air before anyone goes in when the trench is deeper than 4 feet and bad air could be there: low oxygen or a hazardous atmosphere. OSHA's own examples are digging in a landfill area or near where hazardous substances are stored.

5 feet: protect the walls

At 5 feet or deeper, every worker in the trench must be protected from a cave-in by a protective system. The only ways out of that rule are a trench dug entirely in stable rock, or one under 5 feet where a competent person has looked at the ground and sees no sign it could cave in.

You have three kinds of protection to pick from:

SystemWhat it isWhere it fits
Sloping or benchingCut the walls back at an angle, or in steps, away from the trenchOpen lots with room to spread out
ShoringHydraulic, mechanical or timber supports that hold the walls in placeTight spots, where there's no room to cut back
ShieldingA trench box: workers stand inside it, and it takes the hit if a wall cavesRuns where the box can move along with the work

If you slope and nobody has classified the soil, OSHA's fallback is 1½ feet back for every 1 foot down (34 degrees from flat). So a 6-foot-deep trench needs each wall cut back 9 feet at the top. That's often more room than a house lot has, which is why trench boxes and shoring show up on small jobs. Benching (cutting steps) isn't allowed in Type C soil, the least stable kind.

Three ways to protect a trench 5 ft or deeper: slope the walls at 1.5 to 1 (a 6 ft trench cut back 9 ft each side), shore them with supports, or shield the crew with a trench box.
Three ways to protect a trench 5 ft or deeper: slope the walls at 1.5 to 1 (a 6 ft trench cut back 9 ft each side), shore them with supports, or shield the crew with a trench box.

20 feet: get an engineer

At 20 feet or deeper, the protective system has to be designed by a registered professional engineer. That's rare on a house, but it can come up on a deep sewer connection. Below 20 feet, a system that doesn't follow one of OSHA's standard options (its soil tables and charts, the manufacturer's data for a trench box, or other tabulated data) needs an engineer's approval too.

The basement exception (and what it doesn't cover)

In 1995, OSHA suspended the protective system rule (1926.652) for house foundation and basement excavations, but only when every one of these is true:

  • The hole is less than 7½ feet deep, or it's benched at least 2 feet across for every 5 feet down.
  • The gap between the dirt wall and the formwork or foundation wall is as wide as practical and at least 2 feet.
  • There's no water, no tension cracks, and nothing else making the walls less stable.
  • Soil, equipment and material are kept back from the edge at least as far as the hole is deep. When a front-end loader digs it, the spoil goes as far back as possible and never closer than 2 feet.
  • The crew in the hole is the smallest one that can do the work.
  • The work is planned to keep people in the hole for as short a time as possible.

Miss one and the full rule applies. The exception is also only for the foundation hole. Utility trenches (sewer, water and the like) are not covered, so the 5-foot rule applies to them as usual.

A quick check before anyone climbs in

  • [ ] 811 called at least two working days ahead, and the marks are still there
  • [ ] Spoil pile and machines at least 2 feet back from the edge
  • [ ] Competent person checked it today, and again after any rain
  • [ ] No standing or seeping water, or a plan for it
  • [ ] 4 feet or deeper: a ladder within 25 feet of everyone (and over 4 feet, the air tested if it could be bad)
  • [ ] 5 feet or deeper: sloped, shored or in a trench box
  • [ ] Nobody under the bucket

Put it on the schedule, not just in your head. If the sewer trench is on a Tuesday, the 811 call goes on the schedule the week before, and the trench box or shoring goes on the list of things to have on site. A free schedule in Builtee keeps those steps tied to the phase so they don't get skipped when the job gets busy. For the edges higher up on the same job, our guide to residential fall protection covers the rest of the site.

Common questions

Do I need a trench box for a 4-foot trench? Not by the depth alone. Under 5 feet, protection is required only if a competent person sees signs the ground could cave in. You still need the ladder within 25 feet, and the air test where bad air could build up.

Does the basement exception cover a sewer or water line trench? No. It covers the foundation excavation itself when all six conditions are met. Utility trenches follow the normal rules.

Who counts as the competent person? Someone who can spot the hazards in and around the trench and has the authority to fix them right away. On a small job, that's often the excavator's foreman or the builder's super, as long as they can really do both.

How long do I wait after calling 811 in New York? At least two working days, not counting the day you call, and no more than ten.

These are the federal rules plus New York's one-call law. Your state, town or the job's engineer can ask for more, so check the job's requirements before you dig.

Sources

  1. OSHA, Trenching and Excavation overview: https://www.osha.gov/trenching-excavation
  2. OSHA, 29 CFR 1926.650 (scope and definitions): https://www.osha.gov/laws-regs/regulations/standardnumber/1926/1926.650
  3. OSHA, 29 CFR 1926.651 (specific excavation requirements): https://www.osha.gov/laws-regs/regulations/standardnumber/1926/1926.651
  4. OSHA, 29 CFR 1926.652 (requirements for protective systems): https://www.osha.gov/laws-regs/regulations/standardnumber/1926/1926.652
  5. OSHA, Subpart P Appendix B (sloping and benching): https://www.osha.gov/laws-regs/regulations/standardnumber/1926/1926SubpartPAppB
  6. OSHA, Suspension of 29 CFR 1926.652 to house foundation/basement excavations (June 30, 1995): https://www.osha.gov/laws-regs/standardinterpretations/1995-06-30
  7. OSHA, letter of Feb. 1, 1996 on the house foundation suspension: https://www.osha.gov/laws-regs/standardinterpretations/1996-02-01-1
  8. NAHB, Trenching and Excavation Toolkit: https://www.nahb.org/advocacy/public-toolkits/trenching-and-excavation-toolkit
  9. CDC/NIOSH, Trenching and Excavation Safety: https://www.cdc.gov/niosh/trenching/about/index.html
  10. OSHA Quick Card, Working Safely in Trenches (eLCOSH): https://www.elcosh.org/document/794/d001008/OSHA+Quick+Card:+Working+Safely+in+Trenches.html
  11. North Carolina DOL, SN 61 Residential construction foundation or basement excavations: https://www.labor.nc.gov/osh/osh-enforcement-procedures/sn-61-residential-construction-foundation-or-basement-excavations/open
  12. NY Public Service Commission, Underground damage prevention: https://dps.ny.gov/underground-damage-prevention
  13. UDig NY, 16 NYCRR Part 753 text: https://udigny.org/?p=3783
  14. New York 811, excavator glossary: https://newyork-811.com/?p=16917

More from the blog