2021 IRC Section M2005, P2801-P2804
A residential water heater is a fuel-fired or electric pressure vessel sitting in a closet, garage, or attic that most homeowners never think about until it fails, so the code puts most of its attention on what happens when something goes wrong: where the appliance is allowed to sit, what catches a slow tank leak, and what happens when an overheating or overpressure event forces the relief valve open. This lesson works through those provisions along with the special case of a water heater doing double duty as a space heating source, and points ahead to where fuel-gas venting for water heaters is covered in detail.
M2004 covers combination systems where a single water heater supplies both potable hot water and hot water for space heating, through a hydronic coil, baseboard, or similar terminal unit. These systems have to be installed in accordance with the mechanical chapter, the fuel gas chapter where applicable, the plumbing water heater chapter, and the manufacturer's instructions, all four at once, because a combination unit is simultaneously a potable water appliance and a space heating appliance and has to satisfy the rules for both. This is a common retrofit temptation in older houses with a boiler being replaced, and the combination approach only works when the water heater is actually listed for that dual use, not simply plumbed into a hydronic loop in the field.
M2005.2 restricts where a fuel-fired water heater can be installed. It cannot be installed in a room used as a storage closet, which sounds obvious until an inspector finds one crowded in among paint cans and cleaning supplies in a converted utility room. A water heater located in a bedroom or bathroom has to sit in a sealed enclosure so that combustion air is not taken from the living space, although a direct-vent water heater does not need an enclosure. For gas-fired units the fuel gas chapter says the same thing from the other side (G2406.2): no appliance in a sleeping room, bathroom, or a space that opens only into one, except a direct-vent appliance, or an appliance in a room or space that opens only into a bedroom or bathroom, is used for no other purpose, has a solid weather-stripped door with an approved self-closing device, and takes its combustion air directly from outdoors. Where the enclosure route is used, the door is part of the compliance path, not just a design choice, and swapping a solid, weather-stripped, self-closing door for a louvered closet door defeats the whole arrangement. A water heater in an attic also has to meet the attic access rules from Lesson 1 (M2005.1).
A fuel-fired water heater installed in a garage still has to clear the ignition-source elevation and vehicle-impact protection requirements covered in Lesson 1's discussion of appliance installation in garages: the ignition source not less than 18 inches above the garage floor unless the unit is listed as resistant to ignition of flammable vapors, and protection from impact where the location is subject to being struck by a vehicle. Those two requirements are independent of each other and both apply to a garage water heater exactly as they apply to a garage furnace.
P2801.6 requires a pan under a storage tank-type water heater wherever leakage from the tank would cause damage, which covers most indoor locations: an attic over a finished ceiling, a floor above finished space below, a closet with finished flooring. The trigger is the damage a leak would do, not the room name, so a tank on a slab where a leak harms nothing is judged on that basis. Where a pan is required, it has to be not less than 1-1/2 inches deep and made of galvanized steel or aluminum at least 0.0236 inch thick, plastic at least 0.036 inch thick, or another approved material (P2801.6.1). A plastic pan beneath a gas-fired water heater must have a flame spread index of 25 or less and a smoke-developed index of 450 or less. The pan is drained by an indirect waste pipe not less than 3/4 inch in diameter that extends full size to an indirect waste receptor or to the exterior of the building, terminating between 6 and 24 inches above the adjacent ground surface (P2801.6.2). A pan drain is not required for a replacement water heater where none was installed before.
Every water heater has to be protected by a combination temperature and pressure (T&P) relief valve or by separate pressure and temperature relief valves (P2804.1), and P2804.6.1 governs how the discharge is piped. The discharge pipe has to be full size from the valve outlet, made of the pipe materials the plumbing chapter lists (P2906.5), and it cannot be reduced, trapped, run with valves or tee fittings, or have a threaded connection at its end, a detail that exists specifically so nobody can screw a cap or a hose fitting onto it later. It must terminate through an air gap, in the same room as the water heater, at a point not more than 6 inches and not less than two pipe diameters above the floor or the flood level rim of a waste receptor, at a point readily observable by the occupants, so that a discharge is both visible and drains away rather than pressurizing a closed pipe run. A relief valve that weeps or discharges periodically with no other symptom is telling the building something is wrong upstream, most often thermal expansion in a closed system with no expansion control device, and burying that discharge where nobody can see it removes the one piece of evidence that points to the underlying problem.
In Seismic Design Categories D0, D1, and D2, and in townhouses in Seismic Design Category C, a water heater has to be anchored or strapped to resist horizontal displacement (M1307.2, P2801.8). The strapping goes in the upper third and the lower third of the tank, and the lower strap stays at least 4 inches above the controls; it is fastened to framing or other approved backing rather than to drywall alone. Seismic strapping requirements are strongly regional. GCHS verifies the seismic design category actually adopted for the jurisdiction before treating a strap as a code requirement rather than a best practice, since it is not universally required everywhere in Texas.
A gas-fired water heater's vent connector, vent type, and termination clearances are governed by the fuel gas chapter rather than this section, and are covered in Lessons 8 and 9 along with furnace and boiler venting. One rehab-specific issue worth flagging here: when a furnace sharing a common vent with a water heater is removed or replaced with a high-efficiency unit that vents separately, the water heater can be left as an orphaned appliance venting alone into an oversized flue, a common cause of poor draft that is addressed in Lesson 9.
A worked example on pan drain size and termination: a water heater pan's drain leaves the pan in 1/2-inch tubing and exits through an exterior wall 30 inches above the adjacent ground. It fails twice. The pipe must be not less than 3/4 inch in diameter and run full size, and an exterior termination must sit between 6 and 24 inches above the ground, so the outlet has to come down at least 6 inches. Keeping the line pitched steadily toward the outlet, with no sags that hold water, is what makes it drain reliably.
In the field
A recurring GCHS rehab finding is a gas water heater installed in a bedroom closet with a plain louvered door, original to the house, with no sealed combustion-air enclosure and no direct-vent conversion. The homeowner sees only a closet with a water heater in it; the code sees an appliance that is either prohibited outright or requires a specific, verifiable installation to be allowed there at all. GCHS treats this as a location problem to be solved, typically relocation or a direct-vent replacement, rather than something a service call can fix, because no amount of maintenance changes where the appliance is allowed to sit.
1. Under M2004, a water heater used to supply both potable hot water and space heating must be installed in accordance with:
2. Under M2005, a fuel-fired water heater is:
3. A gas water heater is proposed for a bedroom closet. Under M2005.2 and G2406.2, this is:
4. For a gas-fired water heater in a closet that opens only into a bedroom and is used for no other purpose, the enclosure door must be:
5. Under P2801.6, a pan is required under a water heater wherever:
6. Where a water heater pan is required, it must be not less than:
7. A water heater pan is drained with 1/2-inch pipe to an indirect waste receptor. Under P2801.6.1, this drain is:
8. A water heater pan's exterior drain termination must be between:
9. Under P2801.6, plastic water heater pans are:
10. Under P2804.6.1, the T&P relief valve discharge pipe must terminate:
11. Which detail is NOT permitted on a T&P relief valve discharge pipe?
12. A water heater's T&P valve weeps periodically even though the tank is not overheating. The most likely cause to investigate is:
13. Where the adopted seismic design category requires water heater bracing, the typical strap arrangement is:
14. A furnace that shared a common vent with a water heater is removed and replaced with a high-efficiency furnace that vents separately. The water heater is now: