I'm a
What California Requires When You Replace a Water Heater
Back to blog
Water Heaters September 11, 2026 9 min read

What California Requires When You Replace a Water Heater

By Ed Cota · CA C-36 Plumbing Contractor, Lic. #1102487

Updated September 2026 · Originally published September 11, 2026

In California, every water heater replacement has to meet the plumbing code — even a like-for-like swap of the same size and fuel. Five requirements matter most: two seismic straps on the tank, an expansion tank if your home has a pressure regulator, backflow preventer, or check valve, a temperature-and-pressure (T&P) relief line routed safely down toward the floor, correct venting and combustion air on gas units, and a drip pan with a drain when the heater sits over living space. Each rule exists because of a specific failure: tanks that tip in an earthquake, pressure that has nowhere to go, scalding discharge, and carbon monoxide. Those requirements are also why a tank that costs a few hundred dollars at a big-box store becomes a much larger installed job — the tank itself is roughly a third to half of the cost, and the code-required parts and labor make up the rest.

Why does California require seismic straps on water heaters?

A full 40- or 50-gallon tank weighs several hundred pounds and is top-heavy. In an earthquake, an unstrapped tank can tip over, snap its gas line, and start a fire and a flood at the same time. California requires two straps: one in the upper third of the tank and one in the lower third, with the lower strap at least 4 inches above the controls, both anchored into the wall framing.

When is an expansion tank required?

When water heats up, it expands. In older homes that expansion could push back into the city line. Most modern homes have a pressure regulator (PRV), backflow preventer, or check valve on the water line, which makes the plumbing a “closed” system — the expanding water has nowhere to go, so pressure spikes every time the heater runs.

An expansion tank gives that pressure somewhere to go. Without one, you'll often see the T&P valve dripping, and the constant pressure cycling stresses the tank, faucets, and toilet fill valves.

Where does the T&P relief valve line have to go?

The T&P valve is the water heater's last line of safety — it opens if the water gets too hot or the pressure gets too high, and it can release scalding water or steam. Code requires its discharge pipe to run downward, ending within about 6 inches of the floor, with no threads and no cap on the end. The point is that if it ever discharges, it does so safely at floor level, where it won't hit anyone and can't be blocked.

If your T&P line is dripping, don't cap it. A dripping T&P valve is either doing its job (usually a pressure problem that an expansion tank or PRV fixes) or has failed — either way, it needs diagnosing.

Do I have to switch to a heat pump water heater under Title 24?

California's 2025 Energy Code (Title 24), which took effect January 1, 2026, makes heat pump water heaters the default for new residential construction in most of the state's climate zones. A heat pump water heater moves heat from the surrounding air into the water, like a refrigerator running in reverse, and uses roughly a third to a quarter of the electricity of a standard electric tank.

If you're replacing a water heater in an existing home, you generally have a choice of type. What fits depends on your space — heat pump units need enough air volume around them, produce condensate, and may need a dedicated electrical circuit. We'll tell you what applies to your house before you buy anything.

Should I repair my water heater or replace it?

Where the problem is tells you almost everything:

What you're seeingUsually meansRepairable?
No hot water (gas)Pilot out, bad thermocouple, or gas valveUsually yes
No hot water (electric)Burned-out element or thermostat, or a tripped resetUsually yes
Runs out of hot water fastSediment, a broken dip tube, or one element outOften yes
Popping or rumbling soundsSediment baked onto the bottom of the tankEarly on, a flush can help
Rotten-egg smell in hot waterThe anode rod reacting with bacteria in the waterYes — swap the anode
Rusty or brown hot waterThe tank is corroding from the insideUsually time to replace
Leak from the top fittingsA loose or failed connectionOften yes
Leak from the bottom of the tankThe tank has corroded throughNo — replace it

The honest rule of thumb: if the heater is under about eight years old and a part has failed, repair it. If it's ten or more years old and leaking from the tank itself, replacement is the only fix that lasts.

How long do water heaters last on the Central Coast?

Typical lifespans: gas tank, 8–12 years; electric tank, 10–15; tankless, 15–20 or more; heat pump, 10–15.

Hard water — which describes most of the Central Coast — shortens that. Minerals settle to the bottom of the tank as sediment and build up as scale inside tankless heat exchangers. Three habits add years:

  • Flush the tank once a year to clear sediment.
  • Check the anode rod every 3–5 years. It's a sacrificial rod that corrodes so the tank doesn't; replacing it on schedule is the single best way to extend a tank's life.
  • Descale a tankless unit annually on hard water.

Why does replacing a water heater cost more than the tank?

Because the tank is only part of the job. A replacement includes removing and hauling away the old unit, new seismic straps, an expansion tank where required, a code-compliant T&P discharge line, gas and venting connections checked for safety, and a drip pan and drain where the heater sits over living space. Switching from a tank to tankless adds more: usually a larger gas line, new venting, and a condensate drain.

A lower quote that leaves any of those out isn't cheaper — it's a job that isn't up to code or fails early.

Common questions

Why is my water heater making popping sounds?

That's sediment. Minerals settle on the bottom of the tank, and water trapped underneath boils and pops through the layer as the burner heats it. On a younger tank, a flush can help. On an older one, the sound means the tank has been working harder for years.

Why does my hot water smell like rotten eggs?

The anode rod is reacting with sulfate bacteria in the water. It's fixable — the rod is swapped for a different alloy and the tank is sanitized. It's not a sign the heater is failing.

Why is my T&P valve dripping?

Either the valve is doing its job because pressure or temperature is too high — often fixed with an expansion tank or pressure regulator — or the valve itself has failed. Don't cap the line; have it diagnosed.

What should I do if I smell gas near my water heater?

Leave the house, don't flip any switches, and call 911 or the gas company from outside. Don't try to relight or diagnose it yourself.

Thinking about replacing your water heater? We handle the install, the code requirements, and haul-away across San Luis Obispo County. Call (805) 788-8444 or see our water heater service.

See our water heater service

About the author

Ed Cota is the owner of Modern Perspective Plumbing, a family-owned, father-and-son plumbing company in Grover Beach, CA. He holds California C-36 license #1102487.

The service behind this guide

Water heater repair & replacement

Talk to a licensed Central Coast plumber.

Serving San Luis Obispo and Santa Barbara Counties. Same-day appointments available.