Rheem Water heater 51 Error Code

What the 51 code means

Main gas solenoid valve (SV) malfunction. The flame rod is still detecting flame a few seconds after the water heater turns off — combustion is continuing, or being reported, after shutdown — so the control displays 51, and the gas shutoff path has to be proven before the unit runs again.

Likely causes

  1. Loose or dirty flame rod connections (connectors 'D' and 'G') giving a false flame signal
  2. Proportional gas valve not closing fully, letting gas keep feeding the burner after shutdown
  3. Contaminated or failed flame rod holding a flame signal with the burner cold
  4. Failed control board flame-detection circuit

How to fix it — step by step

  1. Access for the board-level checks below: switch the power OFF at the unit and remove the front cover (a screw at each corner) - the control board and its connectors are behind it. Close the gas and water shut-off valves before disconnecting any gas or water part, and let internal parts cool before handling them
  2. Turn power OFF. Remove and reinsert connector 'D' and connector 'G' at the flame rod terminal, then turn power ON and operate the unit — if 51 does not return, the fault was a loose connection or debris that is no longer present.
  3. If 51 returns, enter maintenance mode to read flame rod status and watch the burner chamber through the sight glass: cycle the unit ON-OFF three times at 10-second intervals and check whether flame is visible while the unit is OFF.
  4. If flame is genuinely visible more than 5 seconds after shutdown and code 51 appears, the gas valve is not shutting off: replace the proportional gas valve. → Shop the proportional gas valve at Amazon
  5. If no flame is visible but maintenance mode still reports flame presence while the unit has been off more than 5 seconds, disconnect the wire at the flame rod and repeat the cycling test. Clean the flame rod; if 51 appears again after cleaning, replace the flame rod.
  6. If the flame rod and gas valve both prove good and the false flame status persists, replace the control board. All of this is qualified-technician work — a heater that burns after shutdown is not a run-it-and-see fault. → Shop the control board at Amazon

Did that fix it?

Worked through the steps? Say where you landed - it pinpoints what to do next.

Parts that commonly fix the 51 code

Typical pro repair $228–$1,017

Typical ranges, checked Nov 2026. Your model’s exact part can land outside them.

What fixed yours?

Fixed this on your machine? Tap what did it - reports from owners set the percentages on this page.

Source: manufacturer / repair documentation. Codes can vary by model — confirm against your manual.

Manufacturer documentation

Manual & model number

Find your model number on the unit's rating plate. It's the key to the right manual pages and the right parts.

Related Rheem Water heater error codes

See all Rheem water heater codes & guides →