Trenching Cost Calculator
Get an instant free estimate for trenching based on your trench length, depth, soil, and digging method — for utility, water, sewer, gas, electrical, and irrigation trenches.
Free Trenching Cost Calculator
Use this calculator to calculate the cost of trenching near you for free. Enter your ZIP code for a localized estimate.
Trench Length
Enter the total length of the trench in linear feet. A typical utility or irrigation run is ~50-300 linear ft.
Trench Depth:
Soil / Ground:
Digging Method:
Additional Services:
Estimates are instant and require no contact information.
Based on inputs, your Trenching project cost is approximately:
Note that the cost above is purely an estimate.
The actual cost may be higher or lower depending on the contractor's quote.
How Much Does Trenching Cost?
Trenching is priced per linear foot and typically runs $8 to $30 per linear foot. A common 100-foot run lands roughly $800 to $3,000 — a shallow irrigation trench in easy soil at the bottom, a deep sewer trench in rock at the top. The depthsets the base rate, then soil and the digging method adjust it.
One thing to keep straight: this estimates the excavation itself. The pipe, wire, or conduit that goes in the trench is a separate cost, and so is proper bedding, compacted backfill, and surface restoration. Use the calculator above to price your run, then read on for what drives each line — and why calling 811 before you dig isn't optional.
Trenching Cost by Trench Depth
Cost per Linear Foot by Depth
| Trench Depth | Installed / Linear Ft | Notes |
|---|---|---|
| Shallow (under 18") | $5 – $9 | Irrigation, low-voltage. |
| Standard (18–36") | $8 – $15 | Water, gas, electrical. |
| Deep (36"+) | $14 – $30 | Sewer, below frost line. |
| Rocky / Hard Soil | +45% | Slow, difficult digging. |
Source: Baseline labor derived from U.S. Bureau of Labor Statistics, Construction Laborers (SOC 47-2061); ranges reflect our aggregated excavation contractor quote data. Excludes the pipe/conduit installed in the trench.
Common Add-Ons
| Add-On | Typical Cost | Notes |
|---|---|---|
| Pipe Bedding Sand | ~$2/linear ft | Cushions & protects the pipe. |
| Gravel Base / Backfill | ~$2.50/linear ft | Drainage & support. |
| Backfill & Compaction | ~$1.50/linear ft | Prevents settling. |
| Surface Restoration | ~$3/linear ft | Replace sod or pavement. |
| Utility Locate / 811 | ~$150 | Private-line locate. |
| Permit | ~$250 | New utility connections. |
Source: U.S. Bureau of Labor Statistics, Construction Laborers (SOC 47-2061) for baseline labor, combined with our aggregated quote ranges from excavation and utility contractors. Regional adjustments applied via the calculator above.
The 6 Factors That Drive Your Quote
1. Trench Length
Trenching is priced per linear foot, so the run length sets the total. A typical residential utility, water, or irrigation trench is about 50 to 300 linear feet; a run to a detached structure or from the street can be longer. Longer runs cost more overall but can earn a slightly better per-foot rate as fixed mobilization spreads out.
2. Trench Depth
Depth sets the base per-foot rate because deeper trenches move more soil and may need shoring. Shallow (under 18", ~$6/ft) suits irrigation and low-voltage; standard (18–36", ~$10/ft) covers water, gas, and electrical; deep (36"+, ~$16/ft) is for sewer lines and getting below the frost line, and costs the most in excavation and safety.
3. Soil & Ground Conditions
Ground is the wildcard. Easy-to-dig loam or sand is the baseline; dense clay is heavy and sticky (about +20%); and rocky, gravelly, or hardpan ground is the worst (about +45%) because it can stop a trencher and require a bigger machine or rock-breaking. A high water table or unexpected rock mid-run can push costs higher still.
4. Digging Method
A dedicated walk-behind or ride-on trencher is the fast, economical standard for clean straight runs. A mini excavator costs a bit more (about +15%) but handles wider trenches and obstacles. Hand digging is the most expensive (about +80%) but necessary in tight spots or right next to existing utilities where machines can't safely operate.
5. Bedding & Backfill
Proper backfill is often more than replacing dirt. Pipe bedding sand (~$2/ft) cushions and protects the utility, a gravel base (~$2.50/ft) adds drainage and support, and compacting the backfill in lifts (~$1.50/ft) keeps the ground from settling into a trench-line depression later. These are commonly separate line items worth budgeting.
6. Locate, Permits & Restoration
Calling 811 before digging is essential and free for public lines; a private locate (~$150) marks lines 811 doesn't. New utility connections often need a permit (~$250) and inspection. And if the trench crosses lawn, driveway, or sidewalk, surface restoration (~$3/ft) to replace sod or patch pavement is a real added cost.
Rent a Trencher, Dig by Hand, or Hire a Pro?
Trenching is one job where the right approach depends heavily on the run — and where a shortcut near a buried line can be dangerous. Whichever you choose, call 811 first. Here's the honest split.
DIY can work when
- The run is short and shallow — a small irrigation line or low-voltage wire in soft soil.
- You're digging right next to a marked utility, where careful hand digging is actually the safest method.
- A rented trencher fits the job: a moderate, straight run in reasonable soil with good access.
Hire a pro when
- The trench is long, deep, or in rock: pros work faster and have the right machine for hard ground.
- It's over about 4–5 feet deep: cave-in safety rules (shoring/trench boxes) make this pro territory.
- Permits, inspections, and compaction matter — for new water, sewer, gas, or electrical connections.
- The trench crosses pavement or ties into the street right-of-way.
How to Hire and Get an Accurate Trenching Quote
Trenching quotes vary because so much hides in soil, backfill, and restoration. Vet the contractor and pin down the scope before you sign:
- Confirm licensing and insurance, including liability — utility strikes and cave-ins are serious risks.
- Ask how they handle unexpected rock or a high water table, and whether that changes the price mid-job.
- Verify they call 811 and how they protect marked lines — a reputable crew never skips the locate.
- Clarify who installs the utility: the same crew, or a separate plumber/electrician you coordinate.
What a complete quote should spell out
- The length, depth, and dig method, plus the assumed soil condition.
- What backfill is included — plain dirt vs. bedding sand, gravel, and compaction.
- Whether surface restoration (sod, asphalt, concrete) is in scope or extra.
- Any permit, inspection, and private utility locate, and who pulls them.
Methodology & Sources
This calculator starts from a per-linear-foot base rate set by trench depth (shallow, standard, or deep), multiplies it by a soil factor (standard, clay, or rocky) and a dig-method factor(trencher, mini excavator, or hand dig), adds per-foot and flat-fee add-ons (bedding, gravel, compaction, restoration, locate, and permit), applies a minimum job charge, and adjusts the result to your ZIP code's regional price level. In short: Length × (Depth Rate × Soil × Method) + Add-ons, then localized. It prices the excavation only; the installed pipe or conduit is separate. Baseline labor is anchored to federal wage data and calibrated against our aggregated excavation quotes.
Data sources:
- U.S. Bureau of Labor Statistics — Construction Laborers (SOC 47-2061)
- Call 811 — Call Before You Dig (Common Ground Alliance)
- OSHA — Trenching & Excavation Safety
For a full explanation of how every calculator on this site is built and localized, see our methodology page.
About the Reviewer
Landscape Architect & ISA Certified Arborist
Licensed landscape architect and certified arborist covering lawns, plantings, and tree care.
View full profile & credentials →Frequently Asked Questions
Trenching runs about $8 to $30 per linear foot, so a common 100-foot run lands roughly $800 to $3,000 — a shallow irrigation trench at the low end, a deep sewer trench in rocky soil at the top. Depth is the base driver, then soil (easy dirt vs. clay vs. rock) and the digging method (trencher, mini excavator, or hand dig) adjust the rate. One important note: this prices the excavation itself. The pipe, wire, or conduit that goes in the trench — and often the surface restoration afterward — are separate costs.
Depth, soil, and length lead, with digging method and access close behind. Depth is fundamental because a deeper trench moves far more soil and may need trench boxes or sloped walls for safety — a shallow sub-18-inch run is cheap, a 36-inch-plus sewer trench is the priciest. Soil is the wildcard: standard loam digs fast, dense clay adds about 20%, and rocky or hardpan ground adds 45% or more because it can stop a trencher cold and require breaking or sawing rock. Length sets the total (it's priced per foot), while the method and site access — can a machine even reach the run? — fill in the rest.
It depends on the utility and your local code and frost line. Irrigation and low-voltage wiring are shallowest, often 6 to 12 inches. Direct-burial residential electrical is commonly 18 to 24 inches. Gas lines usually fall in the 18-to-24-inch range per code. Water service lines must sit below the local frost line so they don't freeze — as little as 12 to 18 inches in warm climates, but 4 feet or more up north, so location matters enormously. Sewer and drain lines are typically the deepest at 2 to 4+ feet, both to clear frost and to hold the downhill slope gravity flow needs. Always confirm against local code.
Trenching cost is mostly machine and labor time spent moving soil, so anything that slows digging raises the price. Standard loam or sand digs quickly. Dense clay is heavy and sticky, clogging equipment and adding roughly 20%. Rocky, gravelly, or hardpan ground is the worst — it can halt a standard trencher and force a bigger excavator, a rock saw or hammer attachment, or breaking rock out piece by piece, adding 45% or more. Rock is also unpredictable: a run can hit it mid-way and the cost climbs. A high water table, tree roots, and existing buried utilities add slow, careful hand-digging on top of that.
It depends on length, depth, soil, and how close you are to buried lines. Hand digging works for short, shallow runs in soft soil and is the safest choice right next to a known utility — but it's slow and brutal for anything long or deep. Renting a walk-behind trencher suits moderate runs in reasonable soil, though there's a real learning curve and it won't handle rock or obstacles well. Hiring a pro is usually best for long or deep runs, hard soil, jobs near utilities, or anywhere permits and proper compaction matter. Whoever digs, always call 811 first — and for trenches over about 4 to 5 feet, cave-in safety rules make professional work strongly advisable.
Usually the price covers digging the trench and often basic backfill — but not the utility itself or the finishing work. The pipe, sewer line, gas line, electrical conduit and wire, or irrigation tubing is normally a separate material-and-labor cost handled by the relevant trade. Proper backfill is often more than pushing dirt back: many utilities need bedding sand under and around the pipe, a gravel base, and compaction in lifts so the ground doesn't settle — commonly separate line items. Surface restoration (replacing sod, or cutting and patching asphalt or concrete) is another. When comparing quotes, confirm exactly what's in each so you're comparing like for like.
A utility locate is essentially non-negotiable, and a permit is often required. Before any digging, call 811 (the free U.S. 'call before you dig' service) a few business days ahead so gas, electric, water, and telecom lines get marked — hitting one can mean injury, outages, and big repair bills you may owe. Note 811 marks public lines up to the meter; private lines (to a detached garage, septic, or pool heater) may need a private locator. Permits depend on the work: new water, sewer, gas, or electrical lines usually need a permit and inspection, and trenching near a public street or sidewalk typically needs its own municipal permit. Simple shallow irrigation on your own lot often doesn't — but check locally.
Most residential trenching is a single day to a few days. A short-to-moderate run (50 to 150 feet) at shallow or standard depth in easy soil, with good machine access, is often a few hours to a day. Long runs, deep trenches, hard digging (clay or rock), poor access requiring hand work, and obstacles all stretch it. The overall project is longer than the digging alone, though: you wait a few business days after calling 811 for lines to be marked, then dig, install the utility, add bedding and compacted backfill, pass any required inspection before closing the trench, and restore the surface. Rain and unexpected rock or unmarked lines can add delays.