Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Volume to excavate—cu yd

Width at the top (ft) —

  • 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.

Trench Calculator

Trench length, in ft: enter 0 or more. Prefilled example: 50.

Bottom width, in ft: enter 0 or more. Prefilled example: 2.

Depth, in ft: enter 0 or more. Prefilled example: 4.

Side slope, horizontal run per 1 ft of depth (ft per ft, 0 = vertical sides): enter a number from 0 to 5. Prefilled example: 0.

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.

  1. Trench length, in ft: enter 0 or more.
  2. Bottom width, in ft: enter 0 or more.
  3. Depth, in ft: enter 0 or more.
  4. Side slope, horizontal run per 1 ft of depth (ft per ft, 0 = vertical sides): enter a number from 0 to 5.
  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

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

  1. Wt=wb+2×s×d
  2. A=d×(wb+Wt)2
  3. C=len×A
  4. Cu=C27
Symbols used in the formula
SymbolMeaningUnit
lenTrench lengthft
wbBottom widthft
dDepthft
sSide slope, horizontal run per 1 ft of depth (0 = vertical sides)ft per ft
WtResult of step 1
ACross-section areasq ft
CVolume to excavatecu ft
CuVolume to excavatecu yd

Worked example

Trench length50 ft
Bottom width2 ft
Depth4 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
  1. Wt=2+2×0×4=2
  2. A=4×(2+2)2=8
  3. C=50×8=400
  4. Cu=40027=14.8148

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.

Questions answered

Related calculators