Water Heaters
This chapter covers the essential safety and installation rules for water heaters and hot water storage tanks. Its primary purpose is to ensure that pressurized, heated water systems are safely protected against explosive failure (using T&P valves), and that units are installed with proper clearances, pans, and drainage so plumbers can easily maintain or replace them without damaging the building.
- Explosion Prevention is Priority #1: Always install an approved Temperature and Pressure (T&P) relief valve on pressurized storage tanks. Never install a shutoff valve between the tank and the relief valve.
- Discharge Piping Rules are Strict: T&P discharge pipes must drain by gravity, be full-sized, and cannot have traps, threads, or valves on the end.
- Protect the Property: If a leaking tank will cause water damage, it must sit in a properly sized pan with its own drain.
- Access is Mandatory: You must provide clear access to service and replace water heaters, especially when burying them in attics. A 30" x 30" working space is standard.
- Temperature Limits: For standard domestic use (sinks, showers), water leaving a tankless heater or combination space-heating system cannot exceed 140°F.
- T&P Valve (Temperature and Pressure Relief Valve): A crucial safety device that automatically opens to release water if the temperature or pressure inside the tank gets dangerously high.
- Dip Tube: A pipe inside the cold water inlet of a heater that directs cold water to the bottom; it often has a hole near the top to act as an anti-siphon device.
- Vacuum Relief Valve: A valve that lets air into the piping system to prevent a vacuum from forming, which could otherwise siphon water out of a bottom-fed heater and burn out the elements.
- Plenum: An enclosed space or room that is actively used to circulate air for the building's HVAC system.
- Indirect Waste Receptor: A drain setup where the discharge pipe drips into a drain or floor sink through an open air gap, rather than being hard-piped directly into the sewer system.
Exam Prep & Tips
When you sit for your IPC exam, pay heavy attention to Section 504.6 (Discharge Piping). Examiners love to test you on the 14 rules for T&P discharge lines because getting it wrong in the field can literally blow up a house. Also, memorize your attic clearance dimensions - they are guaranteed easy points. Lastly, remember that any safety device must be certified by a third party.
Prohibited Practices
- DO NOT use a water heater for space heating without a mixing valve if the space heating water is over 140°F.
- DO NOT install solid, liquid, or gas-fueled water heaters in a room used as an HVAC plenum.
- DO NOT install a valve that disrupts the cold water supply to the rest of the building just to service the water heater.
- DO NOT use a T&P relief valve as a way to control standard thermal expansion.
- DO NOT install a check valve or shutoff valve between the water heater and its relief valve.
- DO NOT connect T&P discharge piping directly to the drainage system (must have an air gap).
- DO NOT connect multiple relief valves to the same discharge pipe.
- DO NOT put a trap, threaded end, shutoff valve, or tee fitting on a T&P discharge pipe.
Most Tested Numbers
Temperatures & Pressures:
- 140°F (60°C): Max temperature for domestic water from tankless heaters or combo space heaters.
- 210°F (99°C): Maximum temperature setting for a T&P relief valve.
- 150 psi (1035 kPa): Maximum pressure setting for a T&P relief valve.
Pipe & Sizing Measurements:
- 3/4-inch: Minimum pipe size for a heater's bottom drain valve inlet AND the minimum diameter for a safety pan drain pipe.
- 2x Pipe Diameter: Minimum height a discharge pipe must terminate above a floor/receptor.
- 6 inches: Maximum height a discharge pipe can terminate above a floor/receptor. Also the exact location from the top of the tank where the temperature probe of a T&P valve must sit.
Attic & Clearance Dimensions:
- 30 inches x 30 inches: The required level working space in front of the heater's control side.
- 30" Height x 22" Width x 20' Length (Max): Minimum dimensions for an attic passageway leading to a heater.
- 24 inches: Minimum width of the solid flooring in an attic passageway.
- 20" x 30": Minimum dimensions for the attic access opening (attic hatch).
Pan Measurements:
- 1.5 inches: Minimum depth of a water heater safety pan.
- 0.0236 inch: Minimum thickness for a galvanized steel or aluminum pan.
- 0.036 inch: Minimum thickness for a plastic pan.
- 6" to 24": Distance above adjacent exterior ground where a pan drain must terminate.
Materials & Efficiency:
- 0.25%: Maximum lead content for water heaters in a potable system.
- R-12.5: Minimum insulation value required for unfired hot water storage tanks.
Section 501.1 Scope
This is just the code telling us what this chapter is for. It covers the materials, design, and installation of water heaters and all their required safety devices.
Section 501.2 Water heater as space heater
Sometimes people use water heaters to heat their floors or baseboards (space heating) and their tap water. If the space heating loop needs water hotter than 140°F, you must install an ASSE 1017 mixing valve. This blends cold water in so the hot water going to the sinks and showers never exceeds 140°F to prevent scalding. Also, the water has to stay potable (drinkable) the whole time.
Section 501.3 Drain valves
Every tank-type water heater needs a drain valve at the absolute bottom. It has to be at least a 3/4-inch pipe size coming out of the tank, and the end must have male garden hose threads so we can hook up a standard hose to flush or drain it.
Section 501.4 Location
You can't bury a water heater where no one can reach it. It must be installed so a plumber can easily observe, service, and eventually pull it out and replace it.
Section 501.5 Water heater labeling
You can't install homemade equipment. Every water heater must be certified and labeled by an approved third-party testing agency.
Section 501.6 Water temperature control in piping from tankless heaters
If you install a tankless heater for domestic use (like running sinks or washers), the water coming out of it cannot be hotter than 140°F. Note: This rule doesn't excuse you from still needing a proper anti-scald valve at the actual shower itself.
Section 501.7 Pressure marking of storage tanks
Any storage tank or water heater used for domestic hot water needs a permanent stamp or metal plate showing its maximum allowable working pressure. You have to install the tank so the inspector can actually read this plate.
Section 501.8 Temperature controls
Hot water systems need automatic temperature controls so the user can adjust it from the lowest to the highest safe settings.
Section 501.9 Lead content
Any water heater connected to the drinkable water supply must be lead-free, which by NSF 372 standards means a weighted average lead content of 0.25 percent or less.
Section 502.1 Installation
Always follow the manufacturer's installation instructions! Beyond that, follow the specific codes for the fuel type: Mechanical Code for oil/solar, Fuel Gas Code for gas, and the Electrical Code (NFPA 70) for electric.
- 502.1.1 Elevation of ignition sources & damage protection: If a heater has a flame or spark, or is in a garage where a car could hit it, you follow the Mechanical and Gas codes for raising it up or putting bollards around it.
Section 502.2 Rooms used as a plenum
If a room is acting as an active air-return or supply duct for the HVAC system (a plenum), you cannot install a solid, liquid, or gas-fueled water heater in there. (Electric is okay since there's no exhaust gas or flame).
Section 502.3 Water heaters installed in attics
If you put a heater in an attic, we need a path to get it out. The opening to the attic must be at least 20" x 30" (or bigger if the heater is bigger). The pathway to the heater must be at least 30" high, 22" wide, and no more than 20 feet long. It needs solid flooring at least 24" wide. Once you get to the heater, there must be a flat, level working space of at least 30" x 30" right in front of the controls.
Section 502.4 Earthquake loads
In areas prone to earthquakes, water heaters must be strapped and supported according to the International Building Code's seismic rules.
Section 502.5 Clearances for maintenance and replacement
You shouldn't have to tear down a fire-rated wall, remove permanent structures, or move other unrelated appliances just to service a water heater. Just like in the attic, you need a 30" by 30" level working space in front of the control side.
Section 503.1 Cold water line valve
You must put a shutoff valve on the cold water line feeding the water heater. It must be located close to the heater, on the same floor level. Importantly, shutting off this valve must only shut off the water heater - it shouldn't kill the cold water to the rest of the house.
Section 503.2 Water circulation
If you're piping a circulating water heater to a storage tank, do it so the water flows properly. Use approved materials for all piping.
Section 504.1 Antisiphon devices
To keep water from getting sucked backward out of the tank (which could expose and burn out heating elements), you need an anti-siphon device. A factory cold-water "dip tube" with a hole drilled at the top usually satisfies this, or you can use a vacuum relief valve on the cold water line.
Section 504.2 Vacuum relief valve
If you are feeding a tank from the bottom (instead of the top), you are strictly required to install a vacuum relief valve (ANSI Z21.22) to prevent siphoning.
Section 504.3 Shutdown
You need a safe way to turn the heater off. Electric heaters need a disconnect switch per the Electrical Code. Gas/oil heaters need a separate shutoff valve for their fuel supply.
Section 504.4 Relief valve
This is the big one. Any storage tank under pressure MUST have an approved, levered Temperature and Pressure (T&P) relief valve. You cannot use this safety valve as a cheap way to fix standard thermal expansion (you need an expansion tank for that).
- 504.4.1 Installation: The T&P valve threads directly into the tank. The temperature probe must be long enough to sit in the top 6 inches of water inside the tank (that's where the hottest water lives). If you have a separate heater and storage tank, BOTH need a relief valve. NEVER put a shutoff valve between the tank and its safety relief valve.
Section 504.5 Relief valve approval
T&P valves must have a third-party label. The max temperature setting is 210°F. The max pressure setting cannot exceed the tank's rating, or 150 psi - whichever is lower. Also, the valve must be big enough (relieving capacity) to dump heat faster than the burner can put heat into the tank.
Section 504.6 Requirements for discharge piping
When that T&P valve blows, it shoots scalding water. The discharge pipe attached to it must follow 14 strict rules:
- Don't connect it directly to the sewer (drainage system).
- It must drop into an air gap in the same room.
- Must be the exact same size as the valve outlet (usually 3/4") and run full-size the whole way.
- Only ONE relief valve per pipe. No sharing.
- Can dump to the floor, the water heater pan, a waste receptor, or outdoors.
- Don't aim it where it will melt someone's face or ruin the building.
- Must dump somewhere people will easily notice it's leaking.
- NO traps allowed.
- Must slope downhill to drain by gravity.
- The end of the pipe must sit no more than 6 inches above the floor/drain, but at least twice the pipe's diameter above it.
- NO threads on the end of the pipe (so nobody can cap it off).
- NO valves or tee fittings allowed anywhere on the pipe.
- Must be made of approved water distribution pipe materials.
- If you use plastic pipe with insert fittings (like PEX), the pipe has to be one size larger than the valve to make up for the restricted fitting size, and fastened securely.
Section 504.7 Required pan
If the water heater is in an attic, ceiling, or upper floor where a leak would ruin drywall or floors below, it MUST sit in a drain pan. Galvanized/aluminum pans must be at least 0.0236 inches thick. Plastic pans must be at least 0.036 inches thick. If you use a plastic pan under a gas heater, it needs a specific fire/smoke safety rating.
- 504.7.1 Pan size and drain: The pan must be at least 1-1/2 inches deep and catch everything. It must have its own drain pipe that is at least 3/4-inch in diameter, using approved piping.
- 504.7.2 Pan drain termination: The pan drain must run full size. It can dump over an indirect waste receptor, a floor drain, or go straight outside. If outside, it must end between 6 inches and 24 inches above the dirt. Note: If you are replacing an old water heater in a house that didn't have a pan drain previously run, the code cuts you a break and doesn't force you to run a brand new drain line through finished walls.
Section 505.1 Unfired vessel insulation
If you have a storage tank that doesn't have its own burner (an unfired vessel), you have to insulate it heavily to trap the heat. The insulation rating must be at least R-12.5.