Trench Slope & Excavation Calculator
Enter the trench depth, bottom width, length and the soil type your competent person classified. The calculator returns the maximum allowable slope from OSHA Table B-1, how far back to cut each side, the resulting top width and the excavation volume, and flags the Subpart P thresholds that apply at that depth.
Results are estimates for planning purposes and do not replace a competent person's evaluation or an engineer's design. Follow the OSHA standards that apply to your work and your employer's written program.
OSHA Table B-1 — maximum allowable slopes
| Soil or rock type | Maximum allowable slope (H:V) | Angle from horizontal | Cut back per foot of depth |
|---|---|---|---|
| Stable rock | Vertical | 90° | 0 ft |
| Type A | 3/4:1 | 53° | 0.75 ft |
| Type A — short term (24 h or less, 12 ft or less deep) | 1/2:1 | 63° | 0.5 ft |
| Type B | 1:1 | 45° | 1 ft |
| Type C | 1 1/2:1 | 34° | 1.5 ft |
Slopes are measured from the horizontal. The table applies to excavations less than 20 feet deep; sloping or benching for deeper excavations must be designed by a registered professional engineer. If the soil shows signs of distress, Appendix B requires the slope to be cut back to at least ½ horizontal to 1 vertical less steep than the maximum allowable slope.
The depths that change what you must do
| Depth | What it triggers | Citation |
|---|---|---|
| Any depth | Spoil, material and equipment kept at least 2 ft from the edge; daily inspection by a competent person before the start of work, as needed through the shift, and after every rainstorm or other hazard-increasing occurrence | 1926.651(j)(2); 1926.651(k)(1) |
| 4 ft | Stairway, ladder or ramp in trench excavations, no more than 25 ft of lateral travel away; atmospheric testing before entry where a hazardous atmosphere exists or could reasonably be expected | 1926.651(c)(2); 1926.651(g)(1)(i) |
| 5 ft | Protective system required — sloping, benching, shoring or shielding — unless the excavation is entirely in stable rock, or a competent person examines the ground and finds no indication of a potential cave-in | 1926.652(a)(1) |
| 20 ft | Table B-1 no longer applies: sloping and benching must be designed by a registered professional engineer | 1926 Subpart P App. B |
Who decides the soil type
A competent person classifies the soil under Appendix A, using at least one visual and one manual test, and re-classifies it whenever conditions change — after rain, when the excavation is deepened, when water shows up, when vibration from traffic or equipment starts. Nothing on this page replaces that classification, and the calculator cannot see your ground: it converts the type you pick into geometry.
Two common traps: soil that has been previously disturbed is Type B at best and usually Type C; and a trench next to a road, a building or a spoil pile carries a surcharge load that pushes the classification down. When in doubt, Type C is the choice that keeps people alive.
How it's calculated
- Maximum allowable slope (Table B-1)
H:V = 0 (stable rock) | 3/4:1 Type A | 1/2:1 Type A short term | 1:1 Type B | 1 1/2:1 Type CTable B-1 applies to excavations less than 20 ft (6.09 m) deep. Sloping or benching deeper than 20 ft must be designed by a registered professional engineer.- Cut-back distance per side
offset (ft) = depth (ft) × HH is the horizontal component of the maximum allowable slope: 0.75 for Type A, 0.5 for Type A short term, 1 for Type B, 1.5 for Type C, 0 for stable rock.- Top width
top width (ft) = bottom width (ft) + 2 × offset (ft)- Excavation volume (simple slope, both sides)
V (ft³) = (bottom width + top width) / 2 × depth (ft) × length (ft)Trapezoidal prism. It ignores the slope at the two ends of the trench and any benching, and it is bank measure — material swells when excavated.
Frequently asked questions
Sources & references
- 29 CFR 1926 Subpart P App. A — Soil classification (Type A, B, C, stable rock; visual and manual tests)
- 29 CFR 1926 Subpart P App. B — Sloping and benching, Table B-1 maximum allowable slopes
- 29 CFR 1926.652 — Requirements for protective systems
- 29 CFR 1926.651 — Specific excavation requirements (egress, atmospheres, spoil, daily inspections)
- OSHA — Trenching and Excavation safety topics page
Content checked against these sources — last reviewed August 27, 2026.