mypros+
Error code reference

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.

MyPros+ Max

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
Get the full procedure

$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

  1. 01

    Door not opened between cycles

    Wiring / connection

    Running 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.

  2. 02

    Faulty door switch

    Part replacement

    The 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.

  3. 03

    Worn or broken door latch assembly

    Part replacement

    A 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.

  4. 04

    Wiring harness damage or loose connector

    Wiring / connection

    A 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.

  5. 05

    Control board fault

    Part replacement

    If 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.

See the test procedure for each cause

Frequently asked questions about d4

What does d4 mean on a Whirlpool washer?
The d4 code on a Whirlpool washer signals a door switch error. It appears either when the door has not been opened for three consecutive cycles, or when the door switch circuit reads as open while the door lock is engaged for more than five seconds. The error points to a conflict in the door interlock system and stops the washer from operating normally.
How do I fix the d4 error on my Whirlpool washer?
Start by opening and closing the door firmly, then try restarting the washer. If the code clears and does not return, the issue was likely that the door had not been opened between recent cycles. If the code comes back, inspect the door latch for wear or damage, test the door switch for continuity, and check the wiring connections between the switch and the control board.
Will resetting my Whirlpool washer clear the d4 error code?
Opening and closing the door is the recommended first reset step and may clear the code if the cause was simply consecutive cycles without door access. A power reset by unplugging the machine for a minute can also clear stored codes temporarily. However, if an underlying component like the door switch or latch is faulty, the code will return once the machine attempts to lock the door again.
Is it safe to use my Whirlpool washer when the d4 code is showing?
The washer will typically not run a cycle while the d4 code is active, as the door interlock system is a core safety feature. You should not attempt to bypass the door lock. If the door is properly closed but the error persists, the machine should remain out of service until the door switch or latch issue is diagnosed and corrected.
How much does it cost to repair a Whirlpool washer d4 door switch error?
If the fix is as simple as opening the door between cycles, there is no cost involved. Replacing a door switch typically costs in the range of $20 to $60 for the part, while a door latch assembly generally runs $25 to $75. Adding professional labor for diagnosis and replacement, total repair costs commonly fall in the $100 to $200 range depending on the specific component needed and local service rates.

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

Get Started

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