How much does it cost to replace a water heater?
Replacing a water heater is one of the most common home expenses — and the price swings widely depending on whether you stay with a tank or move to tankless, and what your local code requires at install. Here's an honest, installed-cost picture for 2026.
What drives the cost
- Tank vs. tankless — tankless units cost more up front but last longer and free up space.
- Fuel type — gas units add venting and gas-line work; electric is usually simpler to install.
- Capacity — a 40-gallon tank costs less than a 75-gallon or a high-output tankless.
- Code upgrades triggered at replacement — expansion tank, drip pan, new venting, or bringing the connections up to current code.
- Access — a tight closet, attic, or basement with awkward routing adds labor.
How your location changes the price
Labor is the biggest regional swing. Permit fees and licensed-plumber rates in high-cost metros can add several hundred dollars over a rural or low-cost market for the exact same unit.
Signs it's time to replace
- Rust or moisture at the base of the tank.
- Rusty or discolored hot water.
- The unit is past 10–12 years (gas) or 12–15 (electric).
- Popping/rumbling noises from sediment, or not enough hot water.
Can you DIY it?
Swapping a like-for-like electric tank is within reach for an experienced DIYer, but gas units (gas line + combustion venting) and anything needing a permit should go to a licensed plumber — a venting or gas mistake is a carbon-monoxide risk, and unpermitted work can complicate a future home sale.
Plan for it with HouseCue
HouseCue builds a private 5-year cost forecast for your home — so a big-ticket replacement like this is something you budget for on your terms, not a surprise. Track the age and condition of every system, get reminders before things fail, and connect with a vetted pro only when you choose.
Get your home's forecast freeFrequently asked questions
Is it cheaper to repair or replace a water heater?
If the tank itself is leaking, it can't be repaired — only replaced. Valve, thermostat, or heating-element repairs are far cheaper and worthwhile on a unit under ~8 years old. Past that, replacement is usually the better value because failure is close anyway.
Why is tankless so much more expensive?
A tankless unit costs more for the equipment and the install (it often needs upsized gas lines or electrical and new venting), but it lasts roughly 18–20 years versus 8–15 for a tank and only heats water on demand — so the higher up-front cost buys longevity and lower standby energy loss.
Do I need a permit to replace a water heater?
In most jurisdictions, yes — water-heater replacement is permitted work because of the gas, venting, and pressure-relief safety requirements. A licensed plumber pulls the permit as part of the job; skipping it can cause problems when you sell.
Related guides
Cost figures are US national averages for professionally installed work and are general educational information, not a quote. Actual prices vary by market, materials, scope, and site conditions — always get itemized estimates from licensed local pros.