Warning: Disconnect power before servicing.

Whirlpool Washer 5D Error Code: Excessive Suds

Quick Answer

The 5D code (also displayed as SD on some panels) is triggered when the washer's foam sensor detects too much detergent lather. It is not a broken component. The machine pauses the cycle and adds rinse cycles automatically to clear the foam.

Look, nine times out of ten when I see this code it's a chemistry problem, not a broken machine. The pump's basically gasping for air because the water's too thick with bubbles to drain properly. Ignore it long enough and the pump can actually burn out from the stress. Even correct soap amounts can trigger it if there's old residue caked on your outer tub, and that residue can sit there for months reactivating every single wash.

WhirlpoolWasherSeverity: low97% DIY Success
Time to Fix
5–15 min
Difficulty
beginner
Parts Cost
Tools Needed
Phillips #2 screwdriver (for removing back panel to access pressure switch hose), Affresh washing machine cleaner tablets, at least 3

What Does the 5D Code Mean?

When I pull these machines apart I usually find a thick layer of soap scum coating the outer tub that you'd never see from the inside. This 5D or SD code means your washer's water is basically too thick with foam to drain properly. It's a really common quirk on Whirlpool's VMW platform because the foam sensor on these things is way more sensitive than older machines. The good news? It's almost always free to fix.

Most Likely Causes

Based on aggregated repair data, here is the probability breakdown for this error code:

Too much HE detergent added to dispenser (55%)40%
Detergent residue buildup from previous overuse triggering repeated codes (15%)36%
Non-HE (regular) detergent used in an HE washer (30%)24%

Symptoms You May Notice

  • 5D or SD code appears on the display right in the middle of the wash cycle, usually during or just after the agitation phase when foam is at its peak
  • You can actually see foam pushing up against the door glass or lid window, sometimes a surprising amount of it
  • The machine goes quiet and just sits there, then you hear it start filling with water again even though you didn't touch a single button
  • Code shows up on every load now even when you barely used any detergent, because there's old soap residue baked onto the tub walls
  • Clothes come out wetter than normal after the cycle finishes, or the spin sounds weaker, because the pump was struggling to clear soapy water

Can you reset a Whirlpool washer to clear the 5D code?

The 5D code clears on its own once the suds recovery routine finishes, usually around 20 minutes. If the panel's completely frozen and won't respond to anything, unplug the washer for a full 60 seconds. Not 10, not 30, a full 60. Plug it back in and run a Drain and Spin cycle first before starting a new load. That clears out any leftover soapy water sitting in the pump line.

Tools Required for Diagnosis

Phillips #2 screwdriver (for removing back panel to access pressure switch hose)Affresh washing machine cleaner tablets, at least 3Measuring teaspoon (to actually measure your detergent correctly)White vinegar, 2 cups (alternative to Affresh for tub cleaning cycles)Old towels, 3 to 4 (in case suds spill when checking drain components)5-gallon bucket (for catching soapy water if pulling drain hose)

Diagnostic Checklist

Follow these steps in order. We start with the easiest external fixes before opening up the machine.

Frequently Asked Questions

Is the 5D code on my Whirlpool washer a sign something is broken?
Nine times out of ten, your washer is perfectly fine. The 5D code is actually a safety feature doing its job. It prevents the pump from burning out by trying to push air bubbles, which pumps aren't built to do. Unless you see this code when the tub is bone dry and empty, you don't need a technician. It's almost always a chemistry problem, not a mechanical one.
Why does my Whirlpool washer keep showing 5D even when I barely use any detergent?
This is what I call detergent creep. Over months of using too much soap, a film builds up on the outside of the inner basket. When the machine spins, it flings water against that film and creates new suds, even if you didn't add any soap today. You have to strip that residue out with hot water and a dedicated cleaner like Affresh or even a heavy dose of white vinegar on the longest, hottest cycle available.
How much HE detergent should I use in a Whirlpool top-load washer?
If you have a newer Whirlpool, ignore the Max Fill line in the dispenser. That line is usually way too high for modern, concentrated detergents. I suggest starting with two teaspoons of a high-quality HE liquid. If your clothes come out smelling clean and there are no bubbles in the final rinse, you've found the sweet spot. Using less soap also prevents that musty smell that develops in high-efficiency washers.
Can the 5D code actually damage my Whirlpool washer if I ignore it?
It can. The drain pump on these machines isn't built to pump foam, only water. When there's too many bubbles the pump's impeller basically spins in air, which overheats the motor winding. If you keep forcing the cycle through without letting the suds clear, you can burn out a $40 to $60 pump. The machine pauses specifically to protect that pump. So let it do its thing. The 20 minute wait is way cheaper than replacing the pump yourself or paying a tech to do it.
What's the difference between 5D and SD on my Whirlpool washer display?
They're literally the same code. Some older Whirlpool display panels show 5D because the number 5 and the letter S look almost identical on a 7-segment LED display, and SD is the actual code name. So if you're reading 5D, it might technically be SD depending on your panel style. Either way the cause is the same, the fix is the same, and you don't need to worry about which one you're seeing. I get this question probably twice a week.

Related Whirlpool Washer Error Codes

Same Fix on Other Brands

Same Fix Works on These Brands

Whirlpool shares the same hardware platform with these brands. The diagnosis and repair steps are identical.

Models Known to Experience 5D Errors

This repair applies to most Whirlpool washers with this error code. Common model numbers include:

WTW4816FW, WTW5000DW, WTW7000DW, WTW4850HW, WTW8127LC, WTW6120HC, WTW5105HC, WTW7120HC

MS

Written by

Mike Sullivan

Lead Appliance Repair Technician · 20 years experience

Last verified for technical accuracy on March 14, 2026