Home › Guides › Water heater replacement

Guide

Water heater replacement in California: what the code requires

A water heater swap in California needs a permit before the old one comes out, two earthquake straps, a T&P drain pipe that ends where you can see it, and a final inspection before anything gets closed in.

The short answer

Pull the permit before the old heater is disconnected, even for a like-for-like swap (CPC 502.1). Then the new heater needs earthquake straps in the upper third and lower third of the tank, with the lower strap at least 4 inches above the controls (CPC 507.2). It needs a T&P relief valve with a drain pipe that runs downhill to a spot you can see (CPC 608.5), and an expansion tank wherever a check valve or pressure regulator makes the system closed (CPC 608.3). Gas heaters in a garage have to sit with the burner at least 18 inches off the floor unless the heater is rated flammable vapor ignition resistant (CPC 507.13). The inspector looks at all of it before the job is signed off (CPC 503.2).

Quick checklist

  • Permit pulled first
  • Two seismic straps, lower one 4 inches above the controls
  • T&P valve with an unvalved, untrapped drain pipe
  • Expansion tank if the system is closed
  • Drain pan if the heater is in an attic or over a finished ceiling
  • 18 inch burner height in a garage, plus a barrier against vehicles
  • Combustion air, vent and clearances checked
  • Nothing covered until the inspector approves it

Permit and inspection come first

The code makes it unlawful to install, remove or replace a water heater without a permit from the building department (CPC 502.1). The key word is first. If the heater is already out when the permit gets pulled, you're behind. A separate permit is the rule for each building (CPC 104.1), so a detached garage or guesthouse with its own heater is its own permit.

The final inspection happens after the work is in. Nothing about the appliance can be covered or concealed until it's approved (CPC 503.2). That means no box built around the vent, no ceiling closed over a pan drain, and no drywall patch over a shutoff until the inspector has seen it. The inspector and your city's adopted edition of the code have the final word.

Earthquake straps

California wants water heaters braced against sideways movement in a quake. The code puts one strap in the upper third of the tank and one in the lower third, and the lower strap has to stay at least 4 inches above the controls so it isn't crossing the gas valve or thermostat (CPC 507.2). The rule covers replacement heaters and existing residential ones, so an older heater that never got strapped is out of compliance too.

Straps go into framing or an approved anchor, not drywall. The code doesn't dictate strap size or fasteners, so the strap kit and the heater maker's instructions fill that gap.

Pressure, temperature and the expansion tank

Every storage heater needs a combination temperature and pressure relief valve (CPC 608.3). The valve's discharge capacity can't be less than the heater's input rating, and no shutoff valve can sit between it and the heater or on its discharge pipe (CPC 504.6). The pressure setting has to be above your house pressure and no higher than 150 psi (CPC 504.4).

Heating water makes it expand. If the system has a check valve, a backflow preventer or a pressure regulator, that expansion has nowhere to go, so the code calls for an approved expansion tank on the building side of that device (CPC 608.3). Tankless units are excepted. A T&P valve that drips every time the heater fires usually means a missing or dead expansion tank, not a bad valve. If street pressure is over 80 psi, a regulator and an expansion tank downstream of it are both required (CPC 608.2). See our guide to high water pressure.

The T&P drain pipe

This is the pipe off the side of the heater, and it's the one inspectors check first. It has to be full size, run downhill the whole way, have no valve and no trap, and end through an air gap into the drainage system or outside, pointing down, between 6 inches and 2 feet above the ground. The end can't be threaded so nobody can cap it, and it can't dump into the heater's drain pan. It also has to end where someone will notice water coming out (CPC 608.5).

Drain pan, garage and attic installs

A watertight pan at least 1-1/2 inches deep, with a drain of at least 3/4 inch running to a visible spot, goes under a heater in an attic, over a finished ceiling or floor assembly, or anywhere a leak would do damage (CPC 507.5).

In a residential garage, the burner, ignition device and switches have to be at least 18 inches above the floor, because gasoline vapors settle low. A heater with the flammable vapor ignition resistant listing is exempt from the height rule, but still has to be protected from vehicle damage (CPC 507.13).

In an attic or crawl space, the access opening and passageway have to be at least 22 by 30 inches and bigger than the largest piece of the heater, with solid flooring and a level work platform (CPC 508.4). Measure the hatch before you order the heater. Everywhere else, leave at least 30 inches of working space (CPC 507.25).

Combustion air, venting and connectors

A gas heater pulls air from the room, so the room has to be big enough. The standard method asks for 50 cubic feet per 1000 Btu/h of total appliance input (CPC 506.2), so a 40,000 Btu/h heater alone needs 2,000 cubic feet. A hall closet rarely gets there. The fix is permanent openings to a bigger space (CPC 506.3) or to the outdoors, or a direct-vent heater that brings its own air.

Plastic tubing can't be used within the first 18 inches of piping off the heater, and flexible metal connectors are limited to 24 inches (CPC 604.13). The cold supply gets a full-port shutoff valve at or near the heater (CPC 606.2).

Sizing the new heater

Storage heaters are sized by first-hour rating, not tank size. A house with 2 to 2.5 baths and 3 bedrooms needs a first-hour rating of at least 62 gallons (CPC 501.1). The number is on the Energy Guide label.

What you can safely check yourself

You can look at the heater without touching anything. There should be two metal straps, one high and one low. The pipe off the side should have no handle or shutoff on it and should end somewhere visible. The area in front should be clear of boxes, and any vents to the outside should be open. Water or rust stains under the tank mean it's time to call. Don't cap or plug a dripping relief pipe, and don't turn the thermostat past the manufacturer's setting.

Questions

Do I need a permit to replace a water heater with the same model?

Yes. The code covers install, remove or replace, so a like-for-like swap counts (CPC 502.1). Ask your building department how it takes applications.

Why does the pipe off my water heater drip?

The relief valve is opening for a reason. High house pressure with no expansion tank is the most common cause (CPC 608.3). Don't cap the pipe. Have a plumber check the pressure and the tank.

Can I put a gas water heater in the garage?

Yes, with the burner at least 18 inches above the floor unless it's rated flammable vapor ignition resistant, and with protection from vehicles (CPC 507.13).

Does a tankless heater need an expansion tank?

Not under the code. Listed instantaneous heaters are excepted from both the expansion tank and the T&P requirement (CPC 608.3). Venting, gas sizing and combustion air still apply.

When to call

"Water heater installation & replacement" is on our service and repair list, and "Water heater installation" is on our new construction list. If your heater is leaking, strapped wrong, in a tight closet or in an attic, call or text (760) 912-9831. Hoffman & Sons Plumbing is a licensed C-36 Plumbing Contractor, CSLB #1154157, serving North County San Diego and South Orange County.

Give us a call

Call (760) 912-9831