A 40 gallon water heater replacement runs $700 to $2,300 installed nationally, averaging about $1,650, per Fixr data updated January 27, 2026. Electric models run $700 to $1,650. Gas or propane models run $700 to $2,300, and a defined same type gas swap prices narrower, at $1,586 to $1,843.
Hot Water Brief is an independent cost-research site. We are not a contractor and do not perform the work ourselves.
That narrower figure, dated May 2026 by Homewyse, prices one specific job: a 40,000 BTU gas tank with a 9 year warranty, swapped onto the existing gas, water and vent lines. Fixr's wider range covers the open market, including brand, warranty length and any change to the install. Both are legitimate figures, they are just measuring different things.
| Fuel type | Fixr installed range, Jan 27 2026 | Midpoint |
|---|---|---|
| Electric | $700 to $1,650 | about $1,175 |
| Gas or propane | $700 to $2,300 | about $1,500 |
| Hybrid heat pump | $1,600 to $5,000 | about $3,300 |
| Solar with backup | $2,000 to $7,000 or more | not applicable, open ended |
Source: Fixr, Cost to Replace a 40-Gallon Water Heater in 2026, updated January 27, 2026. The midpoint column is arithmetic on the published range, not a separate figure.
Removal, permits, and the repair versus replace math that applies across every capacity, not just 40 gallon, are covered in full at the full cost breakdown.

A 40 gallon tank is judged on first hour rating, not raw capacity. Fixr calls 40 gallons the right balance for a household of 3 to 4 people with typical use. A.O. Smith's more conservative guidance puts it at 1 to 2 people. Both describe a smaller household, not a large family home.
This page is written for that everyday case: a home with one or two bathrooms, commonly two to three bedrooms, rather than a larger house with three or more baths. Read those numbers as a starting frame, not a rule. A.O. Smith itself warns that bedroom count is not the best way to size a water heater, since a 3 bedroom home could have two people or five. What actually decides it is how many showers run back to back, and how much of that draw lands inside a single hour.
The federal test behind both estimates sorts households into draw patterns. A medium, or average, pattern draws 55 gallons a day and corresponds to a first hour rating of 51 to under 75 gallons. A high pattern draws 84 gallons a day and corresponds to 75 gallons and above. The full draw pattern table, including the lighter bins, is on the buying guide. Which bin a 40 gallon tank actually falls into depends on the fuel, covered next.
Two 40 gallon tanks are not interchangeable. A.O. Smith's 40 gallon gas model delivers an 83 gallon first hour rating with a 41 gallon per hour recovery rate, while its 40 gallon electric model delivers 53 gallons in the first hour, because a gas burner recovers hot water faster than resistance elements at the same tank volume.
| 40 gallon model | Fuel | Rated storage volume | First hour rating | Recovery rate | Federal usage bin |
|---|---|---|---|---|---|
| A.O. Smith ProLine XUC-40-450 | Gas, 40,000 BTU | 38 gallons | 83 gallons | 41 gallons per hour | High usage, 75 gallons and above |
| A.O. Smith ProLine PNT-40 110 | Electric, 9,000 watt | 36 gallons | 53 gallons | not published | Medium usage, 51 to under 75 gallons |
Source: A.O. Smith product specifications, hotwater.com, accessed August 2026. Usage bins from 10 CFR Part 430, Subpart B, Appendix E, current edition.
That difference explains the gap in the sizing rules above. The gas model's rating lands inside the federal high usage bin, tested against 84 gallons a day, which is why a 40 gallon gas tank can cover a heavier 3 to 4 person morning routine. The electric model's rating lands inside the medium, or average, bin, tested against 55 gallons a day, which lines up with A.O. Smith's own tighter guidance of 1 to 2 people for an average usage electric tank at 40 gallons. Fuel, not the number printed on the tank, is what moves a 40 gallon unit between those two bins.
A 40 gallon tank is undersized once actual demand outgrows its first hour rating. Fixr flags a large soaking tub, multiple high-flow showerheads, or frequent overlapping hot water use as the point to move up to 50 gallons, where A.O. Smith says a tank can generally cover two to three consecutive showers before running low.
Signs the household has outgrown 40 gallons:
If any of that applies, the 50 gallon numbers, priced the same way as above, are covered on water heater replacement cost, 50 gallon.
Under 10 CFR 430.32(d), a 40 gallon gas storage tank must clear roughly a 0.58 uniform energy factor on the medium draw pattern, from the formula 0.6483 minus 0.0017 times rated volume. A 40 gallon electric tank faces a much higher floor, about 0.92, from 0.9307 minus 0.0002 times rated volume, on the same medium pattern.
| Fuel and product class | Formula, medium draw pattern | Approx minimum UEF at 40 gallons |
|---|---|---|
| Gas storage, over 20 to 55 gallons | 0.6483 minus 0.0017 times rated volume | about 0.58 |
| Electric storage, over 20 to 55 gallons | 0.9307 minus 0.0002 times rated volume | about 0.92 |
Source: 10 CFR 430.32(d), current edition, accessed August 2026, applying to units manufactured before May 6, 2029.
The two 40 gallon A.O. Smith models named above sit close to those floors. The gas unit tests at UEF 0.64, above its roughly 0.58 minimum. The electric unit tests at UEF 0.92, essentially at its roughly 0.92 minimum. That gap is the efficiency case some homeowners make for paying more upfront for a heat pump model instead of resistance electric, a comparison covered in full on the buying guide.
Every figure above is listed here with its publisher and date. If a number is not traceable to this list, it is not on this page.
Prices move. Check these dates against today rather than assuming an earlier 2026 figure still holds.
Nationally, a 40 gallon water heater replacement runs $700 to $2,300 installed, averaging about $1,650, per Fixr data updated January 27, 2026. Electric models run $700 to $1,650, gas or propane models run $700 to $2,300, and hybrid heat pump models run $1,600 to $5,000. A narrower, same type gas swap prices at $1,586 to $1,843 per Homewyse, May 2026.
Often, but it depends on the fuel. Fixr calls 40 gallons the right balance for a household of 3 to 4 people with typical use. A.O. Smith's more conservative guidance puts it at 1 to 2 people, and the difference tracks fuel type: a 40 gallon gas model can rate an 83 gallon first hour rating, while a comparable electric model rates 53 gallons.
Mainly recovery speed. A.O. Smith's 40 gallon gas ProLine model rates an 83 gallon first hour rating with a 41 gallon per hour recovery rate, against a 53 gallon first hour rating on the equivalent electric model, because a gas burner reheats water faster than electric resistance elements at the same tank volume.
When actual demand outgrows the tank's first hour rating. Fixr names a large soaking tub, multiple high-flow showerheads, or frequent overlapping hot water use as the trigger, and A.O. Smith's benchmark for the step up is that a 50 gallon tank can generally cover two to three consecutive showers before running low.
Under 10 CFR 430.32(d), a 40 gallon gas storage tank needs roughly a 0.58 uniform energy factor on the medium draw pattern, and a 40 gallon electric storage tank needs about 0.92, both current for units manufactured before May 6, 2029. A.O. Smith's own 40 gallon gas and electric ProLine models test at 0.64 and 0.92.
Fixr prices a 40 gallon hybrid heat pump unit at $1,600 to $5,000 installed, against $700 to $2,300 for gas or propane and $700 to $1,650 for electric resistance, all dated January 27, 2026. The premium buys a federal efficiency floor well above either standard tank, a comparison covered on the buying guide.
Independent Research
Published ranges for tank and tankless replacement, the failures that justify a repair, and the ones that do not. Sourced, dated, and free to read.