The hole is not the pile
Dig a cubic yard out of the ground and you do not have a cubic yard of dirt. You have between 1.1 and 1.65 cubic yards, depending on what it was, because excavating opens voids that the ground's own weight had closed. That expansion is called swell, and it is the difference between the volume you calculated and the volume you are billed to take away.
One swell factor for everything is wrong
Most excavation calculators apply a single number — usually 25 percent — to whatever you are digging. The manual these figures come from lists eleven materials spanning 10 percent to 65. Dry sand swells a tenth. Dry clay swells two fifths. Shale swells nearly two thirds. On the same 20 by 10 foot hole, clay produces 41.48 loose yards where dry earth at the bottom of its band produces 34.07.
Swell, load factor and weight by material
| Material | Swell | Load factor | Loose weight per yd³ | Bank weight per yd³ |
|---|---|---|---|---|
| Cinders | 40–55% | 0.65–0.72 | 800–1,200 lb | 1,100–1,860 lb |
| Clay, dry | 40% | 0.72 | 1,700–2,000 lb | 2,360–2,780 lb |
| Clay, wet | 40% | 0.72 | 2,400–3,000 lb | 3,360–4,200 lb |
| Earth (loam or silt), dry | 15–35% | 0.74–0.87 | 1,900–2,200 lb | 2,180–2,980 lb |
| Earth (loam or silt), wet | 25% | 0.8 | 2,800–3,200 lb | 3,500–4,000 lb |
| Gravel, dry | 10–15% | 0.87–0.91 | 2,700–3,000 lb | 2,980–3,450 lb |
| Gravel, wet | 10–15% | 0.87–0.91 | 2,800–3,100 lb | 3,080–3,560 lb |
| Sand, dry | 10–15% | 0.87–0.91 | 2,600–2,900 lb | 2,860–3,340 lb |
| Sand, wet | 10–15% | 0.87–0.91 | 2,800–3,100 lb | 3,080–3,560 lb |
| Shale (soft rock) | 65% | 0.6 | 2,400–2,700 lb | 4,000–4,500 lb |
| Traprock | 50% | 0.66 | 2,700–3,500 lb | 4,100–5,300 lb |
US Army FM 5-434, Table 1-2. Public domain. Bands are the manual's own — it publishes no midpoints, and neither does this page.
Bank, loose and compacted
Three measurements of one pile of dirt, and the reason earthworks quotations argue. Bank is the material in the ground — the size of the hole. Loose is after digging, and it is bigger. Compacted is after placing and rolling, and it is usually smaller than bank. A supplier quotes loose. A drawing specifies compacted. Neither says which, and the gap between them for clay is more than a factor of two.
Converting between the three states
| Material | Bank → loose | Bank → compacted | Loose → bank | Compacted → loose |
|---|---|---|---|---|
| Sand or gravel | × 1.11 | × 0.95 | × 0.9 | × 1.17 |
| Loam (common earth) | × 1.25 | × 0.9 | × 0.8 | × 1.39 |
| Clay | × 1.43 | × 0.9 | × 0.7 | × 1.59 |
| Rock (blasted) | × 1.5 | × 1.3 | × 0.67 | × 1.15 |
| Coral (comparable to limerock) | × 1.5 | × 1.3 | × 0.67 | × 1.15 |
FM 5-434, Table 1-1. Note the rock row: blasted rock compacts to 1.30 of its bank volume, because you cannot put broken rock back the way it was.
Sloping the sides
A hole with vertical walls is a drawing. A hole you can stand in has battered sides, and that makes it a truncated pyramid rather than a box — worked here with the prismoidal formula rather than by averaging the two ends, because averaging over-states a shape tapering in two directions at once. Battering the same excavation at 1:1 takes it from 29.63 to 50.57 cubic yards.
What slope your soil actually needs is a safety question governed by OSHA's soil classification and by what is on your site. This calculator will work out the volume for any batter you give it and will not suggest one, because a trench that collapses does not do it slowly.
What this does not tell you
- Whether it is safe to dig. Shoring, benching and sloping requirements come from OSHA and from a competent person on site.
- What is buried down there. Call before you dig. Services, not soil, are what turn an excavation into an incident.
- Rock and water. Both change the price by more than the volume does, and neither shows up in a length times width.
- What it costs. The volume is ours and it is cited; the rate per yard is yours and it is regional.
The rest of the job
What goes back in is usually not what came out. The topsoil calculator works out imported soil for the same footprint, gravel covers granular backfill and base, and for a trench that has to drain, the french drain calculator handles the stone around the pipe. If the hole is for a footing or a post, the post depth calculator and the post hole calculator size it, and the concrete weight calculator handles the other heavy thing on the same trailer.