Gas Appliance Shutoff Valves, Connectors, Sediment Traps and Pressure Tests (IRC 2024)

M1 guide to the gas piping checks at the appliance: the 6-ft shutoff valve rule, 6-ft connectors, sediment traps, unions, and the 3-psig, 10-minute pressure test.

Code references covered

IRC 2024 Section G2417.1.2 · IRC 2024 Section G2417.2 · IRC 2024 Section G2417.4 · IRC 2024 Section G2417.4.1 · IRC 2024 Section G2417.4.2 · IRC 2024 Section G2419.4 · IRC 2024 Section G2420.1.2 · IRC 2024 Section G2420.5.1 · IRC 2024 Section G2420.5.3 · IRC 2024 Section G2422.1 · IRC 2024 Section G2422.1.2.1

The last few feet of gas piping before an appliance generate a lot of M1 questions. The valve, the connector and the sediment trap all have specific numbers. The pressure test behind them has its own. This guide covers IRC 2024 Sections G2417 (testing), G2419 (drips and sediment traps), G2420 (shutoff valves) and G2422 (appliance connections). For the overall layout of Chapter 24, start with fuel gas supply basics.

The appliance shutoff valve

Every appliance gets its own shutoff valve. The default rule is in Section G2420.5.1:

  • in the same room as the appliance;
  • within 6 feet of the appliance;
  • upstream of the union, connector or quick-disconnect it serves;
  • with access. Behind a range or clothes dryer counts as access, because those appliances can be pulled out.

Two alternatives allow a remote valve:

CaseWhere the valve may beConditions
Vented decorative appliances, room heaters, decorative appliances in vented fireplaces (G2420.5.2)Remote from the applianceReady access, permanently identified, serves no other appliance
Valve at a manifold (G2420.5.3)Within 50 ft of the applianceReady access, permanently identified

Shutoff valves are never allowed in concealed locations or furnace plenums (Section G2420.1.2). Every meter has a valve on its supply side. The valve ahead of a connector must be at least the connector's nominal size (Section G2422.1.2.4).

Worked example 1 — a furnace in a closet

A furnace sits in a hall closet. The installer put its shutoff valve in the garage, 9 feet away, on the other side of the wall. That fails on two counts: it is not in the same room and it is more than 6 feet away. A furnace is not one of the decorative appliances or room heaters allowed a remote valve, and the valve is not at a manifold. Move the valve into the closet, upstream of the union.

Connecting the appliance

Section G2422.1 lists the accepted ways to connect: rigid metallic pipe, CSST, listed appliance connectors (ANSI Z21.24) located entirely in the same room, listed quick-disconnects and convenience outlets used with listed connectors, and listed outdoor connectors. Then the connector limits:

  • no longer than 6 feet overall, measured along its centerline (Section G2422.1.2.1);
  • one connector per appliance. Two connectors joined to reach farther are not allowed;
  • not concealed in, or run through, walls, floors, partitions, ceilings or appliance housings, with limited exceptions;
  • sized for the full demand of the appliance.

Rigid pipe may run longer than 6 feet if it is sized as part of the piping system (see the pipe sizing guide). An appliance on rigid pipe needs an accessible union within 6 feet of it (Section G2422.1.4). Appliances on casters, or moved for cleaning, need a connector listed to ANSI Z21.69 or rigid pipe.

The sediment trap

Unless the appliance has one built in, Section G2419.4 requires a sediment trap downstream of the shutoff valve, as close to the appliance inlet as practical. The standard form is a tee with a capped nipple in its bottom opening, pointing down, so dirt drops into the nipple instead of the gas valve. The exempt appliances are illuminating appliances, ranges, clothes dryers, decorative vented appliances for vented fireplaces, gas fireplaces and outdoor grills. A furnace, boiler or water heater always needs one.

Where wet gas exists, piping slopes at least 1/4 inch in 15 feet and drips are required where condensate can collect (Sections G2419.1 and G2419.2).

The pressure test

ItemRequirementSection
Test mediumAir, nitrogen, carbon dioxide or inert gas — never oxygenG2417.2
Test pressure1 1/2 × max. working pressure, not less than 3 psigG2417.4.1
DurationAt least 10 minutesG2417.4.2
GaugeManometer or device that shows a loss; top of a mechanical gauge's scale ≤ 5 × test pressureG2417.4
JointsLeft exposed during the testG2417.3
ResultAny pressure drop is a leak unless clearly due to another causeG2417.5

Worked example 2 — choosing the gauge

A house system operates at 7 inches of water column, well under 1/2 psig. 1 1/2 times that is far below 3 psig, so the test pressure is the 3 psig minimum. A mechanical gauge for that test may have a full scale of no more than 5 × 3 = 15 psig. A 0–100 psi gauge is not acceptable, because a small leak would not show on it.

Before the test, appliances rated below the test pressure are disconnected and capped. Those rated at or above it may be isolated by closing their shutoff valves (Sections G2417.3.3 and G2417.3.4). After repairs or additions, the affected piping is retested. Minor repairs and the joint between new and existing piping may instead be checked with leak-detecting fluid. When new branches go to new appliances, only the new branches are pressure tested (Sections G2417.1.2 and G2417.1.3).

Once gas is turned on, the system is leak-checked right away, and appliances are not placed in operation until that check is done and the piping is purged (Section G2417.6).

A house with a fuel-fired appliance also needs carbon monoxide alarms — see the B1 guide to smoke and CO alarms.

For the exact code language, read the sections on the official ICC Digital Codes site. We cite section identifiers and explain the logic in our own words — always confirm the current text and any local amendments there.

Practice this topic with IRC 2024-based questions

See how our practice questions and explanations reinforce what you just read. No credit card required to try the demo.

Related guides

Frequently asked questions

How far can a gas appliance shutoff valve be from the appliance?
Section G2420.5.1 requires the valve in the same room as the appliance, within 6 feet of it, upstream of the union, connector or quick-disconnect it serves. Remote valves are allowed for vented decorative appliances and room heaters, and at a manifold within 50 feet, if readily accessible and identified.
What is the test pressure for residential gas piping?
Section G2417.4.1 requires at least 1 1/2 times the proposed maximum working pressure, but not less than 3 psig, held for at least 10 minutes. The test medium is air, nitrogen, carbon dioxide or an inert gas, never oxygen.
How long can a flexible gas appliance connector be?
Section G2422.1.2.1 limits a connector to 6 feet overall, measured along its centerline, and only one connector per appliance. Rigid metallic pipe may be longer if it is sized as part of the piping system.