Water heater replacement cost in 2026: tank vs tankless
A new tank water heater costs about $600–$2,500 installed; tankless runs $1,400–$3,900. Compare lifespan, running costs and when switching is worth it.
On this page
Quick answer: Replacing a tank water heater costs about $600–$2,500 installed. A tankless model costs about $1,400–$3,900, and switching from tank to tankless can add $150–$2,500 for new gas lines, venting or electrical work. Tanks last about 10–15 years; tankless units 20+ years.
Key takeaways
- Most tank water heaters last 8–12 years; tankless units often 20 years.
- A heat pump water heater uses roughly 2–3 times less electricity than a standard electric tank.
- Size a tank by your busiest hour, not just household size.
- Flush the tank yearly and check the anode rod every 3–5 years to add years of life.
- Set it to 120°F — safer and cheaper than the common factory setting of 140°F.
When a water heater starts leaking or the hot water runs out halfway through your shower, you need to decide quickly. Here is what each option costs, what affects the quote, and how to tell which one fits your home.
Water heater cost at a glance
| Type | Installed cost | Labor alone | Lifespan |
|---|---|---|---|
| Tank (gas or electric) | $600–$2,500 | $150–$450 | 10–15 years |
| Tankless (gas or electric) | $1,400–$3,900 | $600–$1,900 | 20+ years |
| Heat pump (hybrid) tank | High end of the range | Similar to a tank, plus space and drain needs | Varies by model |
| Converting tank → tankless | Add $150–$2,500 | — | — |
| Permit | $25–$300 | — | — |
Ranges from NerdWallet's 2026 water heater cost guide. Gas tankless models generally cost more than electric ones.
Tank water heaters
A tank heats and stores 30 to 80 gallons of water and keeps it hot around the clock.
Pros: lowest upfront cost, simple like-for-like replacement, works the same during a power outage (gas models). Cons: you can run out of hot water; it loses some heat keeping stored water hot; shorter life.
A 40- or 50-gallon tank suits most households of two to four people. Size by your busiest hour — for example, two showers plus a dishwasher running at once.
Tankless water heaters
A tankless (on-demand) unit heats water only when a tap opens.
Pros: endless hot water, no standby heat loss, long life, mounts on a wall and frees floor space. Cons: higher upfront cost; gas models often need a bigger gas line and new venting; large electric models can need a panel upgrade; flow is limited if several taps run at once.
Tankless is sized by flow rate (gallons per minute) and the temperature rise you need. Homes in cold climates need a bigger unit because incoming water is colder.
Heat pump water heaters
A heat pump water heater is a tank that uses a small heat pump on top to move heat from the surrounding air into the water. It can use far less electricity than a standard electric tank.
Things to check before you buy: it needs room around it (a garage or basement often works better than a closet), a condensate drain, and it cools the space it sits in a little. Note that the federal 25C tax credit that covered up to $2,000 of a heat pump water heater ended for equipment installed after December 31, 2025. Many electric utilities still offer rebates.
What raises the price
- Switching fuel or type — moving from electric to gas, or from a tank to tankless, means new lines, venting or wiring.
- Code upgrades — expansion tanks, seismic straps, drain pans or a new vent may be required when you replace.
- Location — an attic or tight closet install takes longer than an open garage.
- Haul-away of the old tank.
- Emergency or weekend service.
Signs it is time to replace
- The tank is 10+ years old (check the serial number on the label — it usually encodes the year)
- Rusty water from the hot tap only
- Water pooling around the base — a leaking tank cannot be fixed
- Rumbling or popping from sediment, along with less hot water than before
Small parts such as heating elements, thermostats, anode rods and gas valves can often be replaced on a younger tank for a few hundred dollars.
Cut your water heating bill
- Set the thermostat to 120°F — the Department of Energy's recommended setting, hot enough for most homes and cheaper than higher settings. (If someone in your home is elderly or immunocompromised, ask a plumber about a higher setting with anti-scald valves to limit Legionella.)
- Insulate the first few feet of hot and cold pipes at the heater.
- Flush the tank once a year to clear sediment.
- Fix dripping hot-water taps and use low-flow showerheads.
What size water heater do you need?
| Household | Tank size (gas) | Tank size (electric / heat pump) | Tankless flow rate |
|---|---|---|---|
| 1–2 people | 30–40 gal | 40 gal | 5–6 GPM |
| 2–3 people | 40 gal | 50 gal | 6–7 GPM |
| 3–4 people | 40–50 gal | 50–65 gal | 7–8 GPM |
| 5+ people | 50–75 gal | 65–80 gal | 9+ GPM (or two units) |
Check the first-hour rating (FHR) on the yellow EnergyGuide label — it shows how much hot water the tank delivers in a busy hour. Match it to your peak use (for example, two showers + dishwasher in the morning).
Running cost compared
Approximate yearly cost for a family of four (typical 2026 prices):
| Type | Typical yearly running cost |
|---|---|
| Standard electric tank | $550–$700 |
| Gas tank | $300–$450 |
| Gas tankless | $250–$400 |
| Heat pump water heater | $150–$300 |
Your costs depend on hot water use, rates and climate. ENERGY STAR estimates a certified heat pump water heater can save a family of four hundreds of dollars a year compared with a standard electric tank.
Example: Replacing a standard electric tank ($620 a year) with a heat pump water heater ($220 a year) saves about $400 a year. If the heat pump model costs $1,500 more installed, payback is under 4 years — faster with a utility rebate.
Maintenance that adds years
- Flush the tank once a year to remove sediment (attach a hose to the drain valve).
- Test the T&P relief valve yearly.
- Check the anode rod every 3–5 years; replacing it ($20–$60 part) can extend tank life.
- Descale tankless units yearly in hard-water areas.
- Clean the air filter on heat pump water heaters every few months.
- Insulate the first few feet of hot water pipe.
Frequently asked questions
How much does it cost to replace a 50-gallon water heater?
A standard 50-gallon gas or electric tank usually falls within the $600–$2,500 installed range. Simple same-spot swaps land near the low end; code upgrades, tough access or premium models push it up.
Is a tankless water heater worth it?
It is most worth it if you run out of hot water often, plan to stay in your home a long time, or need the floor space. If your current tank is gas and close to the gas meter, a straight tank replacement is often the cheaper choice over 10 years.
How long does a water heater last?
About 10–15 years for a tank and 20 years or more for a tankless unit with regular maintenance.
Can I replace a water heater myself?
Electric tank swaps are a common DIY job for experienced homeowners, but gas work, venting and permits are best left to a licensed plumber. Many areas require a permit and inspection either way.
Gas or electric water heater — which is cheaper?
Gas is usually cheaper to run than a standard electric tank. A heat pump water heater is often the cheapest of all to run.
How long does it take to install a water heater?
A like-for-like tank swap usually takes 2–4 hours. Switching fuel or going tankless can take a full day.
Why is my water heater making popping noises?
Usually sediment build-up at the bottom of the tank. Flushing the tank often helps.