Replacing a standard 40–50 gallon tank water heater typically costs about 1,200 to 3,500 USD installed, depending on fuel type, brand, local code updates and access. Gas tankless units often cost 3,000 to 6,500 USD installed because of gas line and venting work, and heat pump water heaters often 2,500 to 5,500 USD.
Quick answers
- Electric tank (40–50 gal): often 1,200–2,800 USD installed.
- Gas tank (40–50 gal): often 1,500–3,500 USD installed.
- Gas tankless: often 3,000–6,500 USD.
- Heat pump water heater: often 2,500–5,500 USD.
- Code updates (expansion tank, drain pan, seismic straps, venting) often add to the bill.
Typical installed prices
| Type | Typical installed range |
|---|---|
| Electric tank, 40–50 gal | 1,200–2,800 USD |
| Gas tank, 40–50 gal | 1,500–3,500 USD |
| Tank, 65–80 gal | 2,000–4,500 USD |
| Gas tankless (whole house) | 3,000–6,500 USD |
| Electric tankless (whole house) | 2,000–5,000 USD + possible electrical upgrades |
| Heat pump (hybrid), 50–80 gal | 2,500–5,500 USD |
Prices vary widely by region and installation complexity.
What’s usually included
- Removal and disposal of the old heater
- New water heater
- New connectors, valves and fittings as needed
- Venting connection (gas)
- Code-required updates: expansion tank, drain pan, seismic straps (in some states), T&P discharge pipe
- Permit (in many areas)
What can add to the cost
- Switching to tankless: larger gas line, new venting, condensate drain, possibly a new electrical outlet.
- Switching to heat pump: a dedicated 240V circuit and enough air space or ducting.
- Moving the location.
- Attic or tight-closet installations.
- Water damage repairs from a failed tank.
- Upgrading capacity (larger tanks may need different venting or gas supply).
Repair instead?
Small repairs (thermocouple, element, thermostat, valves) are usually worth doing on heaters under about 8 to 10 years old. A leaking tank body always means replacement. See How Long Do Water Heaters Last? and Water Heater Leaking from the Bottom.
Ways to save
- Replace before it fails, so you can compare quotes and avoid emergency rates and water damage.
- Compare at least three quotes that list brand, model, capacity and warranty.
- Check utility rebates, especially for heat pump water heaters.
- Choose the right size (What Size Water Heater Do I Need?); bigger isn’t always better.
- Consider operating cost, not just price: Tankless vs Tank vs Heat Pump.
DIY replacement?
Experienced DIYers sometimes replace electric tanks, but gas water heaters involve gas connections and venting that affect safety, and most jurisdictions require permits. For gas units, hire a licensed plumber.
Frequently asked questions
How long does water heater replacement take?
A like-for-like tank replacement often takes 2 to 4 hours. Tankless conversions can take a full day.
Do I need a permit?
Many cities and counties require one, especially for gas water heaters. Your plumber typically pulls it.
How long is a water heater warranty?
Tank warranties are commonly 6 to 12 years on the tank; labor warranties are shorter. Tankless heat exchangers often carry longer warranties.
Related guides
- No Hot Water? How to Troubleshoot
- Furnace Replacement Cost in 2026: Gas, Electric and High-Efficiency
- AC Replacement Cost in 2026: Prices by Size and Efficiency
Prices are typical ranges for planning purposes and vary by region, home and contractor. Always get written quotes.
