Water Heater Replacement Cost (2026 Guide)
Quick answer
Replacing a standard 40 or 50 gallon tank water heater costs about $1,200 to $3,500 installed in 2026. Electric tanks are usually at the low end ($1,200 to $2,800), gas tanks a bit higher ($1,400 to $3,500), and tankless units run about $2,000 to $6,000.

A failing water heater rarely gives much warning. Knowing the normal price range helps you make a fast decision without overpaying. Here is what replacement costs, what changes the price, and how to choose between tank and tankless.
Water heater replacement cost by type
| Type | Typical installed cost | Good to know |
|---|---|---|
| Electric tank, 40 – 50 gal | $1,200 – $2,800 | Simplest install. Higher running cost in most areas. |
| Gas tank, 40 – 50 gal | $1,400 – $3,500 | Lower running cost. Needs proper venting. |
| High-efficiency or power-vent gas tank | $2,500 – $5,000 | Needs electrical outlet and special venting. |
| Tankless electric | $1,800 – $4,500 | May need a large electrical upgrade. |
| Tankless gas | $2,000 – $6,000 | Often needs a bigger gas line and new venting. |
40 gallon or 50 gallon?
A 40-gallon tank usually serves one to three people. A 50-gallon tank is a better fit for three to five people, or for homes with a large soaking tub. The price difference between the two sizes is often only a few hundred dollars, so many families choose the bigger tank.
What adds to the cost
- Permits: many cities require one, often about $50 to $500.
- Code updates: an expansion tank, new drain pan, seismic straps or a new shut-off valve may be required.
- Venting changes: moving from an old atmospheric vent to a power vent or tankless unit.
- Switching fuel: going from electric to gas, or the other way, means new lines and possibly an electrician.
- Hard access: heaters in attics or tight closets take longer to swap.
Tank vs. tankless
| Tank | Tankless | |
|---|---|---|
| Upfront cost | Lower | Higher |
| Hot water supply | Limited by tank size | Endless, but limited flow at once |
| Typical lifespan | 8 – 12 years | 15 – 20 years |
| Space needed | Large | Small, wall-mounted |
Tankless makes the most sense if you plan to stay in your home for many years, or if you often run out of hot water. For a quick, budget replacement, a new tank of the same type is the simplest choice.
Signs you need a new water heater
- Water pooling around the base of the tank
- Rusty or discolored hot water
- Popping or rumbling sounds from sediment
- The heater is more than 10 years old
- Hot water runs out much faster than it used to
Frequently asked questions
How long does it take to replace a water heater?
A like-for-like tank replacement usually takes 2 to 4 hours. A switch to tankless can take a full day.
Can I replace a water heater myself?
Electric tank swaps are possible for experienced DIYers, but gas heaters involve gas lines and venting that can be dangerous if done wrong. Many areas also require a licensed plumber and a permit.
Sources: Fixr, Inch Calculator, The Furnace Outlet. Prices are national planning ranges, not quotes. See how we research costs.