Several factors can affect the cost of a new water heater, including the type and size of the unit, installation fees, and ongoing maintenance costs. Upgrading to a more energy-efficient model or choosing a tankless system may initially cost more, but can lead to significant savings in the long run.