Short definition

When a gas appliance is removed — water heater, range, fireplace log set — the supply line left behind has to be capped or plugged with a code-listed fitting, leak-tested, and ideally cut back to the closest accessible live joint. A closed shutoff valve is not a permanent seal. In Washington, this work needs a permit and a pressure test.

What it is

The procedure has two layers. First, the gas branch is shut off upstream. Second, the dead-end at the appliance is fitted with a permanent cap (over external threads) or plug (into internal threads), the system is re-pressurized, and the new joint is leak-tested with soap solution or a calibrated leak detector. Best practice is then to cut the abandoned branch back to the closest accessible live tee or junction so there’s no long abandoned dead leg in the wall.

The IFGC (adopted into WA via WAC 51-52) requires abandoned outlets and concealed gas piping to be capped or plugged with an approved fitting at the closest accessible live joint, and the abandoned branch removed back to that point where practical.

Why it matters to a homeowner

Three reasons it matters.

A closed shutoff valve is not a permanent seal. Old quarter-turn valves can bleed past internally even when the handle is closed. The code wants a positive mechanical cap upstream of the valve as the actual seal. If you remove a water heater and rely on the appliance shutoff to hold the line, you’re trusting an old valve that might not hold for years to come.

A dangling flex connector is never an acceptable termination. The flex must be removed and the rigid pipe behind it capped.

The pressure test is the verification. Without it, you don’t know whether your cap or plug is actually sealing. The post-cap pressure test is the entire point of doing this through a permitted process.

The typical scenario in 2026 WA: gas water heater swap to electric or HPWH, gas range swap to induction, fireplace log set decommission, or whole-home electrification. Every one of these creates an abandoned gas line.

When you’ll encounter this term

  • Switching from a gas water heater to electric or heat-pump water heater
  • Switching from a gas range to induction
  • Decommissioning a gas fireplace log set
  • Whole-home electrification — every branch needs to be capped, tested, and (ultimately) the meter removed by the utility

Common variants and disambiguation

  • Cap vs. plug. A cap fits over external threads; a plug fits into internal threads. Either is acceptable per code if listed for fuel gas.
  • Quarter-turn shutoff valve as the only seal — allowed at appliance shutoffs that remain in service, but if the appliance is removed, code wants a cap or plug regardless of whether the valve is also closed.
  • Flexible gas connector left dangling. Never acceptable. Always cut back to the rigid pipe and cap.

Common failure modes

  • Plug removed from a tee but not properly threaded back in. Slow leak.
  • Wrong sealant. White PTFE tape (not gas-rated) used instead of yellow gas-rated tape or pipe dope. Eventual leak.
  • Old shutoff valve “closed” but bleeding through. Homeowner trusts a gummed-up old valve as the seal.
  • Long abandoned dead leg in wall. Not dangerous in dry NG service but a future-failure point if anyone re-pressurizes the wrong branch.
  • Forgotten tee with no cap. The most dangerous outcome — raw gas leak when a future homeowner re-pressurizes the system or moves an appliance.

Why this is a pro job

This entry is one of the least DIY-friendly in the safety domain. The reason is the pressure test.

A reasonable homeowner with $10 in materials can mechanically cap a gas line. But “did I cap it correctly?” is verified only by re-pressurizing the system and testing the joint. That requires either a calibrated leak detector or a soap test under known pressure — and the test only makes sense after the gas system is brought back to operating pressure, which means coordinating with the utility or working under a permit.

In WA, paid gas-piping work requires a registered contractor (statewide) or a Seattle Gas Piping Mechanic (city limits). Pulling the permit also generates the inspection record, which matters at sale.

For an owner-occupied DIY scope, the strong recommendation is: hire a pro and pull the permit. The cost of a $150–$300 cap-and-test service call is small relative to the consequences of a slow leak you didn’t know was there.

Cost data

  • Pro cap-and-test service call: $150–$300 typical; more if the line must be cut back inside finished walls.
  • DIY materials only (not recommended without permit/test): $5–$15 for cap + thread sealant.
  • Whole-home electrification cap-out: typically $400–$800 for a full job covering several branches and a final leak test.

Washington note

The work is governed by NFPA 54 / IFGC adopted into WA via WAC 51-52. Permits are required by most WA jurisdictions. In Seattle, the work falls under the Gas Piping Mechanic License system. Statewide, registered contractors under chapter 18.27 RCW.

After capping, the system is typically pressure-tested per the AHJ’s specification (IFGC-derived) before the gas is fully restored to service. The pressure test is the safety verification.