mypros+
Error code reference

Whirlpool Dishwasher Error Code 5-2

Door stuck closed

Door stuck closed - control detected door switch problem; control programmed to not start if it suspects the door switch is stuck closed. Control looks for the door switch to open between cycles.

First step from the service manual

1. Open and close door and then press Start/Resume key. If works now, instruct customer to open door between cycles. 2. Unplug dishwasher or disconnect power. 3. Measure resistance of door switch contacts while checking mechanical operation of latch assembly.

The complete diagnostic procedure includes additional test steps, resistance specifications, wiring diagram references, and component test points.

MyPros+ Max

Get the full diagnostic procedure for 5-2.

  • Step-by-step tests with expected resistance, voltage, and continuity values
  • Wiring diagram references and connector pinouts from the OEM service manual
  • Verified part numbers when replacement is required
Get the full procedure

$29/month · Cancel anytime · Or $9.95 3-day pass

What 5-2 means on a Whirlpool dishwasher

The 5-2 error code on a Whirlpool dishwasher indicates that the control board has detected the door switch is stuck in the closed position. The control board monitors the door switch to confirm the door is opened between wash cycles. If it never sees the switch transition to the open state, it logs this fault and prevents the next cycle from starting as a precautionary measure. This logic exists because a door switch that never opens could indicate a mechanical or electrical fault that might otherwise go undetected.

The door switch is part of the latch assembly and serves a critical safety function: it signals to the control board whether the door is open or closed. When the latch is engaged, the switch contacts close; when the door is opened, those contacts should open. If the contacts are welded together, mechanically jammed, or shorted due to wiring damage, the control board never sees the open-state signal. A failed switch that reads closed continuously will trigger this code every time the dishwasher tries to verify door status.

Diagnosis begins with a simple operational check: open and close the door, then press Start/Resume to see if normal operation resumes. If the code clears, the fix may be as simple as reminding the user to open the door between cycles. If the code persists, disconnect power and use a multimeter to measure resistance across the door switch contacts while manually operating the latch. The switch should show near-zero resistance when closed and open circuit when released. Any reading that fails to change indicates a defective switch or latch assembly.

Source: manufacturer service documentation.

Common causes of 5-2

  1. 01

    Dishwasher not opened between cycles

    Wiring / connection

    If the door was never opened after the last completed cycle, the control board never detected the switch transitioning to the open state and logged the fault. Opening the door and pressing Start/Resume often clears this immediately.

  2. 02

    Failed door switch with welded or stuck contacts

    Part replacement

    The switch contacts can weld closed due to electrical arcing or wear, causing the switch to always read as closed regardless of door position. Resistance measurement across the switch contacts will show near-zero ohms even when the latch is released.

  3. 03

    Faulty or misaligned latch assembly

    Part replacement

    A bent, worn, or misaligned latch can prevent the switch actuator from physically releasing the contacts when the door opens. Inspect the latch mechanism for visible damage, misalignment, or debris blocking movement.

  4. 04

    Wiring short between door switch and control board

    Part replacement

    Damaged wiring in the door hinge area can short the switch signal wires together, making the control board see a constantly closed switch regardless of actual door position. Check the wire harness routing through the door hinge for pinching or insulation wear.

  5. 05

    Control board fault

    Part replacement

    In rare cases, the control board itself may incorrectly interpret the door switch signal even when the switch and wiring test correctly. This is typically only considered after the switch, latch, and wiring have been confirmed to be functioning properly.

See the test procedure for each cause

Frequently asked questions about 5-2

What does 5-2 mean on a Whirlpool dishwasher?
The 5-2 code means the control board detected that the door switch appears to be stuck in the closed position. The dishwasher monitors the door switch between cycles and will not start a new cycle if it never sees the switch open. This is a protective feature that signals either a simple operational issue or a faulty switch or latch component.
How do I fix the 5-2 error on my Whirlpool dishwasher?
Start by opening the door completely and then pressing the Start/Resume key. If the dishwasher runs normally, the fix is simply to open the door between cycles so the control board can detect the switch transitioning to the open state. If the error returns, disconnect power and test the door switch with a multimeter while operating the latch by hand. A switch that does not change resistance when the latch is released will need to be replaced along with or as part of the latch assembly.
Is it safe to use my dishwasher while it shows error code 5-2?
The dishwasher is designed to block the start of a new cycle when this code is active, so it will not run in a potentially unsafe state. The door switch is a safety component, and running the appliance with a confirmed faulty switch is not recommended. Address the root cause before returning the unit to regular service.
Will resetting my Whirlpool dishwasher clear the 5-2 error code?
A reset may temporarily clear the code, but if the underlying cause is a defective door switch, misaligned latch, or wiring fault, the code will return at the start of the next cycle check. A lasting fix requires either correcting the user habit of leaving the door closed between cycles or repairing the faulty component causing the switch to read as constantly closed.
How much does it cost to repair a Whirlpool dishwasher with error code 5-2?
If the issue is only that the door was not opened between cycles, there is no repair cost. If the door switch or latch assembly needs replacement, parts typically range from around $15 to $60 depending on the specific model, with professional labor adding $75 to $150 or more depending on your location and service provider. Diagnosing and replacing the door switch is a moderate DIY repair for someone comfortable working with appliances after disconnecting power.

78,000+ service manuals · 160,000+ error codes · 55+ brands

Get Started

$29/month · Cancel anytime · Or $9.95 3-day pass