It costs around $1,000 to replace a 50-gallon electric water heater and $1,200 to replace a natural gas heater of the same capacity.