Replacing a 40–50 gallon tank water heater costs $1,200 to $3,500 installed. A tankless water heater costs $2,500 to $5,500 installed, including common gas line and venting upgrades.
Key takeaways
- ✓Tank, installed: $1,200–$3,500
- ✓Tankless, installed: $2,500–$5,500
- ✓Repairs rarely make sense after 10–12 years
- ✓Code upgrades and permits add cost
Cost breakdown
Typical US price ranges for the 6 most common jobs:
| Job | Low | High |
|---|---|---|
| 40-gal gas tank, installed | $1,200 | $2,800 |
| 50-gal electric tank, installed | $1,200 | $2,500 |
| Gas tankless, installed | $2,500 | $5,500 |
| Heat pump water heater, installed | $2,500 | $5,000 |
| Expansion tank / straps / venting | $150 | $800 |
| Haul-away of old unit | $0 | $150 |
Repair or replace?
Repair is worth it for a thermocouple, element or thermostat on a tank under 8 years old. Replace when the tank leaks, the heater is over 10–12 years old, or repairs would exceed half the cost of a new unit.
Tank vs tankless
Tankless heaters cost more up front but last 15–20 years and use less energy for most households, according to the US Department of Energy. Tanks are cheaper to install and simpler to service.
Frequently asked questions
How long does water heater replacement take?+
Replacing a tank water heater takes 2 to 4 hours. A tankless conversion can take a full day if gas or venting changes are needed.
Do I need a permit to replace a water heater?+
Most US cities require a permit for water heater replacement, especially gas units. The installer usually pulls it.
Sources
Related guides
- How Much Does a Plumber Cost in 2026?
- How Much Does an Emergency Plumber Cost?
- How Much Does Drain Cleaning Cost?
- How Much Does Sewer Line Replacement Cost?
- How Much Does It Cost to Repipe a House?
- No Hot Water: How to Troubleshoot Your Water Heater
- Water Heater Leaking: Repair or Replace?
- Hard Water: Effects on Plumbing and Fixes