Thermocouple replacement: $150–$275. Gas control valve replacement: $300–$500. Thermostat replacement: $80–$200. Leak repair: $260–$1,000+ (you're usually better off replacing your water heater if the tank has a leak)