mypros+
Error code reference

Whirlpool Washer Error Code 5-2

Door switch 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 washer is showing an error because it thinks the door has never been opened between cycles, or the door latch mechanism is stuck in the closed position. Try opening the door, closing it again, and pressing Start to see if the washer resumes normally. If that does not work, the door latch or the switch inside it may need 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
Open and close door and then press Start/Resume key. Unplug dishwasher or disconnect power. 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. 1Door not opened between cycles
  2. 2Welded or stuck door switch contacts
  3. 3Jammed or broken latch assembly
  4. 4Wiring or connector fault at the door switch
  5. 5Control board misreading the door switch signal

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 washer?
The 5-2 code means the control board detected that the door switch contacts remained closed when it expected them to open between cycles. This can happen because the door was never opened between cycles, or because the door switch contacts are physically stuck in the closed position. The washer halts operation as a safety precaution until the door switch signal behaves correctly.
Is it safe to use my Whirlpool washer when the 5-2 code is showing?
You should not attempt to bypass or ignore this code. The door switch is a safety interlock that prevents the drum from spinning while the door is open. If the switch is faulty, the machine may not correctly detect door status, which creates a safety risk. Resolve the fault before running the machine.
How much does it cost to fix a Whirlpool washer showing error code 5-2?
If the issue is simply user behavior and no parts are needed, there is no cost. If the door switch needs replacement, parts typically range from around $15 to $60 depending on the model, plus labor if you use a technician. A full latch assembly replacement can run higher, and a professional diagnostic visit generally adds $75 to $150 in service fees before parts are included.
How do I fix the 5-2 error on my Whirlpool washer?
Start by opening the door fully, closing it firmly, and pressing the Start/Resume key. If the code clears, the issue was simply that the control did not detect a door-open event. If the code returns, unplug the washer and inspect the latch assembly for debris or damage. Use a multimeter to check resistance across the door switch contacts while manually cycling the latch: if the contacts do not open when the latch is released, the switch or latch assembly needs to be replaced.
Will resetting my Whirlpool washer clear the 5-2 error code?
A power reset alone is unlikely to permanently clear this code if the door switch contacts are stuck or the latch is damaged, because the fault condition still exists and the control will detect it again. If the code appeared only because the door was not opened between cycles, opening the door and pressing Start/Resume is the correct reset action. For a hardware fault, the underlying component must be repaired or replaced first.

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

Get Started

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