// monday blog

Can You Use PEX for a Gas Line? What the Fuel Gas Codes Allow

Can you use PEX for a gas line? Not water PEX. What IFGC and UPC allow instead: PE underground only, listed PEX-AL-PEX gas systems, steel and CSST indoors.

By Id IsaPublished December 2, 20264 min readIFGC · UPC · NFPA 54

// quick answer

No – PEX water pipe is not approved for fuel gas, indoors or out. Inside the building you typically use black steel, CSST or, where the utility allows, copper. Plastic gas pipe (yellow PE marked “Gas” and ASTM D2513) is allowed outdoors underground only under both the IFGC and the UPC. The one exception is a listed PEX-AL-PEX gas system installed with its own fittings – and only where your AHJ and gas utility accept it.

It comes up on every service call where a customer wants a new gas range or a patio heater: “Can't you just run PEX? It's cheaper and faster.” Apprentices ask it too, usually after seeing yellow plastic pipe go into a trench. So can you use PEX for a gas line? The short answer is no – but there are a few look-alike products that cause the confusion, and you need to know which is which before the inspector does.

Can you use PEX for a gas line? The short answer

The PEX you run for water – PEX-A, PEX-B or PEX-C marked for potable water – carries no fuel gas listing. It is not approved for natural gas or propane, inside or outside the building, and no fitting turns it into gas pipe. Its pressure ratings (typically 160 psi at 73 °F and 100 psi at 180 °F) are water ratings, and its listings (NSF/ANSI/CAN 61 and NSF/ANSI 372) cover drinking water, not fuel gas. For the differences between the three PEX types, see PEX-A vs PEX-B vs PEX-C.

Gas piping also sits under a different code book. In IPC states it is usually the International Fuel Gas Code (IFGC); in UPC states it is often the UPC's fuel gas chapter; some jurisdictions adopt NFPA 54 directly, and homes may fall under the IRC's fuel gas chapter. If you are not sure which applies, start with IPC vs UPC: which code applies.

The three plastics people mix up

Most “PEX for gas” confusion comes from three products that look similar on a supply house shelf:

ProductWhat it isWhere it is typically allowed
PEX water pipeCrosslinked PE, listed for potable waterWater only – never fuel gas
Yellow PE gas pipePolyethylene to ASTM D2513, marked “Gas”Outdoors, underground only – tracer wire and listed riser
PEX-AL-PEX gas systemMultilayer pipe with an aluminum core, sold with its own fittingsOnly where its listing, the AHJ and the gas utility accept it
PEX gas pipe (ASTM F2968)PEX for buried gas distributionUtility distribution mains and services, not building piping
Typical values – confirm with your code.

The yellow pipe in the trench is polyethylene, not PEX. Both the IFGC and the UPC allow plastic gas piping outdoors underground only, with limited exceptions such as a listed anodeless riser where it comes up to the meter or the building. Read the print line: it should say “Gas” and ASTM D2513. Our guide to reading pipe markings shows what to look for.

What you can run inside the building

For gas inside the structure, stick to materials your fuel gas code lists:

  • Black steel – threaded with a sealant listed for gas (see Teflon tape vs pipe dope)
  • CSST – installed and bonded exactly as the manufacturer's instructions require
  • Copper – only where the fuel gas code and the gas utility allow it
  • Press fittings for gas – only fittings specifically listed for fuel gas, never water press fittings

The pipe materials hub has a full table of which materials are allowed for gas inside and gas buried outside.

Never on gas

Water PEX, PVC, CPVC, ABS and push-to-connect water fittings are not gas products. A water listing on the fitting means nothing on a gas line. If the print line doesn't say it's for fuel gas, it doesn't go on gas.

PEX-AL-PEX gas systems: the real exception

There are multilayer PEX-AL-PEX (or PE-AL-PE) pipe systems listed for fuel gas. They are complete systems: the pipe, the fittings and the installation instructions come from one manufacturer, and fittings from another system cannot be mixed in. The listing typically states that installation must follow the manufacturer's instructions and is subject to approval by the code official.

Two things trip contractors up here:

  • AHJ approval. A product listing is not the same as local acceptance. Ask before you buy.
  • The gas utility. Passing inspection doesn't guarantee a meter set. At least one large US utility has publicly warned that it may refuse to connect service to PEX-AL-PEX or PE-AL-PE fuel piping, even after the city inspection passes.

If either one says no, run steel or CSST and save yourself a rip-out.

Testing and inspection on any gas line

Whatever material you use, the test rules are the same: air or inert gas only – never water or oxygen – at the pressure your fuel gas code sets. That is commonly 1.5 × working pressure with a 3 psi minimum; in UPC areas, low-pressure systems are often tested at 10 psi for 15 minutes. No drop allowed, and you find leaks with a gas-listed solution, never a flame. For step-by-step test setup, see how to test a DWV, water and gas system.

Before you call for the inspection, check:

  • Every pipe and fitting is marked or listed for fuel gas
  • Buried plastic is outside the building only, with tracer wire and a listed riser
  • CSST is bonded per the manufacturer
  • Sealant on threads is listed for gas
  • Test gauge sized for the test pressure and the test held for the required time

Gas rules are amended locally more often than most plumbing sections, so confirm the adopted edition, local amendments and the utility's requirements with your AHJ before you start.

What to tell the customer

“The white and red pipe in your walls is made for water. Gas needs pipe that's listed and tested for gas – steel or flexible gas tubing inside, and yellow gas pipe only underground outside. It's what the code requires, and it's what the gas company will connect to.” That answer ends the conversation and keeps the job on schedule.

Frequently asked questions

Is yellow gas pipe the same as PEX?

No. Yellow gas pipe is polyethylene (PE) made to ASTM D2513 and marked for gas. It is not crosslinked and it is not water PEX. It is allowed outdoors underground only, with a tracer wire and a listed riser where it comes above grade.

Can I use PEX water pipe for propane?

No. Propane is fuel gas under the same fuel gas codes as natural gas. Water PEX carries no gas listing and markings, so an inspector will reject it no matter which gas it carries.

What is PEX-AL-PEX gas pipe?

A multilayer pipe with an aluminum core between PEX layers, sold as a complete gas system with its own fittings and listing. It can only be used where the adopted code and the AHJ accept that listing, and some gas utilities refuse to connect to it.

What about ASTM F2968 PEX gas pipe?

ASTM F2968 covers PEX pipe for buried gas distribution – the utility side of the meter. It is not a product for running gas to appliances inside a building.

Which code governs gas piping?

In IPC states it is usually the International Fuel Gas Code (IFGC); in UPC states it is often the UPC fuel gas chapter; some jurisdictions use NFPA 54 directly. Homes may fall under the IRC fuel gas chapter. Confirm the adopted edition with your AHJ.

The Plumber's Field Kit cover

// free field kit · 27 pages

Grab the kit. Pass the inspection.

Quick tables, job checklists, a code cheat sheet, AHJ card, corrosion chart and customer handover form. Print it, laminate it, keep it in the truck.

Free. One email with the kit, then occasional field tips and code updates. Unsubscribe anytime.