Many things change the final price. The type of water heater you pick matters. Labor costs for installation play a role. Removing your old unit adds to the cost. You might also need permits for the work.
The size of the new unit affects the price. Where the water heater sits in your home also makes a difference. Getting a few quotes helps you plan your budget. Always ask for a clear breakdown of all costs.