Water Heater Cost Calculator

Quotes for the same 50-gallon tank routinely span a thousand dollars, and most of the spread is code items rather than markup: an expansion tank, a drain pan, seismic straps, the permit and hauling the old tank away can be half the bill. This calculator prices the unit, the swap, the venting and every add-on line by line, then adjusts labor and materials for your state. Run your inputs before the plumber arrives and a fair quote is easy to recognize.

Published Cost data last reviewed Re-checked quarterly

Free estimateInstant · State-adjusted

Sticking with your current fuel is far cheaper than converting.

40 gal suits 1–3 people; 50 gal suits 3–4; 65–80 gal suits 5+. Check your current unit's label.

Attic installs run ~20% more labor — carrying a tank upstairs is slow and pan rules are stricter.

Most current codes require one when a check valve closes the supply; it fails inspection without it.

A leaking tank in an attic or above a ceiling needs a pan piped to a safe drain.

Two straps around the tank, required statewide in California.

Relocation re-routes water, gas and vent lines — HomeGuide prices it +$500–$2,500.

A 40-gallon tank weighs ~120 lbs full of sediment; most people pay the crew.

Required nearly everywhere; an unpermitted install can stall a home sale.

Costs are adjusted for labor and material rates in your state.

Low

$1,430

Typical

$1,780

High

$2,410

Prices adjusted for Texaslabor & material costs.

Cost itemLowHigh
Materials
Electric tank — 40 gal$730$1,230
Thermal expansion tank$170$290
Labor
Installation labor — like-for-like swap, garage$320$530
Permits & fees
Plumbing permit & inspection$110$180
Disposal
Haul-away & disposal of old unit$110$180
Estimated total$1,430$2,410

What this estimate assumes

  • Range is 80%–135% of the computed typical — the spread between a sharp like-for-like bid and high-cost metros, awkward access or older plumbing that fights you.
  • Unit, vent kit, expansion tank and pan dollars scale with your state's materials prices; installation, venting, straps, relocation, haul-away and permit dollars scale with its labor rates.
  • Tank capacity is priced in $25 steps per gallon around a 40-gallon base; gas tanks add $150 over electric before venting (HomeGuide's $100–$200 delta).
  • Electric tanks need no venting; a dedicated 30A double-pole breaker is assumed to exist — adding one is a separate electrical job.
  • Sticking with your current fuel. Converting fuel adds a gas line ($275–$825) or dedicated wiring ($550–$2,300) on top of this total.
Get real quotes

Typical cost ranges

Tank water heater replacement cost by size (electric)
ProjectLowTypicalHigh
30-gallon electric tank (installed)$920$1,150$1,550
40-gallon electric tank (installed)$1,120$1,400$1,890
50-gallon electric tank (installed)$1,320$1,650$2,230
65-gallon electric tank (installed)$1,620$2,030$2,730
80-gallon electric tank (installed)$1,920$2,400$3,240
Unit plus like-for-like installation labor only — electric needs no venting, which is why it is the cheapest swap. Gas adds $150 on the unit plus venting; code items, permit and haul-away come on top.
Replacement cost by fuel type (50-gallon, installed)
ProjectLowTypicalHigh
Electric (installed)$1,740$2,170$2,930
Gas — atmospheric vent (installed)$2,080$2,600$3,510
Gas — power vent (installed)$2,540$3,170$4,280
Hybrid heat pump (installed)$3,260$4,070$5,490
Indirect (boiler-fed) (installed)$2,980$3,720$5,020
Each row includes the unit, installation, a code-required expansion tank, permit and haul-away of the old unit. Gas rows assume an atmospheric vent reconnect; hybrid and indirect include their extra wiring and boiler tie-in labor.
Code items & add-on costs
ProjectLowTypicalHigh
Thermal expansion tank, installed (add-on)$1,300$1,620$2,190
Drain pan & drain line (add-on)$1,210$1,510$2,040
Seismic strapping (2 straps & hardware) (add-on)$1,190$1,490$2,010
Plumbing permit & inspection (add-on)$1,240$1,550$2,090
Haul-away & disposal of old unit (add-on)$1,240$1,550$2,090
Relocate within the same room (add-on)$1,520$1,900$2,570
Relocate to a new location (add-on)$2,320$2,900$3,920
Each add-on priced on its own, national average. Expansion tanks are required by most current codes on closed (check-valve) supply systems; drain pans are required over finished living space; two seismic straps are required in California.
Venting options for a 50-gallon gas heater (full installed job)
ProjectLowTypicalHigh
Gas — atmospheric (B-vent) (installed)$1,660$2,080$2,810
Gas — direct vent (sealed combustion) (installed)$1,860$2,330$3,150
Gas — power vent (fan-assisted) (installed)$2,120$2,650$3,580
Like-for-like swap with each vent type, no code items. Power vents cost more up front because of the blower fan and the electrician's wiring, but they exhaust through a wall instead of a chimney.

Frequently asked questions

How much does it cost to replace a 40-gallon water heater?

A like-for-like electric swap runs about $1,400 installed — $1,120 to $1,890 depending on the market. The same 40-gallon job in gas, with the flue reconnected, is roughly $1,830. Add the expansion tank, permit and haul-away most codes now expect and the realistic planning number is about $1,920, right inside HomeGuide's $600–$3,100 installed range for standard tanks.

Do I need a permit to replace a water heater?

Yes, in nearly every US jurisdiction — a water heater is a plumbing and (for gas) fuel-gas appliance, and an unpermitted install can fail a home sale inspection. Permits run $25–$300 depending on the type of unit (HomeGuide lists $50–$200; Angi/HomeAdvisor data $25–$300, plus the same again if a new gas line is involved). Most plumbers pull the permit for you and pass the fee through — that's the $150 line in this calculator.

Is an expansion tank really required?

Usually, yes. When a check valve or backflow preventer closes your supply system, heated water has nowhere to expand and pressure spikes that stress valves and fittings — which is why most modern codes require a thermal expansion tank on a replacement. Installed cost is about $220 here, inside the $100–$400 HomeGuide and $90–$350 Angi ranges. Skipping it on a permitted job fails inspection.

What costs more: gas or electric?

The gas unit itself is only $100–$200 more (HomeGuide's figure), but gas adds venting: an atmospheric reconnect is modest, while a power-vent model needs a blower plus $300–$500 of electrician wiring (per Angi/HomeAdvisor data compiled by Bob Vila). Electric tanks vent through nothing, so the install is cheaper. Operating costs run the other way — gas usually beats electric per gallon of hot water — and converting fuels adds a $275–$825 gas line or $550–$2,300 of wiring.

How long should a tank water heater last — and when should I replace rather than repair?

HomeGuide puts tank life at 8–12 years; contractors compiling the Bob Vila guide say 10–15 with good maintenance. The repair-or-replace call is symptom-driven: water pooling at the tank's base means the glass liner has cracked and no repair exists — replace it; rusty or metallic-tasting hot water means the anode rod has lost the fight with corrosion and the tank is on borrowed time; rumbling means sediment, which a flush can still fix on a younger unit. Replacing the $30–$60 anode rod around year 5 and flushing sediment annually are the two moves that stretch a tank toward the top of its range — on a unit already past 10 years, put that money toward the replacement instead.

What size tank does my household need?

HomeGuide's sizing table: 1–2 people, 23–36 gallons; 2–3 people, 36–46; 3–4 people, 46–56; 5 or more, 56–80. The most common replacement in the US is 40 gallons, and matching your old tank's size is usually right unless the household changed. The sharper sizing metric is the First Hour Rating on every unit's yellow EnergyGuide label — the gallons it delivers in your single busiest hour, which you can compare against a real morning of back-to-back showers plus the dishwasher. Oversizing costs you at purchase and every month after in standby losses; a hybrid heat pump at 50–65 gallons covers most families of five.

Why does moving a water heater cost so much extra?

A relocation isn't a swap — the crew extends or re-routes water, gas and vent lines, may add a drain pan and new seismic bracing, and patches whatever the old run cut through. HomeGuide prices a tank relocation at +$500–$2,500 with supply piping at $12–$15 per linear foot; this calculator models $500 for a move within the room and $1,500 for a new location.

Is a hybrid heat pump water heater worth the premium?

Installed, a 50-gallon hybrid lands around $3,550 in this model — inside HomeGuide's $2,000–$4,600 range for hybrid installs — versus roughly half that for a standard electric tank. It uses about a quarter of the electricity by moving heat instead of making it, but it needs ~1,000 cubic feet of air between 40°–90°F to work efficiently (ENERGY STAR's siting guidance), so closets need louvered doors. Check ENERGY STAR's rebate finder before buying: utility and federal incentives routinely knock hundreds off the premium.

Related cost calculators

How this estimate is calculated

These notes are written for this tool alone: where its base prices come from, how the low–high window is derived, and what the figure deliberately leaves out.

  • The model prices eleven inputs: fuel type, tank gallons, venting class (gas), installation location, expansion tank, drain pan, seismic straps, relocation distance, haul-away and permit.
  • Base data is 2025–2026 national pricing: HomeGuide's water heater guide (fetched Sept 2026) puts standard-tank installs at $600–$3,100 with units of $400–$2,100 by size and labor of $200–$1,000, expansion tanks at $100–$400, permits at $50–$200, haul-away at $75–$500 and relocations at +$500–$2,500 with piping at $12–$15 per linear foot; Bob Vila's guide (Angi/HomeAdvisor data, fetched Sept 2026) anchors the national average at $1,293 ($874–$1,765) with $150–$450 swap labor and power vents at $300–$600 over direct vent plus $300–$500 of wiring.
  • The unit model is a $950 base for a 40-gallon electric tank moving $25 per gallon of capacity, with gas +$150, hybrid heat pump +$1,300 and indirect +$1,200 — the shape that reproduces the published size and type tables above.
  • Swap labor is $450 electric / $550 gas / $700 hybrid / $800 indirect, plus 5% for basements and 20% for attics; venting adds a kit-plus-labor pair by vent class.
  • Every estimate shows low/typical/high at 80% / 100% / 135% of the computed typical — the honest spread between a sharp competitive swap and a high-cost metro or difficult retrofit.
  • Material lines (unit, vent kit, expansion tank, pan) scale with your state's materials multiplier; labor lines (installation, venting labor, straps, relocation, haul-away, permit) scale with its labor multiplier.
  • Excludes fuel conversions (a new gas line runs $275–$825; new wiring $550–$2,300 per the Bob Vila guide), new vent chases or chimney liners, recirculation pumps, water-line repairs found mid-job, and tankless units — see the tankless water heater calculator.

Sources

Every cost constant above traces to the publishers listed here — the editorial gate requires at least two independent sources per calculator, each with the month we accessed it. FixTally is not affiliated with any of them.

  1. HomeGuide — Water Heater Installation & Replacement Cost (tank installed $600–$3,100; units $400–$2,100 by size; labor $200–$1,000; expansion tank $100–$400; permits $50–$200; haul-away $75–$500; relocation +$500–$2,500) — accessed 2026-09
  2. Bob Vila — How Much Does Water Heater Replacement Cost? (Angi/HomeAdvisor data: avg $1,293, $874–$1,765; labor $150–$450; power vent +$300–$600 & $300–$500 wiring; permits $25–$300; removal $100–$500; expansion tank $40–$350) — accessed 2026-09
  3. ENERGY STAR — Heat Pump Water Heaters (siting: ~1,000 cu ft of air space, 40°–90°F year-round; rebate finder) — accessed 2026-09

Maintained by the FixTally Editorial Team — each quarter we re-check the cited prices, re-run every calculator’s math, and refresh the review dates shown on these pages.

Know your number — now get a real quote

Your estimate is a planning range. Compare it against free quotes from licensed, insured contractors before you hire.

Get a real quoteFree · No obligation · Verified local contractors