Tankless water heaters cost more upfront but save on utility costs and last twice as long. A tankless water heater costs between $900 and $2,200 before installation.