What a thermostat does and why yours might need replacing

Your water heater's thermostat is a sensor that tells the heating element or burner when to turn on and off. It keeps the water at the temperature you set — usually 120°F in most homes. When a thermostat fails, the water either stays too cold, runs scalding hot, or cycles on and off constantly without holding temperature.

A faulty thermostat is one of the most common water heater repairs because it sits in a damp, hot environment and wears out over time. The good news: replacing one is straightforward on most electric water heaters, and the part itself costs between $15 and $50. Gas water heater thermostats are more involved and often worth calling a professional for, since they're tied to the gas control valve.

Before you start, turn off power to the water heater at the breaker (electric) or the gas valve (gas). Let the tank cool for at least an hour. A hot water heater holds 40 to 80 gallons of scalding water, so safety comes first.

Key Takeaways

  • Electric water heater thermostats are replaceable by a homeowner with basic tools; gas heater thermostats usually require a licensed technician because they control the gas valve.
  • You must turn off power at the breaker and let the tank cool completely before opening the access panel or touching any electrical parts.
  • The thermostat sits under an insulation blanket on the side of the tank and is held in place by a clip or bracket that you remove by hand or with a screwdriver.
  • Write down the exact model number of your water heater before buying a replacement thermostat, because different models use different parts.
  • If the water temperature still won't hold steady after replacement, the heating element itself may have failed and will need separate repair.

Identify your water heater type before you start

Electric and gas water heaters have different thermostat designs, and the wrong approach can damage your heater or create a safety hazard. Look at the front of your tank. An electric water heater has a large cylindrical tank with one or two metal access panels on the side, usually covered by a plastic or foam cover. An electric resistance heating element screws into the bottom or side of the tank inside.

A gas water heater has a burner chamber at the bottom, a gas control valve (a round or rectangular dial on the front), and a pilot light. The thermostat on a gas heater is built into the gas control valve itself, not a separate part you can swap out easily. If your gas heater's temperature is wrong, the gas valve usually needs replacement by a licensed technician.

If you're unsure, check the nameplate on the side of the tank. It will say "Electric" or "Gas" clearly. Only proceed with this guide if you have an electric water heater.

Locate and remove the old thermostat

Turn off the breaker that powers your water heater at the electrical panel. The breaker is usually labeled "Water Heater" or "Hot Water." Flip it to the OFF position. Wait at least one hour for the tank to cool.

Find the access panel on the side of your tank. It's a rectangular metal cover, usually 4 to 6 inches wide, held on by one or two screws. Peel back the insulation blanket around it — it's usually fiberglass or foam and will come away easily. Unscrew the access panel and set it aside.

Behind the panel you'll see the thermostat: a flat rectangular or round device with a temperature dial or digital display, held in place by a metal clip or bracket. The thermostat has two or three wires attached to it. Take a photo of the wire connections before you disconnect anything — you'll need to match them exactly on the new thermostat.

Loosen the clip or bracket holding the thermostat in place. Most use a single screw or a spring clip you can release by hand. Gently pull the thermostat out of its pocket in the tank wall. Disconnect the wires by loosening the terminal screws or pulling the connectors straight out, depending on your model.

Buy the correct replacement thermostat

Write down your water heater's exact model number before you shop. The model number is on the nameplate attached to the tank, usually near the bottom or on the side. It will look something like "AE-40H" or "EG-50T-45." Take a photo of the nameplate with your phone.

Go to a plumbing supply store or a large home improvement retailer and give them the model number. Ask for the replacement thermostat for that specific model. Do not guess or buy a "universal" thermostat — water heater thermostats are model-specific, and the wrong one won't fit or won't work.

The replacement should come with instructions showing which wires go where. If it doesn't, search online for "[your model number] thermostat replacement" to find a diagram. The cost is usually $20 to $50 for the part alone.

Install the new thermostat and test it

Before you touch the new thermostat, make sure the breaker is still off and the tank is cool. Insert the new thermostat into the pocket in the tank wall, aligning it the same way the old one sat. Connect the wires to the terminals on the new thermostat, matching the photo you took earlier. Tighten each terminal screw firmly — loose connections cause the thermostat to fail again quickly.

find the thermostat with the clip or bracket, tightening the screw or clip until it's snug but not forced. Reattach the access panel and screw it back in place. Smooth the insulation blanket back over the panel.

Turn the breaker back on at the electrical panel. The heating element should begin warming the tank. Set the thermostat dial to your desired temperature — 120°F is standard for most homes. Wait 30 to 45 minutes, then run a hot water tap to check the temperature. It should feel hot but not scalding. If the water is still too cold or too hot, the thermostat may not be seated properly, or the heating element itself may have failed.

When to call a professional instead

If you have a gas water heater, stop here and call a licensed plumber or gas technician. Gas heater thermostats are integrated into the gas control valve, and replacing them requires knowledge of gas safety and often a special tool to recalibrate the valve. A mistake can create a gas leak or a safety hazard.

If you've replaced the thermostat on an electric heater and the water temperature still won't hold steady, the heating element is likely burned out. That's a separate repair that involves draining the tank and unscrewing the element from inside. It's doable for a confident homeowner, but if you're not comfortable with it, a plumber can do it in under an hour for $150 to $300 in labor.

If you're not comfortable working inside the tank access panel, or if you're unsure about the wire connections, call a plumber. The cost of a service call and thermostat replacement is usually $200 to $400, which is worth it for peace of mind and a warranty on the work.

Frequently Asked Questions

How do I know if the thermostat is broken or if it's the heating element?

If the water is ice cold even after the heater has been running for hours, the heating element is likely dead. If the water gets hot but won't stay at the temperature you set — it keeps climbing or drops suddenly — the thermostat is the problem. A thermostat that's completely stuck will cause the water to either never heat or overheat to dangerous temperatures.

Can I replace a thermostat on a gas water heater myself?

Not safely. Gas water heater thermostats are part of the gas control valve, which requires a licensed technician to replace and recalibrate. Improper installation can cause gas leaks or prevent the pilot light from staying lit. Call a licensed plumber or gas technician for this repair.

What temperature should I set the thermostat to?

Most homes use 120°F, which is hot enough for cleaning and bathing but reduces the risk of scalding. Some people prefer 130°F, but anything above 140°F is a burn hazard, especially for children and elderly people. Check your water heater's manual for the recommended range.

Do I need to drain the tank to replace the thermostat?

No. The thermostat sits in a pocket on the outside of the tank wall, so you don't need to drain anything. Just turn off the power, let it cool, and remove the access panel. Draining is only necessary if you're replacing the heating element itself.

How long does a water heater thermostat usually last?

Most thermostats last 10 to 15 years, depending on water quality and how hard the heater works. Hard water and high mineral content can shorten the lifespan. If your heater is over 10 years old and the thermostat fails, it's worth considering whether the whole tank is nearing the end of its life.