Skip to main content
24/7 Emergency(602) 675-1555
Plumbing Code Library

UPC Water Heater Drain Pan: When One Is Required and How It Drains

Updated November 15, 2026
In Short

Plumbing code requires a drain pan under a water heater where a leak or tank failure could damage the building, such as an attic, an upper floor, or over finished space. The pan catches leaking water and a pan drain carries it to a safe spot, so a slow leak does not flood the area below.

Primary Source
Uniform Plumbing Code (Water Heater Pan and Drain requirements)

The Uniform Plumbing Code is published and copyrighted by IAPMO. This page explains the section in our own words with a short excerpt only. Read the full official text at the source.

Code requires a drain pan under a tank water heater only where a leak would cause damage: an attic, an upper floor, a closet over a finished room, or any spot where water would reach a ceiling, a wall cavity or a finished floor. A heater on a garage slab, where a leak runs out to the door or a floor drain, usually needs no pan. Where a pan is required, it must be at least 1 1/2 inches deep and drain through a pipe at least 3/4 inch across to a floor drain, another approved receptor or the outside. In Phoenix, plumbing work may follow either the International Plumbing Code or the Uniform Plumbing Code, and both say the same thing here.

The rule in each code Phoenix uses

Since August 1, 2025, Phoenix enforces the 2024 codes with its own amendments, and plumbing plans may follow either the UPC or the IPC. Houses built under the International Residential Code follow its plumbing chapters. We read Phoenix's 2024 amendments to the IPC, the UPC and the IRC on November 15, 2026. None of them changes the water heater pan rules, so the model code text applies as written.

The residential code (IRC Section P2801.6) and the International Plumbing Code (Section 504.7) use the same words:

"Where a storage tank-type water heater or a hot water storage tank is installed in a location where water leakage from the tank will cause damage, the tank shall be installed in a pan constructed of one of the following:"

The allowed materials are listed under pan size, material and drain below.

The Uniform Plumbing Code (Section 507.5 in the 2021 edition) names the places outright:

"Where a water heater is located in an attic, in or on an attic ceiling assembly, floor-ceiling assembly, or floor-subfloor assembly where damage results from a leaking water heater, a watertight pan of corrosion-resistant materials shall be installed beneath the water heater with not less than 3/4 of an inch (20 mm) diameter drain to an approved location. Such pan shall be not less than 1 1/2 inches (38 mm) in depth."

Where a Phoenix water heater needs a pan

Where the heater sitsPan required?
Attic, or above a ceilingYes
Upstairs closet or laundry over a roomYes
Interior closet on carpet, wood or tile, next to finished wallsYes, a leak there causes damage
Garage slab, where a leak runs to the door or a floor drainUsually no
Outdoor closet or exterior cabinetUsually no

Most Phoenix tank heaters sit in the garage. A gas heater there also has to be raised: HQ's owner points out that a gas water heater in a garage must sit at least 18 inches off the floor (see the garage 18-inch rule). A stand does not settle the pan question. The test stays the same one: would a leak from this spot cause damage?

Pan size, material and drain

  • Depth: at least 1 1/2 inches in all three codes.
  • Size: the IRC asks for a pan "of sufficient size and shape to receive dripping or condensate from the tank or water heater." Pans are sold by inside diameter, so pick one wider than the heater's base so the whole tank sits inside the lip.
  • Material: under the IRC and IPC, galvanized steel or aluminum at least 0.0236 inch thick, plastic at least 0.036 inch thick, or another approved material. The UPC asks for a watertight pan of corrosion-resistant material.
  • Plastic under gas: plastic is not banned under a gas water heater, as many answers online say. The IRC allows it when the plastic has "a flame spread index of 25 or less and a smoke-developed index of 450 or less when tested in accordance with ASTM E84 or UL 723."
  • Drain: "The pan shall be drained by an indirect waste pipe of not less than 3/4 inch (19 mm) diameter." It runs full size and ends over an indirect waste receptor or floor drain, or goes outside and ends "not less than 6 inches (152 mm) and not more than 24 inches (610 mm) above the adjacent ground surface."

What size drip pan for a 50 gallon water heater?

Measure the base of the heater, not the label. Fifty gallon tanks vary in width by brand and by gas or electric, so take the tank's diameter from its spec sheet or a tape measure and pick a pan whose inside diameter is a little wider. The code asks only that the pan catch every drip from the tank, so a pan the tank overhangs fails even if it is the "50 gallon" size on the box. Check the drain outlet height too: the 3/4 inch drain fitting has to line up with a pipe that can fall all the way to its end.

Is it okay to install a water heater without an expansion tank?

That is a separate rule from the pan. Under IPC Section 607.3, a storage water heater fed through a check valve, a backflow preventer or a pressure-reducing valve needs thermal expansion control, and an expansion tank is the common way to provide it. A home with a pressure-reducing valve at the main falls under this rule, so a water heater swap often brings the question up. See do I need an expansion tank for how to tell.

Replacing a heater that never had a pan drain

The IRC and IPC carry one exception for swaps: "Where a pan drain was not previously installed, a pan drain shall not be required for a replacement water heater installation." The exception covers the drain pipe, not the pan. A new heater in a hall closet over a finished floor still goes in a pan. Only the pipe to the outside can be left off when the old install never had one. If the closet sits on an outside wall, adding the drain is often a short run and worth doing anyway.

The pan is for the slow leak. The big release comes through the temperature and pressure relief valve, which has its own discharge pipe rules. Commercial heaters follow the same pan rules; see relief valve discharge and pans on commercial water heaters.

What this means for you

If your heater is in an attic, upstairs or in a closet over finished floor, it should sit in a pan with a working drain that ends where you would see water coming out. A pan holding water means an active leak, not a full pan; see why a water heater drain pan fills with water. A tank leaking from the bottom cannot be repaired. When you replace it, ask for the pan and drain in the quote. HQ Plumbing & Air's water heater replacement team installs tank and tankless heaters across the Phoenix area, and our water heater service page covers repairs.

Full text and source

The pan rules quoted here are from the International Residential Code (Section P2801.6), the International Plumbing Code (Section 504.7) and the Uniform Plumbing Code (Section 507.5 in the 2021 edition). The ICC and IAPMO hold the copyrights. Read the IRC text on UpCodes, the UPC text on UpCodes or the full UPC chapter on UpCodes. Section numbers can shift between editions. Phoenix's amendments are posted by the City of Phoenix Planning and Development Department: phoenix.gov/pdd.

Sources
Talk to a plumber

Need a plumber who works to this code?

We pull the permit when the job needs one and do the work to code. For restaurants, offices and rental properties, we schedule it around your hours.

  • 24/7 emergency service
  • Licensed and insured
  • Upfront pricing
  • Free estimates

Keep Reading

Questions About Phoenix Plumbing Code?

We work to code every day across the Valley. Call the dispatcher and we'll tell you what your project needs.