Direct answer
For the Whirlpool WDP540HAMZ dishwasher, food soil, filter/sump residue, drain backflow and long idle periods should be separated from electrical odor. First, clean the approved filter and inspect the drain connection.
What this covers
- Whirlpool WDP540HAMZ dishwasher (WDP540HAMZ)
- Whirlpool dishwasher; exact model determines filter, third rack, fan/heat and code display.
- The specific fault this record addresses: smells bad or musty
What it does not cover
- ×The same symptom on a different Whirlpool product line, which has its own record and its own cited source
- ×An on-screen error code whose meaning has not been checked against this exact model's manual
- ×Live electrical, gas, sealed-system, internal battery-cell or structural repair — a technician boundary, not a self-service step
Differential
What actually causes this, and how to tell them apart
These are ordered by how often each one is the answer, not by how easy it is to try. The point of the middle column is that two causes producing the same headline symptom rarely produce the same detail — that detail is what tells you which one you have before you change anything.
- 1
Food debris in the filter and sump
What separates it The smell is strongest when the door is opened, and the filter has visible trapped food when removed.
How to confirm Clean the filter assembly and wipe out the sump area beneath it. This is routine maintenance and resolves most odour complaints.
- 2
Debris trapped under the door gasket or in the door edge
What separates it The smell persists after cleaning the filter, and residue is visible when the gasket is pulled back or the door edge is wiped.
How to confirm Clean the full gasket circumference and the lower door edge, which collects standing water and residue.
- 3
The machine is used infrequently and water sits stagnant
What separates it The smell is worst after several days unused, and improves after a cycle.
How to confirm Run a rinse cycle periodically when the machine is not being used regularly.
- 4
A sewer smell is coming from the sink drain rather than the dishwasher
What separates it The sink also smells, and the odour is sewage-like rather than of decaying food.
How to confirm This is a plumbing trap or vent problem, not an appliance one — cleaning the dishwasher will not change it.
- 5
The drain hose lacks a high loop and holds standing water
What separates it Persistent odour despite a clean filter and gasket.
How to confirm See not-draining — a hose without a high loop retains water between cycles.
Before you touch a setting
Record this first — changing settings destroys the evidence
Every item below stops existing the moment a reset, re-pair or settings change is made. Written down first, they are what separates the causes above; recovered afterwards, they are guesswork.
- Whether the sink also smells, which moves the problem from the appliance to household plumbing.
- Whether the odour is decaying food or sewage-like — these have different sources.
- When the filter was last cleaned.
- How often the machine is actually run.
Remove and clean the filter assembly, then wipe out the sump beneath it
ReversibleThis resolves the majority of odour complaints and is intended as routine maintenance.
Clean the full door gasket circumference and the lower door edge
ReversibleBoth collect standing water and residue that a cleaning cycle cannot reach.
Run the manufacturer's cleaning cycle with an approved dishwasher cleaner
ReversibleDo this after cleaning the filter and gasket by hand, not instead of it.
Run a rinse cycle periodically if the machine is used infrequently
ReversiblePrevents water sitting stagnant in the sump between uses.
Model-specific
What is true of this model and not of its siblings
Generic advice for the product line fails here. Each item below is a property of this specific model family that changes which of the steps above apply to you.
- Model scope
- WDP540HAMZ. Whirlpool dishwasher; exact model determines filter, third rack, fan/heat and code display.
- Tub & drying
- This tier often has a plastic tub base (vs the stainless of the WDT models), which retains less heat, so drying can be a bit weaker — lean on the Heat Dry option and rinse aid. Keep plastics off the tub floor if a heating element is fitted.
- Wash
- Adjustable racks and a sensor or dial cycle. A manual filter at the tub floor must be cleaned periodically — the top cause of poor cleaning and odour.
- Drain path
- 'Won't drain' is usually the filter, drain hose, air gap, or an un-removed disposer knockout plug.
- Symptom boundary
- This record covers Whirlpool WDP540HAMZ dishwasher when it smells bad or musty. A different symptom on the same hardware, or this symptom on a different Whirlpool product line, has its own record with its own causes and its own cited source.
Stop boundary
When this stops being a self-service repair
Continuing past any one of these costs more than the repair saves — in safety, in warranty, or in evidence a technician needs.
- !A sewage smell that is also present at the sink is a plumbing trap or vent problem and needs a plumber, not appliance cleaning.
- !Never mix bleach with any acid or ammonia-based cleaner while cleaning the tub, filter or gasket.
Evidence ledger
Sources behind this answer
Visible sources support the visible claims. Home Product Support records the publisher, the fact used and the review date; community reports can suggest an issue but do not become a published fact on their own.
Where the manufacturer's article stops. Whirlpool Product Help publishes this as "Cleaning the Dishwasher". the maker's cleaning procedure, which is what it publishes for a dishwasher that smells. Probed 2026-08-23: title-verified against a hard-404 control. What that article does not carry is the model boundary — it is written for a product line, and WDP540HAMZ is the scope applied here. Where a control label, terminal, indicator pattern or reset sequence differs on your unit, the manual for that exact model is the authority, not this page and not the article.
Exact questions
Common follow-ups
Is the Whirlpool WDP540 worse at drying than the WDT models?+
A little — the WDP tier typically uses a plastic tub base, which holds less residual heat than the stainless tub of the WDT models, so condensation drying is slightly weaker. Compensate by turning on the Heat Dry option, keeping the rinse-aid tank filled and raised, and cracking the door open after the cycle. Plastics will still be the dampest items regardless of tub material.
My dishwasher smells even though I run it regularly.+
Take out the filter assembly in the tub floor and wipe the sump underneath it — that is where trapped food actually sits. Then pull back the door gasket and clean the lower door edge, which holds standing water and residue that no cleaning cycle can reach.
How do I tell a dishwasher smell from a drain smell?+
Check whether the sink smells too, and what the smell is like. Decaying food that is worst when you open the dishwasher door is the appliance. A sewage-like smell present at the sink as well is a plumbing trap or vent issue, and no amount of cleaning the dishwasher will change it.
Does this answer apply to every Whirlpool model?+
No. It is scoped to WDP540HAMZ. Whirlpool dishwasher; exact model determines filter, third rack, fan/heat and code display.
What should I record before troubleshooting odor or smells?+
Record the complete model identifier, exact message or indicator, software/firmware where visible, the operating stage and what still works.
Why is a factory reset not the first step?+
A reset can erase accounts, networks, maps, schedules or preferences without distinguishing odor, smells. The ordered checks preserve that evidence.
When should I stop and use qualified service?+
Stop for sewage backup, smoke, overheating or chemical mixing.
Answer for the exact device and software version shown above.