
Installing a Pressure Relief Valve and Discharge Pipe to Code
A pressure relief valve opens automatically to keep a water heater tank from rupturing, and the most common combination valves open at 150 psig or 210°F. Under 2021 IPC Section 504, every storage water heater operating above atmospheric pressure needs an approved, self-closing temperature and pressure relief valve, with discharge piping that runs full size, by gravity, to an air gap.
What the code requires of the valve
Under IPC Section 504.4, every storage water heater that operates above atmospheric pressure needs a pressure relief valve and a temperature relief valve, or one valve that does both. Each must be approved and self-closing (levered), and must conform to ANSI Z21.22. A single combination temperature and pressure relief valve meets both duties. The UPC defines it as a valve that opens when a set temperature, a set pressure or both is reached, and calls it a T&P valve. You will also hear it called a temperature pressure relief valve, or TPR valve. UPC Section 608.3 requires a listed, adequately sized combination valve on any water system with storage water heating equipment. Its one exception is a listed nonstorage instantaneous heater with an inside diameter of no more than 3 inches.
Temperature and pressure relief valves must also meet four limits in IPC Section 504.5. Check every one on the valve before you fit it:
- It bears the label of an approved agency.
- Its temperature setting is no higher than 210°F.
- Its pressure setting does not exceed the tank or heater manufacturer's rated working pressure or 150 psi, whichever is lower.
- Its relieving capacity equals or exceeds the heat input of the water heater or storage tank.
Key point
Choose pressure relief valves by the heater's input rating. The UPC (Section 504.6) puts it in hourly Btu: the valve's discharge capacity may not be less than the input rating of the water heater. Read the heater's rating plate, then confirm the valve's rating matches or beats it.
Where the valve and its sensing element go
IPC Section 504.4.1 puts the valve in the shell of the water heater tank, located so the water in the top 6 inches of the tank actuates it. The UPC adds that the valve goes in an approved location based on its listing and the manufacturer's installation instructions, so follow the opening the manufacturer specifies. A valve fitted lower on the shell, or out on the piping away from the shell, cannot meet the top 6 inches rule. Nothing may stand between the valve and the tank. The IPC bars a check valve or a shutoff valve there. The UPC bars a shutoff valve there and on the discharge pipe as well.
The numbered points
Tap a number on the picture, or a card.
-
1. Top 6 inches
IPC 504.4.1: the valve must be actuated by the water in the top 6 inches of the tank it serves.
-
2. T&P valve in tank shell
Installed in the shell of the tank, with no check valve or shutoff valve between the valve and the tank.
-
3. Test lever
The valve must be approved, self-closing (levered) and conform to ANSI Z21.22.
-
4. Full-size discharge pipe
Never smaller than the valve outlet, and full size all the way to the air gap.
The valve sits in the tank shell where the top 6 inches of water actuates it, nothing isolates it from the tank, and its discharge pipe starts at full outlet size.
Sizing and materials for the discharge pipe
The discharge pipe can never be smaller than the outlet of the relief valve it serves, and it must stay full size all the way to the air gap (IPC Section 504.6). UPC Section 608.5 says the same: no smaller than the valve outlet, discharging full size. That rules out a reducing coupling or bushing at the valve and any fitting that narrows the bore along the run. One case needs a larger pipe: where you run the line in tubing joined with insert fittings, the IPC requires it one nominal size larger than the valve outlet, with the outlet end fastened in place. For material, the IPC accepts what is listed in Section 605.4, or material tested, rated and approved for the purpose under ASME A112.4.1. The UPC requires material rated at no less than the system's operating temperature and approved for the use, or compliant with ASME A112.4.1.
Running the line so it drains by gravity
Once water leaves the valve it has to keep falling until it reaches the end of the pipe. The IPC requires the discharge line to flow by gravity and forbids it to be trapped. The UPC says no part of it may be trapped or subject to freezing. Pitch every run downward: a sag or low spot holds water, and a section that climbs forces the valve to push water uphill before it can escape. Keep the line clear of fittings that could stop the flow. The IPC bans valves and tee fittings on it outright, and the UPC goes further, allowing no valves, no obstructions and no means of isolation anywhere between the valve and the open end.
Where the discharge line may end
The end of the line is where the inspector looks hardest. Under IPC Section 504.6, the discharge pipe must never connect directly to the drainage system. It drops through an air gap located in the same room as the water heater. It may discharge to the floor, to the pan serving the heater or tank, to a waste receptor or to the outdoors. Wherever it ends, it must not injure anyone or damage the structure, and the termination must be readily observable by the building's occupants, so a valve that opens never goes unnoticed. The two codes set the end of the pipe differently, so check which one your jurisdiction has adopted.
How the end of the line is set under each code:
- IPC, over the floor or a waste receptor: the end sits no more than 6 inches above, and no less than twice the discharge pipe diameter above, the floor or the receptor's flood level rim.
- UPC, into the drainage system: through an air gap, discharging full size to the flood level of the receiving area, with the end pointing down.
- UPC, outside the building: the end of the pipe no more than 2 feet and no less than 6 inches above the ground, pointing down.
- Both codes: no threads on the end of the pipe, so nobody can screw a cap or plug onto it.
- The water heater pan: an accepted discharge point under the IPC, but prohibited under the UPC.
Check yourself
Under the 2021 IPC, you are ending a 1-inch relief valve discharge line over a floor drain in the same room as the water heater. Which end detail passes inspection?
- A plain, unthreaded end 4 inches above the drain's flood level rim
- A plain, unthreaded end 1 inch above the drain's flood level rim
- A plain, unthreaded end 10 inches above the drain's flood level rim
- A threaded male adapter on the end, 4 inches above the drain's flood level rim
Faults that fail inspection
Each fault below breaks a rule already covered, and each is quick to spot when you walk up to the heater. An undersized line, whether from a bushing at the valve or tubing smaller than the outlet, fails the full-size rule. A run that rises or loops before it falls traps water and stops the line draining by gravity. Two or more relief valves teed into one shared line fail IPC Section 504.6, which says each discharge pipe serves a single relief device and does not connect to piping serving any other relief device or equipment. A valve fitted on the line, even a ball valve added for convenience, and a threaded end that invites a cap are both prohibited. Under the UPC, ending the line in the water heater pan instead of an approved receptor or the outdoors is a violation too.
Warning
A blocked or isolated relief valve discharge is a hazard to life, not a paperwork fault. Under IPC Section 115.6, plumbing that is dangerous to human life is declared unsafe, and the code official can order it in writing to be removed or made safe. Where there is immediate danger, the system can be disconnected at once without notice.
Frequently asked questions
Can I use the T&P valve to handle thermal expansion?
No. IPC Section 504.4 states that the relief valve must not be used as a means of controlling thermal expansion. Where a storage water heater's cold supply passes through a check valve, pressure reducing valve or backflow preventer, IPC Section 607.3 requires a thermal expansion control device on the heater's cold water supply, downstream of all of them.
Does a separate hot water storage tank need its own relief valve?
Yes. Under IPC Section 504.4.1, where a water heater feeds a separate storage tank, an approved, self-closing (levered) pressure and temperature relief valve, or a combination valve, conforming to ANSI Z21.22 goes on both the heater and the tank. The UPC also requires a water pressure relief valve on a water-heating device connected to a separate storage tank with valves between the heater and the tank.
Do PEX water lines need a special relief valve?
No. The PPI's PEX design guide states that PEX systems are tested to withstand 150 psig at 210°F for at least 720 hours (30 days), matching the conditions at which the most common combination valves open. For that reason PEX systems do not require a special T&P relief valve.
How do I find the tank's maximum working pressure?
IPC Section 501.7 requires the maximum allowable working pressure of a domestic hot water tank or heater to be stamped into the metal or marked on a plate permanently attached to it. The marking must sit on the outside of the tank where it can be reached for inspection. Compare it with the valve's pressure setting, which may not exceed it or 150 psi, whichever is lower.
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.


