Water heaters

A new 40 or 50 gallon tank costs $950 to $2,550 installed and lasts 8 to 15 years. Here is the whole job in order: choose a type, size it, price it, put it in, and keep it running, with a fix for each way it can fail.

At a glance

Tank, installed
$950 to $2,55040 or 50 gal, like for like
Tankless, installed
$1,900 to $5,100gas, replacing a tank
Lifespan
8 to 15 yearstanks; tankless 15 to 20+
Install time
1 to 3 hoursa like-for-like tank swap
Next: MaterialsHeat pump water heaters

The three decisions that matter

1. Which type

Most replacements are the same type as the old heater, because the gas line, vent or circuit is already there. Changing type is where the cost moves most.

Type Installed Lifespan Best for
Gas tank, 50 gal $1,200 to $2,550 8 to 15 years Homes with gas and a working flue
Electric tank, 50 gal $1,050 to $2,250 8 to 15 years Homes without gas; the cheapest unit
Heat pump, 50 gal $2,250 to $4,750 13 to 15 years Replacing an electric tank in a roomy, warm space
Gas tankless $2,450 to $5,100 15 to 20+ years Long showers back to back; small spaces

Installed costs are like for like except gas tankless, priced as a switch from a gas tank. Lifespans: DOE, ENERGY STAR, A. O. Smith and Rheem, which differ; see how long a water heater lasts.

Weighing two types? Read tank vs tankless and heat pump water heaters.

2. What size

Size a tank by its first-hour rating, the gallons of hot water it delivers in your busiest hour, and a tankless unit by the flow you run at once in the coldest month. Gallons on the label alone can mislead: 50 gallon gas tanks range widely in first-hour rating depending on the burner. The water heater size calculator works out both.

3. Swap or switch

A like-for-like swap is the cheapest job. Switching adds the work the new type needs: about $1,500 to $2,300 for a new gas line, $250 to $900 for a new 240 volt circuit, or $1,000 to $3,000 in labor and materials to go from gas to a heat pump, which puts that whole job at about $2,750 to $6,150. The water heater replacement cost calculator prices your exact switch.

Every step, in order

  1. Materials

  2. Cost

  3. How much

  4. Do it

  5. Upkeep and fixes

How long the job takes

A like-for-like tank swap takes 1 to 3 hours by HomeAdvisor's and This Old House's estimates, and up to 6 by HomeGuide's. A tankless install runs 4 to 8 hours, and a first switch from a tank can take a full day.

Repair or replace?

ENERGY STAR and Bradford White both suggest looking at replacement once a heater passes 10 years. HomeGuide's rule of thumb is to replace when a repair would cost more than half the price of a new heater. Rust in the hot water, a leak from the tank itself and rumbling from sediment are the usual signs a tank is near the end; a leaking tank can't be repaired.

Tax credits in 2026

The federal 25C credit for efficient water heaters ended for anything installed after December 31, 2025. State rebate programs, where they have launched, can still help with an electric tank to heat pump swap.

Next: MaterialsHeat pump water heatersHow they work, what they cost to buy and run, and where they fit.

More on water heaters

More on plumbing

Sources

  1. How much does water heater installation or replacement cost?, HomeGuide, 2026-01-02.
  2. Water Heater Installation Cost, This Old House, 2026-06-17.
  3. How Much Does a Water Heater Replacement Cost?, HomeAdvisor, 2026-06-17.
  4. Tankless Water Heater Installation Cost, This Old House, 2026-06-12.
  5. When Should You Replace Your Water Heater?, ENERGY STAR, 2024-02-02.
  6. What Goes into the Cost of Installing a Heat Pump Water Heater?, ENERGY STAR, 2024-02-02.
  7. Energy Saver Guide, U.S. Department of Energy, 2022-08.
  8. How Long Do Tankless Water Heaters Last?, A. O. Smith.
  9. Tank vs. Tankless Water Heater Lifespan Comparison, Rheem, 2026-03-05.
  10. Is your water heater too old?, Bradford White.
  11. FS-2025-05: FAQs for modification of sections 25C, 25D and others under Public Law 119-21, IRS, 2025-08-21.