Two things set your replacement cost: the fuel type and where the heater lives. A 50-gallon electric unit in an open garage is the cheap end; a 50-gallon gas unit in a tight closet with venting changes is the expensive end of the same job. This guide prices every scenario, then covers the question most warranty holders arrive with — what will my plan actually pay?
The 2026 Numbers
$700–$3,100
Tank replacement, installed
The most common replacement — a 40- or 50-gallon tank — runs $700–$1,800 for electric and $1,000–$3,100+ for gas, labor included. Complexity (location, venting, code work) moves it more than the unit price itself.
$1,400–$5,600
Tankless, installed
Gas whole-house tankless starts around $4,100 installed; electric needs panel capacity and runs $2,500–$5,600. Higher upfront cost buys 15–20 years of service versus 8–12 for a tank.
$500–$1,500
Typical home warranty cap
Water heater caps run $500–$1,500 per item — which is why this system is one of the best warranty values: the cap often covers most or all of a standard tank replacement, unlike HVAC where caps fall far short.
8–12 years
Typical tank lifespan
Tank units age out predictably, and most fail by leaking. Tankless units last 15–20 years but cost more to install and maintain (annual descaling in hard-water areas).
Cost by Size and Type
| Unit type | Typical household | Installed cost | Notes |
|---|---|---|---|
| Tank, 40-gallon electric | 1–2 people, 1 bath | $700–$1,500 | The cheapest common replacement; simplest install. |
| Tank, 40-gallon gas | 2–3 people, 1–2 baths | $900–$2,200 | Venting adds cost; faster recovery than electric. |
| Tank, 50-gallon electric | 3–4 people, 2–3 baths | $700–$1,800 | The most popular size in the US. |
| Tank, 50-gallon gas | 3–5 people, 2–3 baths | $1,000–$3,100+ | Higher unit cost, higher operating cost savings vs. electric. |
| Tank, 75-gallon / high-capacity | 5+ people, 3+ baths | $1,800–$4,000 | Larger footprint; may need space modifications to fit. |
| Tankless, whole-house electric | Any size home | $2,500–$5,600 | Often needs an electrical panel upgrade to handle the load. |
| Tankless, whole-house gas | Any size home, high flow | $4,100–$6,500 | Needs gas line sizing and new venting; priciest common install. |
What Pushes the Bill Higher
Expansion tank
$150–$350
Required by code in most closed-loop systems — and almost always excluded from home warranty coverage as a code upgrade.
New shut-off valve & flex connectors
$50–$200
Cheap parts, routinely replaced during install; sometimes bundled, sometimes itemized.
Drain pan and drain line
$100–$250
Required where the heater sits over finished space; code-driven, often excluded from warranty scope.
Earthquake strapping (CA & others)
$50–$150
Mandatory in seismic zones; warranty companies treat it as a code upgrade, not a covered item.
Venting changes (gas units)
$200–$800
Newer, more efficient gas units vent differently. Switching from atmospheric to power-vent can add real cost.
Fuel-type conversion
$500–$2,000+
Electric-to-gas requires a gas line run; gas-to-electric may require panel capacity. This is a conversion, not a like-for-like swap.
Permits
$50–$300
Most jurisdictions require a permit for water heater replacement. Honest installers include it; quotes without one are a flag.
Removal and disposal of the old unit
$50–$150
Often bundled into labor, sometimes itemized separately. Confirm before comparing quotes.
Repair or Replace? Six Scenarios, Decided
Leaking tank
Replace
A tank leak means corrosion from the inside — it can't be patched, and the only question is how much water damage happens before the swap. Replace immediately; don't wait for the drip to become a flood.
Unit is 10+ years old and a major part fails
Replace
Heating elements, thermostats, and valves on a decade-old tank sit near the end of its service life. A $300–$600 repair on a 12-year-old unit buys months, not years.
Unit under 8 years, single part failure
Repair
A failed element or thermostat on a young unit is a $150–$400 fix with years of life left. Repair is clearly the right call — this is also where a home warranty earns its keep.
Rising energy bills on an old tank
Replace
Sediment buildup on a 10+ year tank cuts efficiency noticeably. New units run measurably cheaper; gas especially pays the difference back.
Rust-colored hot water
Replace soon
Usually means the anode rod is spent and the tank is rusting internally. An anode swap on a young tank can save it; on an 8+ year tank, it's the beginning of the end.
Lukewarm water only
Depends
On an electric unit, often just a failed element or thermostat — repair. On an old gas unit with a failing burner assembly, replacement math usually wins.
What a Home Warranty Actually Pays Toward a Replacement
Water heater caps often cover the whole job
With typical caps of $500–$1,500 and standard tank replacements at $700–$2,000, a warranty claim can cover most or all of a like-for-like swap — this is one of the systems where the coverage actually performs as advertised.
Code upgrades are the gap
Expansion tanks, drain pans, strapping, and venting changes are treated as code compliance, not covered failure. A $1,200 covered swap can still carry $300–$600 of non-covered code work.
Upgrade charges apply
Swapping a 40-gallon for a 50-gallon, or tank for tankless, is an upgrade — expect modification charges for the difference, not a free bump in capacity.
Exclusions decide the hard cases
Rust and corrosion are excluded in many contracts — an awkward spot, since tank failure is usually corrosion. Sediment, scale, and lack-of-maintenance denials are common on older units. Read the exclusions before claiming.
Sediment flushes are the cheapest insurance
Annual flushing ($0 DIY, ~$100–$150 pro) extends tank life and, more importantly, keeps maintenance-related denials off the table when you do need to claim.
Worked example: your 11-year-old 50-gallon gas tank starts leaking. Replacement cost: ~$1,500 installed. Warranty cap: $1,500. The warranty covers the like-for-like swap after your $100 service fee — but the expansion tank your city now requires ($250) and the drain pan ($150) come out of your pocket as code upgrades. Total out of pocket: ~$500 on a $1,900 job. That's the realistic warranty outcome: strong coverage on the unit itself, gaps at the code work.
Frequently Asked Questions
How much does it cost to replace a water heater in 2026?
A standard tank replacement runs $700–$3,100 installed depending on size and fuel type — $700–$1,800 for a 50-gallon electric, $1,000–$3,100+ for 50-gallon gas. Tankless installs run $1,400–$5,600. Most homeowners replacing a standard 40–50 gallon unit land between $1,000 and $2,000 all-in.
Is it cheaper to repair or replace a water heater?
Repair when the unit is under 8 years old and the fix is a simple part (element, thermostat, valve: $150–$600). Replace when the tank leaks, the unit is 10+ years old, or a major component fails — a repair on a decade-old tank buys months, not years. A leaking tank always means replace.
Does a home warranty cover water heater replacement?
Usually yes, and better than most systems. Typical caps of $500–$1,500 cover most or all of a like-for-like tank replacement ($700–$2,000). The gaps are code upgrades (expansion tanks, drain pans, strapping), capacity or type upgrades, and exclusions like rust, sediment, and lack of maintenance.
How much does a tankless water heater cost installed?
$1,400–$5,600 on average. Electric whole-house units run $2,500–$5,600 and often need panel capacity; gas whole-house units start around $4,100 and need gas-line sizing and new venting. Tankless lasts 15–20 years versus 8–12 for a tank, which narrows the lifetime-cost gap.
What code upgrades might my replacement require?
Expansion tanks (required in most closed systems now), drain pans and drain lines over finished space, seismic strapping, updated venting, and permit fees. These run $150–$800 combined and are typically excluded from home warranty coverage as code compliance.
How long does a water heater last?
Tank units last 8–12 years; tankless 15–20. Annual flushing extends tank life and keeps sediment-related warranty denials off the table. Most tank failures are leaks — plan for replacement rather than repair once a unit crosses 10 years.
The bottom line
Budget $1,000–$2,000 for a standard 40–50 gallon tank replacement, $2,500–$6,500 for whole-house tankless, and add $150–$800 for code work either way. Repair young units, replace leaking or 10+-year-old ones — and if a home warranty is in the picture, water heaters are where the coverage performs best, provided your claim clears the sediment and maintenance exclusions. An annual flush is the cheapest way to protect both the tank and the claim.
Keep reading: what home warranties cover for water heaters, how service fees work, and whether a warranty is worth it for your home.