Trench Calculator 2026: Excavation Volume, Spoil & Cost
Calculate trench excavation volume in cubic yards for straight-wall or sloped trenches. Enter length, width, and depth to get bank volume, loose spoil volume with soil swell applied, pipe bedding and backfill quantities, and an OSHA 1926.652 slope check for trenches 5 feet deep or more. Pair this with the backfill calculator to plan the fill side of the same excavation.
⛏ Trench Calculator
Excavation Volume | Spoil & Swell | Bedding & Backfill | Cost Estimate
💰 Estimate Your Project Cost
Get accurate cost estimates before calling a contractor — compare prices and plan your budget.
Rebar Weight Chart
US Standard Rebar Sizes (#2–#18) with weight per foot, diameter, and cross-sectional area.
View Chart →OSHA Slope Requirements by Soil Type
Trenches 5 feet deep or greater require a protective system unless dug entirely in stable rock. Sloping is one accepted method. These ranges apply to excavations less than 20 feet deep per OSHA 1926 Subpart P, Appendix B.
| Soil Type | Description | Max Slope (H:V) | Angle from Horizontal | Setback per Foot of Depth |
|---|---|---|---|---|
| Type A | Clay, cohesive soil, ≥ 1.5 tsf strength | 3/4:1 | 53° | 0.75 ft |
| Type B | Silt, sandy loam, 0.5-1.5 tsf | 1:1 | 45° | 1.0 ft |
| Type C | Sand, gravel, submerged or seeping soil | 1 1/2:1 | 34° | 1.5 ft |
| Any Type (default) | No soil classification test performed | 1 1/2:1 | 34° | 1.5 ft |
Source: OSHA 29 CFR 1926, Subpart P, Appendix B, Table B-1. Short-term excavations 12 ft or less in Type A soil may use a steeper 1/2:1 slope; verify with a competent person before relying on this exception.
How This Calculator Works
Set Dimensions
Enter length, bottom width, and depth. For depths under 5 ft, a straight-wall trench is common. At 5 ft or more, OSHA requires a protective system.
Apply Slope or Shoring
Sloped trenches widen at the top based on soil type. Straight-wall trenches assume shoring or a trench box, so width stays constant with depth.
Calculate Bank Volume
Average-end-area method converts your dimensions into cubic feet, then divides by 27 for cubic yards of in-ground (bank) volume.
Add Swell and Cost
A soil-specific swell factor converts bank volume to loose spoil volume for hauling, and optional cost rates estimate a total excavation budget.
Bank Volume, Loose Volume, and Why They Differ
Soil in the ground is compacted by the weight above it. Once excavated, that same soil occupies more space because digging breaks up its compacted structure and introduces air pockets between particles. The in-ground measurement is called bank volume. The excavated, loosened measurement is called loose volume, and it is always larger.
This distinction matters for two practical reasons. First, if you are hauling spoil off-site, dump trucks are loaded and billed by loose volume, not bank volume, so underestimating the swell factor means underestimating truck trips and disposal cost. Second, if soil is later compacted back into the trench as backfill, it compresses again, typically to somewhat less than its original bank volume, which is why backfill calculations use a separate compaction or shrinkage factor rather than simply reversing the swell percentage.
Straight-Wall vs. Sloped Trenches
A straight-wall trench keeps the same width from bottom to top because a trench box, shield, or shoring system holds the walls vertical. This uses less excavation volume for the same depth and footprint. A sloped trench cuts the walls back at an angle instead of using mechanical support, which requires no specialized equipment but excavates significantly more material as depth increases, since the top width grows by twice the slope setback for every foot of depth.
💡 Tip - Sloping Gets Expensive Fast
A 6 ft deep trench in Type C soil (1.5:1 slope) needs 9 additional feet of width at the top, 4.5 ft on each side, compared to the bottom width. On a 100 ft run, that single depth increase can add over 200 cubic yards of extra excavation compared to a shored, straight-wall trench of the same bottom width and depth. For longer or deeper runs, shoring or a trench box is often more economical than sloping once you account for the extra spoil volume and reduced disturbed area.
Example Scenarios: Straight Wall vs. Sloped
Scenario 1: Shored Utility Trench
50 ft long, 24 in bottom width, 5 ft deep, straight wall (trench box)
500 ÷ 27 = 18.52 cu yd bank volume
At 25% swell (common earth): 18.52 x 1.25 = 23.15 cu yd loose spoil
This is a typical narrow utility trench where a trench box eliminates the need for sloping, keeping excavation volume low.
Scenario 2: Same Trench, Sloped Instead
Same 50 ft x 24 in x 5 ft trench, but sloped at Type C (1.5:1) instead of shored
Volume = 50 x 9.5 x 5 = 2,375 cu ft ÷ 27 = 87.96 cu yd bank volume
Switching from a trench box to sloping nearly 5x the excavation volume for the identical trench footprint and depth. This is the calculation many DIY estimates miss.
Common Mistake: Ignoring Swell on Haul Estimates
Estimator quotes hauling based on bank volume instead of loose volume
Underestimate: 25 cu yd, roughly 2-3 extra 10-yard truckloads not accounted for.
Always confirm whether a hauling quote is based on bank or loose measure before comparing bids.
Common Trench Calculation Mistakes
⚠ Errors That Change the Result
- Using bank volume for truck counts: Dump trucks load loose, swelled material. Always apply the swell factor before estimating truckloads or hauling cost.
- Forgetting the OSHA 5 ft threshold: Any trench reaching 5 ft deep requires a protective system per 29 CFR 1926.652, unless cut entirely in stable rock. This applies even to short sections of an otherwise shallow trench.
- Assuming a steeper slope than the soil allows: Defaulting to Type A's 3/4:1 slope without soil classification testing is a serious safety violation if the actual soil is Type B or C. When in doubt, use the 1 1/2:1 default slope safe for any soil type.
- Double-counting pipe volume in backfill: Backfill volume should subtract the volume occupied by the pipe and bedding material, not just bedding alone, or the backfill quantity will be overstated.
- Ignoring bulking on rock excavation: Blasted rock can swell 50 to 65 percent, roughly double the swell of common earth. Using a soil-based swell factor for rock excavation significantly understates hauling needs.
Permits, Utility Locates, and Site Logistics
Call 811 at least a few business days before digging, in every US state, to have underground utility lines marked at no cost. This applies to trenches of any depth, including shallow landscaping or drainage trenches, since utility lines are sometimes buried closer to the surface than expected.
Many municipalities require a permit for trenches connecting to public water, sewer, or gas utilities, and some require one for any excavation beyond a specified depth near a property line or easement. Requirements vary significantly by jurisdiction, so confirm with your local building department before starting work. For any trench 5 feet deep or more on a job site with employees, a documented competent-person inspection is required under OSHA regardless of whether a local permit is also needed.
Use the gravel calculator to plan bedding or base material once trench dimensions are confirmed, and the excavation cost calculator for a more detailed project-level cost breakdown beyond this tool's estimate.
Frequently Asked Questions
For a straight-wall trench, multiply length x width x depth in feet, then divide by 27 to convert cubic feet to cubic yards. For a sloped trench, first find the average width by adding the bottom width and top width and dividing by 2, then multiply average width x depth x length and divide by 27.
Per OSHA 29 CFR 1926.652, trenches 5 feet deep or greater require a protective system (sloping, benching, shoring, or a trench box) unless the excavation is made entirely in stable rock. Trenches 20 feet deep or greater require a protective system designed by a registered professional engineer.
Per OSHA 1926 Subpart P, Appendix B, Table B-1, the maximum allowable slope for excavations less than 20 feet deep is 3/4:1 (53 degrees) for Type A soil, 1:1 (45 degrees) for Type B soil, and 1 1/2:1 (34 degrees) for Type C soil. A 1.5:1 slope is considered safe for any soil type without soil classification testing.
Excavated soil occupies more volume once removed from the ground because digging loosens its compacted structure. Typical swell factors range from about 10 to 15 percent for sand and gravel, 20 to 30 percent for common earth, and 25 to 40 percent for wet clay. This calculator applies a swell factor to convert bank (in-ground) volume to loose (spoil pile) volume.
Bedding depth requirements vary by local specification, but a commonly referenced minimum is 4 inches of bedding material below the pipe for pipe sizes up to about 30 inches, with 6 inches below larger pipe. Always confirm the exact bedding depth and material with your project specifications or local utility standards, since requirements differ by jurisdiction and pipe type.
Excavation in average soil conditions typically runs about 6 to 10 dollars per cubic yard including labor and equipment, with light soil at the low end and heavy, wet, or rocky soil pushing costs to 15 dollars or more per cubic yard. Hauling excavated dirt off-site typically adds 8 to 25 dollars per cubic yard depending on distance and site access.
Requirements vary by municipality, but many jurisdictions require a permit for trenches connecting to public utilities, exceeding a certain depth, or located near property lines and easements. Always call 811 to have underground utilities marked before digging, regardless of permit requirements, and check with your local building department before starting work.
Sources and Methodology
- OSHA 29 CFR 1926.652, "Requirements for Protective Systems," Occupational Safety and Health Administration.
- OSHA 1926 Subpart P, Appendix B, "Sloping and Benching," Table B-1 (Maximum Allowable Slopes).
- OSHA Publication 2226, "Trenching and Excavation Safety."
- Soil swell factor ranges compiled from published earthwork estimating references for common earth, sand/gravel, clay, and blasted rock.
- Pipe bedding depth references from municipal and institutional trenching specifications (typical 4-6 in minimum below pipe; verify local requirements).
- Excavation and hauling cost ranges from published 2025-2026 US residential and light-commercial excavation cost guides.
Last reviewed: September 2026. Reviewed by site author.
Disclaimer
This calculator provides estimates for planning purposes. For permitted structural work, foundations, multi-story construction, retaining walls over 4 feet, and commercial projects, calculations must be verified by a licensed structural engineer per IBC 2024 Section 1604. ConcreteCalculate.com is not liable for structural decisions made from these estimates.
Trench safety decisions, including soil classification and protective system selection, must be made on-site by a qualified competent person as defined by OSHA 29 CFR 1926.650. This calculator does not replace that determination.
Built by Muhammad Ramzan Babar, physics researcher (PhD candidate). Reviewed by site author.
Privacy
Calculations run in your browser using data you enter. No project information is stored or transmitted to any server beyond the single calculation request, and no personal data is collected by this tool.
Unlock Your Complete Results
Your calculation is ready. Enter your email to unlock:
- ✔ Download a printable PDF estimate
- ✔ Get 2026 US concrete material prices
- ✔ Save your project calculations instantly
- ✔ Access contractor cost-saving tips