The cost of installing a tankless water heater varies based on several factors, including the type of system, your hot water demands, whether it’s a retrofit, any code changes since your last water heater was installed, your location, the construction of your home, the complexity of the installation, and local labor rates.