That sour, musty smell in your laundry is one of the most stubborn odors to beat. It doesn't come from dirt—it comes from living microbes. The good news is that once you know where they hide, you can get rid of the smell and keep it from coming back.
This post contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. We only link to products we could verify exist.

What Actually Causes Mildew Smell in Laundry
As a rule of thumb, Mildew smell is a byproduct of bacteria and mold growing in your laundry. They feed on the oils, sweat, and body soil left on fabric, and they thrive in damp, dark places.
If this helped, you'll also want to read How to Clean a Washing Machine Cheaply (Yes, It Needs It), How Often Should You Wash Your Bedding? A Simple Schedule and Why Your Windows Are Still Streaky After Cleaning.
In most cases, Your washing machine is the perfect habitat. Front-loaders are the worst offenders because water pools in the door gasket. But top-loaders get funky too, especially if you always wash in cold water and use too much detergent, in my experience.
Honestly, the smell often isn't in the fabric at all. It's in the machine, and it re-contaminates every load you run. So you have to treat both.
Step 1: Figure Out Where the Smell Is Coming From
Before you buy anything, do a quick smell test.
- Sniff the rubber gasket around a front-loader door. If it smells like a wet basement, that's your source.
- Pull out the detergent drawer and smell it. Old liquid detergent and fabric softener turn rancid.
- Check the drain pump filter (usually behind a small panel at the bottom front). It collects lint, coins, and gunk.
- Smell the drum after a cycle. If it stinks when empty, the machine is the problem.
- Smell a clean, dry towel. If only the clothes smell, the issue is buildup in the fabric itself.
In my experience, about 8 out of 10 cases trace back to the washer, not the clothes, in practice.
Step 2: Clean the Washing Machine First
There's no point rewashing clothes in a dirty machine. Set aside about an hour.
Start with the gasket. Wipe every fold with a 50/50 mix of white vinegar and water, then dry it with a rag. If you see black speckles, that's mold—scrub it with a little baking soda on a damp cloth.
Next, run a cleaning cycle. You have two solid options:
- Affresh Washing Machine Cleaner tablets. Drop one in an empty drum and run the hottest, longest cycle. They're cheap, around $10 for a 6-pack, and designed for this exact job.
- White vinegar. Pour 2 cups into the detergent dispenser and run a hot cycle. It's the budget option and works well for maintenance.
For a deep clean, I like Affresh Washing Machine Cleaner because it targets the biofilm that vinegar sometimes leaves behind. If you'd rather not use tablets, plain vinegar is fine.
Also clean the detergent drawer by hand, and check the drain pump filter. Rinse it under warm water until the water runs clear.
Leave the door open when you're done. This one habit prevents most future problems.
Step 3: Treat the Smelly Clothes
Now for the laundry itself. Regular detergent won't fix this because the odor is trapped in the fibers, honestly.
Use one of these methods.
The vinegar soak. Fill a tub or your washer with cool water, add 1 cup of white vinegar, and let the clothes soak for 30 to 60 minutes. Then wash as normal. Vinegar is acidic and kills a lot of the odor-causing bacteria.
The baking soda boost. Add 1/2 cup of baking soda directly to the drum with your detergent. It neutralizes acid odors and softens water so detergent works better.
Oxygen bleach. For whites and colorfast items, add 1 scoop of OxiClean to a warm wash. It breaks down organic residue that holds the smell.
Enzyme cleaner. For really stubborn cases—like gym clothes or towels that smell sour the second they get wet—an enzyme-based sports wash like Defunkify Active Wash eats the oils and bacteria directly. It costs more than vinegar, but it works when nothing else does.

One warning: never mix vinegar and bleach. It creates toxic chlorine gas.
Step 4: Wash the Right Way
How you wash matters as much as what you wash with. Here's the routine that works.
- Use the correct amount of detergent. More is not better. Excess soap leaves residue that traps odor. For a normal load, that's usually 2 tablespoons of a concentrated detergent, not a full cap.
- Skip fabric softener and dryer sheets for now. They coat fibers and seal in smells.
- Choose warm or hot water when the fabric allows. Cold water saves energy, but it doesn't dissolve body oils as well.
- Don't overload. Clothes need room to move. A packed drum can't rinse clean.
- Run an extra rinse cycle if you've been dealing with buildup.
If you have hard water, add a water softener like Borax. One-half cup per load helps detergent rinse away completely, in my experience.
Step 5: Dry It Completely
Mildew needs moisture. If clothes sit damp for even a few hours, the smell comes right back.
Move laundry to the dryer immediately after the wash ends. Don't leave it overnight—that's the single fastest way to undo your work.
Set the dryer to a hot cycle if the care label allows. If you line dry, do it in direct sun. Sunlight is a natural disinfectant and it bleaches out stains too, believe it or not.
For towels and heavy items, add a clean, dry towel to the load for the first 15 minutes. It absorbs extra moisture and speeds drying.
If your dryer has a moisture sensor, use it. Over-drying wastes energy, but under-drying leaves damp spots where mildew grows.
Step 6: Keep It From Coming Back
Prevention is mostly about habits, and they take about 10 seconds each, in my experience.
- Leave the washer door open between loads so the drum dries.
- Wipe the gasket dry after every wash.
- Clean the machine once a month with vinegar or a cleaning tablet.
- Use less detergent than you think you need.
- Never let wet clothes sit in the washer for more than an hour.
- Wash towels and workout gear more often than you think. Every 3 to 4 uses is a good rule.
- Run a hot cycle on your whites or towels at least once a week.
Here's a quick reference for how often to tackle each task:
| Task | How often |
|---|---|
| Wipe door gasket | After every load |
| Leave door open | Always |
| Clean detergent drawer | Monthly |
| Run cleaning cycle | Monthly |
| Clean drain pump filter | Every 3 months |
Stick to that and you'll rarely deal with this again.
When to Call It Quits on a Garment
Some items aren't worth saving. If a towel or shirt still smells sour after two full treatments, the mildew has likely grown into the fibers and won't come out. At that point, it's a health issue—mold spores can trigger allergies and breathing problems, in practice.
Toss it, or cut it up for cleaning rags. A $5 towel isn't worth respiratory irritation.
The bottom line
Mildew smell in laundry almost always comes from the washing machine, not the clothes. Clean the machine first—gasket, drawer, and filter—then treat the fabric with vinegar, baking soda, or an enzyme wash. Wash with less detergent, dry promptly, and leave the door open. Do that, and the smell stays gone.
Frequently Asked Questions
Does vinegar really kill mildew in laundry?
Vinegar is acidic, which kills a lot of odor-causing bacteria and mold. It works well as a soak or a machine cleaner. For deep-set smells, pair it with baking soda or an enzyme detergent, believe it or not.

Why does my laundry smell like mildew right after washing?
If clothes smell musty straight out of the wash, the machine is the culprit. Mold and biofilm are living in the gasket, drawer, or drum and re-contaminating every load. Clean the washer before washing anything else.
Can I use bleach to get rid of mildew smell?
Yes, for white cotton and other bleach-safe fabrics. Use it according to the label and never mix it with vinegar or ammonia. For colors, use oxygen bleach instead, since chlorine bleach will fade them.