
IRC Fuel Gas Piping: Appliance Shutoff Valves and Sediment Traps
The IRC gives every gas appliance in your home its own shutoff valve, set in the same room, within 6 feet, and upstream of the flexible connector. Most appliances also get a sediment trap, a capped stub of pipe that catches rust and scale before the debris can foul the appliance's gas valve.
If your Arizona home runs gas to a cooktop, a water heater, a pool heater, or a patio fire feature, the International Residential Code wraps that piping in a handful of safety rules. Two of them land at every appliance connection: a shutoff valve you can actually get to, and a small trap that catches the rust and scale a gas line sheds. Neither is complicated. Both are easy to miss by a few inches.
A shutoff valve at every appliance
Every gas appliance gets its own shutoff valve, and the code is exact about where that valve goes:
The shutoff valve shall be within 6 feet (1829 mm) of the appliance, and shall be installed upstream of the union, connector or quick disconnect device it serves.
It also has to sit in the same room as the appliance, and it has to be provided with access. That last clause is the one people miss. A valve is not accessible if you have to slide a range out of its cabinet or unscrew a closet panel to reach it. The point is control. If one appliance leaks, you or a plumber kills the gas to that unit in seconds, with no hunt for the meter out in the yard.
Sediment traps
Most gas appliances also get a sediment trap, sometimes called a drip leg. It is a short stub of pipe with a cap on the bottom end, and gravity does the rest. Rust, scale, and moisture drop into it instead of reaching the appliance's gas valve, where debris can foul the seat.
Placement is what makes it work. The trap goes downstream of the appliance shutoff valve and as close to the appliance inlet as practical, so it catches whatever the last stretch of pipe sheds. Built the usual way, it is a tee fitting with a capped nipple hanging vertically off the bottom opening. Turn that nipple sideways and it collects nothing.
The exemption list is short and worth knowing. Illuminating appliances, ranges, clothes dryers, decorative vented fireplace appliances, gas fireplaces, and outdoor grills need no trap, and neither does an appliance that ships with one built in (Section G2419.4). Everything else gets one.
For example, say a Gilbert home runs gas to a range, a tankless water heater, a pool heater, and an indoor gas fireplace. That is four shutoff valves, one in the same room as each unit and within 6 feet of it. Only two of the four also get a sediment trap: the water heater and the pool heater. The range and the fireplace both sit on the exemption list.
The other two rules on a gas rough-in
Two more Chapter 24 requirements get checked on the same visit, and each has its own page here. Before gas flows, the installer caps the piping and pressurizes it to prove no joint leaks, and the test pressure, the hold time, and what gas may be used are covered under the G2417 pressure test. Flexible CSST tubing has to be bonded to the home's electrical ground so a monsoon lightning surge drains away instead of arcing a pinhole through the thin tubing wall, and the jumper size and the black-jacket exception are covered under G2411 CSST bonding.
Which edition applies to your build
These fuel gas rules are stable across recent IRC editions. Arizona sets no statewide code. Confirm the edition your city or county adopted in the building code editions by city reference, and ask your AHJ about local gas amendments in the same call.
Where the gas lines go from here
Gas feeds several systems covered elsewhere: the water heater when it is a gas unit, a gas fireplace, and the cooktop. A tightly sealed desert home can starve a gas appliance of the air it needs to burn. That is the makeup air and combustion air question, and it is cheapest to settle before framing. Chapter 24 of the 2021 IRC holds the full fuel gas text.
Keep exploring
More in this module
Neighbouring rules that govern the same work.
Related questions

Begin Your Build
Relax while we manage every detail, throughout the entire process. Tell us about your vision, and we'll be in touch to schedule a consultation.
