Updated on April 28th, 2026

Excavation Calculator

Created By Jehan Wadia

Excavation Setup
Enable for different start and end depths
Dimensions
Length Width Depth extends downward
Soil Type & Swell Factor
%
Volume increase when soil is excavated
%
% of bank volume when compacted
Truck Loads & Cost Estimation
yd³
$
$

Excavation Volume Results
In-Place (Bank) Volume
29.63 yd³
800.00 ft³ | 22.65 m³
Loose (Swelled) Volume
37.04 yd³
1,000.00 ft³ | 28.32 m³
Compacted Volume
26.67 yd³
720.00 ft³ | 20.39 m³
Excavation ShapeRectangular
Depth Used4 ft 0 in
Soil TypeTopsoil
Swell Factor25%
Compaction Factor90%
Estimated Truck Loads
4
Based on loose volume of 37.04 yd³ ÷ 10 yd³/truck
Volume Cost
$555.56
Trucking Cost
$1,000.00

Total Estimated Cost
$1,555.56
Volume Comparison
Soil Swell & Compaction Reference
Soil Type Swell Factor Compaction Factor 1 yd³ Bank → Loose 1 yd³ Bank → Compacted
Clay30%90%1.30 yd³0.90 yd³
Sand15%95%1.15 yd³0.95 yd³
Gravel12%95%1.12 yd³0.95 yd³
Rock50%80%1.50 yd³0.80 yd³
Topsoil25%90%1.25 yd³0.90 yd³
Mixed20%90%1.20 yd³0.90 yd³

Introduction

Figuring out how much dirt you need to dig out of the ground is one of the first steps in any construction project. Whether you are digging a foundation, a trench, or a pond, you need to know the exact volume of soil to remove. Our Excavation Calculator does this math for you in seconds. Just enter your dimensions, pick your excavation shape, and choose your soil type. The tool gives you three key volume numbers: bank volume (the dirt still in the ground), loose volume (how much space that dirt takes up after you dig it out), and compacted volume (how much it shrinks when packed back down).

Soil swells when you remove it from the ground. Clay can expand by 30%, and blasted rock can grow by as much as 50%. This means the pile of dirt on your truck is always bigger than the hole you dug. Our calculator accounts for this swell factor automatically based on the soil type you select. It also figures out compaction, which matters when you need to backfill or haul material to another site. You can choose from rectangular, trapezoidal, or circular excavation shapes, and even handle sloped or uneven depths where one end of the dig is deeper than the other.

Beyond volume, this calculator estimates how many truck loads you will need and what the total cost will be. Enter your truck capacity, cost per cubic yard or cubic meter, and hauling cost per load. The tool adds it all up so you can plan your budget before the first shovel hits the ground. You can switch between imperial and metric units at any time, and all your numbers convert instantly. Use the built-in soil reference table to compare swell and compaction factors across common soil types like clay, sand, gravel, rock, and topsoil.

How to Use Our Excavation Calculator

Enter the shape and size of your dig area, choose your soil type, and this calculator will give you the bank, loose, and compacted volumes along with truck load estimates and total project costs.

Unit System: Pick either Imperial (feet and inches) or Metric (meters and centimeters) to match how you measure your job site.

Excavation Shape: Select the shape of your dig — Rectangular for standard trenches and foundations, Trapezoidal for sloped-wall excavations, or Circular for round holes like piers and wells.

Sloped / Uneven Depth: Turn this on if the ground is not level. When enabled, you enter a depth at the start and a depth at the end, and the calculator averages them for you.

Length: Enter the total length of the excavation area. For rectangular shapes, this is the longer side of the dig. For trapezoidal shapes, you enter both a top length and a bottom length.

Width: Enter the total width of the excavation area. For trapezoidal shapes, you enter both a top width and a bottom width to account for the angled walls.

Diameter: If you chose a circular shape, enter the full diameter of the round excavation instead of length and width.

Depth: Enter how deep you plan to dig. If you turned on the sloped depth option, enter the depth at the start point and the depth at the end point separately.

Soil Type: Choose the type of soil you are digging through — Clay, Sand, Gravel, Rock, Topsoil, Mixed, or Custom. Each soil type automatically sets a swell factor and compaction factor based on standard earthwork values.

Swell Factor (%): This is the percentage that soil expands after you dig it out of the ground. It updates automatically when you pick a soil type, or you can type in a custom number.

Compaction Factor (%): This is the percentage of the original bank volume that the soil shrinks to when it is compacted back down. It also updates with the soil type or can be set manually.

Truck Capacity: Enter the volume each haul truck can carry per load. A common dump truck holds about 10 cubic yards. The calculator uses this with the loose volume to figure out how many truck loads you need.

Cost per Cubic Yard (or Cubic Meter): Enter the price you pay for each unit of volume excavated. This is multiplied by the loose volume to give you the volume-based cost.

Cost per Truck Load: Enter the flat rate you pay for each truck load hauled off site. This is multiplied by the number of truck loads to give you the trucking cost, which is then added to the volume cost for a total estimated project cost.

What Is Excavation and How Do You Calculate It?

Excavation is the process of digging and removing soil or rock from the ground to create a hole, trench, or open space. It is one of the first steps in most construction projects, including building foundations, swimming pools, basements, utility trenches, and road work. Knowing how much dirt you need to remove — and how much it will cost — is essential for planning any excavation job correctly.

How Excavation Volume Is Calculated

The volume of an excavation depends on its shape and dimensions. For a rectangular dig, you multiply the length × width × depth. For a circular excavation (like a well or pier hole), the formula uses π × radius² × depth. A trapezoidal shape, which is common when sides are sloped, uses a prismoidal formula that accounts for different top and bottom measurements. If the ground is uneven and the depth changes from one end to the other, you use the average of the two depths to get an accurate result. If you need help determining the area of your dig site before calculating volume, our Square Footage Calculator can help with that first step.

Understanding Bank, Loose, and Compacted Volume

One of the most important things to understand about excavation is that soil changes volume when you dig it up. There are three types of volume you need to know:

  • Bank (In-Place) Volume: This is the volume of soil while it is still in the ground, undisturbed. It is the starting point for all calculations.
  • Loose (Swelled) Volume: When you dig soil out of the ground, it breaks apart and takes up more space. This increase is called the swell factor. For example, topsoil swells about 25%, meaning 1 cubic yard in the ground becomes 1.25 cubic yards in the truck. Clay swells about 30%, and rock can swell up to 50%.
  • Compacted Volume: If you put soil back and pack it down with equipment, it shrinks to less than its original bank volume. The compaction factor tells you what percentage of the original volume remains after compaction. For most soils, this is between 80% and 95%.

Loose volume is the number that matters most for hauling, because it determines how many truck loads you need. Compacted volume matters when you are backfilling or building up an area with fill dirt. If you are working with fill material specifically, our Dirt Calculator can help you estimate how much fill dirt you need to bring in for your project.

Soil Types and Their Swell Factors

Different soil types behave differently when excavated. Sand and gravel have low swell factors (12%–15%) because their particles are already loose. Clay swells more (around 30%) because it is dense and clumpy. Blasted rock has the highest swell factor (up to 50%) since solid rock breaks into many irregular pieces that take up much more space. Choosing the correct soil type ensures your volume and cost estimates are accurate. If your project involves working with specific materials like sand or gravel after excavation, you can use our Sand Calculator, Gravel Calculator, or Topsoil Calculator to estimate exact quantities for backfilling or landscaping.

Estimating Truck Loads and Costs

Once you know the loose volume, you can figure out how many truck loads you need by dividing the loose volume by the truck's capacity. A standard dump truck holds about 10 cubic yards. The calculator also estimates costs in two parts: a volume cost (price per cubic yard of material handled) and a trucking cost (price per load for hauling). Adding these together gives you a solid ballpark for your total excavation expense.

Why Accurate Excavation Estimates Matter

Underestimating excavation volume leads to budget overruns, extra truck trips, and project delays. Overestimating wastes money on equipment and hauling you don't need. By entering your exact dimensions, choosing the right soil type, and accounting for swell, you can plan your project with confidence — whether you are a homeowner digging a small trench or a contractor bidding on a large commercial job. Once excavation is complete, you will likely move on to other phases of construction. Our Concrete Calculator can help you figure out how much concrete you need for foundations and footings, while the Rebar Calculator ensures you order the right amount of reinforcement. For projects involving retaining walls around excavated areas, check out our Retaining Wall Calculator. And if your excavation involves pipe trenches, the Pipe Volume Calculator can help you determine pipe capacity and trench requirements.


Frequently Asked Questions

What is the swell factor in excavation?

The swell factor is the percentage that soil expands after you dig it out of the ground. Soil breaks apart when removed, so it takes up more space than it did in the hole. For example, a 25% swell factor means 1 cubic yard of dirt in the ground becomes 1.25 cubic yards once it is in a pile or truck. Different soils swell different amounts — sand swells about 15%, clay about 30%, and rock up to 50%.

What is the difference between bank volume and loose volume?

Bank volume is the amount of soil while it is still packed in the ground, undisturbed. Loose volume is the amount of space that same soil takes up after you dig it out. Loose volume is always larger than bank volume because soil expands when removed. You need the loose volume number to figure out how many trucks you need to haul the dirt away.

How do I calculate excavation volume for a rectangular hole?

Multiply the length × width × depth. For example, a hole that is 20 feet long, 10 feet wide, and 4 feet deep equals 800 cubic feet. Divide by 27 to convert to cubic yards, which gives you about 29.63 cubic yards of bank volume. Then apply the swell factor for your soil type to get the loose volume.

When should I use the trapezoidal shape option?

Use the trapezoidal shape when the sides of your excavation are sloped rather than straight up and down. This is common in open-cut trenches and pits where safety codes require angled walls to prevent cave-ins. The top of the hole is wider than the bottom. You enter the top length and width along with the bottom length and width, and the calculator uses the prismoidal formula to get an accurate volume.

What does the compaction factor mean?

The compaction factor is the percentage of the original bank volume that soil shrinks to when it is packed back down with equipment. For example, a 90% compaction factor means 1 cubic yard of bank soil becomes 0.90 cubic yards when compacted. This number matters when you need to backfill a hole or build up a grade with fill dirt.

How many cubic yards does a dump truck hold?

A standard dump truck holds about 10 cubic yards. Smaller single-axle trucks may hold 5 to 8 cubic yards, while larger tandem or tri-axle trucks can carry 12 to 16 cubic yards. Enter your truck's actual capacity in the calculator to get an accurate truck load count.

Why does the calculator use loose volume for truck loads instead of bank volume?

Because loose volume is the actual amount of space the dirt takes up once it is dug out and loaded onto a truck. Since soil expands when removed from the ground, the loose volume is always bigger than the bank volume. Using bank volume would underestimate the number of trucks you need.

What does the sloped or uneven depth option do?

It lets you enter two different depths — one at the start and one at the end of your excavation. The calculator averages these two depths and uses that average for the volume calculation. This is useful when the ground is not level or when you are digging a trench that gets deeper at one end.

Can I switch between imperial and metric units?

Yes. Click the Imperial or Metric toggle at the top of the calculator. All your dimension values, volume results, and truck capacity will convert automatically. Imperial uses feet and inches, while metric uses meters and centimeters.

How do I calculate excavation for a circular hole?

The formula is π × radius² × depth. In the calculator, select the Circular shape and enter the diameter and depth. The tool divides the diameter by 2 to get the radius and does the rest of the math for you. This is useful for pier holes, wells, and round footings.

What soil type should I choose if my ground has mixed materials?

Select the Mixed option. It uses a 20% swell factor and 90% compaction factor, which is a good middle-ground estimate for soil that contains a blend of clay, sand, and other materials. If you know your exact swell and compaction numbers, choose Custom and enter them manually.

How is the total estimated cost calculated?

The calculator adds two costs together. First, it multiplies the loose volume by the cost per cubic yard (or cubic meter) to get the volume cost. Then it multiplies the number of truck loads by the cost per truck load to get the trucking cost. The sum of these two numbers is the total estimated cost.

What is the prismoidal formula used for trapezoidal excavation?

The prismoidal formula is: Volume = (Depth ÷ 6) × (Atop + Abottom + 4 × Amiddle). Atop is the top length × top width, Abottom is the bottom length × bottom width, and Amiddle is the average length × average width. This gives a more accurate volume than simply averaging the top and bottom areas.

How accurate are the cost estimates from this calculator?

The cost estimates are ballpark figures based on the numbers you enter. Actual costs can vary depending on your location, equipment rental, labor, site conditions, disposal fees, and other factors. Use the estimates for planning and budgeting, but get quotes from local contractors for a final price.

Can I use this calculator for a swimming pool excavation?

Yes. If your pool has a rectangular shape, use the rectangular option and enter the length, width, and depth. If the pool has a shallow end and a deep end, turn on the sloped depth option and enter both depths. The calculator will average them for you. For pools with sloped walls, use the trapezoidal option.