How much does it cost to replace a water heater?
HomeGuide's 2026 figures put a standard tank replacement at $600 to $3,100 installed, with gas tanks at $900 to $3,100 and electric tanks at $600 to $1,800. Angi's 2026 data shows an average of $1,334. These are national numbers; Sacramento quotes vary with the permit, code updates and how easy the tank is to reach.
Switching types costs more. A tankless retrofit runs $1,400 to $5,600 (HomeGuide), and SMUD customers paid a median $6,210 for gas-to-electric heat pump water heater installs before rebates. See the cost guide on this site for add-ons like expansion tanks, venting and new circuits.
What size water heater do I need?
Size a tank by its first-hour rating, not just its gallons. The first-hour rating is how much hot water the heater can deliver in one hour starting full. DOE's sizing method is to estimate your busiest hour of hot water use, then pick a model whose first-hour rating meets or beats it.
DOE's building science worksheet uses these averages: 20 gallons per shower, 7 per dishwasher load, 25 per top-loading washer load, 15 per front-loader load and 3 for hand dishwashing. A morning with two showers and a dishwasher run adds up to 47 gallons, so that household needs a first-hour rating of at least 47. As a rough guide, HomeGuide describes 40-gallon tanks for 1 to 2 people and 50-gallon tanks for 3 to 4 people. ENERGY STAR suggests starting from your current tank size and going larger if your household is growing.
What does a code-compliant water heater replacement include in California?
A permitted replacement is inspected against the California Plumbing Code and the California Energy Code. The plumbing code items below come from published excerpts of the code; the 2025 Energy Code took effect January 1, 2026.
- Earthquake straps in the upper third and lower third of the tank, at least 4 inches above the controls; Health and Safety Code 19211 applies this to existing residential water heaters too.
- A temperature and pressure relief valve drain run to the outside of the building, no smaller than the valve outlet.
- A listed thermal expansion tank, or approved device, where the water system has a check valve, backflow preventer or other normally closed device; Roseville's building division calls for one on water heating systems.
- In garages, gas burners and ignition at least 18 inches above the floor unless the heater is listed as flammable-vapor ignition resistant, plus protection from vehicles.
- A drain pan at least 1.5 inches deep with a 3/4-inch drain where a leak would damage an attic, ceiling or floor assembly.
- A sediment trap on the gas line at the heater, and proper venting and combustion air for gas units.
- Under the 2025 Energy Code, a new gas water heater or a heat pump water heater meeting NEEA Tier 3 or higher; an existing electric resistance heater may be replaced with an electric storage, electric tankless or heat pump water heater. Accessible hot water pipes must be insulated.
Can I switch to a different kind of water heater when I replace mine?
Yes, but price the extra work. Going from gas to a heat pump water heater often needs a dedicated circuit, which HomeGuide puts at $250 to $900, and sometimes a panel upgrade at $850 to $1,700. SMUD adds a $2,000 Go Electric bonus for panel work on gas-to-electric conversions. Going to gas tankless often means a larger gas line, $350 to $750 per HomeGuide, and new venting. SMUD lists where the heater sits relative to the panel, panel capacity and moving the water heater as the biggest price drivers for heat pump installs.
How long does it take to install a water heater?
HomeGuide says a standard tank replacement takes 2 to 6 hours, while a tankless installation takes 6 to 10 hours. Add the permit inspection your city schedules afterward. ENERGY STAR notes a heat pump water heater may take longer to install and may need to be ordered, one more reason to plan before the old tank fails. This Old House puts removal of the old unit at $100 to $300 when billed separately.
| Factor | Tank (gas or electric) | Tankless | Heat pump (hybrid) |
|---|---|---|---|
| Typical installed cost, national | $600–$3,100 | $1,400–$5,600 | $2,000–$4,600 |
| Sacramento data point | None published | None published | SMUD median $6,210 gas-to-electric; $5,171 electric-to-electric |
| Expected life (DOE) | 10–15 years | More than 20 years | Has a storage tank; DOE gives no separate figure |
| Efficiency | Baseline | Gas tankless 24%–34% more efficient for homes using 41 gallons a day or less | 2–3 times as efficient as standard electric; ENERGY STAR says 70% less electricity |
| Install needs | Vent (gas), straps, expansion tank | Often a 3/4-inch gas line and new vent; minimum flow to fire | Space at 40°F–90°F, about 1,000 cubic feet of air, condensate drain, electrical |
| 2026 rebates | None from SMUD | None from SMUD | SMUD up to $4,000; Roseville Electric up to $2,500 |
Need a water heater plumber in the Sacramento area?
One call connects you with an independent local water heater plumber. Calling is free; you agree on the price and the work directly with the provider.
Frequently asked questions
Do I need a permit for a like-for-like water heater replacement?
Do I need an expansion tank with my new water heater?
Should I get a bigger water heater than I have now?
Can I replace a gas water heater with another gas water heater in 2026?
Sources
- How much does water heater installation or replacement cost? (2026) — HomeGuide
- What is the labor cost to install a water heater? (2026) — HomeGuide
- How Much Does Water Heater Replacement Cost? [2026 Data] — Angi
- Appliance rebates: heat pump water heater (rebate table, program requirements, median installation costs) — SMUD
- DHW First Hour Rating tool — Building America Solution Center (Pacific Northwest National Laboratory, DOE)
- Decision Guidance for Heat Pump Water Heaters, Level 3 (sizing worksheet, recovery, condensate) — U.S. Department of Energy, Building Science Education Solution Center
- Heat Pump Water Heaters — ENERGY STAR
- New and Replacement Water Heater Installations: Selected excerpts from the California Plumbing Code — San Bernardino County Land Use Services, Building and Safety Division
- Water Heater Installations (California Plumbing Code excerpts, incl. CPC 507.5 drainage pan) — City of Yorba Linda Building & Safety
- Health and Safety Code section 19211 (water heater seismic bracing) — State of California, via california.public.law
- Thermal Expansion Tank Requirements for Water Heaters — City of Roseville Development Services, Building Division
- Energy Code Support Center: 2025 Single-Family Residential Water Heater Alterations — California Energy Commission
- 2025 California Energy Code Fact Sheet — California Energy Commission
- Water Heater (Residential or Commercial): Fees by Project — City of Sacramento Community Development
- Water heater installation: permits, timing, gas vs electric (FAQ) — HomeGuide
- License Requirement for Minor Work Increases from $500 to $1,000 (CSLB #24-07, Dec. 31, 2024) — Contractors State License Board (CSLB)
- How Much Does Water Heater Installation Cost? (2026) — This Old House
- Energy Saver Guide: Tips on Saving Money and Energy in Your Home (2022) — U.S. Department of Energy
- Measure Guideline: Transitioning to a Tankless Water Heater (Building America, 2012) — U.S. Department of Energy / IBACOS