Warning: Disconnect power before servicing.

Washer 5d Error Code: Causes and Fixes for Excess Suds

Quick Answer

A 5d error means your washer is overloaded with soap bubbles. This usually happens when you use non HE detergent or simply too much of it. The machine will typically pause the cycle automatically to allow the suds to dissipate before trying to drain again.

Nine times out of ten I see this code when someone accidentally uses regular dish soap or dumps way too much HE detergent in. The 5d code is basically a safety pause that keeps the pump from air locking. When the drum's full of foam, the pressure sensor can't accurately tell if the water's gone, so the machine just stops to prevent a flood or motor burnout. Ignore it long enough and you're looking at a seized pump.

GenericWasherSeverity: low98% DIY Success
Time to Fix
20–60 min
Difficulty
beginner
Parts Cost
Tools Needed
Shallow drip pan (at least 13 x 9 inches), Old towels, 5 or 6 of them

What Does the 5d Code Mean?

In my fifteen years of service, I've found this code is way more about chemistry than mechanics. The control board watches motor resistance and data from the pressure switch. If the tub's spinning through thick foam, the drag is way higher than normal and the board triggers 5d to protect everything inside. Honestly it's one of the cheaper fixes out there, usually just a matter of switching your detergent and cleaning the filter.

Most Likely Causes

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

Incorrect detergent type or amount75%
Drain system restriction15%
Faulty pressure sensor or pump10%

Symptoms You May Notice

  • Washer stops dead mid-cycle with the code on the display and won't budge no matter what button you hit.
  • A wall of white foam pressed against the door glass, sometimes bubbling out of the detergent drawer too.
  • The cycle drags on two or three times longer than normal because the machine keeps pausing, waiting for suds to die down.
  • Machine tumbles forever at low speed but won't kick into high-speed spin, just going in lazy circles indefinitely.
  • You open the door after the cycle ends and there's a couple inches of soapy water still sitting in the bottom of the drum.

Can you reset a Generic washer to clear the 5d code?

To reset the 5d code, press the Power or Stop button twice to clear the display. If the code persists, unplug the washer for three minutes to allow the control board to discharge. Once plugged back in, run a Clean Washer cycle or a hot water cycle with no clothes to strip away any remaining soap residue.

Tools Required for Diagnosis

Shallow drip pan (at least 13 x 9 inches)Old towels, 5 or 6 of themPhillips #2 screwdriverNeedle-nose pliersWhite vinegar (1 cup)FlashlightZip ties

Diagnostic Checklist

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

Frequently Asked Questions

Is 5d the same as the Sd error code?
Yeah, they're the same thing. Most washer displays use seven-segment LEDs where the letter S looks exactly like a 5. So whether you're seeing 5d or Sd, it's the same message. Your machine's telling you it detected a suds lock and it's paused to protect the pump. Some brands also show this as Sud, SUDS, or F8E2 depending on the control board version, but they all mean the same thing. Don't stress about which version you're seeing on your specific display.
Can I use regular detergent if I only use a little bit?
Honestly, I'd skip it. Modern washers use way less water than the machines your parents had. These things are using maybe 10-13 gallons per cycle versus 40+ gallons in an old top-loader, and regular detergent is engineered to create foam. There's just nowhere for the suds to go. Even a small amount can set this off. Stick to HE detergent always. The bottles are labeled clearly and they're actually cheaper per load once you do the math on how little you need to use.
How do I get the water out if the 5d code is stuck?
Most front-loaders have a small emergency drain hose tucked right next to the pump filter behind that same access door at the bottom. It's usually a short rubber hose with a little cap on the end. Pull off the cap, direct it into a shallow pan, and let gravity do the work. Drain it pan by pan until the tub's empty, then the door lock should release on its own. If your machine doesn't have that hose, draining through the filter port works too, just open the cap way slower so you don't flood your floor.
Why does my washer show 5d when there are no bubbles?
Two most likely culprits. First is a weak drain pump that can't move water fast enough. The board watches the water level drop and if it's going too slowly, it reads that as a suds situation even when the water's crystal clear. Second is that pressure switch hose being gunked up with old soap paste so it's not reading water level right. I've also seen it from a partially kinked drain hose nobody noticed. Run a Rinse and Spin and watch the water draining. If it's slow, that's your answer.
Will vinegar help clear a 5d error code?
Yeah, vinegar actually works here. It breaks down soap molecules and deflates foam faster than water alone. Half a cup in the drum, run a cold rinse cycle, and it'll cut through the suds in a fraction of the time. It's also great for a monthly maintenance cycle to strip out the invisible soap buildup in the tub and bellows seal. Won't hurt the rubber seals, won't affect the drum finish. The smell fades in the first few minutes of the cycle. I keep a jug of it in my van for exactly this kind of job.

Models Known to Experience 5d Errors

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

WFW5620HW (Whirlpool Front Load), MVW7232HW (Maytag Top Load HE), WF45R6100AW (Samsung Front Load), WM3400CW (LG Front Load), GFW550SSNWW (GE Front Load), EFLS627UIW (Electrolux Front Load), FAFW3801LW (Frigidaire Front Load)

MS

Written by

Mike Sullivan

Lead Appliance Repair Technician · 20 years experience

Last verified for technical accuracy on March 17, 2026