Backfill Calculator: Free Online Fill Volume Estimator
Use our free backfill calculator to determine how much fill material you need for trenches, foundation walls, retaining walls, and utility excavations. Designed for contractors, plumbers, and DIY homeowners, this tool calculates backfill volume from your excavation dimensions and pipe or structure displacement. Enter your trench length, width, and depth to get instant results in cubic yards.
How to use this calculator.
- Enter the excavation dimensions. Input the total length, width, and depth of your trench or excavation in feet or meters.
- Enter the structure or pipe volume to deduct. If backfilling around a pipe, foundation, or buried tank, enter the volume of the object that displaces backfill material.
- Select your backfill material. Choose from common materials like granular fill, sand, crushed stone, or native soil. Each has different compaction and swell characteristics.
- Apply a compaction factor. Backfill typically requires 10–20% extra material to account for compaction settlement over time.
- Calculate and order. Review the total volume and order your material, typically in cubic yards for bulk delivery or in bags for small jobs.
How do you calculate backfill volume with compaction factors?
Backfill volume is calculated by taking the total excavation volume and subtracting the volume of any buried structures, then applying a compaction factor.
Backfill Volume (cu yd) = ((L × W × D) - Vs) × (1 + CF) ÷ 27
Where:
- L × W × D: Total excavation volume in cubic feet (length × width × depth).
- Vs: Volume of the buried structure or pipe in cubic feet that displaces backfill material.
- CF: Compaction factor, typically 0.10 to 0.20 (10% to 20%).
- 27: Conversion factor from cubic feet to cubic yards.
For pipe trenches, the pipe volume is calculated as π × (pipe diameter ÷ 2)2 × trench length. Remember to use the outside diameter of the pipe.
Example calculation.
Let's calculate the backfill needed for a water line trench.
Scenario: You have a trench 100 ft long, 2 ft wide, and 4 ft deep. A 6-inch diameter water pipe runs through the center.
- Total excavation volume: 100 ft × 2 ft × 4 ft = 800 cu ft
- Pipe volume: π × (0.5 ft ÷ 2)2 × 100 ft = π × 0.0625 × 100 = 19.63 cu ft
- Backfill volume before compaction: 800 - 19.63 = 780.37 cu ft
- Convert to cubic yards: 780.37 ÷ 27 = 28.90 cu yd
- Apply 15% compaction factor: 28.90 × 1.15 = 33.24 cu yd
Result: You need approximately33.25 cubic yards of granular backfill material for this trench.
Tips from the field.
- Use granular material around pipes. Sand or pea gravel provides better pipe support and allows for easier future excavation than clay or large rock backfill.
- Compact in lifts. Backfill should be placed and compacted in 6–12 inch lifts. Dumping full depth and compacting from the top leaves voids and causes settlement.
- Watch for utility clearance. Most jurisdictions require 12–18 inches of select fill above utilities before using native soil. Check local codes for minimum cover requirements.
- Moisture condition your fill. Backfill material at optimum moisture content compacts more efficiently and achieves higher density with fewer passes.
- Consider flowable fill for tight spaces. For areas where mechanical compaction is difficult, controlled low-strength material (flowable fill) self-compacts and eliminates settlement risk.
Disclaimer: This calculator provides estimates for planning purposes only. Actual backfill requirements depend on soil type, compaction specifications, trench safety regulations, and local building codes. For engineered backfill specifications, consult a geotechnical engineer. PavementCalculator.com assumes no liability for material shortages, overage, or structural issues from improper backfilling.
Cost, price, and density figures on this page reflect approximate U.S. averages as of August 2026 and vary by region, supplier, and material availability.
Frequently asked questions.
How do I calculate backfill for a foundation?
Calculate total excavation volume minus the volume occupied by the foundation structure. For a 30×40 ft foundation with 3 ft deep excavation: Total = 30 × 40 × 3 = 3,600 cu ft ÷ 27 = 133 cu yd. Subtract foundation wall volume (30+40+30+40 linear ft × 1 ft thick × 3 ft high = 420 cu ft ÷ 27 = 15.6 cu yd). Net backfill = 133 - 15.6 = 117.4 cu yd × 1.2 (shrink factor for compacted fill) = 141 cu yd loose. Use our calculator above for your project.
What is the best material for backfill?
Granular, free-draining material (sand, gravel, crushed stone) is best for backfill: it compacts easily, drains water away from structures, and doesn't expand when wet. Use: Clean crushed stone (#57 or #67) for foundation drainage. Sand or sandy gravel for general backfill. Native soil for areas away from structures if well-compacted. Avoid: Clay (expands when wet, holds water), organic soil (decomposes and settles), large rocks (create voids), frozen soil (settles when thawed).
How much compaction is needed for backfill?
Structural backfill (under slabs, footings): 95% Standard Proctor density minimum. General backfill: 90-95%. Landscaping fill: 85-90%. Each lift (layer) should be 6-8 inches loose, compacted to 4-6 inches. Compact in thin lifts: trying to compact 12+ inches at once leaves the bottom uncompacted and leads to settlement. Use a plate compactor for granular soils, a sheepsfoot roller for clay soils. Test compaction with a nuclear density gauge or sand cone test for critical applications.
How soon can I backfill a foundation wall?
Wait until the foundation wall has gained sufficient strength: typically 5-7 days after pouring concrete walls, or after the mortar has cured for block walls (3-7 days). Backfilling too soon can crack or push in foundation walls. Backfill in balanced lifts on both sides of the wall simultaneously: unbalanced backfill pressure is a leading cause of foundation wall failure. Install foundation drainage (perforated pipe + gravel) and waterproofing before backfilling.
How do I prevent backfill settlement?
Key practices: (1) Compact in 6-8 inch lifts: never dump and spread a thick layer. (2) Use the right compaction equipment for your soil type. (3) Maintain optimal moisture content: too dry won't compact, too wet is unstable. (4) Use granular material with a range of particle sizes: it compacts denser than uniform material. (5) Scarify (roughen) the top of each compacted lift before placing the next to ensure bonding. (6) Water-jetting is NOT a substitute for mechanical compaction for structural backfill.
What is the best material for backfilling around a foundation?
Clean granular material such as washed stone, gravel, or coarse sand is ideal for foundation backfill. It drains well, compacts easily, and exerts less lateral pressure on walls than clay soils. Avoid expansive clays that swell when wet.
How much does backfill material cost?
Common backfill materials range from $10–$25 per cubic yard for granular fill and sand, $15–$35 per cubic yard for crushed stone, and $5–$15 per cubic yard for common fill dirt. Prices vary by location, quantity, and delivery distance.
How do I calculate compaction factor?
The compaction factor depends on soil type and compaction method. Granular soils typically need 10–15% extra, silty soils 15–20%, and clay soils 20–30%. Your geotechnical report should specify target density and optimum moisture for the fill material.
Can I use the excavated soil as backfill?
Yes, if the excavated soil meets the project's engineering specifications. Remove organic material, debris, and large rocks. Native soil may require moisture conditioning before reuse. Soil contaminated with roots, organics, or frozen material should not be used as structural backfill.
What happens if backfill is not properly compacted?
Poorly compacted backfill settles over time, causing depressions, cracked pavements, foundation settlement, pipe deflection, and drainage problems. Repairing settled backfill typically costs 3–5 times more than doing it correctly the first time.