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.

How is Trenching Cost Calculated?

Trenching is priced per linear foot, typically $8 to $30/linear ft. The depth sets the base — shallow (~$6), standard (~$10), and deep (~$16) — because deeper trenches move more soil. Soil (standard, clay, or rocky) and the digging method (trencher, mini excavator, or hand dig) then adjust it, while bedding sand, gravel, compaction, and surface restoration add to the total. Trenching is the excavation itself; the pipe, wire, or conduit is a separate cost.

Calculate the Cost Estimate of Trenching

Get started by entering 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:

Pipe Bedding Sand (+$2/linear ft)
Gravel Base / Backfill (+$2.50/linear ft)
Backfill & Compaction (+$1.50/linear ft)
Surface Restoration (+$3/linear ft)
Utility Locate / 811 (+$150)
Permit (+$250)

Key Factors Influencing Trenching Cost

Depth, Soil & Method

The trench depth is a main cost driver — a shallow irrigation trench is cheap, while a deep sewer trench that must get below the frost line costs far more because it moves more soil and may need shoring. Soil matters: dense clay and especially rocky or hard ground dig much slower than standard soil. The method also adjusts the price — a trencher is fast and economical, a mini excavator handles obstacles, and hand digging (for tight spots or near utilities) is the most expensive.

Bedding, Backfill & Restoration

  • Bedding & Gravel: Pipe bedding sand and a gravel base protect the utility and ensure proper support.
  • Backfill & Compaction: Compacting the soil back in lifts prevents future settling over the trench.
  • Locate, Restoration & Permits: Calling 811, replacing sod or pavement, and permits are common parts of the job.

Average Trenching Cost by Depth

Trench DepthInstalled / Linear FtNotes
Shallow (under 18")$5 - $9Irrigation, low-voltage.
Standard (18-36")$8 - $15Water, gas, electrical.
Deep (36"+)$14 - $30Sewer, below frost line.
Rocky / Hard Soil+45%Slow, difficult digging.

Common Add-Ons

Add-OnCostNotes
Pipe Bedding Sand$2/linear ftProtects the pipe.
Gravel Base / Backfill$2.50/linear ftDrainage & support.
Backfill & Compaction$1.50/linear ftPrevents settling.
Surface Restoration$3/linear ftReplace sod or pavement.
Utility Locate / 811~$150Mark private lines.

How to Estimate Trenching Cost Manually

Trenching is priced per linear foot, and the depth sets the base. Soil and the digging method then adjust it. Here's how to estimate it.

Step 1: Measure the Run

Length of the trench in linear feet. A typical utility or irrigation run is ~50-300 linear ft.

Step 2: Trench Depth (Per Linear Ft)

  • Shallow (under 18"): ~$6 — irrigation, low-voltage
  • Standard (18-36"): ~$10 — water, gas, electrical
  • Deep (36"+): ~$16 — sewer, below frost line

Step 3: Soil & Method

Dense clay +20%, rocky / hard +45%. Mini excavator +15%, hand dig +80%. Bedding sand, gravel, backfill compaction, and surface restoration are common add-ons.

Step 4: Apply the Formula

Length × (Depth Rate × Soil × Method) + Add-ons = Total

Example: a 150-linear-ft deep sewer trench in clay soil with a mini excavator: 150 × ($16 × 1.20 × 1.15) ≈ $3,310, plus bedding sand.

Frequently Asked Questions

In 2026, trenching typically costs $8 to $30 per linear foot, so a common 100-linear-foot run lands roughly between $800 and $3,000, with simple shallow trenches at the low end and deep trenches in rocky soil at the high end. Trenching is the excavation of a narrow, linear channel in the ground, usually to install or access utilities — water lines, sewer and drain lines, gas lines, electrical conduit, irrigation, or drainage. The cost depends mostly on the depth (shallow irrigation trenches are cheap, deep sewer trenches that must get below the frost line cost much more), the soil (easy-to-dig soil is the baseline, while dense clay and especially rocky or hard ground are slower and more expensive to dig), and the method (a dedicated trencher is fast and economical, a mini excavator costs more but handles wider trenches and obstacles, and hand digging is the most expensive). Length matters too — longer runs cost more in total but the per-foot rate can drop a bit at scale. Add-ons like pipe bedding sand, a gravel base, backfill and compaction, surface restoration (replacing sod, asphalt, or concrete), a utility locate, and permits add to the total. This calculator lets you set the length, depth, soil, and method to estimate your trenching. Note this estimates the trenching/excavation itself — the pipe, wire, or conduit installed in it is a separate cost, and pricing varies by region and access.

The biggest cost drivers in trenching are depth, soil conditions, and length, with the digging method and site access close behind. Depth is fundamental: a shallow trench (under 18 inches, for irrigation or low-voltage wiring) moves relatively little soil and is the cheapest, a standard trench (18 to 36 inches, for water, gas, or electrical) is mid-range, and a deep trench (36 inches or more, for sewer lines or to get below the frost line) costs the most because it requires removing far more material and may need trench boxes or sloped walls for worker safety. Soil is the other major factor: standard, loamy soil digs quickly, but dense clay is slower and stickier (adding around 20%), and rocky, gravelly, or hardpan ground is the worst — it can dramatically slow progress or require special equipment, breaking up rock, or even rock saws, adding 45% or more. Length drives the total cost (it's priced per linear foot), though very long runs can sometimes get a slightly better per-foot rate. The digging method matters: a trencher is fast and economical for clean straight runs, a mini excavator costs a bit more but is versatile around obstacles and for wider/deeper trenches, and hand digging is far more expensive per foot but necessary in tight spaces or near existing utilities where machines can't safely operate. Site access (can equipment reach the area?), obstacles (tree roots, existing utilities, pavement to cut through), and surface restoration also affect the price. This calculator adjusts for depth, soil, and method, the main variables.

Required trench depth varies by the type of utility and by local codes and climate, and getting it right matters for both function and code compliance. Irrigation lines and low-voltage wiring (landscape lighting, sprinkler valves) are typically the shallowest, often around 6 to 12 inches, since they don't need deep protection. Electrical conduit for direct-burial residential circuits is commonly 18 to 24 inches deep (depending on whether it's in conduit and the voltage/code), to protect the wiring from digging and damage. Water service lines must generally be buried below the local frost line so they don't freeze — this ranges from around 12 to 18 inches in warm climates to 4 feet or more in cold-winter regions, so depth varies a lot by location. Gas lines are usually in the 18 to 24 inch range, per code and utility requirements. Sewer and drain lines are typically the deepest, often 2 to 4 feet or more, partly to maintain the proper downhill slope for gravity flow over the run and to stay below frost. Because the frost line and code requirements differ by region, always check local building codes and utility requirements (and the depths above are general guidance, not a substitute for code). Deeper trenches cost more, which is why this calculator prices shallow, standard, and deep ranges differently. Your contractor will dig to the depth required for your specific utility, code, and frost line.

The core of trenching cost is the labor and equipment time spent removing soil, so anything that slows digging directly raises the price — and soil type is one of the biggest variables. Standard, loamy, or sandy soil is the baseline: it's relatively soft, digs quickly with a trencher or excavator, and doesn't fight the machine. Dense clay is harder — it's heavy, sticky, and can clog or slow equipment, and it's more tiring to handle and backfill, which adds roughly 20% in this calculator. Rocky, gravelly, hardpan, or caliche ground is the most difficult and expensive (adding around 45% or more): rock can stop a standard trencher cold, requiring a larger excavator, a rock saw or hammer attachment, or even breaking and removing rock piece by piece, all of which dramatically slow progress and increase equipment and labor costs. Sometimes rock is unpredictable — a job can hit unexpected rock mid-run and the cost climbs. Other ground conditions add cost too: a high water table or saturated soil can cause the trench to collapse or fill with water (requiring shoring or pumping), tree roots must be cut through, and existing buried utilities require careful, slower digging (often by hand) to avoid strikes. Because the ground can swing digging time so much, soil and rock are among the hardest parts of a trenching estimate to predict, which is why contractors assess the site and why this calculator adjusts the rate for soil difficulty. A soil or site assessment helps anticipate rocky conditions.

The right approach depends on the trench's length, depth, the soil, how close it is to existing utilities, and your comfort with equipment. Hand digging is feasible for short, shallow trenches (like a small irrigation line or a low-voltage wire run) in soft soil, and it's the safest choice right around known buried utilities where you must avoid striking a line — but it's slow, physically demanding, and impractical for long or deep runs. Renting a trencher (a walk-behind or ride-on machine) is a popular DIY option for moderate runs in reasonable soil — it digs a clean, narrow trench quickly and rentals are widely available, but there's a learning curve, the machine can be hard to control, it doesn't handle rocky ground or obstacles well, and you still have to manage depth, spoil, and backfill yourself. Hiring a professional (with a trencher or mini excavator) is usually best for long runs, deep trenches, rocky or difficult soil, jobs near existing utilities, or anywhere code, permits, and proper compaction matter — pros work faster, handle obstacles and restoration, and carry the liability. Critically, no matter who digs, always call 811 (the free 'call before you dig' utility-locate service) before any trenching so existing gas, electric, water, and communication lines are marked — striking a utility is dangerous and expensive. For deep trenches (over about 4-5 feet) safety regulations around cave-ins (shoring/trench boxes) make professional work strongly advisable. This calculator estimates professional trenching cost; for a short shallow run you can compare it against renting a trencher.

Generally, a trenching price covers the excavation itself — digging the trench — and often the basic backfill, but the utility being installed and the finishing work are frequently separate or add-on costs, so it's important to clarify the scope. The base trenching cost is primarily for the labor and equipment to dig the linear trench to the required depth. What's installed in the trench — the water pipe, sewer pipe, gas line, electrical conduit and wire, drainage pipe, or irrigation tubing — is usually a separate material and labor cost, often handled by the relevant trade (plumber, electrician, etc.) and priced separately from the digging. Backfill (putting the soil back) is sometimes included in the trenching price, but proper backfill often involves more than just pushing dirt back: many utilities require pipe bedding (a layer of sand or fine material under and around the pipe to protect it), a gravel base, and compaction in lifts so the ground doesn't settle later — these are commonly add-ons (this calculator offers bedding sand, gravel, and backfill/compaction separately). Surface restoration is another separate cost: if the trench crosses a lawn, you may need to replace sod or reseed, and if it crosses a driveway, sidewalk, or street, cutting and patching asphalt or concrete is a significant added expense (offered here as surface restoration). Permits, a utility locate, and inspections may also apply. When comparing quotes, confirm exactly what's included — depth, backfill type, compaction, restoration, and whether the pipe/conduit is in the price — so you're comparing apples to apples. This calculator estimates the trenching and lets you add bedding, gravel, compaction, and restoration.

A utility locate is essential for virtually all trenching, and a permit is often required depending on what you're installing and where — both are important for safety and compliance. The utility locate is non-negotiable: before any digging, you should call 811 (the national 'call before you dig' number in the U.S.) several business days ahead, and the utility companies will come mark the locations of public underground lines (gas, electric, water, sewer, telecom) for free. Digging without locating risks striking a utility line, which can cause serious injury, dangerous gas leaks or electrocution, service outages for the neighborhood, and expensive repair bills and fines that you may be liable for. Note that 811 marks public utilities up to the meter; private lines (like a line to a detached garage, a septic system, an irrigation system, or a gas line to a pool heater) aren't covered by 811 and may require a private utility locator (an add-on in this calculator). Permits depend on the jurisdiction and the work: trenching for a new water, sewer, gas, or electrical line typically requires a permit and an inspection (because the utility connection must meet code), and trenching in or near a public right-of-way, street, or sidewalk usually requires a separate permit from the municipality. Simple shallow trenching entirely on your property for something like irrigation or low-voltage lighting may not need a permit, but it's best to check with your local building department. This calculator offers a utility locate and a permit as add-ons; always confirm local requirements and call 811 before digging. Skipping these steps risks safety, fines, and having to redo non-compliant work.

Most residential trenching jobs are completed in a single day to a few days, depending on the length, depth, soil, method, and site conditions. A short-to-moderate trench (say 50 to 150 linear feet) at a shallow or standard depth in easy-to-dig soil, using a trencher or mini excavator with good access, can often be dug in a few hours to a day. Longer runs, deep trenches (which move much more soil and may need shoring), hard digging conditions (dense clay or rocky ground that slows the machine), poor access (areas a machine can't reach, requiring slower hand digging), and obstacles (tree roots, existing utilities, or pavement to cut through) all extend the timeline. The full project timeline also includes steps beyond the digging itself: calling 811 and waiting the required few business days for utilities to be marked before any work begins, the actual trenching, installing the pipe/wire/conduit (often by a plumber or electrician), adding bedding and backfill with proper compaction, any required inspection of the utility before the trench is closed, and surface restoration afterward (replacing sod or patching pavement). Inspections can add a day or more of waiting if the line must be approved before backfilling. Weather (rain can flood a trench or stall work) and unexpected conditions (hitting rock or an unmarked line) can cause delays. So while the trenching machine work may be quick, the overall project — locate, dig, install, inspect, backfill, restore — can span several days. Your contractor can give a specific schedule after assessing the length, depth, soil, and access. This calculator estimates the cost; the timeline depends on these same factors plus locating, inspection, and weather.