How Much Does Water Heater Replacement Cost?

Average installed costs for tank, tankless, and heat pump water heaters — gas and electric — plus the code upgrades and labor that drive the final bill.

Last updated: August 2026

Quick Answer: Replacing a tank water heater costs $800–$2,500 installed — around $1,300 average for a 50-gallon gas unit. Switching to tankless runs $2,500–$5,500 including venting and gas-line upgrades.
Item / Category Low End Average High End
40-Gal Electric Tank (installed) $700 $1,100 $1,600
50-Gal Gas Tank (installed) $900 $1,300 $2,000
65–80 Gal Tank (installed) $1,300 $1,900 $2,800
Tankless Gas (new install w/ venting) $2,500 $3,800 $5,500
Tankless Electric (whole-home) $1,200 $2,000 $3,200
Heat Pump Water Heater (installed) $1,700 $2,600 $3,800
Expansion Tank Add-On $100 $175 $300
Permit $50 $125 $250

Water Heater Cost by Type & Size

Size is the first cost lever, and it should be driven by your household — not by whatever size happens to be on the showroom floor. A 40-gallon tank suits 1–2 people, a 50-gallon handles 3–4, and a 65–80 gallon tank (or a properly sized tankless) is the right call for 5+ people or homes with large soaking tubs. Installed, that translates to roughly $700–$1,600 for a 40-gallon electric, $900–$2,000 for a 50-gallon gas, and $1,300–$2,800 for the big 65–80 gallon tanks. Oversizing wastes money twice — a bigger unit up front, then years of keeping water hot that nobody uses. Undersizing means the third shower of the morning runs cold. Before you price anything, run your household through our water heater size calculator — it converts people, bathrooms, and peak usage into a tank size or tankless flow rate you can shop against.

Tankless pricing works differently because the unit is only part of the bill. A whole-home gas tankless heater might cost $1,000–$1,800 as hardware, but the install — dedicated venting, a larger gas line, condensate drain, and sometimes an electrical circuit for the controls — routinely doubles or triples that. Electric tankless units are cheaper to install ($1,200–$3,200) but demand enormous amperage: a whole-home electric tankless can draw 100–150 amps by itself, which rules it out for many 100- and 150-amp panels without a service upgrade.

Gas vs Electric vs Heat Pump

Fuel type changes both the install bill and every utility bill after it. Gas tanks cost a bit more to install than electric (venting, gas connection) but are typically cheaper to run where natural gas is inexpensive, and they reheat faster. Standard electric tanks are the cheapest to install — no flue, no gas line — but usually the most expensive to operate per gallon of hot water.

Heat pump water heaters (hybrid electric) flip the electric math. Instead of making heat with resistance elements, they move heat from the surrounding air into the tank, using roughly a third to a quarter of the electricity of a standard electric tank — often $300–$500 per year in savings for a family of four. They cost more up front ($1,700–$3,800 installed) and need a reasonably open, non-freezing space plus a condensate drain, but the federal 25C tax credit covers 30% of the cost up to $2,000 for qualifying heat pump water heaters — the same credit that applies to heat pump HVAC systems, which we cover in our HVAC cost guide. After the credit, a heat pump unit often nets out within a few hundred dollars of a standard electric tank while costing far less to run. Many utilities stack state or local rebates on top.

Tank vs Tankless: The Real Economics

Tankless marketing leans on "endless hot water," but the honest comparison is money over time. A gas tankless install costs $2,500–$5,500 — roughly two to three times a like-for-like tank swap — because of venting, gas line upsizing, and more skilled labor. In exchange you get 15–20 years of service life versus 8–12 for a tank, roughly $80–$180 per year in fuel savings from eliminating standby losses, and no 50-gallon flood risk sitting in your attic or closet. Over one tankless lifetime you'd likely buy two tanks, which closes most of the price gap on its own.

The catch: those numbers assume the unit lasts, and tankless longevity depends on maintenance — annual descaling in hard-water areas is not optional. If you're comparing lifespans across your options, our guide on how long water heaters last breaks down tank, tankless, and heat pump life expectancy and the warning signs of each. The short version: tankless wins the long game if you'll stay in the house 10+ years and keep up with maintenance; a straightforward tank swap wins if you're selling within a few years or the $2,000+ premium strains the budget.

What Drives the Install Price Up

Two identical water heaters can produce install bills $1,000 apart. The difference is almost always code upgrades and access:

Repair or Replace?

The decision tree is simpler than most homeowners expect. If the tank itself is leaking, replace it — full stop. A leaking tank means the steel has corroded through, and there is no repair. Water pooling under the unit, rust streaks down the tank body, or rusty hot water are all end-of-life signs.

Everything bolted to the tank is fair game for repair: heating elements, thermostats, thermocouples, gas control valves, and T&P relief valves each run about $150–$500 fixed, and anode rod replacement (~$50 in parts) can meaningfully extend tank life if done before corrosion sets in. The judgment calls live in the 8–12 year window: a $400 gas valve on a 5-year-old heater is an easy yes; the same repair on an 11-year-old unit is pouring money into a tank that's living on borrowed time. A useful rule — if the repair costs more than a third of replacement and the unit is past year 8, put the money toward the new heater.

DIY Reality Check

Swapping an electric tank like-for-like is advanced DIY: shut off the breaker, drain the tank, disconnect two water lines and one electrical connection, reverse the process. If you can sweat a fitting or use SharkBite connectors, verify power is off with a meter, and muscle a 120-pound tank down the stairs, it's achievable — though you still need a permit, and code items like the expansion tank and pan are on you to get right.

Gas is different territory. A gas connection that leaks or a flue that backdrafts doesn't give you a second chance — carbon monoxide and gas leaks are the two ways water heater DIY goes catastrophically wrong. Gas swaps, any venting changes, and all tankless conversions belong with a licensed plumber or gas fitter. Heat pump installs sit in between: the plumbing is tank-like, but the condensate drain and possible new circuit push most people toward a pro. Wherever you land, pull the permit — an inspected install protects your insurance coverage and your resale paperwork.

Size Your Household's Water Heater First

Before you price units, find the right tank size or tankless flow rate for your household — people, bathrooms, and peak demand in one quick calculation.

Water Heater Size Calculator →

Frequently Asked Questions

A 50-gallon gas tank water heater costs $900–$2,000 installed, with most homeowners paying around $1,300. That covers the unit ($500–$900), labor ($300–$600), haul-away of the old tank, and minor fittings. Add $100–$300 if code requires an expansion tank your old install didn't have, and $50–$250 for the permit. A 50-gallon electric version typically runs $100–$200 less installed because there's no gas or venting work.

Two reasons: code-required extras and labor. Modern codes commonly require an expansion tank, drain pan with drain line, seismic strapping, updated venting, and a permit with inspection — items that add $300–$800 to what used to be a simple swap. Efficiency regulations have also made the units themselves larger and more expensive, and licensed plumber labor rates have risen sharply. A quote that seems high often just reflects a fully code-compliant install; a suspiciously cheap one is usually skipping the permit or the code items.

Usually yes if you'll stay in the home 10+ years, and usually no for a short ownership horizon. Gas tankless costs $2,500–$5,500 installed versus roughly $1,300 for a 50-gallon gas tank, but lasts 15–20 years instead of 8–12 and saves $80–$180 per year in standby energy losses. Over one tankless lifetime you'd typically buy two tanks, which closes most of the price gap. The break-even depends on staying long enough to collect it — and on annual descaling in hard-water areas, which tankless longevity requires.

A like-for-like tank swap takes 2–4 hours: about an hour to drain and remove the old unit and 1–3 hours to set, connect, and test the new one. Add time for code upgrades — an expansion tank or new pan adds under an hour, but venting changes can add several. A tankless conversion is a different job entirely: 6–10 hours or a full day-plus when it involves new venting, gas line upsizing, and wall mounting. Most installers can complete a standard swap same-day, including hot water by evening.