How to Calculate Trench Excavation, Backfill and Bedding Quantities

Every pipe job comes down to three numbers: how much dirt comes out, how much bedding material goes in around the pipe, and how much backfill goes back on top. Get them wrong and you're short on bedding, paying for extra trucks, or bidding money away. This guide walks through the math using a uniform depth watermain example, then shows how Trench Calculator does it for you.

Trench Calculator app icon
Trench Calculator app icon

The three quantities

  • Excavation is the full volume of the trench, from the bottom of the bedding to finished grade.

  • Bedding is the zone of stone, sand or other specified material around the pipe: a minimum thickness below the pipe plus a minimum cover above it. The pipe's own volume is subtracted out.

  • Backfill is everything above the bedding up to grade.

Excavation = Bedding + Pipe + Backfill. If your three numbers don't add back up to the excavation, something's off.

Step 1: Get your inputs

For our uniform depth example, an 8" watermain run with 5 ft of cover on the Washington St Reconstruction project. To keep the math simple, we use 8 in as the pipe size:

  • Depth to bottom of pipe (invert): 5.67 ft (5 ft of cover over the pipe)

  • Bottom width: 3.00 ft

  • Pipe outside diameter: 8 in

  • Bedding below pipe: 4 in

  • Bedding cover above pipe: 12 in

  • Side slope (angle of repose): 1:1

  • Run length: 1,260 ft

Use the outside diameter of the pipe, not the nominal size. The bedding and the pipe volume both depend on the real outside dimension.

Trench Calculator inputs for trench depth, bottom width, pipe diameter and bedding thickness
Trench Calculator inputs for trench depth, bottom width, pipe diameter and bedding thickness
Trench Calculator trench run with name, category, pay item and length
Trench Calculator trench run with name, category, pay item and length

Step 2: Find the total trench depth and top width

The trench is dug below the pipe to make room for bedding, so:

Total depth = invert depth + bedding below pipe = 5.67 ft + 0.33 ft = 6.00 ft

With 1:1 side slopes, each side lays back 1 ft for every foot of depth:

Top width = bottom width + 2 × (depth × slope) = 3 + 2 × 6.00 = 15.0 ft

Step 3: Excavation area and volume

A sloped trench is a trapezoid, so its cross-sectional area is:

Area = (bottom width + top width) ÷ 2 × depth = (3 + 15) ÷ 2 × 6 = 54.05 ft²

Volume = area × length ÷ 27 = 54.05 × 1,260 ÷ 27 = about 2,522 yd³ of excavation

Step 4: Bedding

The bedding zone runs from the trench bottom up to 12 in above the top of the pipe:

Bedding height = 4 in below + 8 in pipe + 12 in cover = 24 in (2.00 ft)

The trench is 7.0 ft wide at that height (3 + 2 × 2.00), so the bedding zone is a smaller trapezoid:

Zone area = (3 + 7) ÷ 2 × 2.00 = 10.0 ft²

Subtract the pipe (an 8 in circle is 0.35 ft²):

Bedding area = 10.0 − 0.35 = 9.65 ft², or 9.65 × 1,260 ÷ 27 = about 450 yd³ of bedding material

Step 5: Backfill

Backfill is what's left:

Backfill area = 54.05 − 10.0 = 44.05 ft², or 44.05 × 1,260 ÷ 27 = about 2,056 yd³ of backfill

Check it

Bedding 450 + pipe 16 + backfill 2,056 = 2,522 yd³, which matches the excavation.

Trench cross-section showing bedding, backfill and pipe areas
Trench cross-section showing bedding, backfill and pipe areas

Don't forget: in-place vs. loose

These are in-place (bank) volumes. They don't include compaction, waste, or swell when material is hauled. Apply your own factors before ordering bedding material or counting trucks.

Doing it in Trench Calculator

Doing this by hand for one run is fine. Doing it for a whole project, with different depths, pipe sizes and slopes on every run, is where mistakes creep in. In Trench Calculator:

  1. Create a project and add a trench run.

  2. Choose a depth input (Uniform, Start/End, or Elevations), then enter invert depth, bottom width, pipe shape and size, and bedding thicknesses.

  3. Pick an angle of repose (1:¾, 1:1, 1:1.5, 1:2 or custom) and tap Calculate Volumes.

The app draws the cross-section, shows each area, and gives you excavation, backfill, bedding and pipe volumes. Add every run on the job, tag them by category and pay item, and export a PDF or CSV report with project totals and subtotals.

Your data stays on your phone. No account or login is needed.

Trench Calculator PDF report with project totals and subtotals by category and pay item
Trench Calculator PDF report with project totals and subtotals by category and pay item
Get it on Google PlayGet it on Google Play
Download on the App StoreDownload on the App Store
Trench Calculator results showing excavation, backfill, bedding and pipe volumes in cubic yards
Trench Calculator results showing excavation, backfill, bedding and pipe volumes in cubic yards

FAQ

Do I use nominal or outside pipe diameter?

Outside diameter. It sets both the pipe volume and the bedding height. The uniform depth example above uses the 8 in nominal size for simplicity.

What angle of repose should I use?

Use what your soil type, trench protection and local safety rules call for. Steeper slopes such as 1:¾ hold in stiffer soils, and flatter ones such as 1:1.5 or 1:2 suit looser ground. Your competent person makes the call on site.

What if depth changes along the run?

Use the Start/End or Elevations depth inputs in Trench Calculator instead of a single uniform depth.

Terms and Conditions

Please review the terms of use before using the app:

About Us

Linesite Tech specializes in innovative mobile and web applications for the construction industry.

A person is holding a smartphone displaying an app with buttons labeled Scan, Cart, and History against a blurred brick wall background. The app interface appears to be minimalistic and functional.
A person is holding a smartphone displaying an app with buttons labeled Scan, Cart, and History against a blurred brick wall background. The app interface appears to be minimalistic and functional.
A person is holding a smartphone displaying a design app while sitting at a desk with a laptop, stylus, and cup of coffee. The laptop screen shows a design software interface with various templates and designs.
A person is holding a smartphone displaying a design app while sitting at a desk with a laptop, stylus, and cup of coffee. The laptop screen shows a design software interface with various templates and designs.
Contact

Get in touch for mobile and web solutions.

About

Support

info@linesitetech.com

© 2026 Shotwell Enterprises LLC (Linesite Tech). All rights reserved.