Trench Calculator
Test cases replayed : 3 of 3 match · Methodology · Sources
Enter the trench length, bottom width and depth, plus the side slope if the walls are cut back, to get the volume of soil to excavate.
Result
Volume to excavatecu yd
Width at the top (ft)
Reading the result
At a glance
What moves the result
Method and sources: How this calculator works, Sources
- Cross-section area (sq ft)
- Volume to excavate (cu ft)
Estimate for planning only, not tax, legal, financial or medical advice. Check important figures with the official source listed on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for measuring wheels. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Trench length, in ft: enter 0 or more.
- Bottom width, in ft: enter 0 or more.
- Depth, in ft: enter 0 or more.
- Side slope, horizontal run per 1 ft of depth (ft per ft, 0 = vertical sides): enter a number from 0 to 5.
- Read the result: Volume to excavate; the panel also shows Width at the top (ft), Cross-section area (sq ft) and Volume to excavate (cu ft).
Sources
- 29 CFR Part 1926, Subpart P, Appendix B: Sloping and Benching U.S. Government Publishing Office (Code of Federal Regulations) checked on 2026-11-04
- 29 CFR 1926.652: Requirements for protective systems U.S. Government Publishing Office (Code of Federal Regulations) checked on 2026-11-04
How this calculator works
A trench with both sides cut back at the same slope has a trapezoid cross-section. Top width = bottom width + 2 × slope × depth; cross-section = depth × (bottom width + top width) ÷ 2; volume = cross-section × length. 1 cubic yard = 27 cubic feet.
The result is the in-place (bank) volume. Dug soil takes more room once loosened; ask your hauler or soil report for the swell of your soil before ordering trucks.
Slopes for worker protection: 29 CFR 1926 Subpart P, Appendix B, which applies when sloping is designed under Option (2) of 29 CFR 1926.652(b) (Code of Federal Regulations, 2025 edition, govinfo.gov, read on November 4, 2026). Maximum allowable slopes, horizontal to vertical, for simple slope excavations 20 feet or less in depth: Type A soil, 3/4 to 1; Type B, 1 to 1; Type C, 1 1/2 to 1. Type A soil has one exception: "Simple slope excavations which are open 24 hours or less (short term) and which are 12 feet or less in depth shall have a maximum allowable slope of 1/2 :1." Outside these cases, for example deeper than 20 feet, the Appendix B slopes no longer apply: "All other sloped excavations shall be in accordance with the other options permitted in § 1926.652(b)." An engineer's approval is the rule of Option (4), 29 CFR 1926.652(b)(4)(i): "Sloping and benching systems not utilizing Option (1) or Option (2) or Option (3) under paragraph (b) of this section shall be approved by a registered professional engineer." Under Option (3), at least one copy of the tabulated data "which identifies the registered professional engineer who approved the data" must be kept at the jobsite during construction (29 CFR 1926.652(b)(3)(iii)).
Under 29 CFR 1926.652(a)(1), each worker in an excavation must be protected from cave-ins by a protective system unless the excavation is entirely in stable rock, or less than 5 feet deep with no sign of a potential cave-in on examination by a competent person. Soil type is classified under Appendix A of the same subpart; this calculator does not classify soil.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Trench length | ft | |
| Bottom width | ft | |
| Depth | ft | |
| Side slope, horizontal run per 1 ft of depth (0 = vertical sides) | ft per ft | |
| Result of step 1 | ||
| Cross-section area | sq ft | |
| Volume to excavate | cu ft | |
| Volume to excavate | cu yd |
Worked example
| Trench length | 50 ft |
|---|---|
| Bottom width | 2 ft |
| Depth | 4 ft |
| Side slope, horizontal run per 1 ft of depth (ft per ft, 0 = vertical sides) | 0 |
| Width at the top (ft) | 2.00 |
|---|---|
| Cross-section area (sq ft) | 8.00 |
| Volume to excavate (cu ft) | 400 |
Volume to excavate 14.81 cu yd
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What slope should I enter for a trench box or shoring?
Enter 0. With a trench box or shoring the walls stay vertical, so the volume is length × width × depth.
Does this account for benching?
No. Benched walls step back in levels; for a rough figure, enter the overall slope of the benches (total horizontal setback ÷ depth).
Why are my truck loads higher than the cubic yards shown?
Excavated soil swells when it is loosened, so it fills more truck volume than it took in the ground. The swell depends on the soil.