Tank water heaters are less expensive to purchase upfront but are less energy efficient and have higher operating costs. Tankless water heaters are more expensive to purchase upfront, but they are more energy efficient and have lower operating costs.