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

Free Calculator

Trench Slope Calculator: OSHA Setbacks and Top Width by Soil Type

Enter the depth, bottom width and soil type to see how far back the walls must lay under OSHA Subpart P Appendix B, how wide the top of the cut will be, and where the spoil can go.

  • Runs in your browser
  • Nothing is saved
On this page
  1. Calculator
  2. How the calculation works
  3. Limits of this calculator
  4. FAQ

Sloping is the simplest protective system, but the footprint grows fast with depth and weaker soil. This calculator applies the maximum allowable slopes from Appendix B to Subpart P for excavations 20 feet deep or less.

How the calculation works

  • Setback per side = depth × the horizontal part of the slope ratio (0 for stable rock, 0.75 for Type A, 1 for Type B, 1.5 for Type C).
  • Top width = bottom width + 2 × setback.
  • Spoil distance = setback + 2 feet, measured from the edge of the trench bottom, so spoil sits at least 2 feet beyond the top of the slope (1926.651(j)(2)).
  • Volume = length × depth × average of top and bottom width, divided by 27 to get cubic yards.
SoilMax slopeAngleSetback for a 10 ft deep cut
Stable rockVertical90°0 ft
Type A¾:153°7.5 ft
Type A short-term½:163°5 ft
Type B1:145°10 ft
Type C1½:134°15 ft

Limits of this calculator

  • It doesn't classify soil. A competent person must do that with at least one visual and one manual test. See soil classification.
  • Slopes over 20 feet need a registered professional engineer's design.
  • Surcharge loads and signs of distress call for flatter slopes. Tick the distress box to see the minimum ½:1 flattening.
  • Layered soils are governed by the weakest layer, and benching follows the figures in Appendix B.

Learn the full method in the free sloping and benching lesson.

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

The maximum allowable slope for Type C soil is 1½ horizontal to 1 vertical (34 degrees from horizontal) for excavations 20 feet deep or less. A 10-foot-deep Type C cut must lay back 15 feet on each side.

1:1, or 45 degrees from horizontal, for excavations 20 feet deep or less. The setback on each side equals the depth.

¾:1 (53 degrees) for excavations 20 feet deep or less. Short-term excavations 12 feet deep or less that are open 24 hours or less may use ½:1 (63 degrees).

Multiply the depth by the horizontal part of the slope ratio to get the setback on each side, double it, and add the bottom width. For example, an 8-foot Type B trench with a 3-foot bottom is 3 + 2 × 8 = 19 feet wide at the top.

Need Documented Excavation Training?

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