9.3 Gas Shutoff Valves, Regulators, & Pressure Testing

Key Takeaways

  • Appliance shutoff valves must be listed full-port gas valves (ASME B16.44 / ANSI Z21.15) located in the same room as the appliance, within 6 feet (1.8 m) of the appliance inlet, upstream of the union or flexible connector, and readily accessible.
  • Flexible appliance connectors (ANSI Z21.24) are limited to a maximum length of 3 feet for standard equipment (6 feet for domestic ranges and clothes dryers) and are strictly prohibited from passing through walls, floors, ceilings, or appliance cabinets.
  • Sediment traps (dirt legs) with a minimum 3-inch vertical nipple and cap must be installed as close to the appliance inlet as practical downstream of the shutoff valve to capture moisture, debris, and pipe scale before reaching gas controls.
  • System pressure testing requires a minimum test pressure of not less than 1.5 times the maximum working pressure, but never less than 3 psig (or 10-20 psig for municipal tests) held for at least 10 minutes (30 minutes for commercial) with no measurable pressure loss.
  • Leak testing must be conducted using non-corrosive foaming soap solutions (ASTM C865) or electronic combustible gas detectors; using open flames (matches, lighters) is strictly illegal and an immediate life-safety violation.
Last updated: August 2026

9.3 Gas Shutoff Valves, Regulators, & Pressure Testing

The safe operation, maintenance, and initial commissioning of fuel gas systems depend on mechanical isolation valves, particulate sediment traps, pressure regulating devices, and rigorous pressure integrity testing. The Texas State Board of Plumbing Examiners (TSBPE) and municipal plumbing inspectors enforce zero tolerance for leaks, unapproved valves, improper test gauges, or missing sediment traps.


1. Manual Gas Shutoff Valves & Locations

Every gas piping system requires strategically placed manual shutoff valves conforming to ASME B16.44 (Manually Operated Metallic Gas Valves for Use in Aboveground Piping Systems) or ANSI Z21.15 / CSA 9.1 (Manually Operated Gas Valves for Appliances).

+-----------------------------------------------------------------------------------+
|                    CODE RULES FOR APPLIANCE SHUTOFF VALVES                        |
|                                                                                   |
|  [RULE 1: PROXIMITY DISTANCE]                                                     |
|  - Must be installed within SIX FEET (6 ft / 1.8 m) of the appliance inlet.      |
|                                                                                   |
|  [RULE 2: SAME ROOM MANDATE]                                                      |
|  - Must be located in the SAME ROOM or enclosure as the appliance served.         |
|  - Prohibited: Placing a shutoff valve in an adjacent room or behind a wall.     |
|                                                                                   |
|  [RULE 3: UPSTREAM OF UNION / FLEX CONNECTOR]                                     |
|  - Must be installed UPSTREAM of the flexible appliance connector or pipe union. |
|  - Closing the valve allows disconnection of the appliance without gas escape.    |
|                                                                                   |
|  [RULE 4: READILY ACCESSIBLE]                                                     |
|  - Must be accessible without removing permanent panels or using tools.           |
+-----------------------------------------------------------------------------------+

Other Code-Mandated Shutoff Valves:

  1. Main Gas Meter Shutoff Valve: Installed at the utility meter inlet or service regulator; operated by the utility or emergency personnel with an adjustable wrench.
  2. Outdoor Commercial Master Shutoff: Remote emergency shutoffs for commercial kitchens and laboratories.
  3. Vented Decorative Fireplaces: Must have a dedicated shutoff valve located in the same room outside the firebox (such as a floor or wall key valve) within 6 feet of the fireplace, or inside the firebox if listed for high-temperature service.

2. Flexible Appliance Connectors (ANSI Z21.24 / ANSI Z21.69)

Corrugated metal appliance connectors provide mechanical isolation and allow slight movement of appliances during operation and servicing.

+-----------------------------------------------------------------------------------+
|                         APPLIANCE CONNECTOR SPECIFICATIONS                        |
|                                                                                   |
|  - STANDARD APPLIANCES (Water Heaters, Boilers, Furnaces):                        |
|    MAXIMUM LENGTH = 3 FEET (36 inches / 914 mm).                                  |
|                                                                                   |
|  - MOVABLE APPLIANCES (Domestic Cooking Ranges & Clothes Dryers):                 |
|    MAXIMUM LENGTH = 6 FEET (72 inches / 1,829 mm).                                |
|                                                                                   |
|  - COMMERCIAL COOKING EQUIPMENT (ANSI Z21.69):                                    |
|    Must include quick-disconnect device and heavy-duty restraining cable.         |
|                                                                                   |
|  - STRICT PROHIBITIONS:                                                           |
|    1. NEVER pass connectors through walls, floors, ceilings, or partitions.       |
|    2. NEVER pass through appliance sheet metal casings or cabinets.               |
|    3. NEVER connect two flexible connectors in series (no joining connectors).    |
|    4. NEVER conceal flexible connectors inside wall cavities.                     |
+-----------------------------------------------------------------------------------+
Loading diagram...
Code-Compliant Appliance Gas Connection & Sediment Trap Geometry

3. Sediment Traps (Dirt Legs): Purpose & Geometry

Gas distribution lines carry trace amounts of pipe scale, metal shavings, cutting oil, condensed water, and thread compound. If these particulates enter the appliance gas valve, they lodge in magnetic solenoid seats, causing gas valves to stick open or fail to shut completely.

+-----------------------------------------------------------------------------------+
|                         SEDIMENT TRAP CODE MANDATES & GEOMETRY                    |
|                                                                                   |
|  [MANDATE (IFGC 411.3 & NFPA 54 9.6.7)]                                           |
|  Where an appliance is connected to gas piping, a SEDIMENT TRAP must be installed |
|  downstream of the appliance shutoff valve as close to the inlet as practical.    |
|                                                                                   |
|  [CONSTRUCTION SPECIFICATION]                                                     |
|  - Must be constructed using a TEE FITTING with a capped vertical drop leg.       |
|  - Minimum vertical nipple length: 3 INCHES (76 mm).                              |
|  - Gas MUST enter the top of the tee and exit the side run (or enter side and    |
|    exit top) forcing gas to make a 90-DEGREE DIRECTION CHANGE. Heavy debris       |
|    drops by inertia into the 3" bottom capped nipple.                             |
|                                                                                   |
|  [CODE EXEMPTIONS]                                                                |
|  Sediment traps are NOT required for: Illuminating appliances, gas ranges,       |
|  clothes dryers, outdoor grills, and decorative fireplace log sets.               |
|  (STRICTLY REQUIRED for Water Heaters, Boilers, Furnaces, and Unit Heaters).      |
+-----------------------------------------------------------------------------------+

The Critical Inspection Trap:

Installing a tee where gas flows straight through the top and bottom of the tee while placing the capped nipple on the side outlet is a major code violation. In a straight-through flow, gas velocity carries particulates across the tee opening directly into the appliance, rendering the trap useless. The flow must change direction by 90° at the tee.


4. Appliance Line Pressure Regulators & Vent Limiting Devices

In medium-pressure systems (2 psig), an Appliance Line Pressure Regulator (ANSI Z21.18) is required upstream of each appliance to step down pressure to 7.0 in. w.c. for natural gas or 11.0 in. w.c. for propane.

+-----------------------------------------------------------------------------------+
|                   PRESSURE REGULATORS & VENT LIMITING DEVICES                     |
|                                                                                   |
|  [ATMOSPHERIC VENTING REQUIREMENT]                                                |
|  - Gas regulators utilize an internal diaphragm that breathes atmospheric air.    |
|  - If the diaphragm ruptures, gas escapes through the atmospheric vent port.      |
|  - Standard regulators must be piped independently to the outdoors terminating    |
|    with a downward-turned elbow and insect-resistant screen.                      |
|                                                                                   |
|  [VENT LIMITING DEVICE EXEMPTION (ANSI Z21.18)]                                   |
|  - A factory-installed Vent Limiter contains a precision ball-check mechanism.    |
|  - Allows regulator breathing under normal operation.                             |
|  - In a diaphragm rupture, gas velocity pushes the ball against its seat, limiting|
|    gas escape to LESS THAN 2.5 CU FT/HR of gas (at 2 psi).                        |
|  - Permitted indoors WITHOUT outdoor vent piping ONLY in well-ventilated spaces.  |
|  - Prohibited: Unventilated attics, plenums, or small unventilated closets.       |
+-----------------------------------------------------------------------------------+

5. System Pressure Testing Standards & Protocols

Before any new, altered, or repaired gas piping system is placed into service or concealed inside walls, it must undergo a rigorous hydrostatic or pneumatic pressure test witnessed by the local plumbing inspector.

+---------------------------------------------------------------------------------------------------+
|                         FUEL GAS SYSTEM PRESSURE TEST SPECIFICATIONS                              |
|                                                                                                   |
|  TEST PARAMETER                 CODE REQUIREMENT (IFGC / NFPA 54)   TEXAS MUNICIPAL PRACTICE      |
|  =============================  ==================================  ============================  |
|  - Minimum Test Pressure:       1.5 times maximum working pressure, 10 to 20 psig                 |
|                                 NEVER LESS THAN 3.0 PSIG (20.7 kPa) (Typical local requirement)   |
|  - Test Duration (Residential): Minimum 10 MINUTES continuous       15 to 30 MINUTES              |
|  - Test Duration (Commercial):  Minimum 30 MINUTES                  1 to 4 HOURS                  |
|  - Permitted Test Medium:       Clean Air, Nitrogen, Carbon Dioxide Clean Air or Dry Nitrogen     |
|  - STRICTLY PROHIBITED MEDIUM:  PURE OXYGEN (Explosion hazard!)     PURE OXYGEN                   |
|  - Pressure Drop Allowance:     ZERO DROPDOWN (0.0 psi drop)        ZERO DROPDOWN                 |
|  - Test Gauge Range Rule:       Max dial range: 5X test pressure    0-15 psi or 0-30 psi gauge    |
|                                 (e.g., 0-15 psi gauge for 3 psi)    with 0.1 or 0.2 psi marks     |
+---------------------------------------------------------------------------------------------------+

1. Test Pressure & Duration Rules

  • Base Code Standard (IFGC 406.4 / NFPA 54 8.2): Test pressure shall not be less than 1.5 times the proposed maximum working pressure, but in no case less than 3.0 psig (20.7 kPa), held for a minimum duration of 10 minutes for residential systems.
  • Texas Municipal Amendments: Many Texas cities (including Houston, Dallas, San Antonio, and Austin) amend the base code to mandate a 10 to 20 psig test held for 15 to 30 minutes using a calibrated diaphragm test gauge.
  • Isolation of Equipment: All gas appliance shutoff valves must be closed, or appliances must be disconnected and lines capped before testing. Appliance internal gas control valves and regulators are rated for a maximum pressure of 0.5 psig (14 in. w.c.); exposing an appliance to a 3 to 20 psig test will rupture internal diaphragms and destroy control valves.

2. Test Gauge Resolution Rules

Plumbing codes enforce strict rules regarding gauge precision to prevent contractors from masking slow leaks with oversized gauges:

  • The 5X Gauge Rule: The maximum scale of the pressure gauge must not exceed five times (5×) the test pressure.
  • Example: For a 3 psig test, the maximum allowable gauge dial range is 3 × 5 = 15 psig (with 0.1 psi or 0.2 psi graduations).
  • Violation: Using a 0–100 psi or 0–200 psi water test gauge for a 3 psi gas test is a major code violation because a significant pressure drop would be imperceptible on that scale.

3. Permitted Test Media vs. The Oxygen Explosion Hazard

  • Approved Media: Air, dry nitrogen (N₂), or inert carbon dioxide (CO₂).
  • STRICT PROHIBITION ON OXYGEN: Under no circumstances may pure oxygen (O₂) be used for pressure testing. When high-pressure oxygen contacts residual pipe cutting oils, hydrocarbons, or pipe dope, spontaneous auto-ignition and violent explosion occur.

6. Leak Detection Procedures & Fire Safety

Following successful rough-in pressure testing, the piping is connected to the meter and purged of air before final appliance firing.

+-----------------------------------------------------------------------------------+
|                         SAFE LEAK TESTING METHODOLOGY                             |
|                                                                                   |
|  [APPROVED METHOD 1: NON-CORROSIVE FOAMING SOLUTION]                             |
|  - Apply listed leak detection solution conforming to ASTM C865 / MIL-PRF-25567.  |
|  - Bubbles indicate micro-leaks.                                                  |
|  - Prohibited: Dish soaps containing ammonia or chlorides (causes stress-corrosion|
|    cracking in brass fittings and CSST within months).                            |
|                                                                                   |
|  [APPROVED METHOD 2: ELECTRONIC COMBUSTIBLE GAS DETECTORS]                        |
|  - Calibrated solid-state sensor / sniffer capable of detecting ppm levels.      |
|                                                                                   |
|  [CRITICAL LIFE-SAFETY PROHIBITION: OPEN FLAMES]                                  |
|  - The use of MATCHES, LIGHTERS, CANDLES, OR OPEN FLAMES for leak detection is    |
|    STRICTLY PROHIBITED AND ILLEGAL under all plumbing and fuel gas codes.        |
+-----------------------------------------------------------------------------------+
Test Your Knowledge

A journeyman plumber is installing a gas-fired storage water heater in a residential garage. What is the code requirement regarding the location and distance of the appliance manual shutoff valve?

A
B
C
D
Test Your Knowledge

Which of the following describes the correct code-mandated geometry and minimum dimensions for a sediment trap (dirt leg) installed on a gas water heater or boiler?

A
B
C
D
Test Your Knowledge

Under standard IFGC and NFPA 54 requirements, what are the minimum pressure and duration specifications for conducting a pneumatic rough-in pressure test on a newly installed residential fuel gas piping system?

A
B
C
D
Test Your Knowledge

When checking for fuel gas leaks after reconnecting an appliance to the gas supply, which of the following procedures is STRICTLY PROHIBITED by safety and plumbing codes?

A
B
C
D