Home › Services › Service & Repair › Water Heater Installation and Replacement
New Construction and Service & Repair
Water Heater Installation and Replacement
A water heater swap is more than a connection. The code asks for a permit, earthquake strapping, a relief valve with a proper drain line, combustion air and venting for fuel-burning units, and a final inspection before anything is covered up.
What it is
This page walks through a typical storage-type water heater. Whether the heater is new construction or a replacement of an old one, a like-for-like changeout still counts as a replacement and still needs a permit (CPC 502.1).
Where a heater sits matters as much as what it is: closets with the right door, a pan in an attic, height above a garage floor, and working room all come from the code (CPC 504.1, CPC 507.5, CPC 507.13, CPC 507.25).
How the work goes on a job
- Look at the location and what's there now: space, access, vent path, gas or electric supply and the drain path for the relief valve.
- Pull the permit, then shut off and drain the old unit and remove it (CPC 502.1).
- Set the new heater with the clearances and platform or pan its location needs, and strap it in the upper and lower thirds of the tank, with the lower strap at least 4 inches above the controls (CPC 507.2).
- Connect the water: a fullway shutoff on the cold supply near the heater (CPC 606.2), listed flexible connectors, and no plastic tubing in the first 18 inches off the heater (CPC 604.13).
- Install the temperature and pressure relief valve with a full-size, unvalved discharge line that ends where it can be seen (CPC 504.6, CPC 608.5). Add an expansion tank where the system is closed (CPC 608.3).
- On a fuel-burning heater, connect gas with a shutoff valve within 6 feet and a sediment trap (CPC 1212.6, CPC 1212.9), and check combustion air and the vent (CPC 506.2, CPC 509.6).
- Fill, purge air, check every joint, then call for the final inspection (CPC 503.2).
Inspections and tests the code calls for
The local building department inspects a water heater after it's installed, and no part of the appliance or its vent can be covered or concealed until it's approved (CPC 503.2). Gas piping to the heater has its own rough and final inspections (CPC 1203.3). The relief setting has to sit above the water service pressure and no higher than 150 psi (CPC 504.4).
Keep the signed-off permit with your house records.
What you can safely check yourself
- Look for two metal straps around the tank, one high and one low, anchored to the wall or framing (CPC 507.2).
- Check the pipe off the side of the heater. If it's dripping, the relief valve is opening for a reason, often high pressure or a missing expansion tank. Never cap, plug or thread anything onto it.
- If your heater is in an attic or on an upper floor, check that it sits in a pan with a drain pipe, and look at where that pipe ends (CPC 507.5).
- Don't turn the thermostat above the maker's setting, and don't store things around the heater.
- If you smell gas, leave the building and call the gas utility or 911 from outside.
Who it's for
Homeowners whose heater is leaking, past its life or undersized, builders and general contractors who need heaters set during construction, and anyone remodeling a space that houses one.
Where this sits on our service lists
On our New Construction list: “Water heater installation”.
On our Service & Repair list: “Water heater installation & replacement”.
Call or text
Call (760) 912-9831 or text (760) 912-9831 to talk through your project.
The inspector and the city's adopted edition have the final word on every code point on this page. The code library here summarizes the 2025 California Plumbing Code, effective at the start of 2026, in our own words.