Water heater replacement cost for a standard 40- or 50-gallon tank usually runs about $600 to $3,100 installed, according to HomeGuide, while a tankless unit costs $1,400 to $5,600. The national averages range from $1,256 (Angi) to $1,950 (This Old House, using Home Depot data). This guide compares types and tank sizes, lists the code upgrades and extras that often appear on the bill, explains how long each type lasts, and includes a checker to help you decide whether to repair or replace.
The short answer
- Tank (40 to 50 gallons): $600 to $3,100 installed (HomeGuide); Angi’s national average for all replacements is $1,256.
- Tankless: $1,400 to $5,600 (HomeGuide). Hybrid heat pump: $2,000 to $4,600.
- Lifespan: tanks last about 8 to 12 years, up to 15 with maintenance; tankless 15 to 20 years (HomeGuide).
- Rule of thumb: HomeGuide suggests replacing a heater over 10 years old, or when a repair costs more than half of a new one.
Repair, or pay the water heater replacement cost?
Answer five questions. The scoring follows HomeGuide’s and Angi’s advice on age and repair costs. It is a starting point, not a diagnosis: a licensed plumber has to inspect the heater.
Safety first: if you smell gas near a gas water heater, leave the house and call the gas company from outside.
Why water heater replacement cost averages differ
Angi's average covers all kinds of water heater replacements. This Old House leans on Home Depot installation data and includes more expensive types in its range. The type of heater, and whether the old setup meets today's code, matter far more than any average.
Water heater replacement cost by type
| Type | Installed (HomeGuide) | Angi | Lifespan (HomeGuide) |
|---|---|---|---|
| Tank, 40 to 50 gallons | $600 to $3,100 | $600 to $2,500 | 8 to 12 years (15 with maintenance) |
| Tankless | $1,400 to $5,600 | $1,200 to $3,500 | 15 to 20 years |
| Hybrid heat pump | $2,000 to $4,600 | $1,200 to $3,500 | Not stated |
| Solar | $3,000 to $9,000 | $1,700 to $5,500 | About 20 years |
| Indirect (runs off a boiler) | $2,000 to $4,500 | $1,200 to $3,500 | Not stated |
Heat pump and solar models cost more upfront. We cover tankless units in detail in our guide to tankless water heater cost.
Hot water heater replacement cost by tank size
| Tank size | HomeGuide (installed) | Angi | This Old House |
|---|---|---|---|
| 30 gallons | $500 to $1,900 | $550 to $2,100 | — |
| 40 gallons | $600 to $3,000 | $550 to $2,100 | $600 to $1,200 |
| 50 gallons | $700 to $3,100 | $650 to $2,400 | $700 to $1,800 |
| 75 gallons | $1,100 to $3,600 | $1,250 to $3,500 | $900 to $2,300 |
| 80 gallons | $1,200 to $4,000 | $1,350 to $3,500 | $1,000 to $3,000 |
Code upgrades that add to water heater replacement cost
A new water heater has to meet current code, which an old one may not. These are HomeGuide's figures unless noted:
- Removal and disposal of the old heater: $75 to $500.
- Permit: $50 to $200 (Angi gives $100 to $1,500 depending on the city).
- Expansion tank: $100 to $400.
- Other code upgrades: $75 to $500 or more.
- Venting: $100 to $600 to replace existing vents, $500 to $1,500 for new ones; a power-vent model costs $350 to $500 more.
- Switching fuel: electric to gas $400 to $2,000 or more; gas to electric $250 to $1,000 or more.
- Moving the heater: $500 to $2,500.
How long does a water heater last?
HomeGuide gives tank water heaters 8 to 12 years, or up to about 15 with maintenance, and tankless units 15 to 20. Angi says about 10 years on average, 6 to 15 for tanks. Replacing a tank before it fails can avoid a flood: Angi puts water damage repair at $1,300 to $5,550 on average, often more than the heater itself.
Scald and gas safety
Set it to 120°F
- The CPSC urges everyone to set water heaters to 120°F. It says most adults suffer third-degree burns from 150°F water in two seconds, from 140°F in six seconds and from 130°F in 30 seconds.
- The CPSC adds that most tap water scald injuries and deaths involve older adults and children under five.
- Gas water heaters burn fuel and need proper venting. Angi advises against DIY installation; hire a licensed plumber and get the permit.
Watch: How to Replace a Tank Water Heater
How we worked this out
We read the 2026 water heater replacement guides of HomeGuide, Angi and This Old House (updated June 17, 2026) and the CPSC's tap water scald guidance on November 16, 2026. The checker turns the guides' advice into a simple score; it is our own tool. We did not install any heaters or get quotes.
Questions homeowners ask
How much does it cost to replace a 50-gallon water heater?
About $700 to $3,100 installed, according to HomeGuide, or $650 to $2,400 according to Angi. This Old House gives $700 to $1,800.
How long does a water heater last?
Tank heaters usually last 8 to 12 years, up to about 15 with maintenance; tankless heaters 15 to 20 years (HomeGuide).
Is it worth repairing a 12-year-old water heater?
Usually not. HomeGuide suggests replacing a heater over 10 years old or when the repair costs more than half of a replacement. A leaking tank should always be replaced.
What temperature should a water heater be set to?
The CPSC urges setting it to 120°F, which lowers the risk of scalds and saves energy.
The verdict
Water heater replacement usually costs $600 to $3,100 for a standard tank and $1,400 to $5,600 for tankless. If your tank is over 10 years old, leaking, or needs a repair costing more than half of a new one, replace it. Get quotes that include removal, permits and code upgrades, have a licensed plumber do the work, and set the new heater to 120°F.