Skip to calculator
Back to Blog
construction

How to Calculate Excavation Volume in Cubic Yards

To calculate excavation volume: multiply length × width × depth in feet, then divide by 27 to convert to cubic yards. Full guide with examples and common mistakes.

Updated

Excavation volume = (Length × Width × Depth) ÷ 27. That's the formula. But applying it correctly to a real project — accounting for irregular shapes, soil swell, compaction, and measurement quirks — takes a bit more knowledge. This guide walks through every step, with examples for common project types.


Why Cubic Yards and Not Cubic Feet?


The construction industry prices excavation by the cubic yard. One cubic yard = 27 cubic feet (3 ft × 3 ft × 3 ft). Most estimates you get from contractors will list volume in cubic yards, and that's the unit on our excavation cost calculator. It's worth knowing both: cubic feet is easier to measure in the field, but cubic yards is what goes on the bid.


The Basic Formula


For any rectangular excavation:


Volume (cubic yards) = (Length in feet × Width in feet × Depth in feet) ÷ 27


Example: A foundation dig that's 40 ft long, 30 ft wide, and 4 ft deep.


(40 × 30 × 4) ÷ 27 = 4,800 ÷ 27 = 177.8 cubic yards


That's 177.8 cubic yards of soil to remove. At a typical clay soil rate of $15/cu yd with standard hauling at $12/cu yd and a foundation multiplier of 1.15×, you're looking at roughly $5,200 total using the excavation cost calculator.


Step-by-Step Measurement Guide


Step 1: Measure your longest dimension


Use a tape measure or laser distance measurer. For foundations, measure the outside edge of the planned structure, then add 12–18 inches on each side for forming access. A 24×24 ft garage slab becomes a 26×26 ft excavation footprint at minimum.


Step 2: Determine actual depth


This is where most estimates go wrong. Depth isn't just the finished floor-to-grade height — it includes:


- The finished structure depth below grade

- Plus any gravel base or compactible fill layer (typically 4–6 inches for slabs)

- Plus any over-excavation for forming clearance


A basement that's 8 ft of finished ceiling height below grade might require 8.5–9 ft of actual excavation when you account for the footing, base gravel, and tolerance.


Step 3: Check for irregular shape


Rectangular excavations are straightforward. For L-shaped or irregular footprints, break the shape into rectangles, calculate each separately, and add them together.


Example: An L-shaped foundation with sections of 40×20 ft and 20×25 ft, both at 4 ft deep.


Section A: (40 × 20 × 4) ÷ 27 = 118.5 cu yd

Section B: (20 × 25 × 4) ÷ 27 = 74.1 cu yd

Total: 192.6 cubic yards


Step 4: Apply the swell factor


When you excavate soil, it expands in volume as it's broken up. This is called the swell factor. Typical values:


  • Topsoil15–20% swell
  • Clay25–35% swell
  • Sand and gravel10–15% swell
  • Rock (blasted)30–50% swell

  • The swell factor matters when calculating truck loads for hauling (you're moving more volume than what's in the ground) and when planning stockpile space. For cost estimating purposes, contractors typically price on bank cubic yards (in-ground volume), so the formula above is correct for estimating costs.


    Calculating Cut and Fill


    Cut-and-fill is when excavated material from high spots gets placed in low spots on the same site, eliminating or reducing hauling costs. To calculate it, you need two separate volumes:


  • Cut volumematerial to be excavated (use the formula above)
  • Fill volumespace that needs to be filled

  • If cut volume exceeds fill volume, you have surplus material to haul away. If fill exceeds cut, you need to import material (borrow fill).


    Example: A sloped backyard grading project where you're cutting 120 cu yd from a high corner and need to fill a low area that requires 85 cu yd.


    Surplus to haul: 120 − 85 = 35 cubic yards to dispose of


    Apply swell factor (clay soil, 30% swell): 35 × 1.30 = 45.5 bank cu yd worth of truck loads


    This directly affects your hauling cost estimate. Use the excavation cost calculator's volume output as your starting point, then apply swell and cut-fill adjustments.


    Pool Excavation Volume


    Pool excavation has an irregular shape — usually a rectangle with rounded corners and a sloped floor — which makes it slightly more complex. A common shortcut for standard kidney or rectangular pools:


    Pool excavation volume ≈ (Length × Width × Average Depth × 0.85) ÷ 27


    The 0.85 factor accounts for the curved/sloped profile of a typical pool shell. For a 16×32 ft pool with an average depth of 5 ft:


    (16 × 32 × 5 × 0.85) ÷ 27 = 2,176 ÷ 27 ≈ 80.6 cubic yards


    Add 10–15% for working space around the pool shell during installation: about 90–93 cubic yards of total excavation.


    Common Measurement Mistakes


    Measuring the finished space instead of the excavation


    The most common error. A basement is 24×40 ft finished — but the excavation is 26×42 ft to allow for forming and waterproofing. If you calculate volume on 24×40, you'll underestimate by about 15%.


    Forgetting to add forming width on each side


    Contractors need 12–24 inches of clearance around the foundation for forming boards, waterproofing membrane, and drain tile. Always add 1–2 feet to each dimension.


    Using the finished depth instead of the excavation depth


    The finished basement floor might be 8 feet below grade, but the excavation might go 8.5–9 feet to accommodate the footing depth, base gravel, and concrete slab thickness. Check with your structural engineer or contractor for the correct dig depth.


    Treating an irregular site as flat


    If your site slopes significantly, the volume calculation becomes more complex. For sites with more than 2 feet of grade change across the excavation area, have a professional calculate the volume using grade stakes or a surveyor's shot. A basic rectangular formula on a sloped site can be off by 15–25%.


    Converting Between Units


    If you've already calculated in cubic feet and need cubic yards: divide by 27.

    If you've calculated in cubic yards and need cubic feet: multiply by 27.

    If you have measurements in meters, convert to feet first (1 meter = 3.281 feet) before using the formula.


    For truck loads: a standard dump truck carries 10–14 cubic yards of loose material. Divide your swell-adjusted volume by 12 (a reasonable average) to estimate the number of truckloads — useful for scheduling and for verifying hauling quotes.


    Enter your project dimensions directly into the excavation cost calculator to get both cubic yard and cubic foot volumes alongside the full cost estimate.

    excavation volumecubic yards calculationearthwork formulacut and fillsite grading