ThisCalculator

Math

Excavation Calculator with Slope: How to Use It

Updated · Standard formula, shown below

Volume 21.98 cu yd
Side slope (H:V)
0.40 ":1"
Result
Volume
16.80 cu m
Result
Top length
20 ft
You entered

Excavation Calculator with Slope: How to Use It

This excavation calculator with slope tells you the volume of earth to remove from a trench or pit when the sides are angled, not vertical. You enter the top length, top width, bottom length, bottom width, and depth, and it returns the volume in cubic yards or cubic meters, plus the side slope ratio. The slope is built into the formula, so you don’t need a separate angle calculation.

Formula

The calculator uses the prismoidal formula for a truncated rectangular pyramid (a frustum). For a pit with vertical ends and sloped sides, the volume V in cubic feet is:

V = (D / 6) × (Atop + 4 × Amid + Abottom)

Where:

  • D = depth of the excavation (ft or m)
  • Atop = top length × top width (area at ground surface)
  • Abottom = bottom length × bottom width (area at the bottom)
  • Amid = average of top and bottom dimensions, squared (mid-depth area)

For a rectangular frustum, this simplifies to:

V = (D/6) × (Ltop × Wtop + Lbot × Wbot + (Ltop + Lbot) × (Wtop + Wbot))

That is exactly what the calculator computes. The side slope ratio is (horizontal run) : (vertical rise), calculated as (top length – bottom length) / (2 × depth). For a trench, the same formula works if you treat the length as the long dimension and width as the short one.

Worked Example

Using the default values: top length 20 ft, top width 6 ft, bottom length 16 ft, bottom width 2 ft, depth 5 ft.

  1. Compute the areas: Atop = 20 × 6 = 120 sq ft; Abottom = 16 × 2 = 32 sq ft.
  2. Mid dimensions: (20+16)/2 = 18 ft length, (6+2)/2 = 4 ft width; Amid = 18 × 4 = 72 sq ft.
  3. Apply the prismoidal formula: V = (5/6) × (120 + 4×72 + 32) = (5/6) × (120 + 288 + 32) = (5/6) × 440 = 366.67 cu ft.
  4. Convert to cubic yards: 366.67 / 27 = 13.58 cu yd.
  5. Side slope: (20 – 16) / (2 × 5) = 4/10 = 0.4, so the slope is 0.4:1 (horizontal to vertical).

The calculator shows 13.58 cu yd and a slope ratio of 0.4:1. If you need a steeper slope, say 1:1, you would widen the top accordingly.

Why Slope Matters in Excavation

Sloped sides prevent collapse. Soil has a natural angle of repose – the steepest angle it can hold without sliding. OSHA and most local codes require excavations deeper than 5 ft to be sloped or shored, but even shallow trenches can fail. The slope ratio (horizontal:vertical) depends on soil type: stable rock can be nearly vertical, while loose sand may need 1.5:1 or flatter. Using a calculator with slope lets you see how much extra material you’ll remove when you widen the top for safety.

How to Choose Your Inputs

Measure the actual dimensions at the site, not from plans alone. The top length and width are at ground level; the bottom length and width are at the deepest point. If you are digging a trench with vertical ends, the bottom length equals the top length. For a pit with sloped sides on all four sides, both top dimensions will be larger than the bottom. If you know the required slope ratio (e.g., 1:1), you can calculate the top dimensions: top length = bottom length + 2 × depth × slope.

Common Mistakes and Misconceptions

  • Forgetting to convert units: If you measure in feet, the volume comes out in cubic feet; divide by 27 for cubic yards. Many contractors order fill by the cubic yard, so this step is critical.
  • Using vertical walls when you have slopes: The difference between a vertical-sided hole and a sloped one can be 30–50% more volume. Always use the top dimensions.
  • Confusing slope ratio with angle: A 1:1 slope is a 45° angle, but a 0.5:1 slope is about 63°. The calculator gives the ratio, not the angle, but you can convert: angle = arctan(1/slope).
  • Assuming the bottom is flat: The formula assumes a level bottom. If the bottom is uneven, break the excavation into sections and sum the volumes.

How to Read the Results

The volume is the amount of soil you need to remove (or backfill). In practice, excavated soil “swells� – it takes up more space after digging than it did in place. For sandy soil, swell is about 10–15%; for clay, up to 30%. So the volume you haul away will be larger than the in-situ volume. The calculator gives the in-situ volume. When ordering fill for backfill, you also need to account for compaction – compacted fill takes less volume than loose fill.

Limitations of the Formula

This formula is exact for a prismoid with plane faces. It works well for rectangular pits and trenches with straight slopes. It does not handle irregular shapes, curved sides, or benches (stepped slopes). For those, you need to split the shape into simpler parts or use a more advanced method like cross-section averaging. Also, the formula assumes the slope is uniform on all sides; if you have different slopes on different sides, you must calculate each side separately or use a more general method.

Safety and Practical Tips

  • Always check local regulations for minimum slope requirements based on soil type.
  • For trenches deeper than 4 ft, provide a means of exit (ladder) within 25 ft of any worker.
  • Keep spoils and equipment at least 2 ft from the edge to reduce surcharge loads.
  • In wet conditions, soil can collapse even at gentle slopes – increase the slope or use shoring.
  • Never enter an unprotected excavation; if you must, use a trench box or proper shoring.

Frequently Asked Questions

What is a typical slope for excavation?

For most soils, a 1:1 slope (45°) is common for depths up to 20 ft. Type A soil (cohesive, like clay) can use 0.75:1, Type B (silty) 1:1, and Type C (sandy) 1.5:1. Always follow your local code, which may be stricter.

How do I calculate the slope angle from the ratio?

Use the arctangent: angle = arctan(1/slope). For a 1:1 slope, that’s arctan(1) = 45°. For 0.5:1, it’s arctan(2) ≈ 63.4°. The calculator gives the ratio, but you can convert easily.

Does the calculator work for trenches with vertical ends?

Yes. For a trench, the bottom length equals the top length (if the ends are vertical), and the width difference gives the slope. Enter the same value for top and bottom length.

What if my excavation is not rectangular?

Break it into rectangular sections and calculate each separately, then add the volumes. For circular pits, use a different formula (volume of a cone frustum).

How much does excavated soil swell?

Swell varies by soil type: 10–15% for sand and gravel, 20–30% for clay, and up to 40% for rock. Multiply the in-situ volume by (1 + swell%) to estimate the loose volume you’ll haul.

Can I use this for backfill calculations?

Yes, but remember that backfill is compacted, so you need more loose fill than the final volume. Typically, compaction reduces volume by 10–20%, so order 10–20% more than the calculated volume.

Related

Formula used
in top_len | Top length | ft | 20 | 0
in top_wid | Top width | ft | 6 | 0
in bot_len | Bottom length | ft | 16 | 0
in bot_wid | Bottom width | ft | 2 | 0
in depth | Depth | ft | 5 | 0
out volume_cy | Volume | cu yd | (depth/27) * (top_len*bot_wid + bot_len*top_wid + 2*(bot_len*bot_wid + top_len*top_wid) + 2*(bot_len*top_wid + top_len*bot_wid)) / 6 | 2
out slope_ratio | Side slope (H:V) | ":1" | (top_len - bot_len) / (2 * depth) | 2
out volume_cm | Volume | cu m | (depth*0.3048) * ((top_len*0.3048)*(bot_wid*0.3048) + (bot_len*0.3048)*(top_wid*0.3048) + 2*((bot_len*0.3048)*(bot_wid*0.3048) + (top_len*0.3048)*(top_wid*0.3048)) + 2*((bot_len*0.3048)*(top_wid*0.3048) + (top_len*0.3048)*(bot_wid*0.3048))) / 6 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.