
Digging a trench is usually the first step in a larger home project. Our trenching cost calculator breaks down the factors that affect the price tag of this job.
Don’t find yourself in the trenches—study up on joint trench codes before you dig
Local building codes control whether gas and electric lines can share a trench, so check your city requirements before digging begins.
Trenching costs $400 to $1,200 per 100 linear feet, while installing utilities on land ranges from $6,500 to $30,000 for complete service.
Your trench needs gas lines buried 18 to 24 inches deep and electric lines 24 inches deep with proper spacing between them.
Hiring a local excavation company keeps your project on schedule with proper depth measurements, code compliance, and safe digging around existing utility lines.
You’re finally building the home addition you’ve been dreaming of, but you need to consider how to extend your gas and utility lines to this new part of the house. But as you’re browsing excavator rentals and considering your options, you may wonder if you could save money by combining the work. Can gas and electric be in the same trench? Here’s what you need to know about a process known as joint trenching.
Gas and electric can often be buried in the same trench (with some stipulations), and this setup is known as a joint trench. A joint trench isn’t always allowed for these or other utilities. Whether or not gas and electric can be in the same trench will vary by city and state building codes. Some places allow joint trenching but require the two lines to be a certain distance apart vertically or horizontally, often 12 to 24 inches.

Trenching, or digging, for utility lines can come with many requirements, all of which are designed to keep your household safe, your utilities stable, and the surrounding environment protected from any leaks or sparks.
While the exact utility trench requirements depend on your local building codes, here are some common joint trenching requirements when laying utilities:
Trench width: Most codes require 24 inches between the gas and electric lines, so consider this when deciding how wide and long to dig your trench.
Trench depth: When choosing how deep to dig the trench, keep in mind that electric lines need to be 24 inches deep, and service gas lines (not the main gas line) should be 18 to 24 inches deep. Main gas lines are buried deeper.
Conduits: Some soil, climate, and utility spacing conditions require conduits for more protection. For instance, installing electric in rocky soil requires 4 inches of sand bedding as a conduit.
Separate trenches: For building codes that require separate trenches for gas and electric, there may also be a requirement for spacing between trenches. The average space requirement is at least 3 feet between gas and electric trenches.
Notifying officials: No matter your location, you must call 811, the Call-Before-You-Dig hotline, at least 48 hours before starting a trenching project. Officials need to confirm that you won’t accidentally dig into any existing utility lines below ground.

Before you start digging a trench for utility lines, make sure to follow these tips to get the job done up to code.
It’s extremely important to check online or call your local zoning board or building department for the utility line requirements. There are rules on whether gas and electric can be in the same trench, but it can vary by city and state. You must comply with building codes to ensure the project is done safely and won’t harm your home or the surrounding environment.
The pros know the requirements like the backs of their hands, which is why it’s better to let an expert handle trenching and laying utility lines for you.
“Logistics and timing are two things that come with the price when you hire professionals to do this kind of work for you, and with that comes the security that if anything goes wrong, they will be on the line for it and not you.”
— Josh Rudin, Owner of ASAP Restoration LLC, Tempe, Arizona
If your local building codes do allow gas and electric to be in the same trench, keep them around the same height for easier servicing. For example, if the gas needs to be 18 to 24 inches below ground, but electric has to be 24 inches deep, lay them both at 24 inches deep (with 12 inches between each line). That way, if you need work done on the electric line, a pro doesn’t have to dig around past the gas line to reach the electric.
Trenching for utilities can get confusing when it comes to depth and separation requirements. Rather than trying to measure out a 24-inch depth with a 3-foot separation for the length of each utility line, let a local excavation pro dig your trenches to code, then turn to gas and electric pros to install the utilities for you. That way, you know the work meets code and will safely provide you with the power you need for years to come.

Digging a trench costs $400 to $1,200 for 100 linear feet, but the total will depend on the width and depth of the trench, the soil and site conditions, and whether you rent a trencher to DIY or hire a trenching pro. If you’re digging trenches for utility lines, you can also expect to pay between $6,500 and $30,000 for the cost to get utilities on your land. Installing electric costs $5 to $15 per linear foot, and gas installation costs $15 to $25 per linear foot.
Jason has helped me with multiple household projects, with the most recent being new door installation. He has always showed up on time and organized and has done an incredible job! Jason is very professional and he's now my go-to for anything around my house that needs to be fixed or...
Amazing job. Efficient and quick without compromising quality. Basement feels brand new. Would use them again in a heartbeat.
Best cleaning I've had at my property
This company is my go to resource for all my post renovation clean ups. They get the place spotless! All we have to do after is stage the place and sell, sell, sell! They are super professional and have some amazing scent that is left in every property. I highly recommend!
Custom Paint Jobs LLC took our exterior from drab to fab! We couldnt be happier.
We had our houses windows and back door replace this summer by Window Depot USA of Central. He gave us grate advise and saved my family lots money. The team did a fantastic job with installation. If you need help, they sure get job done right!
Beginning with the estimate, Larry and Peyton were super helpful in getting my new condo's interior re-painted. Not only was the job well done, but also done in a super timely manner as promised.
Great job...edging and pre clean up went well with a great job with seal coat. Friendly, efficient and professional.
Did an amazing job transforming my yard. Also installed sod in places, would recommend to everyone.
Very knowledgable, very respectful and did a great job. They take pride in their work and it shows. I would highly recommend Dad's Home Repair and Excavation.
From average costs to expert advice, get all the answers you need to get your job done.

Digging a trench is usually the first step in a larger home project. Our trenching cost calculator breaks down the factors that affect the price tag of this job.

Making updates to your home? You may need to move your gas line to fuel new appliances or meet code regulations. We’ll cover the cost of moving a gas line, plus project tips.

Before you hire a licensed electrical contractor, you should learn the cost to run electric from the road to your house so you can budget for the project.

Choosing the right pipe type for your gas lines can help ensure the safe use of your gas appliances. Find out if you can use galvanized pipe for gas in this guide.

Who can dig a trench for you? You can rent trenching equipment for a simple job, but a local excavation company can help with tough ones. Here's how.

When prepping a trench, you may ask, “Will a trencher cut through roots?” Learn how a trencher can effectively complete your excavation project with this guide.