Excavation Calculator

Foundation and Basement Excavation Calculator

Estimate how much dirt to dig for a foundation or basement, with working space and sloped sides, and how many truckloads it takes to haul away.

Quick answer

The dirt to dig is bigger than the footprint of the building: you dig the footprint plus working space on every side, to full depth, and sloped walls add more. Bank cubic yards = (L × W × H + (L + W) × s × H² + 4/3 × s² × H³) ÷ 27, with L and W measured at the bottom of the pit. Hauled soil swells, so trucks carry more than the hole measures.

Example: a 40 × 30 ft house, 2 ft working space per side (44 × 34 ft bottom), 9 ft deep, 1:1 sides = 768.7 bank cubic yards, about 97 truckloads of 10 yd³.

Sloped-Sided Pit Volume

Bank yards · swell · truckloads · results update as you type

Applies to length, width, depth and working space.

Use the size at the bottom of the hole, not the top. Bottom = building size + 2 × working space. Top dimensions overstate the volume (see below).

Wall height plus footing, slab and gravel allowance. Use the depth from your plans.

0 = vertical (shored) walls. 1 means the wall steps out 1 ft for every 1 ft of depth. Same slope on all four sides.

Default 25%, the same value as the site's dirt removal and excavation calculators. See the soil swell factor table.

Default 10 yd³, the site's standard. Capacities vary; see how many yards are in a dump truck.

Leave blank to skip the weight. If you enter one, tons are figured on the bank (hole) volume. Swelling loosens the soil but does not change its weight, so do not multiply the tons by the swell factor. See how much a yard of dirt weighs.

Wall slope:
Swell:
Work out the bottom size from the building size

Your result

Bank volume (the hole) —
Haul volume with swell—
Truckloads—

Foundation Excavation Formula

V = L × W × H + (L + W) × s × H² + (4/3) × s² × H³ (cubic feet)

Bank cubic yards = V ÷ 27  ·  Haul cubic yards = bank × (1 + swell %)  ·  Loads = haul ÷ truck size, rounded up

  • L, W = length and width at the bottom of the pit, in feet (footprint plus 2 × working space).
  • H = depth in feet.
  • s = horizontal run per 1 foot of depth (0 for vertical walls).

The shape is a sloped-sided pit: a rectangular bottom, four walls leaning outward at the same slope, and a larger rectangle at the top. Strictly it is a prismoid, not a pyramid frustum, because the top and bottom rectangles are not similar when L differs from W. The formula comes from adding up thin slices: at height z above the bottom the slice measures (L + 2sz) by (W + 2sz), and integrating that area from 0 to H gives the formula above. With s = 0 it reduces to L × W × H.

Assumptions: flat site, level bottom, rectangular footprint, the same slope on all four sides, no ramp, no groundwater, topsoil not separated, and trucks counted by volume. Heavy or wet soil can reach a truck's weight limit before it is full.

Use the bottom size, not the top

If you enter the top of the pit (62 × 52 ft in the example below) as if it were the bottom, the calculator adds the slope allowance a second time and returns 1,452.7 yd³ instead of 768.7 yd³, about 89% too high.

Safety and what this tool is not

This is a volume estimate. It is not a design for shoring, wall slopes or foundations. Deep excavations can be dangerous; follow local rules, have a qualified person decide how the sides are supported or sloped, and contact your local utility-locate service before you dig.

Worked Example: 40 × 30 ft Basement

House 40 × 30 ft. Depth 9 ft (assumed: 8 ft wall plus 1 ft for footing and slab). Working space 2 ft per side, so the bottom is 44 × 34 ft in every row. Swell 25%, trucks of 10 yd³.

Wall treatmentSlope sBank cu ftBank yd³Haul yd³ (× 1.25)Loads of 10 yd³
Vertical (shored)013,464498.7623.363
Sloped 3/4 : 10.7518,749.25694.4868.087
Sloped 1 : 1120,754768.7960.897
Sloped 1.5 : 11.525,128930.71,163.3117

Check for s = 1: 44 × 34 × 9 = 13,464; (44 + 34) × 1 × 81 = 6,318; (4/3) × 1 × 729 = 972; total 20,754 ft³ ÷ 27 = 768.7 yd³, which is 587.7 m³. The top of that pit measures 44 + 2 × 9 = 62 ft by 34 + 2 × 9 = 52 ft.

Sloped 1:1 sides mean about 54% more soil than vertical walls (768.7 ÷ 498.7). A first guess that ignores working space and slope (40 × 30 × 9 = 10,800 ft³ = 400.0 yd³) understates the 1:1 pit by about 48%.

How to Estimate Foundation Excavation

  1. Take the building footprint (length and width) from your plans.
  2. Add working space on every side, so bottom length = building length + 2 × space, and the same for width.
  3. Set the depth: wall height plus footing, slab and gravel allowance.
  4. Choose the wall slope, or 0 for vertical walls.
  5. Read the bank volume, then the haul volume after swell, then the truckloads.

Swell and Truckloads

Soil in the ground (bank) takes up less room than soil in a truck (loose). Haul volume = bank volume × (1 + swell). The 25% default is the same flat value used by the site's excavation calculator and dirt removal calculator; the soil swell factor table lists values by soil type. Loads are counted by volume and rounded up, using a 10 yd³ truck unless you change it. Weight, when you enter a soil weight, is figured on the bank volume.

Common Mistakes

  • Entering the top of the pit as the bottom. The slope term already accounts for the walls leaning outward.
  • Forgetting working space. The hole is larger than the building.
  • Ordering trucks from bank yards. Haul volume is larger after swell.
  • Using a single slope for mixed soils or water. The same slope on all four sides is an assumption.

Checklist Before Ordering Trucks

  • Utility locates done before digging.
  • Topsoil kept separate if you plan to reuse it.
  • Somewhere to put soil you will use as backfill, and a haul route and disposal site for the rest.
  • Disposal that charges by weight? Enter a soil weight above or see yards to tons.
  • Backfill: the volume of the structure is not subtracted here; plan it with the backfill calculator or fill dirt calculator.

Foundation Excavation FAQ

How much dirt do you dig out for a basement?

There is no universal number; it depends on the building size, working space, depth and wall slope. The pit volume is V = L x W x H + (L + W) x s x H^2 + (4/3) x s^2 x H^3 cubic feet, where L and W are the bottom length and width, H is the depth and s is the horizontal run per 1 foot of depth. Divide by 27 for cubic yards. Example: a 44 x 34 ft bottom, 9 ft deep, with 1:1 sides is 20,754 cubic feet, or 768.7 cubic yards.

How much extra should I dig around the foundation (working space)?

It depends on formwork, waterproofing and your contractor, so there is no single figure. The worked example uses 2 ft per side, which makes a 40 x 30 ft house a 44 x 34 ft pit bottom. Ask your contractor what they need.

How many truckloads of dirt for a basement?

Convert the hole (bank) volume to loose haul volume with swell, then divide by the truck size and round up. Example: 768.7 bank yd3 x 1.25 = 960.8 loose yd3, and 960.8 / 10 = 96.1, so 97 loads of 10 yd3. Truck sizes vary, so see how many yards are in a dump truck.

Do I need to add swell?

Add swell for hauling, not for the size of the hole. Dug soil takes up more space than it did in the ground, so the haul volume is larger than the bank volume. This calculator shows both.

What slope should the sides of the excavation have?

It depends on the soil, depth, water and local rules, and should be set by a qualified person on site. The buttons in the calculator (vertical, 3/4:1, 1:1, 1.5:1) are only examples to compare how much slope changes the volume. This tool is not a safety or shoring design.

How deep is a basement excavation?

Depth is the wall height plus the footing, slab and gravel allowance, so it is deeper than the finished basement ceiling height. The example uses 9 ft (8 ft wall plus 1 ft allowance) as an assumption, not a standard. Use the depth from your plans.

How we built this calculator: bank volume of a sloped-sided rectangular pit from the formula above, haul volume = bank × (1 + swell), and truckloads = haul volume ÷ truck size rounded up. It is a planning estimate, not an engineering design: confirm quantities with your contractor. Written and checked by the YardsCalculator editorial team.