Call (628) 277-5935Get an Estimate

Water Heater Replacement in San Francisco

Gas tank, heat pump or tankless, installed with the permit, straps, valves, venting and relief piping the code asks for.

Last Updated:

New heat pump water heater on an insulated pad in a San Francisco garage, strapped in its upper and lower thirds, with a relief line running to the outside wall

A like-for-like gas tank replacement typically costs about $2,200 to $4,300 in the Bay Area, with permit, straps and haul-away, and a heat pump water heater conversion about $5,500 to $8,000 for a typical San Francisco-area single-family home. Hilltop Repipe San Francisco offers and manages water heater replacement and installation across San Francisco, Daly City and South San Francisco, for gas tank, heat pump and tankless heaters, with the work carried out by licensed and insured contractors under a city permit.

A water heater swap looks simple from the outside. Most of the work is around the tank: the straps, the valves, the relief line, the vent, and for a heat pump, the space and the wiring. Those items are where San Francisco’s codes are specific, and where two quotes for the same heater differ.

What happens on the first visit

The visit starts at the heater: its fuel, size and age, where it stands, and how it is vented. The gas line feeding it is checked for size, and for a heat pump the electrical panel is checked for space and the route a new circuit would take. The room itself matters, because a heat pump draws heat from the air around it and needs enough of it, and a gas heater needs combustion air. Strapping, the relief valve and its discharge pipe, the cold-supply valve and any expansion tank are noted. In flats, the walk-through records whether one heater serves several units, which the apartment building repiping page covers in more detail.

The owner is asked what comes next: the same fuel, a heat pump or tankless. The result is a written scope and price that names the heater, the venting or wiring, the code items and the permits.

Gas, heat pump or tankless

California’s energy code sets the options for replacing a single-family water heater. A gas or propane heater is still allowed. A heat pump water heater with a storage tank qualifies when it is placed indoors on a rigid insulated surface of at least R-10 and has a communication interface, or when it meets the NEEA Advanced Water Heater Specification Tier 3 or higher. An existing electric-resistance heater has to be replaced with an electric one, resistance, instantaneous or heat pump. Newly installed and accessible hot water pipe has to be insulated.

Each type moves the work to a different place. A gas tank turns on venting and combustion air. A heat pump turns on space, air volume, a condensate drain and the circuit: a 240 V unit usually needs a new circuit, while some 120 V units plug into an existing receptacle. Air District staff, using a Bay Area utility’s heat pump program data, put the average cost of ventilation measures such as a louvered door at about $208 and of space reconfiguration at about $1,287, which shows how much the closet decides. A tankless gas heater turns on the gas line and the vent, covered below. The heat pump vs tankless guide compares the two.

The Bay Area rule for gas water heaters

The Bay Area Air Quality Management District adopted zero-NOx standards on March 15, 2023 that apply when a heater is sold or installed, not to a working heater already in place. Under the rule as adopted, natural gas water heaters under 75,000 Btu per hour, the typical residential tank, must meet the standard if manufactured after January 1, 2027, and larger units from 75,001 Btu per hour up to 2 million, which include tankless heaters and many multifamily and commercial units, after January 1, 2031. Nobody has to remove a working heater. Amendments to the rule have been proposed that would move both dates later and add exemptions for some buildings, and the Air District’s Board decides whether they take effect, so check the rule’s current status before choosing a gas replacement. The rule covers all nine Bay Area counties, so San Francisco, Daly City and South San Francisco alike. The Bay Area gas water heater rule guide follows it in detail.

San Francisco’s own all-electric rule for existing buildings applies to a Major Renovation, which needs both a significant alteration and replacement of heating and hot water for the whole building. Replacing one water heater does not meet that definition on its own, so the city does not ban like-for-like gas water heater replacement in an existing building; DBI decides how the rule applies to a particular project.

Gas or heat pump?

Say where the heater stands and what is near it. The space, the vent and the circuit decide more than the label does.

Code items on every replacement

California requires every residential water heater, new, replacement or existing, to be strapped against earthquakes, with straps in the upper and lower thirds of the tank and the lower strap at least 4 inches above the controls. A seller has to certify compliance to the buyer in writing, and a landlord cannot evict a tenant on the ground that strapping a unit’s heater requires it. South San Francisco’s handout sets the count: two straps up to 52 gallons, three for 75 and four for 100.

The temperature and pressure relief valve needs a discharge pipe the full size of the valve outlet, with no valve or trap in it, running by gravity to an approved point and ending 6 to 24 inches above grade pointing down, never into the drain pan. Where a check valve, backflow preventer or pressure regulator closes the system, an expansion tank keeps heated water from pushing pressure past 80 psi (the low water pressure guide explains how pressure is measured); a non-storage tankless heater does not need one. San Francisco requires a valve on every heater’s cold supply and, where one heater serves several units, valves so each unit’s hot water can be shut off without cutting it to the others.

Location adds its own rules. In a garage, a gas heater’s burner and ignition must be at least 18 inches above the floor, which is why a gas heater in a garage, such as the ground-floor garages of many Sunset and Parkside houses, stands on a platform; South San Francisco lets a flammable-vapor-ignition-resistant model sit 3 inches above grade. A heater mounted outside 7 feet or more above grade needs a permanent platform under San Francisco’s code.

Venting in attached buildings

San Francisco’s mechanical code requires a gas vent, and a through-the-wall mechanical draft vent, to end at least 4 feet from a property line other than a public way. In rowhouses built wall to wall, a side-wall termination often cannot meet that, so a power-vent or tankless heater’s vent goes to the roof or the front of the building, and the price follows. South San Francisco’s handout adds that a tankless heater may require the existing gas piping to be evaluated for higher demand and the vent re-evaluated. A gas line that is too small for a tankless burner is replaced under gas line repiping.

Permits in each city

San Francisco exempts replacement water heaters of up to 100 gallons from a building permit when no new flue is installed, but every one needs a plumbing permit. Most single heater swaps in city records are filed as Category 1P, $290, including heat pump installs. A heat pump on a new circuit adds an electrical permit, $305 for a small residential job. A new flue, a new vent route or moving the heater makes it a building-permit job. Daly City charges $101 to issue a plumbing permit plus $28 per water heater and vent, about $129 for a gas swap. South San Francisco charges $164 for a gas water heater permit and $389 for an electric one, the reverse of the incentive direction. The Daly City and South San Francisco pages cover both cities.

Water and the tank

San Francisco’s water is soft, with average hardness of 62 ppm, so heavy mineral scale is not the usual way a tank fails here. South San Francisco is different: Cal Water blends local groundwater with SFPUC water there, and the groundwater averages 384 ppm, hard to very hard. Scale in tanks and in tankless heat exchangers is a real maintenance factor in South San Francisco, and flushing matters more. The guide to San Francisco water and your pipes covers the chemistry.

Rebates, credits and what has ended

In San Francisco, CleanPowerSF’s Electrify Your Home program pays $50 a month in bill credits for 24 months, $1,200 in all, for a heat pump water heater replacing a gas or electric-resistance heater, with 12 more months for CARE or FERA households. It is open to active CleanPowerSF residential customers who enroll in an electrification rate, install an ENERGY STAR integrated unit, provide proof of purchase, photos and proof the gas appliance was removed or capped, and meet the City’s permit requirements. Credits are first come while funds last, and they are forfeited if gas is reinstalled.

Daly City and South San Francisco are in WestLight Energy’s territory instead, where the rebate is $3,500 for a heat pump water heater replacing a gas, propane or oil heater and $500 for one replacing an electric heater, plus a $1,000 bonus for CARE or FERA households. Existing buildings qualify, and the owner applies within 90 days of installation. The federal energy efficiency tax credit ended for equipment placed in service after 2025, and the statewide single-family incentive program has closed. Rental owners in San Francisco should know the Rent Board treats a water heater as a fixture (the capital improvement guide covers passthroughs), amortized over 10 years in buildings of one to five units and 7 years in buildings of six or more.

Replacing the heater during a repipe

A whole-house repipe reconnects the water heater with a cold-supply valve and compliant straps whether or not the heater is replaced. When the heater is near the end of its life, replacing it in the same shutdown saves a second one. The repipe cost guide lists both ranges side by side, and a heater that fails without warning is handled under emergency pipe repair.

What's included

  • Removal and haul-away of the old heater
  • A new gas, heat pump or tankless heater as the scope names
  • Seismic straps in the upper and lower thirds of the tank
  • A valve on the cold supply, and per-unit valves where one heater serves several units
  • A temperature and pressure relief valve with full-size discharge piping to an approved point
  • An expansion tank where a check valve, backflow preventer or pressure regulator closes the system
  • Vent and combustion air checked for a gas heater; a vent route that meets the property-line rule
  • Gas line sizing checked for a tankless heater or a larger burner
  • For a heat pump: an indoor location, the insulated pad, the condensate drain and the circuit
  • Insulation on newly installed and accessible hot water pipe
  • Plumbing permit, plus an electrical permit where a new circuit is added, and city inspection

Gas tank, heat pump or tankless

Gas tankHeat pumpTankless gas
Typical price$2,200 to $4,300 (typical Bay Area range)$5,500 to $8,000 (typical San Francisco-area range)No published local range; priced from the gas line and vent
What decides the installVenting, combustion air, straps and platformSpace, air volume, a 240 V or 120 V circuit, condensateGas line size, vent route, condensate
Permits in San FranciscoPlumbing 1P, $290Plumbing 1P, $290, plus $305 electrical for a new circuitPlumbing; a new flue or relocation adds a building permit
Expansion tankWhere the system is closedWhere the system is closedNot required for a non-storage heater
Regional air ruleZero-NOx standard applies to new units by manufacture dateNot affectedLarger units fall under a later zero-NOx date
IncentivesNot covered by the heat pump programsCleanPowerSF credits in San Francisco; WestLight rebate in San Mateo CountyNot covered by the heat pump programs

Related resources

How a repipe runs

  1. The call

    Describe the building

    Building type, floors, number of baths and units, the pipe you can see in the garage or basement, and what you have noticed.

  2. Walk-through

    Map the pipe

    The supply is traced from the meter: pipe map, wall types, the main valve, the water heater and where access is easiest.

  3. Scope

    Written scope and price

    Material, layout, every planned opening, the permit and who patches what, on paper before work is booked.

  4. The work

    Permit, new lines, pressure test

    The permit is filed, new lines are run while the old ones still serve, fixtures are switched over and the system is pressure tested.

  5. Sign-off

    Inspection, then patching

    The city inspector signs off with the pipe still visible. Then the openings are closed.

What this work looks like

Replace a water heater

Say what the heater is now, where it stands and what you want next: gas, heat pump or tankless. The venting, wiring and permits come back in a written scope.

Water heater replacement questions

Does replacing a water heater in San Francisco need a permit?

Yes, a plumbing permit. San Francisco exempts replacement heaters of up to 100 gallons from a building permit when no new flue is installed, but they still need a plumbing permit, usually Category 1P at $290. A heat pump unit on a new circuit adds an electrical permit, $305 for a small residential job, and a new flue or relocation brings a building permit.

Can a gas water heater still be replaced with another gas heater in San Francisco?

Yes, in an existing home. California's energy code still lists a gas water heater as a replacement option for a single-family house, and swapping one heater is not by itself a Major Renovation under the city's all-electric rule. The Bay Area air district's zero-NOx standard applies to new gas heaters by manufacture date, and amendments to its dates have been proposed, so check the rule's current status before buying.

How many seismic straps does a water heater need?

At least two, 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. South San Francisco's handout sets the count by size: two straps up to 52 gallons, three for 75 and four for 100. California applies the strapping rule to existing residential heaters too.

Which heat pump water heater incentive applies in Daly City or South San Francisco?

WestLight Energy's, not CleanPowerSF's. Daly City and South San Francisco are in San Mateo County, where WestLight offers $3,500 for a heat pump water heater replacing a gas, propane or oil heater, or $500 when it replaces an electric one. The owner applies within 90 days of installation. CleanPowerSF's credits are for San Francisco customers only.

What decides the price of a water heater replacement?

The type and size of heater, where it stands, the vent route for gas, the circuit and panel space for a heat pump, the gas line for tankless, and code items such as straps, relief piping, an expansion tank or a garage platform. Typical ranges are $2,200 to $4,300 for a like-for-like gas tank in the Bay Area and $5,500 to $8,000 for a San Francisco-area heat pump conversion.

Related services

New black iron gas piping with a test gauge and capped appliance valves along a San Francisco garage wall beside the gas meter

Gas line repiping

Customer-side gas piping from the meter to each appliance, replaced, tested in front of the inspector and handed back to PG&E to turn on.

Gas line repiping
Garage ceiling of a San Francisco house with an old threaded galvanized main beside new red and blue PEX lines clipped to the joists

Whole-house repiping

Every hot and cold supply line from the main valve to each fixture, in PEX or copper, tested and inspected.

Whole-house repiping
Gloved hand turning a blue-handled ball valve to close the copper water main where it rises from the floor of a San Francisco garage

Emergency pipe repair

Burst pipes and active leaks, 24/7: stop the water, make the repair, then the permit and paperwork.

Emergency pipe repair

Get an estimate for water heater replacement

Tell us the address, the type of building and what you are seeing. You get a written scope and a price before anything is opened.

Hilltop Repipe San Francisco946 Geneva Ave, San Francisco, CA 94112office@hilltoprepipesanfrancisco.comSan Francisco, Daly City and South San Francisco
Get an estimate

Tell us about the building

Step 1 of 2

The building and the work
Call (628) 277-5935Get an Estimate