Tankless water heater repair

How to Replace a Tankless Water Heater Thermostat

Direct answer: To replace a tankless water heater thermostat, shut off power to the unit, remove the access cover, swap the thermostat with a matching replacement, reconnect the wires the same way they came off, and test the heater under normal hot water use.

A failed thermostat can keep a tankless water heater from heating correctly, cycling normally, or holding the set temperature. This job is manageable for many homeowners if you work carefully, keep the wiring organized, and stop if you find burned wiring, water inside the cabinet, or signs the problem is somewhere else.

Before you start: Match the replacement part to your exact water heater before ordering.

Last reviewed: 2026-04-04

Step-by-step fix

Step 1: Confirm the thermostat is a likely cause

  1. Make sure the heater has power and that any simple reset or temperature setting issue has already been ruled out.
  2. Look for symptoms that fit a thermostat problem, such as no heat, unstable water temperature, or the burner not responding when hot water is called for.
  3. Check the unit for obvious signs of a different problem, including error codes, leaking water, scorched wiring, or mineral buildup around internal parts.
  4. Compare your replacement thermostat to the original part information on the heater or old component so you know you have the right part before opening the unit.

If it works: You have a matching replacement part and the symptoms still point to the thermostat rather than a simple setting or reset issue.

If it doesn’t: If the heater starts working after a reset or setting change, hold off on replacement and monitor it through a few normal hot water cycles.

Stop if:
  • You see active leaking, melted wires, or burn marks inside or around the heater.
  • The replacement thermostat does not match your exact unit.
  • The heater is showing a fault that points to gas supply, venting, flow sensing, or another component instead of temperature control.

Step 2: Shut off power and open the heater

  1. Turn off electrical power to the tankless water heater at the disconnect or breaker.
  2. Use a non-contact voltage tester at the unit to confirm power is off before touching internal wiring.
  3. Let the unit sit for a few minutes if it was recently running so internal parts can cool down.
  4. Remove the front access cover and set the screws aside where they will not get lost.

If it works: The cover is off and you have safe access to the internal components with power confirmed off.

If it doesn’t: If you cannot confidently confirm power is off, do not continue until the circuit is identified and shut down correctly.

Stop if:
  • You cannot safely isolate electrical power to the unit.
  • You find water inside the cabinet or corrosion on live electrical parts.

Step 3: Locate and document the old thermostat

  1. Find the thermostat mounted near the heat exchanger or control area, depending on the unit layout.
  2. Take a clear photo showing every wire connection before disconnecting anything.
  3. If needed, label the wires with tape so each one goes back to the same terminal or connector position.
  4. Check how the thermostat is mounted so you can install the new one in the same orientation.

If it works: You know exactly where the thermostat sits and how each wire is connected.

If it doesn’t: If the wiring layout is confusing, take more photos from different angles before removing any connectors.

Stop if:
  • The wiring insulation is brittle, charred, or falling apart.
  • The thermostat area shows heavy corrosion or signs of overheating beyond the part itself.

Step 4: Remove the old thermostat

  1. Pull the wire connectors off the thermostat terminals one at a time, using needle-nose pliers on the connector body rather than the wire itself.
  2. Remove the mounting screw or clip that holds the thermostat in place.
  3. Lift the old thermostat out carefully without bending nearby brackets or damaging adjacent wires.
  4. Compare the old thermostat to the new one side by side to confirm the terminals, shape, and mounting points match.

If it works: The old thermostat is out and the new part matches it closely enough to install in the same location.

If it doesn’t: If the new part does not match once the old one is out, pause the repair and use the old part details to order the correct replacement.

Stop if:
  • The mounting area is cracked, warped, or damaged enough that the new thermostat will not sit securely.
  • A wire terminal breaks off or pulls out of the harness during removal.

Step 5: Install the new thermostat

  1. Set the new thermostat into the same position and orientation as the original.
  2. Reinstall the mounting screw or clip so the thermostat is secure but not overtightened.
  3. Reconnect each wire to the matching terminal or connector position using your photo as a guide.
  4. Double-check that every connector is fully seated and that no wires are pinched, rubbing, or left loose inside the cabinet.

If it works: The new thermostat is mounted securely and all wires are back in their original positions.

If it doesn’t: If a connector feels loose, remove it and reseat it before closing the unit.

Stop if:
  • The new thermostat will not mount flat or the connectors do not fit correctly.
  • You are unsure about even one wire location after comparing to your photos.

Step 6: Reassemble and test the repair under real use

  1. Reinstall the front cover and secure it with the original screws.
  2. Restore power to the water heater.
  3. Open a hot water fixture and let the unit run long enough to call for heat and stabilize.
  4. Check that the heater responds normally, hot water temperature is steady, and the unit does not shut down unexpectedly.
  5. Run hot water at a second fixture if that matches your normal use so you can confirm the repair holds under a typical demand.

If it works: The heater starts, heats water normally, and maintains a steady temperature during real hot water use.

If it doesn’t: If the heater still does not heat correctly, recheck the wire connections and part match. If those are correct, the fault is likely elsewhere in the heater.

Stop if:
  • The unit trips the breaker, shows a new fault, smells hot, or behaves worse after the replacement.
  • You hear unusual internal clicking, see sparking, or notice the cabinet getting abnormally hot.

Replacement Parts

Repair Riot may earn a commission from qualifying purchases, at no extra cost to you.

FAQ

How do I know the thermostat is bad on a tankless water heater?

A bad thermostat can cause no heat, unstable water temperature, or a heater that does not respond normally to a hot water call. It is still worth ruling out power issues, reset needs, and other fault codes before replacing it.

Do I need to shut off the water to replace the thermostat?

Usually this repair focuses on electrical access, so the key step is shutting off power. If your unit layout puts the thermostat near an area that could leak or if the manufacturer's instructions for your model require more isolation, stop and follow the unit documentation.

Can I replace the thermostat myself?

Many homeowners can if they are comfortable shutting off power, opening the cabinet, and reconnecting wires exactly as found. If the wiring is damaged, the diagnosis is unclear, or the unit shows signs of overheating or leaking, it is better to call a pro.

What if the new thermostat does not fix the problem?

Then the thermostat was likely not the only issue. Recheck the wire placement and confirm the replacement part matches the unit. If those are correct, the problem may be with another control, sensor, flow-related part, or the heater's power supply.

Should I replace the thermostat if the heater only acts up once in a while?

Intermittent temperature problems can come from a thermostat, but they can also come from loose wiring, scale buildup, flow issues, or other controls. If the problem is occasional, confirm the symptoms carefully before replacing parts.