Whirlpool Washer Error Code d4
Door switch error
Door switch error – the door has not been opened for 3 consecutive cycles or the door switch is open while door is locked for more than 5 seconds.
First step from the service manual
Open and close the door.
The complete diagnostic procedure includes additional test steps, resistance specifications, wiring diagram references, and component test points.
Get the full diagnostic procedure for d4.
- 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
$29/month · Cancel anytime · Or $9.95 3-day pass
What d4 means on a Whirlpool washer
The d4 error code on a Whirlpool washer indicates a door switch fault with two possible triggers. The first trigger activates when the door has not been physically opened for three consecutive wash cycles, which the machine interprets as an abnormal usage pattern or a stuck/jammed door mechanism. The second trigger activates when the door switch reads an open circuit condition while the door lock assembly is in the locked state for more than five seconds, indicating a conflict between what the lock actuator reports and what the door switch circuit is detecting.
The door switch and door latch assembly work together as a safety interlock system. The door switch confirms physical door closure, while the door lock solenoid secures the door during the spin cycle. When these two components report contradictory states simultaneously, the control board flags the d4 code and halts the cycle. This conflict most commonly results from a faulty door switch, a damaged wiring harness between the switch and control board, or a worn door latch that no longer actuates the switch properly.
Because this error can also appear after cycles complete without the door being opened between them, it sometimes reflects user behavior rather than a component failure. The first diagnostic step is straightforward: open and close the door to reset the switch state. If the code returns immediately or persists after reopening the door, further inspection of the door latch assembly, switch continuity, and wiring connections is required.
Source: manufacturer service documentation.
Common causes of d4
- 01
Door not opened between cycles
Wiring / connectionRunning multiple consecutive cycles without opening the door in between triggers the d4 code as a usage-pattern alert. Simply opening and closing the door before starting the next cycle will clear this condition.
- 02
Faulty door switch
Part replacementThe door switch may have failed open, meaning it no longer registers closure even when the door is physically shut. This causes a mismatch with the locked door lock assembly and triggers the five-second timeout fault.
- 03
Worn or broken door latch assembly
Part replacementA worn door latch may close the door physically without fully actuating the door switch. Inspect the latch hook and strike for wear, cracks, or misalignment that would prevent proper switch engagement.
- 04
Wiring harness damage or loose connector
Wiring / connectionA loose or corroded connector between the door switch and the main control board can cause the switch circuit to read as open even when the switch itself is functional. Check the harness connections at both the switch and the board for corrosion or loose pins.
- 05
Control board fault
Part replacementIf the door switch and latch check out correctly but the d4 code persists, the main control board may be misreading the door switch input signal. This is the least common cause and is typically diagnosed only after all other components are ruled out.
Frequently asked questions about d4
What does d4 mean on a Whirlpool washer?
How do I fix the d4 error on my Whirlpool washer?
Will resetting my Whirlpool washer clear the d4 error code?
Is it safe to use my Whirlpool washer when the d4 code is showing?
How much does it cost to repair a Whirlpool washer d4 door switch error?
78,000+ service manuals · 160,000+ error codes · 55+ brands
Get Started$29/month · Cancel anytime · Or $9.95 3-day pass