Can Electrical Wire Run Next To Gas Line?

While building a new house or attempting DIYs, it is crucial to take care of the safety related to electrical wires. So, be careful while dealing with electrical lines and gas lines. A common question arises whether to run them next to each other. 

It is not recommended to run electrical wire next to a gas line due to the risk of electrical shock or fire. Electrical wires should be kept at least 6 inches away from gas lines to prevent any potential damage or hazards. It is important to follow local building codes and regulations to ensure safe and proper installation.

However, there are a lot of things to understand. This article covers the possibility of running the electrical wires next to the gas lines, how much distance to maintain between the lines, and associated risks.

Check out our list of top-handpicked products for all your electrical, appliance, and HVAC system needs to keep your home running smoothly.

This post includes some affiliate links.

Understanding the risks of running electrical wires next to gas lines

Running the electrical wires next to the gas lines can be risky. 

The gas lines are always buried under the ground. 

Installing the electrical wires next to the gas line will be fine, especially the ground wires, as they remain bare.

But there is a risk if the insulated hot or neutral wires.

The electrical wires are insulated with rubber. 

So, the wires remain protected, but not from the underground pests.

The pests can reach the electrical wires, damage the insulation, and expose the inner wires. 

Not only just pests but staying under the ground can be stressful for the wires, and the insulation can damage physically by the stress. 

When the wires get exposed, it will energize the gas lines and lead to gas leaks. 

As a result, it can impose fire risks and electrical shocks. 

If you want to install the electrical lines next to the gas lines, maintain a minimum of 25 mm and a maximum of 3 feet distance. 

The distance between the gas line and electrical wires depends on various factors like the circuit type, cable strength, and risks associated with the appliances.

When you install the wires next to each other, prevent all sorts of obstructions. Despite being pliable, both lines are prone to damage.

Bending the wires too much can damage them and increase the risk of gas leaks and fire hazards.

Codes governing the installation of electrical wires and gas lines in residential and commercial buildings

Multiple codes govern the installation of electrical wires and gas lines in residential and commercial buildings. 

The National Electric Code or NEC says nothing about running the electrical wires next to the gas lines in residential or commercial buildings. 

But it does mention the electrical wire clearance. 

According to the NEC 110-26, the electrical wires must receive at least 3 feet of clearance in residential and commercial buildings. 

So, if you want to install the gas lines next to the electrical wires, maintain at least 3 feet distance.

Keep 12-24 inches of clearance around the electrical wires in the residential.  

For commercials, it is better to maintain at least 3 feet distance.

These clearances will vary based on the wire voltage. 

High-voltage wires should be given more clearance than low-voltage wires. 

The International Building Code, or IBC, does not specify the electrical wires next to gas lines in residential or commercial buildings. 

The lines must be protected safely to prevent damage and interference with other materials.

Best practices for determining the minimum safe distance between the electrical wire and gas lines

Maintaining the proper distance between the electrical wires and gas lines is crucial to avoid electrical wire damage and leaks. 

The best practice to determine the minimum safe distance between the two lines is to consider the following factors:

  • Follow the National Fuel Gas Code. It requires a minimum distance of 3 feet between the gas lines and the electrical wires. However, it will differ if your region has separate local codes and regulations.
  • Always follow the local codes and regulations while installing the gas lines next to the electrical wires. Different regions will have different regulations. The minimum distance is 25 mm, and the maximum is 3 feet. In some areas, the minimum distance is 25mm; in others, it’s 24 inches. Since the NEC does not mention anything about it, check for the local codes of your region.
  • Consider the voltage and wire type of the electrical wires before installing them next to the gas lines. Wires with higher voltage will need more space than low-voltage wires. For example, a 750V wire will need 3 feet of clearance, a wire higher than this will need around 10-25 feet, but a voltage lower than 750V will need less than 3 feet. 
  • The type of gas line is another thing to take into consideration. For example, a natural gas line will need more clearance due to its high pressure and excessive gas flow, but a propane gas line may only need a little distance.
  • Conduct a site survey before installing the wires and pipes. It will help you know potential hazards and which areas can provide the minimum but the safest distance between the gas line and electrical wires. Conduct the survey with a professional for better suggestions. 
  • Use barriers between the gas lines and electrical wires if the minimum distance is impossible. 
  • Use conduits to maintain a minimum but safe distance. If you wish to use a single conduit, use a conduit with multiple compartments to keep the wires and lines separate.

Materials used for electrical wires and gas lines and their impact on the safety of running them in close proximity 

Both electrical and gas lines are combustible. So, ignorance and mistake can lead to dangerous outcomes. 

So, ensure the wire materials are strong enough to handle critical circumstances. 

Copper wires for the gas lines can be risky. So, go for galvanized steel or CSST (Corrugated Stainless Steel Tubing). 

These materials can save you from electrical hazards. 

For electrical wires, there are 3 options – copper, aluminum, and copper-clad. 

Copper wires would be the best choice due to their properties. 

The electrical wires should be insulated with PVC or rubber. 

Choosing weather-resistant wire would be a great choice. For that, choose TW, THW, THHN/THWN wires. 

Using conduits is also the best option for the electrical wires. 

Conduits can prevent physical damage to the wire and prevent exposure and fire. 

The importance of proper grounding and bonding of the electrical wire and gas line to reduce the risk of electrical shocks and gas leaks

Grounding is vital for electrical wires and gas lines to reduce the risk of electrical shocks and gas leaks, especially when installing them next to each other. 

Why should you ground and bond the gas lines?

The gas lines can build up static electricity and spark and ignite flammable gasses. 

Static electricity is generated when the gas flows through the lines, creating friction against the wall. 

When this electricity does not properly dissipate, it will gather in the gas lines, create sparks, ignite the gas, and lead to fire hazards.

Grounding the gas pipes will help dissipate the static electricity through the grounding system and prevent sparks and ignition.

Bonding is when you connect a conductor electrically to the gas line and then to the grounding electrode system. 

It provides a low-impedance path to the ground. 

Bonding will reduce the possibility of arcing between the conductive materials when lightning strikes.

The grounding and bonding of the gas lines should meet the National Fire Protection Association or NFPA 54 standards requirements.

Why is grounding necessary for electrical wires?

In the electrical wires, it is the excess electricity that needs the grounding system to flow. 

During a short circuit, excess electricity flows through the metal casing of an appliance. This excess current will need an alternate path to flow.

If there is no ground wire, it will flow through your body or your housing. 

But with a ground wire, the current will flow to the earth through the wire and prevent electric shocks and fire hazards. 

Ground the wires by connecting a bare copper wire from your house’s electrical system to the grounding electrode (a metal rod, grounding ring, or plate).

With proper grounding, you can stop the electrical wires from electric shocks, short circuits, and gas lines from making any static electricity and gas leaks.

Risks associated with DIY electrical and gas line installations and the importance of hiring a licensed and qualified professional

Who doesn’t love DIY projects? 

I have attempted many DIY projects related to electrical lines, including the grounding system. 

Of course, I did not approach anything without an expert’s advice. 

Otherwise, I would have ended up with intense damage to my property.

However, DIY projects can be risky in several ways, especially if you are a beginner and have never attempted such work before.

Here are some risks and challenges you may face while doing any DIY projects related to electrical wires and gas lines:

  • Installing the electrical wires and gas lines requires vast knowledge and professional training. Without these things, attempting any DIY project alone means walking toward the path of danger.
  • A more significant project could have a high risk of electrical accidents and property damage. Repairs can be too costly.
  • Electrical and gas line work must follow some codes and regulations. Doing DIY means you must follow them, or you will end up with code violations, penalty fees, and legal consequences.
  • You won’t have the right tools and materials like the experts when you do anything yourself. Even if you manage to gather most of them, you are still short of some materials, which can further affect your project, and you may take a lot of time to complete it.
  • When you attempt a DIY project, you do not receive any insurance coverage. So, during any damage, no companies will cover up the damage or save you from such conditions. It leaves you liable for all injuries and property damage.
  • DIY installations of electrical wires or gas lines can make it difficult for experts to diagnose the problem. They follow methods taught in their training. By following some methods from the internet, professionals can find it challenging to analyze and solve. Even if they figure it out, you have to pay them extra money for the extra time and effort they have put into the repair.

Importance of hiring a licensed and qualified electrician 

There are multiple benefits to hiring a licensed and qualified electrician.

You can prevent the above risks associated with DIY electrical and gas lines and receive additional benefits. 

Here’s why hiring a professional is essential:

  • A licensed electrician will be permitted to work on every electrical or gas line installation task. In some regions, people without licenses are not allowed to perform such tasks. 
  • A professional will have proper training and certificate to successfully attempt all types of electrical works without any mistakes. 
  • A professional will do his job without mistakes and take less time than you take during a DIY. So you can save time and money.
  • Professionals will follow the proper rules and standard codes related to electrical wire installations. So you do not have to suffer from any code violations and penalties.
  • Most professionals can help cover up the damages and injuries with insurance.
  • With professionals, you receive discounts on various projects in certain situations. For example, the professional has done many of your projects before, you are the first customer of the month or year, or you have approached the professional during any festive month. 
  • Licensed professionals will carry the tools needed for your electrical work. Proper tools lessen a lot of time and effort behind the work. The lesser time and effort, the lesser money he will charge. 

The potential legal and liability implications of running electrical wires next to the gas lines

Running the electrical wires and gas lines close to each other can be dangerous if not installed correctly. 

It will further impose liability implications during any accidents, including property damage and personal injuries. 

There will be sparks when the electrical wires are damaged, and gas lines start leaking. 

In no time, a dangerous fire accident and explosion will occur.

Legally, the party whose electrical wires and gas line installation in close proximity caused the explosion will be responsible for these accidents and negligence. 

The other individuals who have suffered damages and injuries may file lawsuits against the party. 

Suppose the owner is found negligent and guilty in the installation and maintenance. 

In that case, they must be held liable for the damages and injuries due to the explosion. 

It will result in many expenses – court fees, legal charges, financial losses, and damages to the plaintiff.

Along with the owner, the contractors hired to install the electrical wires and gas lines next to each other are found guilty due to negligence. 

They will also be held liable for these damages.

So, to avoid these liabilities, ensure the contractors are doing their work correctly and following the standard codes and rules. 

Additionally, inspect and maintain these lines regularly and inform the professionals whenever you doubt something about these wires and lines. 

Impact of environmental factors like temperature and moisture on the safety of running electrical wire and gas lines in close proximity

Gas lines and electrical wires face environmental factors like temperature changes and moisture. 

These conditions can negatively impact both the lines in proximity:


Excessive low and high-temperature ranges can make the electrical and gas lines expand and contract and cause insulation damage and gas leaks. 

For example, when electrical wires, especially aluminum wires, are exposed to high temperatures, they expand and become brittle. 

It can further increase the risk of breakage and exposure of the energized inner wires. 

When gas lines expand and contract, the gas expands and causes the pipes to crack and leak. 

At low temperatures, the gas will condense, create pressure in the pipes, and lead to gas leaks. 

However, these situations are possible in regions with extreme temperature changes.

To prevent these things, maintain proper distance between the electrical wires and gas lines.

Use wires made of materials that can handle the temperature pressure. 

For example, use copper wires for the electrical wires. 

Their COE is much better than the aluminum wires. 


Moisture is another environmental factor. 

The gas lines are mostly made of metal. So, they may contact the moisture and cause corrosion. 

Over time, the corrosion will weaken the gas lines and can lead to gas leakage. 

The moisture will also affect the electrical wires and cause short circuits and fire hazards. 

Altogether, such damage to both lines will raise fire accidents, property damage, and personal injury. 

Use weather-resistant electrical wires that can handle moisture. For extra safety, use conduits for your underground wires. 

For gas lines, use PVC conduits or coated gas lines to prevent moisture and leakage. 

Before installations, find a place less prone to moisture accumulation and temperature that cannot significantly impact the wires and lines. 

Though you cannot change the temperature, there is no harm in trying. 

Regularly inspect them and immediately hire a professional for a checkup and a quick remedy if you spot anything serious. 

Things to consider to reduce the risks associated with running electrical wire and gas lines in close proximity

You can install the electrical wires next to the gas lines, but it is risky. 

When the underground wire insulation gets damaged by pests, it will cause short circuits, energize the gas lines, and leak gas. 

It will further take a dangerous turn. 

However, with a few steps, you can make the practice safer. 

Below are a few things to consider:

  • Use weather-resistant conduits. The conduits will prevent physical damage, and the weather-resistance layer will protect them from environmental factors like temperature and moisture. 
  • If you use a single conduit, use a pipe with multiple compartments.
  • Maintain at least 25 mm to 3 feet of distance between the lines. 
  • Do not twist or stretch the electrical wires.
  • Avoid covering the trenches immediately after installation. Check for leakage and then cover it.
  • The depth is an essential factor, especially for houses with plumbing lines. Maintain at least 18 inches of depth for installing both lines next to each other. 

Best practices for maintaining and inspecting electrical wire and gas lines over time to ensure safety and compliance with regulations and codes

Maintaining and inspecting the gas lines and the electrical wires in close proximity is essential to ensure their safety and code compliance.

Here are some best practices to consider while maintaining them:

  • Regularly inspect the wires and the lines with the help of a licensed professional. If any problem is witnessed, the professional can immediately take action without letting any further damages occur.
  • Stay upgraded about the rules and regulations related to the gas lines and electrical wires. It will help you know whether the inspections, repairs, changes, and installations are done as per the standard codes.
  • When performing the maintenance and inspection routine, keep a record of everything – the date, the inspections, any changes or repair, and any problem that occurs before or after the inspection. It will help you in the future. 
  • Ensure that any repairs or changes made during the maintenance and inspection are done according to the code and regulations.
  • If any problem is identified during the inspection, immediately address it. Otherwise, you’ll face high-level danger in the future.
  • Conduct leakage tests for the gas lines occasionally and ensure the repair of the leakage is immediately taken care of.

Final thoughts

Whether you can run the electrical wires next to the gas lines is contradictory because the answer is yes and no. If you properly install the wires and the lines by following the proper local codes, there won’t be any issues. It is not recommended because the gas lines are always buried. 

Installing the wires close to gas lines means the pests will damage the insulation, expose the inner wires, create short circuits and sparks, energize and leak the gas lines, and create fire accidents and explosions.

That is why it is not recommended. Maintaining adequate distance, a minimum 25 mm distance and a maximum of 3 feet (according to the NEC), will keep things at a proper pace. 

For extra protection, use conduits for both the wires and gas lines. Do not do the project without an expert’s help. Since there are multiple risks and legal liabilities associated with this installation, you must follow the factors I have shared to remain safe.

Maintain regular inspections to keep a check on the electrical wires and gas lines. If you ever witness anything abnormal, immediately inform the expert to address the problem quickly.

What should be the distance between the gas meters and electrical circuits?

At least 150 mm of distance is needed between the gas meters and electrical outlets, including the electrical switchboards, sockets, and consumer appliances.

What size of wire do you need to bond the gas lines?

Bonding requires two sizes larger wire than the pipe size. For example, if the gas pipe is ¾ inch copper, use a 1/0 AWG bonding wire.

Reference: Electrical wires Wikipedia

Sharing is caring!

Arthur Smith

Howdy! I am Arthur Smith, an electrical engineer who is extremely passionate about electronics. I have lived in different parts of the US and currently reside in Wisconsin. I am one of those rare children who knew what he wanted to study and do in life right from the start. I was a curious child who wanted to know how switches work and how the AC works, and I would always observe my dad whenever he would handle the wires and fix things around the house. I currently work as an electrical engineer at a reputed company and write for this blog. And I read loads of books or play video games in my free time.

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts