How to Clean a Washing Machine and Prevent Mold
How to clean a washing machine part by part, including detergent drawer, gasket, drain filter, and drum, with a schedule for front and top loaders.
To clean a washing machine, wipe the door gasket and detergent drawer, clear the drain pump filter, run a hot cleaning cycle with an approved cleaner, and leave the door open after each load so the drum dries. Use less detergent, since excess soap feeds odor and residue.
Safety Before You Start
Washers use water and electricity together. Unplug the machine before cleaning internal parts, and place towels and a shallow tray under the drain filter, since several cups of water can come out. If you disconnect or move the machine, shut off the water supply first and check the hoses for bulges or cracks, because a burst hose can flood a home. Keep the area dry and follow the manual.
Why Washers Smell and Get Dirty
Washers stay damp, and detergent, fabric softener, lint, and skin oils build a slimy film called biofilm. Low-temperature washing and high-efficiency machines use less water, so residue is not flushed as well. Front-loaders have a rubber gasket that traps water and lint in its folds. Odors usually come from the gasket, the detergent drawer, the drain filter, and the space behind the drum, and not from the drum surface you see.
Detergent use is a main cause. Using more soap than the load needs leaves residue, and fabric softener adds a waxy film. High-efficiency machines need high-efficiency detergent in the amount shown on the label.
Step-by-Step Cleaning
1. Wipe the gasket (front loaders)
Pull back the rubber seal and look into the folds for hair, lint, and black or pink film. Wipe with a cloth and a mild cleaner, or a solution the maker allows. Dry the gasket afterward. Do not use harsh abrasives that tear the rubber.
2. Clean the detergent drawer
Remove the drawer as the manual shows. Rinse it under warm water, scrub with a brush to remove residue, and check the cavity behind it for mold. Dry before reinserting.
3. Clear the drain pump filter
Most front loaders have a small access panel at the bottom front. Place a shallow pan and towels, open the filter slowly, and let water drain. Remove coins, lint, and hair, rinse the filter, and screw it back in tightly. A clogged filter causes slow draining, noise, and error codes. Do this every few months, or more often in homes with pets.
4. Run a cleaning cycle
Use the machine’s tub clean program if it has one, or run a hot cycle with a washing machine cleaner approved by the maker. Some makers allow white vinegar and others do not, because it can affect rubber parts. Check the manual. Never mix bleach and vinegar or other cleaners, since the combination can release harmful gases.
5. Wipe the drum and exterior
After the cycle, wipe the drum and door glass with a cloth. Clean the exterior and the control panel with a damp cloth.
Top loaders
Top loaders have an agitator or impeller, a basket, and a spot under the lid where residue collects. Wipe under the lid and around the rim, clean the lint filter if the machine has one, and run the cleaning cycle with the lid up as directed. Check the fill hoses and inlet screens occasionally, and clear sediment from the screens when you replace hoses.
Detergent and Habits That Keep It Clean
- Use the amount of detergent in the label for the load size and soil level.
- Use high-efficiency detergent in high-efficiency machines.
- Skip or reduce fabric softener, which leaves a film.
- Leave the door and the drawer slightly open between loads to let air in.
- Remove wet clothes promptly, since damp laundry left in the drum breeds odor.
- Run a hot or sanitize cycle occasionally if your machine offers it, as the maker says.
- Wipe the gasket after the last load of the day.
A Cleaning Schedule
| Task | Frequency |
|---|---|
| — | — |
| Wipe gasket and door | Weekly |
| Leave door open to dry | Every load |
| Clean detergent drawer | Monthly |
| Run cleaning cycle | Monthly or every few months |
| Clear drain filter | Every few months |
| Check hoses | Twice a year |
Put the schedule on your phone or tape it inside the laundry cabinet. The tasks that matter most are the cheapest ones: leave the door open after loads and wipe the gasket. The rest, such as the drawer and the drain filter, take only a few minutes each when done on time, and a lot longer after months of buildup.
See the washer and dryer guides for models with self-clean cycles and easy-access filters.
Water Damage Prevention
A clean washer is also a safer washer. Check supply hoses at the back for bulges, cracks, and rust at the fittings, and replace hoses on the maker’s schedule, often with braided stainless models. Know where the shutoff valves are. Leave a few inches behind the washer for hoses to bend freely, and place a drain pan if the washer sits above finished space. Shut off the supply before any hose change, and call a plumber if you see a leak you cannot fix.
Troubleshooting and Cleaning Products
Black spots on the gasket
Dark spots are usually mold and mildew in the rubber folds. Wipe them with a cloth soaked in a cleaner the maker allows, scrub gently with a soft brush, rinse, and dry. Persistent staining that does not clean off may be permanent, but if the rubber is cracked or soft, the gasket should be replaced, since a failing gasket can leak.
Clothes smell musty after washing
This points to residue in the drum, drawer, or drain filter, or to clothes left in the machine too long. Run a cleaning cycle, then use less detergent for the next few loads. Wash towels at a warm setting if the fabric label allows, since cold water leaves more residue behind.
White flecks on dark clothes
Often undissolved detergent, especially powder in cold water. Switch to liquid or use less, add a rinse, and make sure the drawer is clean and the dispenser is not clogged.
Water standing in the drum
Check the drain filter and the drain hose for a clog or a kink. If the filter is clear and the hose is straight, an error code in the manual points to the pump. This may need a technician.
Cleaning Products: What to Use and What to Skip
Choose cleaners that the maker names as safe. Dedicated washing machine cleaner tablets are designed to remove residue and are a simple option. Some owners use white vinegar or baking soda, though makers vary in whether they recommend them, so confirm with the manual. Chlorine bleach is allowed by some manufacturers for occasional use and is discouraged by others because it can degrade rubber and seals over time. Never mix cleaning products, and rinse after any cleaner so that no residue transfers to your next load.
Skip abrasive scrubbers on the drum and the gasket. Avoid spraying cleaner into control panels or vents. Keep products away from children and pets, and ventilate the room when using strong cleaners. If the machine has a self-clean cycle, use it as directed, and note that it may take a long time and use hot water.
Decision Rules
- Musty smell: clean gasket, drawer, and filter first.
- Slow drain or error code: clear the drain pump filter.
- Soap residue on clothes: use less detergent and run a cleaning cycle.
- Hard water: add a cleaner at intervals to dissolve scale.
- Rental with an old machine: wipe weekly and leave the door open.
For wider upkeep advice, see the home appliances hub and the How We Review page.
If a smell survives all of the above, look at the drain hose connection behind the machine and at the standpipe, since a poor drain setup can let odors back up into the drum. A licensed plumber can check the standpipe and trap if you are not sure.
Frequently Asked Questions
How often should I clean my washing machine?
Wipe the gasket weekly, leave the door open after each load, clean the detergent drawer monthly and run a cleaning cycle monthly or every few months. Clear the drain pump filter every few months, or more often in homes with pets. Follow your manual for the intervals it recommends.
Can I use vinegar to clean a washing machine?
Some makers allow white vinegar and others do not, because it can affect rubber parts. Check the manual first, or use a washing machine cleaner the maker approves. Never mix vinegar with bleach or other cleaners, since the combination can release harmful gases.
Why does my front load washer smell musty?
Odors usually come from the gasket, the detergent drawer, the drain filter and residue in the drum, especially if too much detergent is used or damp laundry sits in the machine. Wipe and dry the gasket, clean the drawer and filter, run a cleaning cycle and use less detergent.
Do top load washers need cleaning too?
Yes, though they have no gasket to trap water. Residue collects under the lid and around the rim, so wipe those areas, clean the lint filter if the machine has one and run the cleaning cycle with the lid up as directed. Check the inlet screens occasionally and clear sediment.
Final Thoughts: Dry It, Wipe It, Use Less Soap
Most washer odors come from damp gaskets, residue, and clogged filters. Clean those parts on a schedule, run a cleaning cycle, use the right amount of detergent, and leave the door open to dry.
Related buying guides
- Stackable vs Side by Side Washer Dryers
- Washer Capacity Guide: Cubic Feet by Household Size
- Dryer Vent Safety: Cleaning, Length, and Fire Prevention