Excavation Slope Calculator

Excavation Slope Calculator uses OSHA soil ratios to find setback per side. Formula: S = depth × slope ratio. Enter depth, bottom width, and soil type to calculate top width, area, and volume. outputs

Feet
Required Horizontal Setback (Per Side)
10.00ft
The horizontal distance the trench walls must slope back from the bottom edge.
Trench Cut Geometry
1 : 1 Ratio
Slope Face Length 14.14 ft
Incline Angle 45.00 deg
The physical pitch ratio and true diagonal length of the sloping dirt wall.
Footprint & Volume
24.00 ft
Section Area 140.00 sq ft
Volume per Linear Foot 5.19 yd³/ft
The top surface opening width and estimated material volume to remove per linear unit.
OSHA Soil Profile
>0.5 and <1.5 tsf
Benching Not calculated
PE Design Status Not triggered by depth
Standard compressive strength thresholds and structural safety rules for this classification.
Standard Sloping Rules Apply
Trenches 5 feet or deeper in Type B Soil require a protective system. The maximum allowable slope is 1 : 1 (45 degrees). Note: This tool validates simple sloping geometry only. It does not calculate benching, shoring, or layered soils.

Before the first bucket moves, someone needs to calculate the surface opening — and on constrained sites, that number often ends the conversation. A 12-foot deep trench with a 4-foot working bottom in Type C soil (the weakest classification) requires 40 feet of surface width. That’s the width of a two-lane road, curb to curb. Trench depth appears on every plan set. The top opening almost never does, and discovering the mismatch after the excavator is mobilized is an expensive place to find out.

How the Three Inputs Drive Every Output

Excavation depth is the vertical distance from original grade to the trench floor. Bottom trench width is the clear working dimension at the base — enough for the pipe, the bedding crew, and any compaction equipment that has to fit down there. Soil classification sets the OSHA slope ratio, and that ratio is the multiplier that determines how far the walls must step back from the bottom edge.

The four classifications use horizontal-to-vertical ratios:

  • Stable Rock — vertical walls, no setback required
  • Type A (3/4 : 1) — 0.75 ft of setback per foot of depth, applied to each side
  • Type B (1 : 1) — 1 ft of setback per foot of depth, each side
  • Type C (1.5 : 1) — 1.5 ft of setback per foot of depth, each side

The main output — horizontal setback per side — is depth multiplied by the ratio for the selected soil type. Everything else derives from that. Top opening width is bottom width plus two setbacks (one per side). The trapezoidal cross-sectional area uses the standard trapezoid formula: ((top width + bottom width) ÷ 2) × depth. Slope face length is √(depth² + setback²) — the actual diagonal distance along the cut wall, not the vertical depth or the horizontal setback alone.

Volume per Linear Unit — What That Output Means in Practice

The volume figure isn’t total excavation volume. It’s cubic yards (or cubic meters) of material removed per linear foot (or meter) of trench length. Multiply it by your trench run to get total spoil. A result of 5.19 yd³/ft across 200 feet of trench means 1,038 cubic yards of material to manage. Trench length belongs in your field notes — it’s project-specific, so the calculator gives you the per-unit rate and leaves the multiplication to you.

In US feet mode, the division by 27 converts square-foot cross-section × one linear foot into cubic yards, which is the standard unit for earthwork bid quantities. Switching to meters outputs cubic meters per linear meter directly. Inches and centimeters are available for verification math but aren’t practical for bid-quantity use.

The Two Regulatory Depth Thresholds Coded Into the Alerts

At five feet, OSHA’s protective system requirement applies to all non-rock excavations. Below that threshold, the alert shifts — it doesn’t say the trench is safe, it says a competent person must evaluate whether cave-in risk exists. Shallow trenches in crumbly or disturbed ground still fail; the five-foot line just defines where the formal protective system mandate begins.

Twenty feet is a different kind of line. Any excavation deeper than 20 feet (6.1 meters) triggers the PE requirement regardless of soil type: a registered professional engineer must design the protective system, and the standard OSHA ratio tables in Appendix B no longer apply. When the tool’s alert turns red and shows “Engineer Design Required,” the slope geometry it produced above that depth is informational at best. It should not be used for construction at that depth without PE review.

What This Calculator Doesn’t Handle — and Why That Matters on the Job

The disclaimer in every result set is there for a reason. Three conditions that appear routinely on real excavation sites sit entirely outside what uniform slope geometry can address:

Layered soils are the most common problem. If the competent person encounters a seam of Type C material at 6 feet below a Type A profile, the conservative approach requires designing the entire slope for the weakest layer encountered. There is no input here for multiple soil layers, so any mixed-soil profile demands a separate analysis.

Benching shows “Not calculated” because it’s a fundamentally different protective system with different geometry — stepped horizontal cuts at specified heights and widths rather than a continuous inclined face. If the site plan calls for a benched excavation, OSHA Appendix B contains the specific geometric rules by soil type, and those require different inputs than this tool uses.

Groundwater is the third gap. Saturated conditions can force a reclassification to Type C regardless of dry unconfined compressive strength results. If water is present in the trench, the ratios produced here may not be conservative enough. The competent person call overrides the calculator in that situation.

Worked Example: Waterline Replacement in a Residential Street

A municipal crew is replacing a 30-inch water main. The spec requires 4 feet of cover to top of pipe. The pipe OD is 2.5 feet, so the trench floor sits at 6.5 feet below grade. The bedding and backfill crew needs 3.5 feet of clear working width at the bottom. The competent person has reviewed the boring logs and classified the native soil as Type B.

Inputs: depth 6.5 ft, bottom width 3.5 ft, Type B.

  • Setback per side: 6.5 × 1.0 = 6.5 ft
  • Top opening: 3.5 + 6.5 + 6.5 = 16.5 ft
  • Slope face: √(42.25 + 42.25) = 9.19 ft
  • Cross-section area: ((16.5 + 3.5) ÷ 2) × 6.5 = 65.0 sq ft
  • Volume per linear foot: 65.0 ÷ 27 = 2.41 yd³/ft

The 16.5-foot top opening is the number that matters here. The project manager pulls the right-of-way cross-section and finds 14 feet between the curb face and the property line. The sloped open cut doesn’t fit without encroaching on private property. Options: trench shields (no slope setback required, adds equipment cost and setup time), negotiate a temporary construction easement, or get additional soil testing to see if reclassification to Type A is supportable. The calculator didn’t make that decision — but it found the conflict before mobilization, not after.

Frequently Asked Questions

Can I enter zero for the bottom trench width?

Yes. Zero is accepted as a valid input. The result is a triangular cross-section — the top opening equals twice the setback, the slope faces meet at the bottom, and the area formula still works correctly as a degenerate trapezoid. This isn’t a realistic working trench geometry, but it’s useful for estimating spoil on pointed or tapered cut profiles where there’s no flat floor at all.

If I switch the unit selector from feet to meters after entering values, do the numbers convert automatically?

No — and this is important to catch before you read the output. Changing the unit selector updates the labels and immediately recalculates, but it does not convert the values you’ve already entered. If you typed 10 as feet and switch to meters, the tool calculates a 10-meter trench. The bottom width label mirrors the depth unit automatically, but the numeric value in that field stays as-is. Re-enter your figures in the intended unit after switching.

Why does Type A show an angle of 53.13° when it’s the best soil — shouldn’t the stronger soil have a smaller number?

The angle is measured from horizontal, not from vertical. A steeper wall — one that stands more upright — has a larger angle from horizontal. Type A soil is strong enough to hold a wall that’s 53.13° from flat ground, which is nearly as steep as the 90° of stable rock. Type C soil’s gentler 33.69° angle from horizontal means more setback and a more gradual incline. If you’re accustomed to thinking in terms of deviation from plumb, subtract the displayed angle from 90° to get how far off vertical the wall face is.

What does “PE Design Status: Not triggered by depth” actually mean?

It means the entered depth hasn’t crossed the 20-foot threshold where OSHA requires a registered professional engineer to design the protective system. It does not mean engineering judgment is absent from the job. Surcharge loads from equipment operating near the trench edge, proximity to existing structures, groundwater, and unusual soil conditions can all require PE involvement independent of depth. This field tracks only the explicit OSHA depth cutoff — nothing more.

Does the tool account for spoil piles or equipment setback from the trench edge?

No. The geometry here is limited to the trench cross-section itself — depth, bottom width, and slope. Spoil placement, equipment standoff distances, and surface surcharge loads affect trench stability but aren’t part of this calculation. OSHA requires spoil piles to be kept at least two feet back from the trench edge as a minimum; the total site footprint will be wider than the top opening this calculator produces once equipment and spoil are factored in.

References

  • OSHA 29 CFR 1926.652, Subpart P — Excavations: protective system requirements at 5 feet, PE design requirement at 20 feet, and soil classification framework.
  • OSHA 29 CFR 1926 Subpart P, Appendix B — Sloping and Benching: Type A (3/4 : 1), Type B (1 : 1), and Type C (1.5 : 1) maximum allowable slope ratios.
  • OSHA 29 CFR 1926 Subpart P, Appendix C — Soil Classification: unconfined compressive strength thresholds used to assign Type A (≥ 1.5 tsf), Type B (0.5–1.5 tsf), and Type C (≤ 0.5 tsf) classifications.