Installing or replacing a water heater often leads to tricky questions about piping, especially when trying to hide unsightly lines behind drywall. Many homeowners ask if they can use flexible connectors through a wall plumbing code water heater setups to save time and improve aesthetics. The short answer is generally no, and understanding why is crucial for your family’s safety and legal compliance.
Running flexible gas or water connectors through walls, floors, or ceilings is typically a direct violation of major plumbing and fuel gas codes in the United States. While it might seem like a convenient shortcut, this practice poses significant fire and leak risks that are hidden from view. In this guide, we will break down exactly what the codes say, why these rules exist, and how to properly connect your water heater while staying compliant with local regulations.
Why Plumbing Codes Ban Flexible Connectors in Walls
To understand the restrictions, we must first look at the intent behind the building codes. The primary governing documents in the US are the International Plumbing Code (IPC) and the International Fuel Gas Code (IFGC), which are adopted by most states and local jurisdictions.
The Risk of Concealed Damage
Flexible connectors, whether made of stainless steel corrugated metal or coated polymer, are designed for appliance connection, not for structural distribution. Their primary purpose is to absorb vibration and allow for minor movement between the rigid gas pipe and the water heater.
When you place these connectors inside a wall:
- Inspection Impossible: You cannot visually inspect the line for corrosion, kinks, or wear without destroying the wall.
- Physical Damage: Drywall screws, nails, or shifting house foundations can puncture or stress the flexible line. A small pinhole leak in a gas line inside a wall can lead to an explosive accumulation of gas.
- Fire Hazard: If a fire starts, flexible connectors may fail faster than rigid black iron or CSST (Corrugated Stainless Steel Tubing) rated for concealed spaces.
According to the IFGC, gas piping systems must be installed in a manner that protects them from physical damage. Concealing a flexible appliance connector violates this fundamental safety principle.
What Do the Major Codes Say?
Let’s look at the specific language used by code officials. While local amendments vary, the baseline standards are clear.
International Fuel Gas Code (IFGC) Guidelines
The IFGC is explicit about where appliance connectors can be used. Section 409 of the IFGC typically states that appliance connectors shall not pass through any wall, partition, ceiling, or floor.
- Visibility Requirement: Connectors must be fully visible from the point of connection to the appliance. This ensures that any signs of degradation, such as rust or loose fittings, can be spotted during routine maintenance.
- Length Limits: Even in open spaces, flexible connectors have length limits (usually 3 to 6 feet depending on the type). Extending this length by running it through a wall to reach a distant shut-off valve is non-compliant.
International Plumbing Code (IPC) for Water Lines
If you are asking about water flexible connectors (like braided stainless steel hoses), the IPC is similarly strict. While water leaks are less immediately catastrophic than gas leaks, they cause massive structural damage.
- Concealed Joints: Most plumbing codes prohibit concealed joints in water supply lines unless they are soldered, brazed, or fused (like PEX crimp rings). Flexible braided hoses use mechanical compression fittings, which are considered “accessible” only if they can be reached without removing construction materials.
- Arrestors and Expansion: Water heaters require expansion tanks and check valves. Using a flexible hose through a wall complicates the installation of these required safety devices.
For more detailed historical context on plumbing standards, you can refer to the general overview of Plumbing Codes on Wikipedia.

Flexible Gas Connectors vs. Rigid Piping: A Comparison
Homeowners often confuse “flexible connectors” with “CSST” (Corrugated Stainless Steel Tubing). It is vital to distinguish between the two, as their code allowances differ significantly.
| Feature | Appliance Flexible Connector | CSST (Corrugated Stainless Steel Tubing) | Rigid Black Iron Pipe |
|---|---|---|---|
| Primary Use | Connecting appliance to rigid pipe | Whole-house gas distribution | Whole-house gas distribution |
| Through Walls? | Strictly Prohibited | Allowed (if yellow jacketed & bonded) | Allowed |
| Visibility | Must be fully visible | Can be concealed in walls/floors | Can be concealed in walls/floors |
| Flexibility | High (for vibration) | Moderate (for routing) | None (requires fittings) |
| Installation | DIY-friendly (often) | Requires Certified Pro | Requires Pro (threading) |
Key Takeaway: If you need to run a gas line through a wall to get to your water heater, you should use CSST or Black Iron Pipe, not the flexible connector kit that comes with the water heater. The flexible connector should only be used for the final 1–3 feet of connection outside the wall.
Step-by-Step: Compliant Water Heater Connection
If you are installing a new water heater and the gas shut-off valve is located behind a wall or in a different stud bay, follow this compliant method. This approach satisfies both the IPC and IFGC requirements.
Step 1: Run Rigid or CSST Line to the Wall Surface
Do not attempt to fish a flexible connector through the studs. Instead, run a proper gas line (CSST or Black Iron) from your main supply to the location directly behind where the water heater will sit.
- Ensure the line is properly sized for the BTU load of your water heater.
- If using CSST, ensure it is the newer generation with a thick yellow jacket and is properly bonded and grounded per NEC (National Electrical Code) requirements to prevent lightning strike damage.
Step 2: Install an Accessible Shut-Off Valve
Bring the gas line out through the wall via a fitted elbow. Install a dedicated gas shut-off valve at this point.
- Code Note: The valve must be accessible. It cannot be buried behind the water heater. It should be located within 3 feet of the appliance and in the same room.
- Use a “drop ear elbow” secured to a blocking board inside the wall to ensure the outlet is stable and does not twist when you attach the connector.
Step 3: Connect the Flexible Connector
Now, take your approved flexible gas connector (typically 3/4 inch NPT for modern high-BTU heaters).
- Attach one end to the shut-off valve you just installed.
- Attach the other end to the water heater’s gas control valve.
- Crucial: Ensure the connector is not kinked, stretched, or compressed. It should have a gentle curve.
Step 4: Leak Testing
Before turning on the appliance, you must test for leaks.
- Turn the gas supply on.
- Apply a commercial gas leak detection solution or soapy water to all connections (the valve, both ends of the flexible connector).
- Look for bubbles. If bubbles form, there is a leak. Tighten the fitting and retest.
- Never use a flame to check for leaks.
Common Mistakes to Avoid
Even with good intentions, many DIYers and inexperienced plumbers make errors that fail inspection.
- Using Old Connectors: Never reuse a flexible connector from an old water heater. They work-hardened over time and may crack. Always install a new, AGA-certified connector.
- Overtightening: Flexible connectors have brass nuts that are soft. Overtightening can strip the threads or crack the nut. Use two wrenches—one to hold the valve, one to turn the nut—and tighten only until snug plus a quarter turn.
- Ignoring Sediment Traps: Most codes require a sediment trap (drip leg) before the gas control valve. This traps debris and moisture. Ensure your rigid pipe setup includes this T-fitting arrangement before the flexible connector begins.
FAQ Section
1. Can I use a flexible water hose through a wall for my water heater?
No. Flexible braided water supply hoses are not rated for concealed installation. They rely on rubber gaskets and mechanical compression that can fail over time. If a leak occurs inside a wall, it can cause mold and structural rot before it is detected. Use copper, CPVC, or PEX piping through the wall, and only use flexible hoses for the final visible connection if necessary (though rigid piping is preferred for reliability).
2. What is the maximum length for a flexible gas connector?
For most residential gas appliances, the maximum length for a flexible connector is 3 feet for uncoated brass and 6 feet for coated stainless steel connectors. However, some local codes may restrict this further. Always check with your local building department. Remember, longer connectors increase the risk of kinking and physical damage.
3. Is CSST considered a “flexible connector”?
No. CSST (Corrugated Stainless Steel Tubing) is a gas piping system, not an appliance connector. While it is flexible and corrugated, it is manufactured and tested to different standards (ASTM F1785) that allow it to be concealed in walls, provided it is properly bonded and grounded. An appliance connector (ANSI Z21.24) is strictly for the final link to the device.
4. Do I need a permit to replace my water heater connections?
In most US jurisdictions, yes. Replacing a water heater or altering gas piping usually requires a permit and an inspection. This ensures that the work meets current safety codes, particularly regarding seismic strapping (in earthquake zones), venting, and gas connections. Skipping the permit can void your homeowner’s insurance if a failure occurs.
5. What happens if an inspector finds a flexible connector in a wall?
The inspector will likely issue a “red tag,” meaning the installation fails. You will be required to open the wall, remove the illegal connector, and install proper rigid piping or CSST. This results in double the labor cost and repair expenses for drywall. It is far cheaper to do it correctly the first time.
Conclusion
Navigating plumbing codes can feel overwhelming, but the rules regarding flexible connectors through a wall plumbing code water heater installations are designed for one purpose: keeping your home safe. While flexible connectors are excellent for their intended use—connecting the appliance to the rigid supply—they must never be concealed within walls, floors, or ceilings.
By using rigid black iron pipe or properly bonded CSST for in-wall runs and saving the flexible connector for the final, visible link, you ensure compliance with the IFGC and IPC. This approach not only passes inspection but also provides peace of mind knowing your gas and water lines are secure, accessible, and durable.
Did you find this guide helpful? Share this article with your DIY friends or on social media to help spread awareness about home safety standards. If you are unsure about your specific setup, always consult a licensed plumber in your area.
Leave a Reply