
Water Heater Code Requirements for Drain Pans, Stands, and Piping
A water heater drain pan is required where a leaking heater would cause damage to the building, such as in an attic or above a floor-ceiling assembly. Under both the 2021 IPC and the 2021 UPC the pan must be at least 1.5 inches deep and drained by a pipe of at least 3/4 inch. The IPC also requires that drain to end over an indirect waste receptor or floor drain, or outdoors 6 to 24 inches above the ground.
Where a drain pan is required and what it is made of
A water heater drain pan catches a leak before it reaches the ceiling below or the floor structure. The two plumbing codes trigger it slightly differently. IPC 504.7 requires a pan under a storage tank-type water heater or a hot water storage tank wherever leakage from the tank would cause damage. UPC 507.5 names the locations: an attic, in or on an attic ceiling assembly, a floor-ceiling assembly, or a floor-subfloor assembly where a leak would do damage. The UPC pan must be watertight and made of corrosion-resistant material. Both codes set the same minimum depth of 1.5 inches. The IPC adds that the pan must be big enough, and shaped well enough, to catch all dripping or condensate from the heater.
On a tankless water heater pan, read the wording of the code you work under. The IPC section speaks of tank-type heaters and storage tanks. The UPC section says a water heater, with no limit to tank types, so under the UPC the deciding question is the location, not the style of heater. IPC 504.7 lists the pan materials and their minimum thickness, shown in the table below.
| IPC pan material | Minimum thickness |
|---|---|
| Galvanized steel or aluminum | 0.0236 inch |
| Plastic | 0.036 inch |
| Other approved materials | As approved |
Warning
The IPC never allows a plastic pan under a gas-fired water heater. When you swap an electric unit for a gas unit, check the pan before you set the new heater in it.
Sizing and routing the pan drain
Under IPC 504.7.1 and 504.7.2, the hot water heater drain pan is drained by an indirect waste pipe of at least 3/4 inch diameter, in a material from Table 605.4. The drain must stay full size all the way to its end, so never reduce it partway along the run. It must end over a suitably located indirect waste receptor or floor drain, or pass to the outside of the building and end between 6 inches and 24 inches above the adjacent ground. The UPC asks for a drain of at least 3/4 inch diameter running to an approved location. The comparison below sets the two codes side by side, including the relief valve terminations covered later.
IPC and UPC: pans, pan drains and relief discharge
| 2021 IPC | 2021 UPC | |
|---|---|---|
| Pan depth | At least 1.5 inches | At least 1.5 inches |
| Pan material | Galvanized steel or aluminum 0.0236 inch, plastic 0.036 inch, or other approved. No plastic under gas-fired heaters | Watertight, corrosion-resistant material |
| Pan drain size | Indirect waste pipe, at least 3/4 inch, full size | At least 3/4 inch diameter |
| Pan drain termination | Over an indirect waste receptor or floor drain, or outdoors 6 to 24 inches above adjacent ground | To an approved location |
| Relief valve discharge into the pan | Permitted | Prohibited |
| Relief discharge height | No more than 6 inches above the floor or receptor rim, and at least twice the pipe diameter | Outdoors: at least 6 inches and no more than 2 feet above the ground, pointing down |
The difference
Same pan, different end points: check the adopted code first.
Gas water heaters in a residential garage
UPC 507.13, taken from NFPA 54, covers appliances in residential garages and in adjoining spaces that open to the garage and are not part of the living space. Every burner and burner-ignition device must sit at least 18 inches above the floor, unless the appliance is listed as flammable vapor ignition resistant. The rule keeps the ignition source up off a garage floor where flammable vapor can collect. Under the IPC, Section 502.1.1 sends elevation and impact protection to the IMC and IFGC: IFGC 305.3 sets the same 18 inches above the floor in a garage, and IFGC 303.4 bars appliances from any location subject to vehicle impact damage unless protected by an approved means.
When you raise a heater on a water heater stand, measure the 18 inches to the burner and ignition device, not to the top of the stand. The stand also has to carry the load. Under UPC 507.3 an appliance needs a load-distributing base or enough supports to prevent damage to the building or the appliance, and the structure must be checked for the added static and dynamic load. Connect the piping so the raised heater puts no undue strain on the connections.
UPC 507.13.1 also requires a heater in a garage to be guarded against vehicle impact and other mechanical damage, by one of these means:
- Install it behind a protective barrier.
- Elevate it.
- Locate it out of the normal path of vehicles.
Note
One exception: a heater in a separate enclosed space that is reached only from outside the garage may sit at floor level, provided its combustion air comes from outside the garage.
Seismic strapping in the upper and lower thirds
IPC 502.4 sends you to the International Building Code: where that code applies earthquake loads, the heater's supports must be designed and installed for those seismic forces. UPC 507.2 is more specific. The heater must be anchored or strapped against sideways movement in an earthquake, with straps within the upper one-third and the lower one-third of its height. Keep the lower strap at least 4 inches from the controls. On a tank 60 inches tall, for example, the lower strap goes somewhere in the bottom 20 inches, but never closer than 4 inches, measured from the controls.
Relief valve discharge piping
The water heater discharge pipe carries hot water from the temperature and pressure relief valve to a place where it can be seen and cause no harm. Under UPC Section 608.0, storage water heating equipment needs a listed combination temperature and pressure relief valve, except listed nonstorage instantaneous heaters with an inside diameter of 3 inches or less. UPC 608.4 limits the pressure setting to 150 psi, and UPC 504.6 forbids a shutoff valve between the relief valve and the heater or on the discharge pipe.
IPC 504.6 sets 14 requirements for the discharge piping:
- Never connect it directly to the drainage system.
- Discharge through an air gap in the same room as the water heater.
- Keep it no smaller than the valve outlet, and run it full size to the air gap.
- Serve one relief device only, with no connection to piping from any other relief device or equipment.
- Discharge to the floor, to the heater's pan, to a waste receptor or outdoors.
- Discharge so it cannot injure anyone or damage the structure.
- End where the occupants can readily see it.
- Never trap it.
- Install it to flow by gravity.
- End no more than 6 inches above, and at least twice the pipe diameter above, the floor or the flood level rim of the waste receptor.
- Leave no thread on the end of the pipe.
- Fit no valves or tees.
- Use materials from Section 605.4, or materials tested, rated and approved under ASME A112.4.1.
- Where insert fittings are used, go one nominal size larger than the valve outlet and fasten the outlet end in place.
UPC 608.5 bans valves, obstructions and any means of isolation on the pipe, and requires the following:
- At least the size of the valve outlet, discharging full size and pointing down.
- Materials rated for at least the system's operating temperature and approved, or complying with ASME A112.4.1.
- Discharge on its own by gravity through an air gap into the drainage system, or outdoors with the end pointing down, at least 6 inches and no more than 2 feet above the ground.
- Discharge so it cannot injure anyone or damage the structure.
- No part trapped or exposed to freezing.
- No thread on the end.
- No discharge into the water heater pan.
- A termination point that can be readily seen.
Watch out
A threaded cap or a hose bib on the end of the relief pipe fails under both codes.
Shutoff valve location, clearances and service space
The water heater shut off valve location is set by IPC 503.1. The valve goes on the cold water branch feeding the heater, near the equipment, serving that heater only, and placed so that closing it does not cut off cold water to the rest of the building. It must be reachable on the same floor level as the heater, so a valve up in the joists of the floor above fails.
For clearances, UPC 504.3 installs a listed heater to its listing and the manufacturer's instructions, without blocking combustion air, draft hood clearance and relief, or service access. For a listed heater, the clearance to combustibles comes from its listing and the manufacturer's installation instructions. The sections cited here give no clearance figure for it. An unlisted heater needs 12 inches on all sides and the rear, and a combustible floor under it must be protected in an approved manner. IPC 502.5 requires a level working space of at least 30 inches by 30 inches in front of the control side. The heater must also be reachable for service and replacement without disabling a fire-resistance-rated assembly or removing permanent construction, other appliances, or piping and ducts that do not serve it. For a heater in an attic, IPC 502.3 sets the access dimensions in the table below.
| IPC 502.3 attic item | Requirement |
|---|---|
| Passageway height | At least 30 inches |
| Passageway width | At least 22 inches |
| Passageway length | No more than 20 feet, measured along the centerline of the passageway from the opening to the heater |
| Continuous solid flooring along the passageway | At least 24 inches wide |
| Level service space at the front or service side | At least 30 inches by 30 inches |
| Clear access opening | At least 20 inches by 30 inches, and large enough to remove the heater |
In an attic, check the water heater dimensions against the access route before you carry the unit up. IPC 502.3 requires an opening and unobstructed passageway large enough to remove the heater, to the dimensions in the table above. UPC 508.4 requires an opening and passageway at least as large as the largest component of the appliance, and not less than 22 inches by 30 inches. Now test yourself on a garage job.
Check yourself
A client wants a standard gas water heater, not listed as flammable vapor ignition resistant, in their attached garage next to where they park. Under the 2021 UPC, which installation is compliant?
- Set it on the floor in a pan with a steel bollard in front of it.
- Raise it on a stand so the burner and ignition device are at least 18 inches above the floor, keep it out of the vehicle path or behind a barrier, and run the relief pipe full size with no valve to a point the client can see.
- Put it on an 18-inch stand and run the relief pipe into the pan with a threaded cap on the end.
- Leave it at floor level in the garage because a duct brings combustion air from outdoors.
Frequently asked questions
Does a replacement water heater need a new pan drain?
Under IPC 504.7.2, no. Where no pan drain was installed before, one is not required when the water heater is replaced. Other rules for the new heater still apply in full.
Does the IFGC have its own drain pan rules for gas water heaters?
No. IFGC 624.1.1 sends sizing, relief valves, drain pans and scald protection for water heaters to the International Plumbing Code. The IFGC also requires gas water heaters to be listed to ANSI Z21.10.1/CSA 4.1 or ANSI Z21.10.3/CSA 4.3 and installed to the manufacturer's instructions.
What does a water heater set on the ground need to sit on?
UPC 507.4 requires a heater supported from the earth to rest on level concrete or another approved base. That base must stand at least 3 inches above the surrounding ground.
Disclaimer: The information provided in this educational content has been prepared with care to reflect current regulatory requirements for continuing education. However, licensing rules and regulations can vary by state and are subject to change. While we strive for accuracy, ExpertCE cannot guarantee that all details are complete or up to date at the time of reading. For the most current and authoritative information, always refer directly to your state’s official licensing board or regulatory agency.


