Your water heater is due. Compare a new tank, a tankless unit and a heat pump water heater on your home: the installed price, the energy a year and the total over 20 years. Answer two questions, your state and the people in your home; we fill in the rest and show you what we filled in.
The calculator needs JavaScript.
Published 2026 cost guides put a 50-gallon tank, installed, at $900 to $2,500 for gas (most pay about $1,800) and $700 to $1,900 for electric (Fixr). A heat pump water heater runs $2,000 to $5,500 installed (Fixr), and a tankless unit $2,500 to $5,500 (HVACBase). The calculator above prices your home on the units in our list, with the seller and the date for every price.
Labor is usually $300 to $1,500, or 18% to 50% of the total (Fixr). It rises when the job changes something: a larger gas line, a new vent, a new electrical circuit, or a move to another spot. Switching from gas to electric or the other way is the biggest cost step. The calculator takes one figure inside each published range and shows it with its source; it does not ask you for a price.
Replacing a gas tank with a gas tank is the simplest job. A gas tankless unit usually needs a larger gas line and new venting, which is why it costs more to install. A 120-volt heat pump water heater can replace a gas tank without new wiring; it needs space and a room that stays between 40 and 90 °F (U.S. Department of Energy).
A heat pump water heater costs more to buy than a tank, and far less to run on electricity, because it moves heat from the air instead of making it. In many of our test cases it has the lowest total over 20 years. The calculator shows it for every home, next to the tank and the tankless options.
The U.S. Department of Energy gives 10 to 15 years for a storage tank and about 20 years for a tankless unit. The calculator counts that: over 20 years a tank is bought about 1.7 times, a tankless unit once.
A tank past 10 years old deserves close watching, and when a repair quote is more than half the cost of a new installation, replacing is generally the better buy (Lennox). Choosing before it fails gives you time to compare: a heater bought in an emergency is usually a copy of the old one.
Not a federal one any more: the 25C energy efficient home improvement credit is not allowed for equipment placed in service after 31 December 2025 (IRS). Utility and state rebates may still exist; type yours in under "Full detail".
In words: for each option we add what it costs to put in and what it costs to run for 20 years. The energy a year is the heat your hot water needs (gallons a day, times 365 days, times 8.34 Btu for each gallon and degree, times the degrees between your tap water and 120 °F), divided by the heater's efficiency (its UEF), and priced at your gas, propane or electricity price. The cost to put in is the unit's price from our list plus the installation lines that your answers call for. A tank is counted as lasting 12 years and a tankless unit 20, so over 20 years a tank is bought 20 ÷ 12, about 1.7 times. The 20-year total is the installed cost times that number, plus 20 times the energy cost a year. The verdict compares those totals.
With nothing typed, for a new gas tank: 40 gallons a day from 57 °F to 120 °F is 7,671,132 Btu a year; at a UEF of 0.60 that is 128 therms; at $1.48 a therm, $189 a year. Installed $1,800, bought 1.67 times, is $3,000; plus 20 times $189, $3,780; together $6,780 over 20 years.
The figures we fill in when you leave a field empty, each with its source:
What is not in the sum: your installer's actual price (each installation line is one figure inside a published range), permits, maintenance such as flushing a tankless unit, a rebate you did not type, and changes in energy prices over the 20 years.
Also on this site: tankless water heater cost and the water heater cost calculator on your own bills.
India: geyser cost in INR
"Water Heater Replacement Cost: Tank, Tankless or Heat Pump." Do Your Own Math, https://doyourownmath.com/energy/water-heater-replacement-cost/. Last changed 27 November 2026.
This page is arithmetic on published figures and on your answers. It is not a quote, an energy audit or advice. Your real cost depends on your home, how you use hot water and your installer's work. A gas or electrical installation must be done by a licensed professional. The links to units and to installer searches are plain links: we earn nothing from them.