How Much Does a Water Heater Cost to Replace?
A new water heater costs $900–$3,000 installed for a standard tank model (40–50 gallon). Tankless water heaters cost $2,500–$5,000+ installed. The total price depends on fuel type (gas vs. electric), tank size, and complexity of installation.
Cost Breakdown
| Service | Low | High | Notes |
|---|---|---|---|
| Tank water heater (40-50 gal) | $800 | $1,500 | Unit only |
| Tank installation labor | $300 | $800 | Standard swap |
| Tankless water heater | $1,500 | $3,000 | Unit only |
| Tankless installation | $1,000 | $2,000 | May need new gas/electric |
| Permit | $50 | $200 | Required in most areas |
| Code upgrades | $200 | $1,000 | Older homes may need this |
Water Heater Replacement Costs in 2026
Your water heater is one of the most important appliances in your home. When it fails, you need to decide quickly between repair and replacement. Here is what to expect.
Tank Water Heaters
Traditional tank water heaters are the most common and affordable option. A 40–50 gallon gas model costs $800–$1,500 for the unit plus $300–$800 for installation. Electric models are slightly cheaper to buy but cost more to operate.
Tankless Water Heaters
Tankless (on-demand) water heaters cost more upfront — $1,500–$3,000 for the unit plus $1,000–$2,000 for installation. However, they last 20+ years (vs. 10–12 for tank models), use 30–50% less energy, and never run out of hot water.
Factors That Affect Cost
- Fuel type: Gas models cost more to install (venting required) but less to operate
- Size: Larger tanks cost more; sizing depends on household size
- Location: Difficult access (crawl space, attic) adds $200–$500
- Code updates: Older homes may need new gas lines, venting, or electrical work
- Permit: Most areas require a permit ($50–$200)
Repair vs. Replace
Consider replacing if your water heater is over 10 years old, leaking from the tank (not a valve), or the repair costs more than 50% of a new unit. Common repairs that are worth doing: thermostat replacement ($150–$250), heating element ($200–$350), pressure relief valve ($100–$200).
Sizing Guide
- 1–2 people: 30–40 gallon tank
- 3–4 people: 40–50 gallon tank
- 5+ people: 50–80 gallon tank or tankless
Related Questions
How long does a water heater last?
Tank water heaters last 10–12 years on average. Tankless models last 20+ years. Regular maintenance (annual flushing, anode rod replacement every 3–5 years) can extend lifespan significantly.
Is a tankless water heater worth it?
Tankless water heaters save $100–$150/year on energy bills and last twice as long as tank models. If you plan to stay in your home 7+ years, the higher upfront cost pays for itself. They also free up floor space and never run out of hot water.
Can I install a water heater myself?
Not recommended. Water heater installation involves gas lines or high-voltage electrical, plumbing connections, and code compliance. Improper installation can void the warranty, create safety hazards, and violate building codes. Always hire a licensed plumber.