The cost of a gas tankless water heater is on average from $700 to $4,600, whereas the cost of an electric on-demand water heater is between $600 and $2,500, including installation. A tankless water heater might cost anywhere from $800 to $3,500 to convert or replace. The cost of a tankless system varies according to the type, fuel source, and rate of flow.