Most homeowners are stunned when they get the bill for a new tank. The average cost of replacing a water heater lands between $900 and $3,500 fully installed, and the spread comes down to fuel type, capacity, and how much your plumber has to modify to bring the setup up to code. A basic 40-gallon gas swap in an easy-access basement can run under a grand, while a tankless conversion with new gas lines and venting climbs past $4,000. Knowing where your project falls on that scale keeps you from overpaying.
The sticker price on the unit is only half the story. Labor, permits, and code upgrades routinely add 40 to 60 percent to the box price. This guide breaks down every line item so you can budget accurately before the truck shows up.
Average Cost by Water Heater Type
The type of unit you choose is the single biggest driver of the total cost of replacing a water heater. Here is what each style typically runs, installed:
- Conventional gas tank (40-50 gal): $1,100 to $2,200 installed. The workhorse of American homes and the cheapest to replace like-for-like.
- Electric tank (40-50 gal): $900 to $1,900 installed. No venting means lower labor, but higher monthly operating cost.
- Tankless (gas): $2,800 to $4,800 installed. The unit alone is $900 to $1,800, but gas-line upsizing and stainless venting drive the price.
- Tankless (electric): $1,500 to $3,000 installed. Often needs a 150-amp or larger panel to handle the draw.
- Heat pump (hybrid): $2,000 to $3,800 installed, before federal and utility rebates that can shave off $600 to $1,750.
If you are simply matching what you already have, expect to stay in the lower half of these ranges. Switching fuel types or going tankless is where budgets balloon.
What the Unit Itself Costs
Strip out the labor and the appliance is cheaper than people expect. A 40-gallon atmospheric-vent gas heater from Rheem, A.O. Smith, or Bradford White retails between $550 and $900. A 50-gallon electric model runs $500 to $850. Step up to a power-vent gas tank and you are looking at $900 to $1,400 because of the built-in blower.
Tankless units are a different animal. A quality gas condensing model like the Rinnai RU199 or Navien NPE-240A2 runs $1,100 to $1,900 for the box. Heat pump units such as the Rheem ProTerra or A.O. Smith Voltex sit at $1,500 to $2,500. Buy the extended tank warranty if it is offered; a 10-year warranty tank costs about $150 more than a 6-year model but nearly doubles the expected service life.
Labor and Installation Charges
Plumber labor for a straightforward tank swap runs $500 to $1,200, usually representing three to five hours of work. Most licensed plumbers charge $75 to $150 per hour, and many bill this job as a flat rate. The variables that push labor up include:
- Tight closets, attics, or crawl spaces that make the old tank hard to haul out
- Corroded shutoff valves or supply lines that must be replaced
- Second-floor or rooftop installs requiring extra hands
- Hauling and disposing of the old unit, which adds $50 to $150
Tankless conversions carry the heaviest labor bill, often $1,500 to $2,500, because the installer has to run new venting, upsize the gas line to 3/4 inch or larger, and mount the unit to a wall stud with proper clearances.
Hidden Costs and Code Upgrades
This is where budgets get blown. When an inspector signs off on a new heater, everything around it has to meet current code, even if the old setup was grandfathered. Common surprise line items:
- Expansion tank: $150 to $350 installed. Required in most jurisdictions with a closed plumbing system.
- New shutoff valve and flex connectors: $75 to $200.
- Drip pan and drain line: $100 to $250, mandatory in attic or upper-floor installs.
- Sediment trap or new gas flex: $75 to $175.
- Earthquake straps: $50 to $100 in seismic zones like California.
- Permit fees: $50 to $500 depending on your city.
- Electrical upgrade for tankless or hybrid: $300 to $2,000 if a new circuit or panel is needed.
Pad the budget by 15 percent for these, since at least one of them often comes into play.
Cost by Tank Size
Capacity scales the price predictably. Match the size to your household so you are not paying to heat water you never use:
- 30 gallon: $800 to $1,500 installed. Fits 1-2 people or a small apartment.
- 40 gallon: $1,000 to $2,000 installed. The default for 2-3 person homes.
- 50 gallon: $1,200 to $2,400 installed. Best for 3-4 people with a couple of bathrooms.
- 75-80 gallon: $2,000 to $3,500 installed. Large households or homes with soaking tubs.
A 50-gallon unit delivers roughly 80 to 90 gallons of usable hot water in its first hour, which handles back-to-back showers without running cold.
Tank vs. Tankless: The Long-Term Math
Tankless units cost more upfront but last 20 years versus 10 to 12 for a tank, and they trim water-heating energy use by 24 to 34 percent for typical households, according to Department of Energy figures. On a gas system, that translates to roughly $80 to $110 in annual savings. The payback period on the price premium usually runs 8 to 12 years, so tankless makes the most financial sense if you plan to stay in the home a while.
Heat pump water heaters are the efficiency champions, using about 60 percent less electricity than a standard electric tank. With federal tax credits covering 30 percent of the project up to $2,000, the effective cost can drop below that of a conventional swap.
How to Save on Replacement
You do not have to pay top dollar to get quality work. A few proven tactics:
- Get three written quotes; prices for identical work vary by hundreds of dollars.
- Replace before the tank fails so you are not paying emergency rates, which add 25 to 50 percent.
- Buy a 10-year warranty model rather than replacing a 6-year unit twice.
- Ask about manufacturer rebates and utility incentives, especially for heat pump models.
- Bundle the job with other plumbing work to spread the trip charge.
Skip the temptation to DIY a gas or tankless install. The permit, gas connections, and venting carry real safety and code stakes, and a botched job can void your homeowner’s insurance. A DIY electric tank swap is feasible for a confident homeowner and saves the labor, but confirm your local code allows it first.
Signs It Is Time to Replace
Timing your replacement before a failure saves you the emergency premium and the water damage a burst tank causes. Watch for these warning signs that a heater is near the end:
- Age: A tank heater lasts 8 to 12 years. Check the serial number sticker to decode the manufacture date; anything past 10 years is on borrowed time.
- Rusty or discolored hot water, which points to a corroding tank interior.
- Rumbling or popping sounds from sediment hardening on the bottom of the tank.
- Water pooling around the base, a sign of a slow tank leak that will only worsen.
- Running out of hot water faster than it used to, indicating sediment has reduced capacity.
Flushing your tank once a year and testing the anode rod can add years of service life, but once the tank itself leaks, replacement is the only fix. Plan ahead and you control the timing and the price rather than paying whatever an emergency plumber charges on a Sunday.
Budgeting Bottom Line
For most families replacing a like-for-like tank, budget $1,200 to $2,000 and you will land in the right zone. Set aside $2,800 to $4,800 if you are moving to tankless, and factor rebates into any heat pump decision. Whatever you choose, the real cost of replacing a water heater is always the installed number, not the shelf price, so make sure every quote spells out labor, permits, and code upgrades in writing before you sign.