While the upfront cost of a tankless water heater can be higher than that of a traditional water heater, the long-term energy savings and reduced maintenance costs often make up for the initial investment. Additionally, some utility companies offer rebates or incentives for installing energy-efficient tankless water heaters, further offsetting the installation cost.