Many things can change your final cost. The kind of water heater you pick matters. Tankless models often cost more than tank models. The size of the unit also plays a role. Harder jobs, like moving the heater's spot, will add to the price.
It is smart to get quotes from a few local pros. Ask them for a full breakdown of all costs. This includes the new unit, labor, and taking away your old heater. A new, efficient water heater can help you save money on energy bills over time.