Short answer: In 2026, replacing a 40 to 50 gallon gas water heater costs $1,500 to $3,200 installed in an average-cost area, with a typical job around $2,300. Your ZIP, materials and the extras you pick move it up or down.
Change any blue entry to write up your job, then add your details and your total shows right away. Installed prices run $1,200 to $6,500 in 2026.
Installed price with the heater, labor, permit, code parts like expansion tank and seismic straps where required, and haul-away.
| Heater | Installed |
|---|---|
| gas tank, 40 to 50 gallon | $1,500–3,200 |
| electric tank, 40 to 50 gallon | $1,200–2,800 |
| gas tankless | $3,000–6,500 |
| heat pump (hybrid) tank | $2,800–5,500 |
The unit is usually 40 to 60% of the installed cost. Code upgrades, venting changes and labor make up the rest.
A same-type tank swap takes 2 to 4 hours. Switching to tankless or a heat pump unit can take a full day.
Most cities require a plumbing permit for a water heater, usually $50 to $300, and the plumber normally pulls it.
A standard 40 to 50 gallon gas tank costs about $1,500 to $3,200 installed. Tankless gas units run $3,000 to $6,500, mostly because of new venting and gas lines.
Tankless units give endless hot water and last about 20 years versus 10 to 12 for a tank, but cost two to three times more to install. They pay back fastest in larger households.
Tank water heaters last about 8 to 12 years. Rust-colored water, rumbling noises or a leak at the base mean it is time to replace.
A 40-gallon tank suits 1 to 3 people. A 50-gallon tank suits 3 to 5, and larger households need 60 to 80 gallons or a tankless unit.
A heat pump water heater costs about $2,800 to $5,500 installed in 2026, and uses about a third of the electricity of a standard electric tank.
Rusty water, rumbling noises, leaks at the base and age over 10 years are the most common signs.
Gas heaters heat faster and usually cost less to run where gas is cheap. Heat pump electric units are the most efficient overall.
A standard tank swap takes 2 to 4 hours. Converting to tankless can take most of a day.
| Line | Choice | Effect |
|---|---|---|
| Changes | straight swap, same type | — |
| Changes | new venting or gas line | +$500–2,000 |
| Changes | new electrical circuit | +$400–1,500 |
| Location | garage or basement | base |
| Location | attic or closet | +15% |
| Area | lower-cost / average / high-cost area | −12% / base / +22% |
An estimate, not a quote. Ranges are an editorial pricing model checked against published 2025 and 2026 national cost guides; area factors are editorial. Prices include materials and labor unless a line says otherwise. How we price · Updated December 1, 2026.