mypros+
Error code reference

Whirlpool Dishwasher Error Code 5-2

Door stuck closed

Avg. service call
$285
National average. Trip fee plus diagnostic plus labor. Before parts.
MyPros+ 3-day pass
$9.95
Same diagnostic steps, on your phone. Start now.
You keep in your pocket
~$275
Even before you buy the part.
Skip the service call. Fix it yourself.
Full procedure unlocks instantly.
Get Started

What the 5-2 error code actually means

Your dishwasher thinks the door latch is stuck in the closed position and is refusing to start until it can confirm the door is working properly. This usually means the door switch, which tells the dishwasher whether the door is open or closed, is faulty or stuck. Try opening the door fully and pressing Start again, but if the error keeps coming back, the latch or switch likely needs to be inspected or replaced.

Diagnostic procedure

The full 5-2 procedure

Step 1 is visible so you can confirm you are on the right page. The remaining steps, the ones that tell you whether to actually replace a part, unlock with any pass.

MyPros+ · DiagnosticsStep 1 preview
1
First diagnostic step
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.
More steps, wiring diagram references, and verified part numbers
Includes expected resistance and voltage values, connector pinouts, and supersession notes for replacement parts.
Unlock 5-2 procedure $9.95

Or subscribe: $29/month for unlimited access to all codes plus Max AI diagnostics.

Most common causes of 5-2

Ranked by how often they cause this code
  1. 1Dishwasher not opened between cycles
  2. 2Failed door switch with welded or stuck contacts
  3. 3Faulty or misaligned latch assembly
  4. 4Wiring short between door switch and control board
  5. 5Control board fault

Most DIYers save hundreds by diagnosing before ordering parts.

Get Started

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

Questions people ask 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.
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.
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.
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.
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.

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

Get Started

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