A tank water heater replacement costs $1,300 to $3,200 installed for a standard 40 or 50 gallon unit. That covers the heater, hookup, a permit where required, and hauling off the old tank. A like-for-like swap in an accessible garage lands near the low end. Add code upgrades or a tight closet, and you’ll push toward $3,200 or slightly past it.

What Drives the Price
Fuel type and tank size set the base. A 40-gallon electric tank is the cheapest unit on the shelf, often $450 to $750 wholesale. The same size in gas runs $100 to $300 more because of the burner assembly and venting hardware. From there, installation labor does the heavy lifting: most plumbers bill $100 to $180 an hour in metro areas, and a clean swap takes two to four hours.
Code upgrades are the part that surprises people. If your old tank pre-dates current code, the plumber has to bring the install up to standard, and that work rides on your bill.
| Cost item | Typical range | What moves it |
|---|---|---|
| Tank, 40-50 gal, standard vent | $750-$1,400 | Gas runs $100-$300 more than electric at equal size |
| Installation labor | $350-$800 | Awkward fittings, corroded connectors, long drain runs |
| Expansion tank | $120-$250 | Required on closed systems in most updated codes |
| Drain pan and stand | $60-$150 | Pan is code whenever the tank sits inside living space |
| Seismic strapping | $40-$120 | Required in California and a few other states |
| Venting work (gas) | $150-$600 | Corroded B-vent often can’t be reused |
| Permit and inspection | $50-$250 | Varies a lot by city and county |
| Old tank haul-away | $0-$150 | Usually bundled; scrap recyclers sometimes take them free |
Access matters more than people expect. A tank in an open garage is a straight swap. A tank in a hallway closet with six inches of clearance on each side turns a two-hour job into a four-hour one, and the quote reflects it.
Real-World Replacement Scenarios
Numbers help more than ranges, so here are three jobs with itemized totals.
Scenario 1: 40-gallon natural gas tank in a Texas garage. Like-for-like swap, easy access, existing vent in decent shape. Heater at $950, labor at $450, permit at $75, haul-away included. Total: about $1,475. This is the most common water heater job in the country, and it’s the one quotes cluster around.
Scenario 2: 50-gallon electric in a Midwest basement. The old tank has no expansion tank and no pan, and the local inspector now requires both. Heater at $850, labor at $600, expansion tank at $180, pan at $90, permit at $120. Total: about $1,840. Nothing went wrong here. The price moved because code moved.
Scenario 3: gas tank in a California hall closet. The existing B-vent has visible corrosion, so the plumber replaces a section. Seismic straps are mandatory. Heater at $1,250, labor at $700, vent section at $380, straps at $90, expansion tank at $200, permit at $180. Total: about $2,800. That’s a fair number for this job, not an upsell.

If your tank is under ten years old and acting up, replacement isn’t automatic. A stuck thermostat or a bad heating element is a $150 to $350 repair. We put the break-even math in one place so you can compare a repair quote against a replacement quote directly: try the water heater repair or replace calculator.
Ways to Pay Less
Get three quotes on the same written spec. The spread on identical jobs regularly hits $600 because some shops mark up the tank 40 percent and others 15. Ask each plumber to quote the same tank model class, same size, same fuel, and list code items separately. That last request alone kills most padded quotes, which we cover in more detail in contractor quote red flags.
Time the swap instead of reacting to it. An emergency Saturday call after the tank floods costs $200 to $500 more than a scheduled weekday replacement. Tanks usually warn you first: rusty water, rumbling, a small weep at the fitting. Plan the replacement during that window.
Two more levers:
- Check utility rebates before you buy. Some gas and electric utilities pay $50 to $300 back on high-efficiency models. Search dsire.org and your utility’s site; programs change constantly.
- Ask whether the plumber’s tank price is close to retail. Buying your own tank at a big-box store sometimes voids the installer’s labor warranty on the unit, so a $100 saving can cost you a $900 heater later.
One note on federal money: the federal tax credits for efficient water heaters expired at the end of 2025. If a quote or ad claims a federal credit, that’s stale information or a sales pitch.
Mistakes That Cost Money
Skipping the expansion tank on a closed system is the most common shortcut, and it’s a bad one. When a check valve or pressure regulator locks water in the pipes, heated water expands and hammers the tank from the inside. Thermal expansion is why some “new” tanks fail TPR valves within two years.
Reusing a corroded gas vent to save $300 is a bet against combustion physics. Spilled exhaust in a closet isn’t a repair bill, it’s a health problem. If the plumber flags the vent, get the opinion in writing and price the replacement from a second plumber.
Undersizing is quieter but costs you for a decade. A three-bathroom household that buys a 40-gallon tank to save $150 will run out of hot water every morning. Match the first-hour rating to your peak hour, not to the lowest price on the shelf.
After installation, remember the anode rod. It’s a sacrificial metal core designed to corrode so the tank doesn’t. Around year five, a $150 to $250 anode swap in hard-water areas can add years to the tank. We fold this kind of upkeep into an annual home maintenance budget so it doesn’t sneak up on anyone.
Bottom Line
Budget $1,300 for a clean like-for-like swap and $3,200 for a code-heavy install in a tight space, with most jobs landing between $1,500 and $2,200. The two moves that save real money are three comparable quotes and a planned replacement on your schedule instead of the tank’s. If a quote lands far outside the range, make the plumber point to the line item that explains it.
FAQ
How long should a tank water heater last?
Eight to twelve years for gas, ten to fifteen for electric, less where water is hard or the tank was never maintained. Age alone isn’t a replacement trigger, but a leak from the tank body is. Once steel rusts through, there’s no repair.
Should I repair or replace my water heater?
Repair if the tank is under eight years old and the fix is a failed element or thermostat, typically $150 to $350. Replace if the tank itself leaks or the unit is past twelve and needs real money. When you’re holding a repair quote, the repair-or-replace calculator settles it faster than guesswork.
Is gas or electric cheaper to run?
Gas usually wins on operating cost where natural gas is cheap, and it recovers faster after heavy use. Electric tanks cost less to buy and install, and they make sense where gas service doesn’t exist or hookup would cost thousands. Compare your local rates: the gap can be $10 a month or $40 depending on where you live.
How long does replacement take?
A straightforward swap takes two to four hours, and you’ll have hot water the same day. Expect a full day if the job includes new venting, a gas line change, or drain pan work. Permit inspections, where required, are usually a separate visit within a few days.