To clean a washing machine, run an empty hot-water cycle with either a washer-cleaning tablet (Affresh works well) or two cups of white vinegar, then wipe down the drum, gasket or agitator, detergent dispenser, and lid seal. Do this once a month. If you also clean the drain pump filter every three to four months, most odor and residue problems stay gone.

That’s the short version. The full process takes under an hour and differs slightly depending on whether you have a front-loader or top-loader. Here’s exactly what to do.

Why washing machines get dirty

A machine that cleans your clothes builds up its own grime: detergent residue, mineral deposits, fabric softener coating, lint, and mildew. San Diego’s water supply runs notably hard, which means elevated calcium and magnesium levels. Those minerals leave white or gray scale inside the drum and around the dispenser over time. A machine that smells fine on day one can develop a musty odor within a few weeks if the cleaning routine is skipped.

The fix isn’t complicated, but you have to do it regularly.

How to clean a front-load washing machine

Front-loaders have a design quirk that top-loaders don’t: a rubber door gasket that traps moisture in its folds every single cycle. That gasket is the first place to clean, and the most commonly skipped.

Step 1: Clean the door gasket

Pull back the rubber boot around the door opening and look inside the folds. You’ll almost always find lint, hair, and a black or brown residue. Mix one part bleach with four parts water, dampen a cloth, and wipe every inch of the gasket, including the folds at the bottom where standing water collects. A toothbrush handles the tight creases.

After cleaning, dry the gasket thoroughly with a clean towel.

A note on vinegar: it’s fine for the drum cycle, but repeated direct contact with rubber seals can degrade them over time. Stick to diluted bleach for the gasket itself.

Step 2: Clean the detergent dispenser

Most dispenser drawers pull out completely (press the release tab inside the compartment and it slides free). Soak it in hot soapy water for 10 minutes, then scrub the corners and the small tubes with a toothbrush. Rinse and dry before sliding it back in. Wipe the cavity where the drawer sits, there’s often black mold growing in there.

Step 3: Run the drum-clean cycle

Add one Affresh tablet directly to the drum, or pour two cups of white vinegar into the drum (not the dispenser). Select the “tub clean” or “sanitize” cycle, or the hottest cycle with the largest load setting. Run it empty.

Once the cycle finishes, wipe the inside of the drum with a dry cloth to remove any loosened residue.

Step 4: Clean the drain pump filter

Front-loaders have a small access panel near the bottom front of the machine, usually held closed by a twist cap or a small door. Put a towel on the floor and a shallow pan underneath before opening it. Water will come out when you unscrew the cap. Pull out the filter, rinse it under running water, remove any lint or debris, and screw it back in.

If you’ve never done this, expect more water than you expect. After the first cleaning, doing it every three to four months keeps it quick.

Step 5: Leave the door and drawer open

After every wash cycle, leave the door cracked two to three inches and pull the dispenser drawer open an inch. The drum and gasket need to dry between loads. This single habit prevents most front-loader odor from coming back.

How to clean a top-load washing machine

Top-loaders are generally more forgiving than front-loaders because they drain completely and usually sit with the lid open. But the agitator fins, the drum rim, and the detergent dispenser still accumulate residue.

Step 1: Run the cleaning cycle

If your machine has a “clean washer” cycle, use it. Add a washer tablet or two cups of white vinegar to the drum. No clothes, no other detergents.

If your model doesn’t have that cycle, fill the drum with hot water on the largest load setting, add the vinegar, let it agitate for a minute, then pause the cycle and let it soak for an hour before completing it.

Step 2: Clean the agitator and drum walls

After the cycle drains, mix a tablespoon of dish soap with a quart of warm water. Dip a cloth and wipe down the inside of the drum, paying extra attention to the agitator fins and the area just under the drum rim where residue gathers. Rinse with a clean damp cloth.

For impeller-style top-loaders (no tall center post), just wipe the drum floor and the walls in the same way.

Step 3: Clean the dispenser and lid seal

Remove the fabric softener dispenser if your model has one (most lift straight out). Rinse it under hot water. Wipe the rim under the lid and the top edge of the drum with a damp cloth. These spots collect fabric softener and detergent drips that harden over time.

Step 4: Leave the lid open

Same principle as the front-loader. Leave the lid up when the machine isn’t running. It’s the simplest way to prevent mildew from ever getting started.

The San Diego hard-water factor

San Diego County water averages around 300 to 400 parts per million of dissolved minerals depending on your city and the time of year. That’s considered hard to very hard water. Over several months, mineral scale builds up on the drum interior, the heating element (in heated-wash models), and around the inlet valve. It looks chalky white or light gray.

White vinegar dissolves mineral scale well, which is one reason it’s a useful cleaner here beyond just killing mildew. For heavy buildup, you can run two vinegar cycles back to back once a year, or use a descaling product designed for appliances.

If you’re in Carlsbad, Escondido, or areas that draw from inland reservoirs, the hardness tends to run higher than coastal areas. An extra cleaning cycle once a quarter is worth it.


If you open your drum and find standing water after a cycle, hear a grinding noise during drain, or see water backing up into the drum, those are signs of a drain pump or filter problem that cleaning alone won’t fix. Our team handles washing machine repair across San Diego County, often same day. If you’re seeing those symptoms, call (858) 988-7787 before running another load.


If your front-loader has persistent mildew even after following this routine, the issue may be deeper in the door boot or bellows. The front-loader mildew guide covers that scenario in more detail, including when gasket replacement makes sense.

For residents in North County, our appliance repair in Carlsbad team serves that area regularly with the same same-day availability.

If you’re hearing noise during the spin cycle, the washing machine making loud noise guide covers the common mechanical causes.

Frequently asked questions

How often should you clean a washing machine?

Clean your washing machine once a month. Run an empty hot cycle with a cleaning tablet or white vinegar, wipe down the gasket or drum walls, and clean the detergent dispenser. If you do large loads daily or use a lot of liquid fabric softener, a twice-monthly routine makes sense.

Can you use vinegar to clean a washing machine?

Yes. Two cups of white vinegar poured directly into the drum (not the dispenser) works well for the hot drum-clean cycle. Vinegar dissolves mineral scale and cuts through detergent residue. The one caution is repeated direct contact with rubber gaskets, so use diluted bleach on the door seal itself rather than straight vinegar.

Why does my washing machine still smell after cleaning?

If the odor persists after a thorough cleaning, the most likely causes are a drain pump filter that hasn’t been cleared, mildew that’s taken hold deep in the door gasket folds, or a habit problem (leaving the door sealed between loads). Clean the filter, inspect the gasket under a flashlight, and start leaving the door cracked open after every cycle. If that doesn’t resolve it within two to three weeks, the gasket may need replacement.

What is the best way to clean a top-load washing machine?

For a top-loader, run an empty hot cycle with a washer-cleaning tablet or two cups of white vinegar. After it drains, wipe down the agitator fins, drum walls, and the rim under the lid with a soapy cloth. Clean the fabric softener dispenser separately under hot water. Leave the lid open between loads to let the drum dry.

Is it safe to use bleach to clean a washing machine?

Bleach is safe to use on the door gasket (diluted one part bleach to four parts water) and for sanitizing the drum on a hot cycle, though most technicians recommend a dedicated washer tablet or vinegar for the drum clean to protect rubber seals over time. Never mix bleach with vinegar as that combination produces chlorine gas. Use one or the other, not both.