Every major U.S. plumbing code requires a temperature and pressure relief valve on every storage water heater, and the T&P relief valve code requirements are consistent across jurisdictions: the valve must be listed to ANSI Z21.22, sized to the heater’s BTU input, mounted near the hottest water in the tank, and fitted with a gravity-draining discharge pipe that ends in an air gap close to the floor. A standard residential valve opens automatically at 210°F or 150 psi, whichever hits first, and it does that mechanically, with no electricity or electronics in the loop.
Which Codes Apply and What They Require
Two model codes govern most of the country. The International Plumbing Code, in Section 504.4, requires every storage water heater operating above atmospheric pressure to have an approved, self-closing pressure relief valve, temperature relief valve, or a combination of both.1International Code Council. 2021 International Plumbing Code – Section 504.4 The Uniform Plumbing Code imposes the same requirement in Section 608.3, which also covers thermal expansion control.2IAPMO. 504.6 Temperature, Pressure, and Vacuum Relief Devices
Both codes require the valve to conform to ANSI Z21.22, the standard that governs the design and testing of combination T&P valves, pressure-only relief valves, and vacuum relief valves for hot water supply systems.3ANSI Webstore. CSA ANSI Z21.22-2015 (R2020)/CSA 4.4-2015 – Relief Valves for Hot Water Supply Systems The valve must carry a label from a recognized testing agency confirming it meets the standard. An unlabeled valve, even if it looks identical, will not pass inspection.
Matching the Valve to the Heater
A T&P valve is not generic. Its BTU discharge rating has to exceed the water heater’s hourly BTU input shown on the heater’s data plate. If the valve can’t release energy faster than the burner or element adds it, the valve becomes useless during a runaway heating event. Inspectors check this match, and an undersized valve fails the inspection on the spot.
Where the Valve Must Be Installed
The thermal sensing element has to sit near the hottest water in the tank, which means near the top. On a vertical tank, the valve must be installed within 12 inches of the top. On a horizontal tank, within 6 inches. The valve connects directly to a tapping on the tank with nothing between the two except, if needed, a bushing to reduce the tapping size. As an alternative, the valve can go into the hot water outlet pipe no more than 5 inches from the top of the tank. Mounting it any lower lets it sense cooler water and react too late.
Discharge Pipe Rules
The discharge pipe is where most installations go wrong. Several specific rules apply, and inspectors look at all of them.
- The pipe diameter must be at least as large as the valve outlet, and it cannot be reduced anywhere downstream.
- The material must handle near-boiling water. Copper, galvanized steel, and CPVC are the common choices.
- PEX is allowed under the International Residential Code, but it must be upsized one nominal size larger than the valve outlet, and the terminal end must be physically secured because PEX will whip under high-pressure discharge.
- The pipe must slope continuously downward. Gravity is the only force moving water through it.
- No shutoff valves, check valves, or tee fittings may appear anywhere between the T&P valve and the end of the line.
- The pipe must terminate through an air gap no more than 6 inches above the floor or the flood-level rim of a drain receptor.
- The end cannot be threaded, which prevents anyone from capping it later.4International Code Council. Plumbing Code Essentials: Relief Valve Discharge
The air gap stops contaminated water from siphoning back into the drinking supply, and the low termination keeps scalding water from spraying at body height if the valve ever discharges.
Testing the Valve
Manufacturers direct homeowners to operate the valve’s test lever at least once a year to confirm the waterways are clear.5Watts. T&P and ASME Safety Relief Valves Lifting the metal lever opens the valve and sends a brief burst of hot water through the discharge pipe. When released, the valve should snap shut and stop flowing within a few seconds. Wear closed-toe shoes and stand clear of the discharge pipe outlet. The water is near scalding.
If the valve keeps dripping after the lever snaps back, the usual causes are mineral debris on the seat, a worn seal, or corrosion. A valve that will not reseat needs to be replaced, not retested. Working the lever repeatedly tends to damage the seat further.
The opposite failure is more dangerous. If lifting the lever produces no movement and no water flow, the valve has frozen in the closed position from corrosion or lime scale. From the outside it looks intact; in practice it offers zero protection. Replace it immediately through a licensed plumber.
How Often to Replace the Valve
Manufacturers recommend that valves in service more than three years be removed and visually inspected for corrosion.6The National Board of Boiler and Pressure Vessel Inspectors. Temperature and Pressure Relief Valves Often Overlooked Most plumbing professionals simply replace the whole valve every three to five years to account for the gradual degradation of the spring and internal seals. Hard water accelerates mineral buildup and may shorten that interval.
What a Dripping or Discharging Valve Actually Means
Water at the end of the discharge pipe does not automatically mean the valve is bad. The right response depends on what you’re seeing.
Small, Periodic Drips
Small drips, especially after the water has sat idle for 30 minutes or longer, usually signal thermal expansion in a closed plumbing system rather than a defective valve. A brief surge when a faucet first opens is another sign of the same thing. The valve is relieving legitimate pressure spikes caused by water expanding as it heats with no path back to the main. Replacing the valve will not fix this. An expansion tank will.
Several Gallons on the Floor
A large volume of water around the discharge pipe means the valve opened fully and stayed open. That points to a real overheat or overpressure event. For an electric heater, shut off the circuit breaker. For a gas heater, turn the gas control valve to “off.” Do not cap, plug, or restrict the discharge pipe for any reason. The open valve may be the only thing keeping the tank from failing. Call a service technician to check the thermostats, heating elements, or gas valve before power is restored.
Thermal Expansion and Closed Systems
A plumbing system becomes closed when a backflow preventer, check valve, pressure-reducing valve, or recirculating pump with a check valve blocks water from flowing back toward the main. In an open system, water expands as it heats and the extra volume pushes back into the municipal supply. In a closed system, the expansion has nowhere to go, so pressure climbs inside the water heater with every heating cycle.
Both the IPC and UPC require an expansion tank or equivalent device whenever any of these closed-loop components is present.2IAPMO. 504.6 Temperature, Pressure, and Vacuum Relief Devices The IPC specifically prohibits using the T&P valve itself as the means of controlling thermal expansion.1International Code Council. 2021 International Plumbing Code – Section 504.4 Letting the T&P valve handle daily pressure fluctuations wears it out and produces the constant dripping that homeowners often shrug off as a nuisance.
Expansion tanks are sized based on the heater’s capacity and the incoming supply pressure. If supply pressure runs above 80 psi, most manufacturers require a pressure-reducing valve upstream of the expansion tank. A plumber can measure system pressure with a gauge at a hose bib to confirm whether thermal expansion is the real problem.
Vacuum Relief Valves
A T&P valve protects against overpressure. A different problem shows up when a water heater or storage tank sits above the fixtures it serves. A sudden drop in supply pressure can siphon the tank through the open fixtures below, leaving an empty tank with an active heat source. The Uniform Plumbing Code requires a vacuum relief valve on any hot water storage tank or indirect water heater installed above the fixture outlets in the hot water system, and that valve must also conform to ANSI Z21.22.7IAPMO. Uniform Codes Spotlight – Vacuum Relief Valves This catches water heaters installed on upper floors or in attics, a layout now common where mechanical rooms are placed high to avoid flood damage. A standard T&P valve does not substitute for this device.
Inspection and Insurance Consequences
Local building departments enforce T&P valve requirements during new construction, remodels, and water heater replacements. A missing or improperly installed valve is one of the most common reasons for a failed plumbing inspection. Inspectors look at valve placement, discharge pipe routing, BTU match, and the ANSI Z21.22 listing on the body of the valve.
Homeowner’s insurance policies generally require installed water heating equipment to meet applicable code. A water heater that causes damage while lacking a required safety valve can give an insurer grounds to deny the claim. A professional T&P valve replacement typically runs a few hundred dollars for parts and labor, which is a small number next to the liability exposure of a failed or missing valve. Licensed plumbers are bound to follow the plumbing code on installation, and skipping safety valves puts both the homeowner and the plumber at legal risk.