Water heater drip pan underneath residential gas water heater on concrete floor.
Trade Talk

Top water heater accessories for code-compliant installations

As building codes evolve, skipping out on the right plumbing accessories can lead to failed inspections, costly callbacks, and compromised homeowner safety. Codes are adopted and modified differently across jurisdictions, so understanding local variances is critical to keeping your business protected.

From managing thermal expansion to preparing for regional seismic activity, here is a breakdown of the critical water heater accessories every pro needs on the truck to stay code compliant.

Quick Links
Expansion TanksStraps
T&P ValvesRelief Valves
Drain PansAnode Rods

Water heater expansion tank

With the widespread installation of backflow preventers and pressure-reducing valves, modern residential plumbing systems have largely transitioned into closed systems. When water is heated inside a tank, it expands. In an old open system, this expanded volume could push back into the municipal water main. In a closed system, that water has nowhere to go, creating intense pressure spikes that stress the tank's inner lining.

Plumbing code requirements

Per International Plumbing Code (IPC) Section 607.3 and Uniform Plumbing Code (UPC) Section 608.2, an approved device for thermal expansion control is strictly required whenever a backflow preventer or check valve creates a closed system.

Regional variances

While codes mandate this across the board, enforcement frequently varies based on municipal infrastructure. In older cities with aging, open municipal water mains, inspectors may not look for an expansion tank. However, if a city installs new smart water meters equipped with internal check valves, a neighborhood instantly becomes a closed system — making an expansion tank an absolute requirement where it wasn't previously.

T&P valve

The temperature & pressure (T&P) relief valve is the ultimate safety mechanism on a water heater, designed to open if internal temperatures hit 210°F or pressures cross 150 PSI. However, the valve itself is only half the equation; the discharge piping attached to it is where most code infractions occur.

Plumbing code requirements

IPC Section 504.6 and UPC Section 504.1 outline strict requirements for T&P discharge piping to prevent scalding and ensure proper operation.

Code checklist for T&P discharge lines

  • The discharge pipe must match the full nominal size of the valve outlet (typically 3/4-inch) — never reduced.
  • Use approved materials capable of handling high temperatures, such as copper, CPVC, or PEX (where locally approved).
  • The line must run via gravity to an approved indirect waste receptor (like a floor drain), the outdoors, or toward the floor. It must terminate with an air gap between 2 and 6 inches above the floor or receptor, depending on your local jurisdiction.
  • The end of the discharge line can never be threaded, and you cannot install a shutoff valve anywhere inline.

Water heater drain pan

A leaking water heater can cause thousands of dollars in structural damage before a homeowner even notices a drop. In this case, a water heater drain pan becomes an invaluable attachment.

Plumbing code requirements

According to IPC Section 504.7 and UPC Section 505.2, a watertight, corrosion-resistant drain pan is required if a water heater is installed in a location where a leak could cause property damage — such as an attic, a second-story closet, or over finished living spaces.

Regional variances

The code specifies that the pan must feature a minimum 3/4-inch drain outlet routed to an approved location (like a floor drain or the home's exterior). However, local jurisdictions often vary on retrofit installations. In basements or utility closets without an accessible gravity drain line, some local inspectors allow a pan to be installed without a drain line if it is paired with a local water alarm or an automatic electronic shutoff valve, while stricter municipalities will demand a condensate pump to lift the water to a proper drain.

Advanced corrosion protection

Traditional sacrificial anode rods (magnesium or aluminum) protect a water heater tank by corroding away so the steel tank doesn't have to. However, when these rods react with certain water chemistries — particularly softened water or water high in sulfates — they can produce a foul "rotten egg" odor (hydrogen sulfide gas) and rapidly deplete, leaving the tank vulnerable.

Enter the electric anode rod. Instead of sacrificing itself, an electric anode uses a non-corrosive titanium rod to send low-voltage electrical micro-currents through the water. This continuous current neutralizes the galvanic process that causes rust, extending the life of the tank indefinitely without creating unpleasant odors.

Plumbing code requirements

While national codes like IPC Section 501 and UPC Section 501.1 focus generally on water heaters being installed according to their listing and manufacturer instructions, the use of an electric anode plays a vital role in maintaining warranty compliance. Many manufacturers will void a tank's warranty if a contractor completely removes a sacrificial rod to solve an odor issue without replacing it with an approved method of corrosion protection. An electric anode serves as an approved, permanent solution.

Regional variances

This accessory is highly relevant in regions with heavy well water or municipal areas with high water hardness where water softeners are prevalent. Softened water accelerates the consumption of standard sacrificial anodes. Offering an electric anode upgrade is an incredibly effective, high-margin solution for homeowners in these hard-water regions who are tired of replacing standard anodes every few years.

Water heater earthquake straps

Securing a water heater with an earthquake strap to the structural framing of a home prevents it from tipping over, breaking gas lines, or snapping electrical and water connections during unexpected movement.

Plumbing code requirements

UPC Section 507.2 dictates that water heaters must be anchored or strapped to resist horizontal displacement caused by seismic motion.

Regional variances

In high-risk earthquake zones like California, Washington, and parts of the Pacific Northwest, local codes strictly enforce double-strapping (one strap in the upper third of the tank, one in the lower third). Conversely, in low-risk zones across parts of the Midwest or Northeast, inspectors rarely look for seismic straps unless the home sits near a fault line or local building codes have specific structural amendments.

Vacuum relief valves

While T&P valves handle internal build-ups of pressure, vacuum relief valves handle the exact opposite problem: negative pressure. If a water heater is drained rapidly — either during maintenance or due to a sudden water main break down the street — a vacuum can form inside the tank, crushing the steel shell inward.

Plumbing code requirements

IPC Section 504.2 requires a vacuum relief valve on bottom-fed water heaters. Similarly, UPC Section 608.7 mandates their installation where water heaters are installed at an elevation above the fixtures they serve. This makes them a non-negotiable accessory for tanks located in attics, upper-floor utility closets, or elevated mechanical decks.

Regional variances

Enforcement depends heavily on regional home design. In the Sunbelt, where water heaters are routinely installed in attics to save space, inspectors strictly mandate these valves. In the Northeast and Midwest, where units sit in basements below the home's plumbing fixtures, vacuum relief valves are rarely required on standard top-fed installations.

Gas vs. electric fuel accessories

Code compliance isn't just about the tank — it depends heavily on the fuel source powering it. Gas and electric units each require distinct safety and fuel-delivery accessories.

Gas water heaters: Sediment traps and stands

To protect the automated gas control valve from debris, moisture, and pipe scale, codes mandate the installation of a sediment trap on the gas line. This must be installed as close to the inlet of the water heater as possible, downstream of the equipment shutoff valve, using a tee fitting with a capped nipple in the bottom opening.

Gas heaters in residential garages often must sit on an 18-inch water heater stand — in compliance with Flammable Vapor Ignition Resistant (FVIR) codes. This keeps the pilot light or igniter high enough to avoid catching spilled gasoline vapors on fire. Even though newer heaters have built-in safety features to prevent this, many local inspectors still strictly require a stand.

Electric water heaters: Electrical disconnects

For electric water heaters, if the main circuit breaker panel is not within sight of the water heater, National Electrical Code (NEC) requires a local electrical disconnect switch to be installed within sight of the unit. This ensures that power can be safely locked out before servicing the heating elements without risk of the breaker flipping back on remotely.

Water heater accessories: Functions & code compliance

Core functionPrimary code referenceRegional variance factor
Expansion tankAbsorbs thermal expansion pressureIPC 607.3 / UPC 608.2Dependent on municipal check valves
Electric anodeConstant electronic rust protectionIPC 501 / Manufacturer SpecsCritical in hard water or water softener areas
Drain panCaptures tank leaksIPC 504.7 / UPC 505.2Required primarily over finished spaces
Earthquake strapsPrevents tank displacementUPC 507.2 / IPC 502.1Strict in seismic zones; rarely enforced in low-risk areas
Vacuum relief valvePrevents negative pressure collapseIPC 504.2 / UPC 608.7Mandatory for bottom-fed or elevated tanks
Gas sediment trap & standProtects gas valves from debris; isolates ignition sourceFVIRTrap required locally at inlet; 18-inch stand strictly enforced in residential garages
Electrical disconnectProvides local power shutoff for technician safetyNational Electrical Code (NEC)Mandatory if the main breaker panel is out of sight from the unit
T&P valveReleases dangerous pressure/heat spikes and safely channels scalding waterIPC 504.6 / UPC 504.1Material approvals and exact discharge air gap heights vary by town

A code-compliant installation is only as good as the parts you bring to the job site. Because regional codes and local inspectors vary, you need a partner who understands the unique landscape of your specific market.

Ferguson is your ultimate asset for water heater accessories. Whether you need heavy-duty expansion tanks, precisely engineered T&P valves, or the latest smart automatic shutoff sensors, Ferguson stocks the industry's leading brands. With reliable local inventory, fast pickup options, and deep technical expertise tailored to your local code environment, Ferguson helps you get off the job site faster, ace your inspections, and maximize your profitability on every single ticket. Shop with us today.