What a tankless water heater costs to buy, install and run in your home, against a new tank and a heat pump water heater, 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.
✓ Free · no ads, we earn nothing · every figure sourced and dated · checked 28 November 2026
Working out the answer for an average home (3 people, U.S. average energy prices)…
The unit is the smaller part. On 24 November 2026 the whole-home units in our list cost $510 to $849 for electric models and $795.69 to $2,199 for gas models, before fitting. A point-of-use unit for one sink costs a few hundred dollars. The list with every price, seller and date is under the calculator.
Installation decides the bill. Published 2026 cost guides give $1,500 to $2,500 for a typical gas condensing retrofit, $350 to $750 more for a larger gas line, $500 to $1,000 for new venting, and $150 to $1,000 to fit an electric unit. A whole-home electric unit draws 75 to 150 amps; in a home with a 100 or 150 amp panel that can add $1,500 to $3,000 for a panel upgrade. The calculator adds these lines only where your answers call for them.
Electric units are cheaper to buy and need no vent, but they need a very large electric supply, and in cold states one unit cannot keep up with two showers. Gas units cost more to buy and install, and usually less to run. Which is cheaper over 20 years depends on your gas and electricity prices, which the calculator takes from the U.S. Energy Information Administration for your state unless you enter your own.
The U.S. Department of Energy writes that a tankless heater is 24% to 34% more energy efficient than a storage tank in a home that uses 41 gallons of hot water a day or less, and 8% to 14% in a home that uses around 86 gallons. It also gives about 20 years of life for a tankless unit and 10 to 15 years for a tank. Against that stands a higher installed price. That is why the answer is often "about the same" for a small household and "yes" for a large one.
A heat pump water heater is a tank that takes heat from the surrounding air. It uses far less electricity than an electric tank or an electric tankless unit, and it can heat at midday on your own solar power and store it, which a tankless heater cannot. It needs space and a room that stays between 40 and 90 °F (U.S. Department of Energy). In many of our test cases it is the cheapest option over 20 years, so the calculator always shows it.
Size follows two numbers: how many gallons a minute of hot water you use at the busiest moment, and how many degrees the water must be heated. The second depends on how cold your tap water comes in, from about 37 °F in Alaska to about 75 °F in Hawaii. The calculator works out both and shows the flow each unit delivers in your climate.
For a large household, a B&B or a home that runs several showers at once, often yes. For one to four people who replace a working gas tank, it is often about even, and a heat pump tank can be cheaper. Run your own numbers: the calculator says so plainly when it is not worth it for you.
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 price of the unit in our list that fits your home for the lowest price plus energy, 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, and a tankless unit once. The 20-year total is the installed cost times that number, plus 20 times the energy cost a year. The verdict compares the tankless totals with the total of a new tank.
With nothing chosen, 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 same home with a condensing gas tankless unit: a rated UEF of 0.98 counted at 0.9 times, 0.88, gives 87 therms, $129 a year. Installed $4,853: the unit, plus $2,000 for fitting, $600 for the vent and $550 for a larger gas line. Bought once, plus 20 times $129, $2,580; together $7,433 over 20 years. That is $653 more than the tank, so for this home the answer is that tankless is not worth it.
You are asked two things, your state and the people in your home. The figures we fill in for everything else, 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: water heater replacement cost and the water heater cost calculator on your own bills and the label of your unit.
Australia: heat pump hot water cost in AUD
日本: ガス給湯器の交換費用(円)
"Tankless Water Heater Cost 2026: Unit, Install, 20 Years" Do Your Own Math, https://doyourownmath.com/energy/tankless-water-heater-cost/. Last changed 28 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. Changing nothing is a valid result.