Water heater code isn't the most exciting topic — until a leak floods your garage, an inspection fails, or an insurance claim gets denied because the install wasn't permitted. In California, water heater installations are governed by the 2022 California Plumbing Code and Title 24 energy standards, and the rules are stricter than many homeowners realize. This is a plain-English guide to what California requires, why each rule exists, and what it means for a Brentwood, CA home.
The short version: a permit is required for essentially every install, and a handful of safety upgrades are mandatory. A licensed installer should handle all of it for you. Here's what "all of it" actually includes.
You Need a Permit — Every Time
This surprises people: California requires a plumbing permit for every water heater installation or replacement, including a simple like-for-like tank swap. The city or county then performs a final inspection to confirm the work meets code. Skipping the permit can cause problems when you sell the home or file an insurance claim, and it leaves safety upgrades unverified.
When you hire a licensed contractor, pulling the permit and scheduling the inspection is their job, not yours. Our installation and replacement service always includes the permit and inspection.
Seismic Strapping
California is earthquake country, so tanks must be braced. Code calls for two straps — one around the upper one-third of the tank and one around the lower one-third — with the lower strap at least 4 inches above the controls. The straps must be mechanically anchored into wall studs, not just screwed into drywall. Tankless units, which don't store water, are generally exempt because there's no heavy water-filled tank to topple.
The TPR Valve and Discharge Line
Every tank has a temperature-and-pressure-relief (TPR) valve — the most important safety device on the unit. If pressure or temperature climbs dangerously, the valve opens to vent it. Code requires a proper discharge pipe running from the valve down to terminate roughly 6–24 inches above the floor or grade, so any release is directed safely downward. A missing, capped, or improperly routed discharge line is one of the most common code violations we find. We explain the danger it prevents in Can a Water Heater Explode?.
Garage and Elevation Rules
Gas water heaters installed in a garage traditionally must have their burner or ignition source at least 18 inches above the floor, so gasoline vapors (which are heavier than air and pool low) can't be ignited. Many modern units are FVIR-listed (flammable-vapor-ignition-resistant), which can change this requirement. A code-aware installer knows which rule applies to your specific unit and location.
Drain Pans
For installations in an attic, on an upper floor, or anywhere a leak would cause property damage, code requires a drain pan beneath the unit, piped to drain safely. It's cheap insurance against the slow leak that ruins a ceiling. If your unit is in living space rather than an open garage, expect this.
Expansion Tanks and Closed Systems
When a home has a pressure regulator or backflow preventer on the main, it becomes a "closed system" — water can't push back into the city main as it heats and expands. That trapped expansion spikes pressure and stresses the tank and plumbing. Code requires a thermal expansion tank on closed systems, and it's recommended whenever static pressure exceeds 80 PSI (a pressure regulator helps there too). We break down exactly when you need one in Do I Need an Expansion Tank?.
Gas Line and Pipe Insulation
Proper combustion needs proper gas supply: code generally calls for a minimum 3/4-inch gas line for adequate capacity, which matters especially for high-demand units. A tankless conversion often requires upsizing the existing line. Code also requires insulating roughly the first five feet of the hot and cold water lines at the heater to reduce heat loss.
Title 24 Energy Standards
California's Title 24 sets minimum energy-efficiency requirements for water heaters. High-efficiency units — tankless and hybrid heat-pump models — meet and exceed these standards and may qualify for utility rebates. We mention rebates generally here; programs and amounts change, so confirm current figures with your utility rather than trusting a sales pitch.
Why This Matters in Brentwood
Brentwood's housing stock is relatively new, but plenty of mid-1990s-to-2000s installs predate current strapping and expansion-tank enforcement, and DIY or unpermitted swaps leave gaps. The inland heat and hard water add stress that makes code-correct TPR routing and expansion control more than a formality. Pulling a permit also creates a clean paper trail that protects you at resale and on insurance claims, as we discuss in Does Homeowners Insurance Cover Water Heater Damage?.
Frequently Asked Questions
Do I really need a permit to replace my water heater in California?
Yes. California requires a plumbing permit for every water heater installation or replacement, including a like-for-like tank swap, followed by a city or county inspection. A licensed contractor handles the permit and inspection for you.
What are the seismic strapping requirements?
Tanks need two straps — one around the upper third and one around the lower third of the tank, with the lower strap at least 4 inches above the controls — anchored into wall studs. Tankless units that store no water are generally exempt.
When does California code require an expansion tank?
An expansion tank is required when your home is a closed system, meaning it has a pressure regulator or backflow preventer on the main, and is recommended when static water pressure exceeds 80 PSI.
What happens if my water heater was installed without a permit?
Unpermitted work can complicate a home sale and may give an insurer grounds to question a claim, and it leaves required safety upgrades unverified. A licensed installer can install a new unit correctly and permitted, restoring a clean record.
Does code require a drain pan?
A drain pan is required for installations in attics, upper floors, or any location where a leak could cause damage, and it must be piped to drain safely. Open-garage installs at floor level may not require one, depending on the situation.
Need help from a licensed Brentwood plumber?
We provide free on-site assessments and upfront quotes — and we pull the permit and handle the city inspection for you.
