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.

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. Using non-HE detergent is the single most common cause. Switching to HE detergent at a reduced amount (1-2 teaspoons per load) resolves the issue permanently. Running a Tub Clean cycle with Affresh removes detergent residue that causes recurring 5D codes even after switching to HE.

WhirlpoolWasherSeverity: low97% DIY Success
Time to Fix
5–15 min
Difficulty
beginner
Parts Cost
Tools Needed
Affresh washing machine cleaner tablet
Wrong code?

Not seeing 5D on your display?

Select what your appliance is actually doing and we'll take you to the right guide.

What Does the 5D Code Mean?

Too many suds in the tub. Not a hardware fault. Switch to HE detergent and use less of it.

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 displayed on control panel mid-cycle
  • Visible foam through lid glass or door window
  • Cycle paused or running extra rinse cycles
  • Code recurs on every wash even with small detergent amounts

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

5D clears on its own once the machine finishes its extra rinse cycles. If you need to cancel mid-cycle, press and hold the Start/Pause button for 3 seconds to drain and unlock the lid. No manual code clear is required.

Tools Required for Diagnosis

Affresh washing machine cleaner tablet

Diagnostic Checklist

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

1

While 5D is displayed, do not open the lid or door

While 5D is displayed, do not open the lid or door. The machine is already running extra rinse cycles. Let it run to completion.

2

Check the detergent you are using

3

Measure 1-2 teaspoons of HE detergent for a normal load

4

Run a Tub Clean cycle with one Affresh tablet or 1/2 cup of

Frequently Asked Questions

Is the 5D code on my Whirlpool washer a sign something is broken?
No. 5D is purely a detergent issue in the vast majority of cases. The foam sensor is working correctly to protect the machine. No parts need to be replaced.
Why does my Whirlpool washer keep showing 5D even when I barely use any detergent?
Detergent residue builds up inside the tub, drum seal, and hoses over time. Even a small amount of new detergent can reactivate this residue and produce enough suds to trigger 5D. Run 2-3 Tub Clean cycles with Affresh to clear the buildup.
How much HE detergent should I use in a Whirlpool top-load washer?
For soft or average water, 1-2 teaspoons of concentrated HE detergent is enough for a normal load. Ignore the fill lines on most caps, as they are sized for hard water and heavy loads. Less detergent consistently prevents 5D codes and cleans just as effectively.

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

Last verified for technical accuracy on March 14, 2026