Residential gas line installation requirements come from the International Fuel Gas Code (IFGC), which most local jurisdictions adopt as their baseline and many strengthen with additional rules. To install a gas line legally in a home, you need a permit from your building department, piping and fittings drawn from the code’s approved materials list, pipe sized to carry the full BTU demand of every appliance it will serve, shutoff valves and sediment traps in the right places, and a pressure test witnessed by a municipal inspector before any gas flows.
Get the Permit Before You Cut Any Pipe
A mechanical or plumbing permit is required before gas piping work begins. The application typically asks for a site plan showing how the piping will route through the structure and a load calculation listing the BTU input of every appliance the system will supply. That calculation decides whether your existing gas service can handle the added load without the pressure drops that starve burners.
Permit fees generally run from around $30 to a few hundred dollars depending on scope. An incomplete application, usually one missing the piping layout or BTU figures, means delays until you supply the rest.
Whether you can pull the permit yourself depends on where you live. Many jurisdictions allow homeowners to perform gas work on their own primary residence as long as they take out the permit and pass the same inspection a contractor would. Others require a licensed plumber or gas fitter for any fuel gas work. Call your building department before you assume you can do the job yourself. Unpermitted gas work can bring fines or an order to tear the installation back out.
Approved Piping Materials
The IFGC limits gas piping to a short list of materials, each with its own conditions.
Steel, Copper, and CSST
Black steel pipe is the most common choice for interior residential gas lines. The code sets a minimum weight of Schedule 10, though Schedule 40 is widely used because its thicker walls accept standard threaded fittings. Pipe lighter than Schedule 40 has to be joined by press-connect fittings, flanges, brazing, or welding rather than threads.1ICC Digital Codes. 2024 International Fuel Gas Code – Chapter 4 Gas Piping Installations Cast iron pipe is prohibited outright.
Copper tubing in Type K or L is allowed, but not where the gas supply contains more than trace hydrogen sulfide, which corrodes copper from the inside.1ICC Digital Codes. 2024 International Fuel Gas Code – Chapter 4 Gas Piping Installations Your gas utility can confirm whether local gas composition rules copper in or out.
Corrugated stainless steel tubing (CSST) is a flexible option that threads through finished walls more easily than rigid pipe. It must be listed to the ANSI LC 1/CSA 6.26 standard and installed to both the manufacturer’s instructions and the IFGC.1ICC Digital Codes. 2024 International Fuel Gas Code – Chapter 4 Gas Piping Installations
The CSST Bonding Rule
CSST’s thin corrugated wall is vulnerable to arcing during a lightning event, which can punch a pinhole and ignite the escaping gas. The IFGC requires non-arc-resistant CSST to be bonded directly to the building’s grounding electrode system. The bonding conductor has to be at least 6 AWG copper, no longer than 75 feet, and attached downstream of the gas meter to a length of rigid pipe or a brass CSST fitting. It is never clamped to the corrugated tubing itself. The other end lands on a grounding electrode, the grounding electrode conductor, or the service enclosure.2International Code Council. Bonding of Corrugated Stainless Steel Tubing Gas Piping Systems Skipping the bond is one of the more dangerous shortcuts in residential gas work.
Underground Lines
Gas lines running underground between the meter and the building follow their own rules. The IFGC sets a minimum burial depth of 12 inches, with an exception allowing 8 inches for supply lines serving individual outdoor appliances where the code official approves and the location is not exposed to physical damage.3International Code Council. Underground Gas Piping System Requirements in the I-Codes
Buried metallic pipe must be protected against corrosion by at least one of three methods: using corrosion-resistant material suited to the soil, applying a factory electrically insulating coating, or installing a cathodic protection system that is monitored and maintained on an ongoing schedule.3International Code Council. Underground Gas Piping System Requirements in the I-Codes When non-metallic pipe like polyethylene is used underground, a tracer wire is typically required so the line can be located later with standard utility-locating equipment.
Sizing the Pipe to the Load
Undersized piping is where a lot of DIY gas work goes wrong. The IFGC sizes every pipe segment based on five factors: allowable pressure drop from the meter to the appliance, maximum gas demand with all appliances running at once, total pipe length including fittings, specific gravity of the gas, and a diversity factor.4ICC Digital Codes. 2024 International Fuel Gas Code – Appendix A Sizing and Capacities of Gas Piping The sizing method uses the longest run, from the meter to the farthest appliance, as the reference length for every segment, not just the one being sized.
An undersized line starves appliances of fuel. Burners flame out, pilots go cold, and unburned gas can accumulate. Use each appliance’s nameplate BTU rating or the figure from its installation manual, total them, and pick pipe sizes off the code’s capacity tables.
Shutoff Valves and Sediment Traps
Every gas appliance needs a dedicated shutoff valve, located in the same room as the appliance, within 6 feet of it, and upstream of the connector or quick-disconnect device.5UpCodes. GSA Fuel Gas Code 2024 – Chapter 4 Gas Piping Installations The valve has to stay accessible, meaning you can reach it without tools or moving heavy objects. A valve installed behind a movable range or dryer counts as accessible, since you can slide the unit out.
A sediment trap, often called a drip leg, is a short vertical pipe extension installed downstream of the shutoff and as close to the appliance inlet as possible. It is simply a tee fitting with a capped nipple hanging from the bottom opening. Moisture and debris settle into the cap instead of flowing on into the burner.
Not every appliance needs one. The IFGC exempts ranges, clothes dryers, outdoor grills, decorative vented fireplace appliances, gas fireplaces, and illuminating appliances. For furnaces, boilers, water heaters, and anything else outside that list, the trap is required. Omit it and you can expect clogged orifices down the road and a failed inspection in the meantime.
Appliance Connectors
The flexible connectors that bridge the gap between your rigid piping and the appliance come with limits that trip people up. Connectors cannot pass through walls, floors, partitions, or ceilings.5UpCodes. GSA Fuel Gas Code 2024 – Chapter 4 Gas Piping Installations They are rated only for the exposed run between the gas outlet and the appliance inlet. Anything crossing a wall or floor has to be rigid pipe sized as part of the permanent system.
Connectors have a 6-foot maximum overall length measured along the centerline, and only one connector per appliance. Position the gas outlet so the connector reaches without stretching, kinking, or running under tension. When you swap in a new appliance, install a new connector. The corrugated metal fatigues with repeated bending and can develop micro-cracks you cannot see.
Clearances and Combustion Air
Gas appliances throw heat, and the IFGC requires minimum clearances between the appliance and combustible surfaces such as wood framing, drywall, and cabinetry. There is no single universal distance. Clearances follow the specific appliance’s listing and the manufacturer’s instructions.6UpCodes. GSA Fuel Gas Code 2024 – Chapter 3 General Regulations A tank water heater might call for 6 inches on one side and more on another; a furnace will have its own numbers. The code allows these distances to be reduced using approved protective assemblies like specific shielding, but never below the minimums in the reduction table.
Check the installation manual before you frame in a utility closet. Inspectors measure against the listed clearances, and they will fail an installation an inch short.
A gas appliance in a confined space needs a reliable supply of oxygen for combustion. Without it the flame burns inefficiently, generates carbon monoxide, and can starve the room of breathable air. The IFGC requires two permanent openings when combustion air is drawn from adjacent indoor spaces: one within 12 inches of the top of the enclosure and one within 12 inches of the bottom, with a minimum dimension of 3 inches each.7International Code Council. Gas Appliance Combustion, Ventilation and Dilution Air – Part 2 Indoor Combustion Air Methods The sizing of those openings depends on whether the air comes from outdoors directly, through vertical ducts, or through horizontal ducts, each with its own free-area ratio per BTU of input.
The Pressure Test and Inspection
Once the piping is in place but before any gas flows, the system has to pass an air pressure test witnessed by a municipal inspector. The installer pressurizes everything with air, nitrogen, or another inert gas, never oxygen, and holds that pressure for a set period. The inspector watches the gauge for any drop that would signal a leak at a fitting or joint.
Test pressure and duration vary by jurisdiction. Some areas call for 3 psi held for 10 to 15 minutes; others require 10 psi or more for 20 minutes or longer, particularly on higher-pressure systems. Your local inspector will specify the parameters. A system that holds steady earns an approval, often called a green tag, that the utility company needs before it will set the meter or activate service.
Skipping the inspection can bring fines, forced disconnection of utility service, and an order to expose and re-inspect any concealed piping. The utility performs its own brief leak check at the meter after seeing the inspector’s approval, and only then does gas reach your appliances.
Carbon Monoxide Detection and Gas Leak Safety
Any home with a fuel-burning appliance needs carbon monoxide detectors. CO is odorless and colorless, and a malfunctioning appliance can produce lethal concentrations with no visible warning. Most codes based on the International Fire Code require CO detection outside each sleeping area and in the immediate vicinity of bedrooms. If a fuel-burning appliance sits inside a bedroom, a detector goes in that room as well.
Detectors should draw primary power from the building’s electrical wiring and include battery backup. Combination units meeting UL 2034 for CO and UL 217 for smoke satisfy both requirements in a single device.
Natural gas is odorless in its raw state, so utilities add mercaptan, a sulfur compound that smells like rotten eggs, to make leaks detectable. If you smell that odor inside your home:
- Leave immediately. Get everyone, including pets, out of the building. Leave doors and windows open as you exit to help the gas vent, but do not go back in to open more.
- Do not create any spark. No light switches, no phones inside the building, no starting a car in an attached garage, no electrical devices of any kind.
- Call 911 and your gas utility from a safe distance, using a neighbor’s phone or your cell only once you are well away from the building.
- Do not re-enter until emergency responders or utility personnel confirm the building is safe.
A gas leak inside a confined structure can reach explosive concentrations in minutes, and the ignition source can be something as small as a refrigerator compressor cycling on.