If your water heater is leaking, rusting or running out of hot water halfway through a shower, you're probably wondering what a new one is going to set you back. Here's the short answer: the average water heater replacement cost for a standard 40 or 50 gallon tank is about $1,500 installed, and most jobs land somewhere between $800 and $2,500.

That's a wide range, and it's wide for a reason. The price depends on the heater you pick, where it sits in your house, and what your local code asks for once the old one comes out. Below we break the number down line by line, walk through what a plumber actually does during the swap (with a 3D model you can click through), and help you figure out where your own job will land.

Water heater replacement cost at a glance

Type of water heater

Typical cost installed

Most jobs fall between

Gas or electric tank, 40 to 50 gallons

$1,500

$800 and $2,500

Tankless, whole house

$2,500

$1,200 and $5,600

These are national prices for 2026. They include the heater, the plumber's labor, the standard fittings and getting the old tank out of your house. They come from the pricing data behind our estimator, which we build from contractor cost surveys and supplier prices.

Where you live moves the number too. The same job runs about 15% under the national average in states like Mississippi and Alabama, and 15% to 25% over it in California, Massachusetts, Alaska and Hawaii. Pick your city or state in the breakdown below to see the price where you live.

What you're paying for

Here's the price split into its parts, the same way our estimator builds a quote. Switch between a tank and a tankless heater, choose a finish level, and pick your city or state to see local prices.

Cost breakdown

Water heater replacement cost breakdown

Estimated total

$1,500

Most jobs: $800 to $2,500

National average

40 to 50 gallon gas or electric tank, swapped in the same spot.

Hover or tap a line to see its share

  • Water heaterThe 40 to 50 gallon tank itself$80053%
  • Connectors, valve and expansion tankNew flex lines, a shutoff valve and a thermal expansion tank$1007%
  • Plumber's laborAbout 4 hours at a licensed plumber's rate$36024%
  • Permit, haul-away and overheadThe city permit, removing the old tank and the contractor's overhead$24016%
National prices × 1.00 local cost index. A real quote can differ.Price your own job