It feels backwards that the machine doing the cleaning gets dirty, but a washer is a warm, damp box that gets fed a steady diet of detergent, fabric softener, and soil — and modern high-efficiency machines use so little water that residue never fully rinses away. It builds up as a slimy film inside the drum, the gasket folds, and the dispenser. Front-loaders suffer most because the door seals shut and stays wet; it's one of the unglamorous real differences in top-load vs front-load washer ownership. The fix is a routine, not a repair.
Wipe out the door gasket. Pull the rubber seal back with your fingers and look in the folds — that's where water pools and the smell lives. You'll usually find grey slime, hair, and the occasional coin. Wipe everything out with a cloth dampened with hot soapy water or a vinegar spray, get into the bottom fold where water sits, then dry the folds with a clean cloth.
Scrub the dispenser drawer. Pull the drawer all the way out (most have a release tab) and soak it in hot soapy water. Scrub the detergent and softener compartments with the toothbrush. Then look up inside the drawer housing in the machine — that ceiling gets moldy too and everyone forgets it. Wipe it down before sliding the drawer back.
Clean the pump filter. Behind the small panel at the bottom front is a twist-out filter that catches coins, lint, and sludge before they reach the pump. Drain the little hose beside it into your pan first, then unscrew the filter slowly and rinse it clean. If your machine has been draining slowly or leaving water in the drum, this filter is the likely reason — our walkthrough of a washing machine that won't drain covers the same filter in more detail.
Run the hot empty cycle. Put a cleaner tablet in the drum, or pour 2 cups of white vinegar into the detergent dispenser. Run the machine's self-clean cycle if it has one; otherwise use the longest, hottest wash available, with no laundry. This is the step that strips the biofilm off the drum and the parts you can't reach. Follow with a second short hot rinse using ½ cup of baking soda sprinkled in the drum if the machine was genuinely funky — keep the baking soda separate from the vinegar run, since the two neutralize each other on contact.
Dry everything and leave it open. Wipe the drum and gasket dry, then leave the door and the dispenser drawer cracked open. A front-loader sealed shut between loads stays wet inside, and wet is the whole problem.
Fill and soak. Set the largest load size and the hottest water, let the tub fill, then add 4 cups of white vinegar. Let it agitate for a minute to mix, then pause the cycle and let it sit for about an hour. The soak does the work on the film coating the outer tub, which you can't see or reach.
Scrub the reachable parts while it soaks. Dip a cloth in the hot vinegar water and wipe the underside of the lid, the rim, the bleach and softener dispensers, and the top of the agitator. Pop the agitator cap or fabric-softener cup off if yours comes apart — the slime under there is usually the worst in the machine.
Finish the cycle, then a baking soda run. Let the vinegar cycle complete and drain. Refill with hot water, add ½ cup of baking soda, and run a full cycle. Wipe the tub dry afterward. Top-loaders with a lint filter or a filter under the agitator should get that rinsed too — check your manual, since placement varies a lot by brand.
The clean only buys you a month or two if the habits that caused the buildup stay. Three changes matter most. Dose detergent like an HE machine wants: most loads need only a tablespoon or two of HE detergent, and the puddle of suds from a full cap doesn't rinse out — it becomes the film you're scrubbing next month. Leave the door (and drawer) ajar between loads so the interior actually dries. And pull finished laundry out promptly; wet clothes sitting overnight sour the drum and the clothes together. While you're in laundry-room maintenance mode, the dryer deserves the same attention once or twice a year — how to clean a dryer vent is the companion job. Both sit on the same yearly appliance maintenance checklist, which also slots in the fridge coils and the water-heater flush so the whole set gets done once a year.
Using more detergent to fight the odor. The odor is largely made of detergent residue, so extra soap feeds it. Skipping the gasket and drawer. A drum-only clean leaves the two worst reservoirs untouched, and the smell returns within days. Running the clean cycle on warm. Biofilm loosens in genuinely hot water; a lukewarm clean mostly perfumes the problem. Closing the door "to keep it tidy." That's the single habit behind most front-loader funk. Ignoring the pump filter for years. By then it's a solid plug of lint and coins, and the machine starts leaving water behind as a warning. One more worth naming even though it isn't an odor issue: a machine that starts walking across the floor or banging through the spin cycle has a different problem entirely — work through the leveling and load checks for a washing machine shaking in the spin cycle before the vibration wears out the suspension.
Clean the gasket, drawer, and filter by hand, run the hottest empty cycle with vinegar or a machine cleaner, and dry the machine out afterward. Do it monthly on a front-loader and a few times a year on a top-loader, cut the detergent dose, and leave the door open — the musty smell won't have anything to grow on.
Front-loaders: about once a month, which is why most have a self-clean cycle with a reminder light. Top-loaders: every three to four months is usually enough. Homes with hard water, heavy use, or a lot of cold-water washing should stick to the shorter interval — all three speed up buildup.
Yes — a cup of bleach in a hot empty cycle is a legitimate alternative and better at killing mold on contact. Just never use bleach and vinegar in the same cycle or back-to-back without a rinse between them; the combination produces chlorine gas.
Usually a spot got missed: the pump filter, the dispenser housing above the drawer, or the lowest fold of the gasket. If all three are clean and the smell persists, check the drain hose and the sink or standpipe it drains into — sewer-side odors can travel back up and get blamed on the machine.
Yes. The citric-acid and oxygen-based tablets are made for exactly this and are the safer choice if your manufacturer warns against vinegar. They're not magic, though — no tablet cleans the gasket folds or the pump filter. The hands-on steps still have to happen.
Occasional use is fine for most machines, but a few manufacturers advise against it because repeated acid exposure can shorten the life of rubber seals and hoses. If your manual says no vinegar, follow the manual and use the cleaner the maker recommends instead.