HyGeoWorks
🔒 Previews run in your browser (WebAssembly) · Inputs are sent only when you formally export
29 CFR 1926 Subpart P · Appendix A & Table B-1 · ft / tsf

OSHA Trench Sloping Calculator: Soil Classification and Maximum Allowable Slope (29 CFR 1926 Subpart P)

Single simple-slope check for trenches and excavations under 29 CFR 1926 Subpart P. Select the soil type, or classify it from the unconfined compressive strength and site conditions (Appendix A), and the calculation core returns the Table B-1 maximum allowable slope, the slope angle and the top-width increase per side in feet. Depths over 20 ft and surcharge loads are reported as not judged, because OSHA requires a registered professional engineer or a competent person for them.

Standards and references (context for this calculation; the basis the calculator applies is the one stated below):

Design basis for this page ▾
29 CFR 1926.652 Requirements for Protective Systems29 CFR 1926 Subpart P Appendix A Soil Classification29 CFR 1926 Subpart P Appendix B Sloping and Benching (Table B-1)

Design basis as reported by the calculation core: 29 CFR Part 1926 Subpart P (OSHA): §1926.652, Appendix A Soil Classification, Appendix B Table B-1 (e-CFR current text, up to date as of 2026-11-12)

Recalculates in your browser as you edit inputs; Free sample Word report and DXF for this calculator; With a license: formal Word and DXF export, plus online project reports from the Project List.

Interactive US Customary Engineering Workstation
US customary inputs (ft, tsf)
Free Samples and Pricing
A public sample produced by the production service from this page's standard example and sealed with a verification code: open it in Word or AutoCAD and check it on the Verify page. Not for PE sealing or submittal.
Single-export pass: US$19 for one calculator, 3 formal exports in total within 24 hours of the first; full credit toward an upgrade within 30 days, full refund before the first export
Single-export passes (one calculator, 3 exports within 24 hours), 30-day passes, annual plans and perpetual licenses; printable quotes for purchase orders.
Formal export and the Project List are on the workbench toolbar above:
Licensed users can formally export this calculator's Word report (with a verification code and server time witness) and AutoCAD DXF drawing, or add several calculators to the free Project List and export a multi-chapter project report online, with nothing to install on a Mac. Projects with DEM terrain or GIS files can run in the heavy cloud computation or in the HydroStudio desktop edition.
The summary lists the basis, key results and check verdicts; its first line marks it as an online preview, not for PE sealing or submittal.
Download the Offline Workbench (Single HTML File, 39 Tools)
No install and no email required. It contains the same calculation core as this site; results are also a preview, not for sealed submittals.

Check Summary Preview (Software Format; Auto-Populated)

Trench sloping check summary, OSHA Subpart P (software format)
Legal basis: 29 CFR Part 1926 Subpart P (§1926.652; Appendix A; Appendix B)
Calculation basis: 29 CFR Part 1926 Subpart P (OSHA): §1926.652, Appendix A Soil Classification, Appendix B Table B-1 (e-CFR current text, up to date as of 2026-11-12)
Check item Trial value Status
Planned slope not steeper than the maximum allowable slope (Appendix B (c)(3)(i))1:1 H:V ≥ 1:1OK

Summary of the online check (software format). Soil classification and site conditions are determined by the competent person, and excavations deeper than 20 ft are designed by a registered professional engineer. Public domain federal regulation (29 CFR Part 1926 Subpart P) pursuant to 17 U.S.C. Sec. 105.

Desktop edition: calculation reports and cross-module quantity reconciliation

1. Calculation reports: with a license, the desktop edition writes Word (.docx) and Excel (.xlsx) calculation reports and DXF drawings without the trial watermark, listing the inputs, the equations used and the results; in trial mode the step-by-step detail is hidden. For this calculator alone, licensed users can also sign in on the calculator above and formally export a single-tool Word report (with a verification code) and DXF drawing. The Pro plan (all modules) is US$990 per year; see Pricing for monthly, perpetual and team plans.
2. Cross-module reconciliation: desktop project runs carry the design peak flow into downstream channel, culvert and bridge hydraulics; terrain cut/fill into the earthwork balance, cost and carbon tables; structural concrete, formwork and rebar take-off into the cost and carbon tables; slope and excavation safety-factor thresholds into construction monitoring trigger levels.
3. Agency plan reviewers and university faculty can request a complimentary review or teaching license (link below).

Desktop pricing (Pro US$990/yr) Download the desktop trial Complimentary license for agency reviewers and faculty
Scope and responsibility: This page is a single-calculator trial run; cross-module quantity reconciliation is done in desktop project runs. Problems outside this calculator's scope (see the FAQ) need an appropriate analysis method. Final submittals require review and seal by a licensed Professional Engineer.

Regulatory Basis and Thresholds (29 CFR 1926 Subpart P)

Table B-1 maximum allowable slopes for excavations less than 20 feet deep are vertical (90°) for stable rock, 3/4:1 (53°) for Type A, 1:1 (45°) for Type B and 1½:1 (34°) for Type C soil (29 CFR 1926 Subpart P, Appendix B).

Governing Equations (US Customary Notation) & Basis Reported by the Calculation Core

The equations and limits the calculation core applies are listed below for independent checking.

Maximum Allowable Slope (Appendix B, Table B-1)
H:V max = vertical (stable rock), 3/4 (Type A), 1 (Type B), 1½ (Type C); 1/2 for short-term Type A excavations 12 ft or less deep
Applies to excavations 20 ft or less deep; deeper excavations require a design by a registered professional engineer (Table B-1 Note 3).
Required Slope with Distress or Without Classification
H:V req = H:V max + 1/2 with signs of distress; H:V req = 1½ without soil classification
Appendix B (c)(3)(ii) for distress; §1926.652(b)(1)(i) (Option 1) when the soil is not classified under Appendix A.
Slope Angle and Top-Width Increase
θ = arctan(1 / (H:V)), ΔW = (H:V) × D per side, W top = W bottom + 2·ΔW
D = excavation depth (ft); W bottom = trench bottom width (ft), optional. The core reports θ from the exact ratio; Table B-1 prints rounded angles.

Worked Example: 10 ft Deep Trench in Type B Soil with a Planned 1:1 Slope

The worked example below was computed by the calculation core when this page was built; entering the same inputs above reproduces it. Verification cases, tolerances and actual differences for the calculation core are listed on the Benchmarks page.

A 10 ft deep trench in Type B soil is cut back on each side at a planned slope of 1H:1V, with no signs of distress and no surcharge loads. The calculation core returns the maximum allowable slope, the slope angle and the top-width increase per side, and checks the planned slope against Table B-1.

Every number in this example was produced by the calculation core (WebAssembly) when this page was built. The calculation core computes this tool directly in feet and tons per square foot, the units in which 29 CFR 1926 Subpart P states its limits; no unit conversion is applied to the inputs or results. Basis reported by the core: 29 CFR Part 1926 Subpart P (OSHA): §1926.652, Appendix A Soil Classification, Appendix B Table B-1 (e-CFR current text, up to date as of 2026-11-12)

1. Input Parameters

Design ParameterUS Customary ValueUnit
Soil ClassificationType B—
Excavation Depth10ft
Trench Bottom Width(blank)ft
Planned Slope H:V1—
Short-Term ExcavationNo—
Signs of DistressNo—
Surcharge Loads PresentNo—
No Indication of Cave-InNo—

2. Computed Results (calculation core output)

OutputResult
Maximum allowable slope H:V1.00
Required slope H:V1.00
Slope angle from horizontal45.0 °
Top-width increase per side10.00 ft

Verification Checks (calculation core output)

Verification ItemComputed ResultGoverning Limit / CriterionStatusBasis
Planned slope not steeper than the maximum allowable slope (Appendix B (c)(3)(i))1:1H:V ≥ 1:1PASS29 CFR Part 1926 Subpart P (§1926.652; Appendix A; Appendix B): Appendix B (c)(2), (c)(3)

3. Calculation Steps (calculation core output)

[HyGeoWorks online preview - not for PE sealing or submittal]
Excavation depth H = 10.00 ft
Soil classification: Type B (User-specified)
Maximum allowable slope (Appendix B Table B-1): 1:1 (45°)
Top-width increase per side = H:V × H = 1.00 × 10.00 = 10.00 ft; slope angle = atan(1/1.00) = 45.0°

Assumptions and Limits Stated by the Calculation Core

Table B-1 Maximum Allowable Slopes by Soil Type (computed by the calculation core at 10 ft depth)

Table B-1 of 29 CFR 1926 Subpart P Appendix B gives the maximum allowable slope for each soil or rock type in excavations 20 ft or less deep. Each row below was computed by the calculation core in feet when this page was built, with no unit conversion; the angles are exact arctangents, while Table B-1 prints them rounded.

Soil or Rock TypeMaximum Allowable Slope H:VSlope Angle from HorizontalTop-Width Increase per Side (10 ft deep)
Stable rock0.0090.0 °0.00 ft
Type A0.7553.1 °7.50 ft
Type A, short-term (24 hours or less), 12 ft or less deep0.5063.4 °5.00 ft
Type B (worked example)1.0045.0 °10.00 ft
Type C1.5033.7 °15.00 ft

When not to use this calculator (limits of applicability)

This calculator checks a single simple slope against Table B-1 of 29 CFR 1926 Subpart P Appendix B; in the situations below, use the method in the right column instead.

SituationUse instead
Excavation depth greater than 20 ftDesign by a registered professional engineer (Table B-1 Note 3)
Groundwater seepage, or layers dipping into the excavation faceReclassify under Appendix A (Type C); the classify mode of this calculator applies it
Foundations of adjacent structures§1926.651(i)
Support systems or trench shieldsAppendix C or D tables, or the manufacturer's tabulated data
Excavations outside the United StatesThe local regulations of that country

Frequently Asked Questions (Basis, Scope & Limits)

Common questions about this calculator and its basis are answered below. Final submittals require review and seal by a licensed Professional Engineer.

What is the “5-4-3-2-1” trench rule, and which parts does this calculator check?

“5-4-3-2-1” is a jobsite training mnemonic, not a term in the OSHA standard, and published versions assign the numbers differently. The version that maps onto 29 CFR 1926 is: 5 — each employee in an excavation must be protected from cave-ins by a protective system unless the excavation is entirely in stable rock, or is less than 5 feet deep and a competent person finds no indication of a potential cave-in (§1926.652(a)(1)); a trench exactly 5 feet deep therefore needs protection. 4 — trench excavations 4 feet or more deep need a stairway, ladder, ramp or other safe means of egress located so that employees travel no more than 25 feet laterally (§1926.651(c)(2)); where a hazardous atmosphere could reasonably be expected, excavations greater than 4 feet deep are also tested before employees enter (§1926.651(g)(1)(i)). 3 — portable ladder side rails extend at least 3 feet above the upper landing surface, or the ladder is secured at its top and a grabrail is provided (§1926.1053(b)(1)). 2 — excavated or other materials and equipment are kept at least 2 feet from the edge, or retaining devices are used (§1926.651(j)(2)). 1 — a competent person inspects the excavation, the adjacent areas and the protective systems daily, before work starts, as needed during the shift and after every rainstorm (§1926.651(k)(1)); the standard sets when inspections happen, not a head count. This calculator checks only item 5: the stable-rock and under-5-foot exceptions (the latter when you confirm that the competent person found no indication of a cave-in) and, otherwise, the Appendix A soil type and the Table B-1 maximum allowable simple slope for excavations 20 feet or less deep. Egress, ladders, the 2-foot setback and inspections are site requirements that it does not check.

Does the calculator compute the slope reduction for surcharge loads?

No. Appendix B (c)(3)(iii) requires the maximum allowable slope to be reduced when surcharge loads from stored material or equipment, operating equipment or traffic are present, but OSHA gives no formula: a competent person determines the reduction. When Surcharge Loads Present is checked, the slope check is reported as not judged. Surcharge from adjacent structures is evaluated under §1926.651(i).

What happens for excavations deeper than 20 feet?

Table B-1 Note 3 requires sloping or benching for excavations greater than 20 feet deep to be designed by a registered professional engineer. The calculation core reports the slope check as not judged and outputs no slope values above 20 ft. At exactly 20 ft Table B-1 still applies, as Figure B-1 covers excavations 20 feet or less deep.

How does the soil classification mode work?

With Soil Classification set to classify, the core applies Appendix A (b): Type A needs cohesive soil with qu of 1.5 tsf or greater that is not fissured, not subject to vibration and not previously disturbed; qu of 0.5 tsf or less, granular soil, submerged or freely seeping soil, or layers dipping into the excavation at 4H:1V or steeper make it Type C. Cohesive soil without a qu value cannot be classified, so the core uses the 1½H:1V slope of §1926.652(b)(1)(i).

Does the calculator cover benching, shoring or trench shields?

No. It checks a single simple slope from Table B-1. Benching and vertically sided lower portions follow Figure B-1, support and shield systems follow Appendices C and D or the manufacturer's tabulated data, and adjacent structures follow §1926.651(i). A competent person classifies the soil from at least one visual and one manual analysis (Appendix A (c)).

USD Pricing · Checkout by Stripe · Printable USD Quotation

From the Online Preview to the HydroStudio Desktop Edition: Reports Without the Trial Watermark

The free online preview is not for PE sealing or submittal and has no Word report, DXF drawing or verification code. Licensed users can sign in on the calculator and formally export a single-tool Word report (with a verification code) and DXF drawing. Several calculators can be combined in the Project List and exported online as a multi-chapter project report, and projects with terrain or GIS files can run in the heavy cloud computation. For interactive 2D models and large simulations, the HydroStudio desktop edition (Windows 10/11, 64-bit) opens the exported .toml project and, with a license, writes report.docx, a report.xlsx with live formulas and DXF drawings without the trial watermark. Sealing and submittal remain the responsibility of the licensed engineer.

Monthly
Pro monthly
$119 / month
One discipline: $69 / month. Renews monthly until canceled; cancel any time before the next renewal and keep using it to the end of the paid month.
Buy monthly ($119/mo)
30 days
30-day pass
$79 / 30 days, one discipline
All modules: $135. One payment; it does not renew. The pass fee can be credited once toward an annual or perpetual license of the same discipline or a higher plan bought within 30 days after the pass ends, with the same email and in the same currency.
Buy a 30-day pass (from $79)
Quotation
Printable USD quotation
For any plan, including Firm (from 3 seats) and Enterprise (from 10 seats), which are sold only to businesses and other organizations, not to individual buyers: print the quotation or save it as a PDF for your purchasing process.
Request a printable USD quotation

Compare all plans, including 90-day passes and perpetual licenses

Checkout is processed by Stripe; a tax ID can be entered at checkout, and for one-time payments Stripe issues an invoice showing the buyer's name and tax ID. Procurement follows your organization's own rules.

Explore All 31 Tools (20 US Customary + 11 Reference: Basis Stated on Each Page)

Need to edit terrain, 2D flood models and design alternatives interactively on your computer, or see 3D views drawn from your project data? Use the HydroStudio desktop edition:
Download the Desktop Trial
No credit card or phone number is needed to download. Without a license it runs as a trial: local calculation and 3D viewing work, exported reports and drawings carry a trial watermark (not for submittal), and some built-in data libraries are limited. Plans and prices are on the Pricing page.