Many things can change the final price. The type of water heater matters. The size of the unit plays a part. How hard the old unit is to remove also affects cost. Your plumber's labor rates are also a part of the cost.
Always get a few quotes from local plumbers. Ask about all parts of the job. This helps you understand the full cost. Planning ahead makes the process smoother.