What this code requires
CPC 504.0 requires every water heater to have an approved temperature and pressure (T&P) relief valve, and that valve must have a discharge pipe that routes the hot water safely to the exterior. The discharge pipe must be rigid, slope continuously downward without any horizontal traps or valves, terminate between 6 inches and 24 inches above the floor or ground, and have an open, unthreaded end. It cannot discharge inside the living space, into a wall cavity, or into a water heater drain pan.
How to fix it
Locate the water heater on your plans
Find every sheet where the water heater appears: site plan, floor plan, plumbing plan, and any detail sheets. The T&P discharge pipe must be shown consistently on all sheets. If the heater only shows up on one sheet, that is usually where the correction gets missed.
Add a T&P discharge pipe to the plumbing plan
Draw the discharge pipe from the T&P valve on the water heater to the exterior of the building, or to an air gap into the drainage system. Show the pipe as a rigid line, not a flex connector. Label it "T&P relief valve discharge pipe" so the plan-checker knows what it is. The pipe must slope downward continuously from the valve to the termination point.
Show the termination point on the exterior elevation
On the exterior elevation or site plan, mark where the discharge pipe exits the building. The open end must be between 6 inches and 24 inches above the floor, ground, or grade at that point. Add a dimension note: "T&P discharge pipe termination, open end, 6 inches min to 24 inches max above grade." The plan-checker will verify this note against the elevation.
Specify rigid pipe material rated for T&P discharge
Note the pipe material on your plans. The code requires discharge piping rated at not less than the operating temperature of the system and approved for the use, or complying with ASME A112.4.1, and no smaller than the valve outlet. Copper and galvanized steel are common choices; flexible braided connectors are a common flag. Verify with your local building department which plastic pipes, such as CPVC or PEX, it accepts for this application.
Show open, unthreaded pipe end
Add a note or detail showing the terminal end of the pipe is plain-cut and open. No caps, no plugs, no threaded fittings at the end. A threaded end reduces the flow area and can accumulate mineral deposits that restrict the opening. The note can be as simple as "T&P discharge pipe: open, non-threaded end, field verify clearance to grade."
Route away from gas valves and electrical panels
The discharge pipe should not terminate directly above a gas meter, gas shutoff, electrical panel, or any opening into the building. If the geometry of the installation requires routing past these elements, add a note showing the pipe terminates away from them. Plan-checkers sometimes flag layouts where a T&P discharge directly above a gas regulator would create a hazard if the valve opened under pressure.
Keep the T&P discharge out of the drain pan
CPC 608.5 and 507.5 prohibit relief valve discharge into a water heater pan, even one with a drain. Run the T&P line on its own to the exterior or through an air gap into the drainage system. If the heater needs a pan (attic or over a floor-ceiling assembly), show the pan separately with its own 3/4-inch drain to an approved location and a readily visible end. A T&P line ending in the pan will be rejected.
Verify no valves or traps interrupt the discharge path
The T&P discharge pipe cannot have any shutoff valves, check valves, or traps between the relief valve and the termination point. These devices block the flow path in a real discharge event. Add a note to your plans: "No valves or traps on T&P discharge line." If your current design has a union for serviceability, that is acceptable, but a shutoff valve is not.
Take the CPC 504.0 fix steps with you
All 8 steps in one email, so you have them on site instead of on this page.
Why you got flagged
Plan-checkers flag CPC 504.0 most often because the T&P discharge pipe simply does not appear on the plans at all. A water heater gets drawn in the garage or utility room with a gas line and a cold-water supply, and the discharge pipe gets left off the sheet. The plan-checker sees a valve with nowhere to go and marks it as a corrections item. This is the single most common reason this section comes back on a corrections letter.
The second scenario is a routing problem. The pipe is shown on the plans, but it terminates inside the building or into a drain pan. Plan-checkers will reject any routing that leaves hot water with nowhere to go if the valve opens. Discharge into a water heater pan is prohibited outright, even if the pan has its own drain.
Another common flag is a threaded discharge pipe termination. The end of a T&P discharge pipe must be plain-cut and open so water flows freely. A threaded cap or fitting at the end restricts flow and defeats the safety purpose of the valve. If the plans show a threaded end or if the note on the plans says "terminate per manufacturer" without specifying open-end, that will get flagged.
Finally, slope and material conflicts catch plans that specify flexible water heater connectors or plastic tubing for the discharge run. The pipe must be rigid, rated for the discharge temperature, and continuously sloped. PEX or braided flex lines do not meet this requirement on the discharge side.
The official code
California Plumbing Code Chapter 5 — Water Heaters (Building Standards Commission)
Read the source →