What IRC 2024 § P2801 requires
Under IRC 2024 Section P2801, water heater installation requires: a temperature and pressure relief (T&P) valve piped to within 6 inches of the floor or to an approved drain; a drain pan under the water heater in locations where a leak would damage the structure or finishes; seismic strapping (upper and lower straps at one-third and two-thirds of the tank height) in seismic design categories C, D1, and D2; a minimum 1-inch clearance from combustibles for gas-fired heaters per the listing; a dedicated 30-ampere circuit for electric water heaters; and the water heater must be installed in an accessible location where the unit and all controls can be serviced without removing construction. The first-hour rating (FHR) and energy factor must be appropriate for the household demand.
Section P2801.5 requires a temperature and pressure relief valve listed to ANSI Z21.22 installed and set to open at not more than 150 psi and 210 degrees Fahrenheit. The T&P valve discharge pipe must be of a material rated for the maximum temperature of the relief discharge — copper, CPVC, or galvanized steel, not standard PVC which can fail at high temperatures. The discharge pipe must not be smaller than the outlet of the T&P valve (typically 3/4 inch), must run to a safe discharge point, and must terminate within 6 inches of the floor, to a floor drain, or to an exterior point. The discharge pipe must not be trapped, must not have a valve on it, and must not be threaded at the outlet in a way that could permit a cap to be installed. These requirements protect against catastrophic failure if the T&P valve opens — the discharge must be directed safely away from occupants.
Section P2801.6 requires a drain pan under the water heater when the unit is installed in a location where a tank failure or relief valve discharge could cause damage to the building structure or interior finishes. A water heater installed in a finished living space, over a finished floor, or in an attic requires a drain pan. The pan must be at least 1.5 inches deep, be constructed of corrosion-resistant material, and have a minimum 3/4-inch drain connection piped to an approved drainage point. A water heater in an unfinished concrete basement with a floor drain nearby does not require a pan, but a heater on a finished wood-framed floor above living space must have one.
Section P2801.7 addresses seismic strapping requirements. In seismic design categories C, D1, and D2 — which broadly correspond to California, the Pacific Northwest, and portions of the Intermountain West and South — water heaters must be strapped to prevent overturning during seismic events. The strapping consists of two straps: the upper strap placed at one-third of the tank height from the top, and the lower strap placed at one-third of the tank height from the bottom (which equals two-thirds of the total height from the floor). Straps must be at least 1.5-inch wide heavy-gauge metal (or approved equivalent), must be anchored to a structural wall with bolts that penetrate into a stud or blocking, and must pull tight against the tank body without crushing the insulation. Gas shutoff valves must be flexible connectors on both sides so that the gas supply line accommodates minor seismic movement without breaking.
Gas-fired water heaters must maintain clearances to combustible materials as specified in the equipment listing. The manufacturer’s installation instructions, which reflect the listing requirements, specify the minimum clearance to combustible walls, floors, and ceilings. Typically this is 1 inch on all sides and at the rear. Water heaters listed as direct-vent or power-vent units have specific clearance requirements for the vent pipe that override general clearance rules. The water heater must never be installed in a closet that lacks the required combustion air volume or that blocks required clearances.
Electric water heaters require a dedicated 240-volt circuit, typically 30 amperes, with 10 AWG copper conductors. The circuit must have ground fault protection in certain installation locations per NEC 422. The junction box connection must be accessible without moving the water heater. For tankless water heaters, electrical requirements vary significantly — some units require 200-ampere service upgrades and multiple 50-ampere circuits. Always size the electrical supply to the manufacturer’s specification.
Why This Rule Exists
The T&P valve and its discharge pipe requirements exist because a water heater without functioning pressure and temperature relief is capable of catastrophic explosion. A water heater is essentially a pressure vessel. If the thermostat fails in the closed position and the T&P valve is absent or blocked, the water inside can be heated to superheated liquid state under pressure. When the pressure finally exceeds the vessel strength, the resulting explosion is catastrophic — documented incidents have involved tanks launching through multi-story buildings. The T&P valve is the primary safety device preventing this outcome.
Seismic strapping requirements exist because an overturned gas water heater during an earthquake can break the gas connection, creating a fire and explosion hazard from gas release in a building already stressed by the seismic event. A falling water heater can also injure occupants and damage structure. The strap system is inexpensive, simple to install, and highly effective at preventing overturning during seismic events of the magnitude experienced in the affected seismic zones.
The drain pan requirement protects property by providing a controlled path for water from a leaking or failed tank. Water heater tank failures are common — the average residential tank water heater lasts 8 to 12 years. When a tank corrodes and fails, it can release the full tank volume (typically 40 to 80 gallons) in a short period. Without a drain pan, this water floods the surrounding space. With a pan and a floor drain connection, the water is directed away without damage to finished floors and ceilings below.
What the Inspector Checks at Rough and Final
At rough-in, the inspector verifies that the location has adequate combustion air volume for a gas water heater, that the vent flue connection is of the correct material and size for the unit, and that the electrical rough-in is a dedicated circuit of the correct amperage for an electric unit. They verify that the drain pan connection is roughed in if the location requires a pan.
At final inspection, the inspector checks the T&P valve installation — correct pressure and temperature rating, proper discharge pipe material, correct pipe size (not smaller than the valve outlet), discharge termination within 6 inches of the floor, no valve or cap on the discharge. They verify the drain pan and drain connection if required. In seismic zones, they check both straps for correct position, proper anchoring to structural members (not drywall anchors), and appropriate tightness. They check clearances to combustibles against the listing requirements. For gas units, they verify the gas supply with a flexible connector and proper shutoff valve. For electric units, they check the circuit amperage and conductor size.
What Contractors Need to Know
T&P valve discharge piping is one of the most consistently violated water heater requirements. Common errors include: using PVC pipe (which can fail at the temperatures a discharging T&P valve produces), reducing the pipe size below the valve outlet diameter, trapping the discharge pipe (creating a loop that prevents discharge), installing a valve on the discharge pipe (expressly prohibited — no valve of any kind, including a shutoff, should be on the discharge pipe), and terminating the discharge pipe into a wall, ceiling, or other concealed location. The discharge pipe must be visible at its terminus so an occupant can see if the valve is discharging.
Seismic strap installation errors occur most often in the strap anchor. Straps anchored to drywall alone will pull free under seismic loads; the strap must be bolted through the drywall into a stud or into blocking installed between studs. Use appropriate hardware — typically a 3/8-inch lag screw into a stud or through-bolt into blocking. In garage installations where the water heater is on a raised platform (required in California and other areas with ignition-source elevation requirements), the strap must be long enough to reach the wall anchor at the correct height above the elevated platform, not above the floor.
For replacement water heater installations, always check whether the existing vent flue is properly sized for the replacement unit. Newer high-efficiency water heaters have lower flue temperatures and may require a different flue material or size than the previous unit. Condensing water heaters vent with PVC, not metal flue. Mixing vent materials from the old and new installation is a common source of inspection failures.
What Homeowners Get Wrong
The most dangerous homeowner error involving water heaters is capping or valving off the T&P discharge pipe. Some homeowners do this because the discharge pipe drips occasionally — which itself is a symptom of a T&P valve that is opening due to excessive pressure or temperature, indicating a problem that needs repair, not suppression. A capped T&P discharge pipe creates the conditions for a catastrophic tank explosion. If your T&P valve is dripping, call a plumber to assess the cause, not to cap the pipe.
Many homeowners are unaware that seismic straps exist or that they are required in their area. In California, the California Energy Commission has published homeowner guidelines on water heater seismic strapping because the requirement is broadly applicable and frequently ignored on older installations. If your water heater was installed more than 15 years ago and you are in a seismic zone, verify that it has compliant strapping. Replacement strap kits are inexpensive and widely available.
A common misconception is that a water heater in the garage does not need a drain pan because the garage floor is concrete. While a drain pan may not be required in all garage installations (depending on whether a failure would damage finishes), the T&P valve discharge pipe requirements still apply fully in a garage installation. The discharge pipe must still terminate within 6 inches of the floor and must not be blocked or valved.
State and Local Amendments
California requires seismic strapping on all water heaters regardless of whether a permit is required for the installation — it is a state law, not just a code requirement. The California seismic strapping standard (two straps, specific positioning, structural anchor requirement) matches IRC 2024’s requirements but applies statewide without exception. California also requires a raised installation platform in garages so that the water heater ignition source (pilot light or electronic igniter) is at least 18 inches above the garage floor, reducing the risk of igniting gasoline fumes that pool at floor level.
Oregon and Washington have adopted seismic strapping requirements that track the IRC seismic zone designations. The Pacific Northwest falls in seismic design category D1 in most populated areas, making strapping mandatory. Some Washington jurisdictions have additional water heater installation requirements due to local seismic risk assessments that exceed the statewide minimum.
When to Hire a Professional
Water heater installation and replacement requires a plumbing permit in virtually all jurisdictions. A licensed plumber must connect the water supply lines, gas line (for gas units), and T&P relief valve discharge. The electrical connection for electric water heaters requires a separate electrical permit and a licensed electrician unless the jurisdiction permits the plumber to make the final wiring connection under the plumbing permit. Tankless water heater installation frequently requires both a plumbing permit and an electrical permit, and sometimes a gas permit for high-BTU gas-fired units. Do not attempt to replace a water heater as a DIY project without first confirming what permits are required in your jurisdiction.
Common Violations Found at Inspection
- T&P discharge pipe made of PVC or CPVC not rated for high-temperature discharge — standard white PVC can fail under relief discharge conditions and is prohibited.
- T&P discharge pipe reduced in size below the 3/4-inch valve outlet diameter, restricting the relief flow path.
- Valve or cap installed on the T&P discharge pipe — strictly prohibited; creates explosion hazard if the T&P valve must open.
- Seismic straps anchored to drywall alone rather than into studs or structural blocking — will pull free under seismic loads.
- No drain pan under a water heater installed on a finished wood-framed floor above living space.
- Drain pan installed but with no drain connection — the pan fills with water and overflows anyway.
- Gas-fired water heater installed without a flexible gas connector, creating a rigid connection that can break during seismic movement or settling.
- Water heater installed in a closet with insufficient combustion air volume for proper burner operation, causing backdrafting of flue gases into the living space.
Key takeaways
The points to remember from this section
- 01 The T&P valve discharge pipe must be copper, CPVC, or galvanized steel (not standard PVC), no smaller than 3/4 inch, and must terminate within 6 inches of the floor with no valve or cap of any kind on the pipe.
- 02 A drain pan with a 3/4-inch drain connection is required under water heaters installed in finished spaces or anywhere a leak would damage the building structure or interior finishes.
- 03 In seismic design categories C, D1, and D2, two straps are required — the upper at one-third tank height from the top, the lower at one-third tank height from the bottom — anchored into structural wall members, not drywall.
- 04 Gas-fired water heaters must maintain manufacturer-listed clearances to combustibles, typically 1 inch on all sides; electric units require a dedicated 30-ampere, 240-volt circuit with 10 AWG copper conductors.
- 05 A capped or valved T&P discharge pipe is one of the most dangerous water heater installation errors — it prevents the relief valve from protecting the tank and can lead to catastrophic failure.
Field Q&A
Common questions about P2801
01 My T&P relief valve drips occasionally. Can I cap the discharge pipe to stop the drip? ▸
02 I’m in California. Does my water heater really need two seismic straps? ▸
03 Does a water heater in the garage need a drain pan? ▸
04 What pipe material is required for the T&P valve discharge? ▸
05 Do I need a permit to replace a water heater with a new one of the same type? ▸
06 What size circuit does an electric water heater need? ▸
Educational reference only. Code text is paraphrased from the ICC model; adopted code may differ due to state or local amendments. Always verify with your Authority Having Jurisdiction before relying on this content for construction.