A mildew smell in your hair almost always comes from moisture that stayed trapped long enough for microbes to thrive. Your scalp is home to bacteria and fungi that feed on oils and sweat, and when conditions stay damp, these organisms multiply and produce the musty, sour odor you’re noticing. The good news: once you identify the specific cause, the smell is usually fixable with changes to your routine.
How Moisture Creates the Smell
The mildew scent is not actually mildew growing on your hair the way it would on a damp towel, but the mechanism is similar. Fungi and bacteria on your scalp break down sebum (your skin’s natural oil) and sweat into volatile compounds. When your hair or scalp stays wet or even slightly damp for extended periods, these organisms get ideal growing conditions. The byproducts of their activity are what produce that stale, musty odor.
This is why the smell often appears after specific situations: going to bed with wet hair, bundling damp hair into a bun or ponytail, wearing a hat over hair that hasn’t fully dried, or living in a humid climate where your hair never quite reaches “dry.” Even towel-drying and air-drying can leave enough residual moisture at the roots to trigger the problem, especially if your hair is thick or dense.
Hair Porosity and Why Some People Are More Prone
Your hair’s porosity, meaning how easily it absorbs and releases water, plays a direct role. Hair with high porosity has a damaged or lifted outer layer (cuticle), so it soaks up water fast but also loses it fast. That rapid cycling of moisture in and out can keep the scalp environment humid. Hair with low porosity, on the other hand, resists absorbing water in the first place and takes a long time to both wet and dry. If you have low porosity hair, wash days can leave your roots damp for hours, creating an extended window for microbial growth.
Thick, coily, or curly hair types face a compounding challenge. The density of the strands traps moisture close to the scalp, reducing airflow. If you regularly protective-style your hair (braids, twists, wigs), the scalp gets even less ventilation, and that trapped dampness is one of the most common triggers for a mildew-like smell.
Product Buildup Traps Odor at the Roots
Heavy styling products, particularly silicone-based serums, thick oils, and leave-in conditioners, can coat the scalp and hair shaft in a layer that seals in moisture and sebum. Over time, this buildup creates a film that regular shampooing may not fully remove. Bacteria and fungi feed on that trapped layer of oil and product residue, and the smell gets worse with each wash cycle that fails to clear it.
If you notice the mildew smell returns quickly after washing, or if your hair feels coated or waxy even when clean, buildup is a likely contributor. A clarifying shampoo, used once every week or two, strips away accumulated product and resets the scalp. Look for one that’s sulfate-based or specifically labeled as clarifying rather than moisturizing.
Scalp Conditions That Cause Persistent Odor
Sometimes the smell points to a scalp condition rather than a hygiene habit. Seborrheic dermatitis, a common inflammatory condition driven by an overgrowth of a naturally occurring yeast on the skin, often produces a noticeable odor along with flaking, redness, and itching. The yeast breaks down scalp oils into irritating fatty acids, and those compounds carry a distinctive musty or sour scent.
For mild to moderate cases, antifungal shampoos are effective. A clinical trial comparing two common options found that shampoo containing 2% ketoconazole, used twice weekly for four weeks, was significantly more effective than 1% zinc pyrithione shampoo for severe dandruff and seborrheic dermatitis. Both are available over the counter in many countries, though ketoconazole formulations may require a prescription depending on where you live. Zinc pyrithione (found in many dandruff shampoos) is a reasonable starting point for milder cases.
If your scalp odor is accompanied by sudden, severe flaking or scaling that doesn’t respond to over-the-counter treatments, or if it spreads to your face, chest, or skin folds, that warrants a dermatologist visit. Severe or sudden-onset seborrheic dermatitis can occasionally signal an underlying immune issue, and a specialist can rule that out and prescribe stronger treatments if needed.
How to Eliminate the Smell
The fix depends on the cause, but a few core strategies address the most common triggers:
- Dry your hair completely after washing. This is the single most effective change. Use a blow dryer on a low or medium heat setting, focusing on the roots and scalp rather than the ends. If you air-dry, keep your hair down and in an environment with good airflow until it’s fully dry before putting it up or going to sleep.
- Clarify regularly. Use a clarifying shampoo every one to two weeks to remove product buildup and reset the scalp. Follow with a lightweight conditioner on the ends only.
- Wash at the right frequency for your scalp. If you’re washing infrequently (once a week or less), sebum and sweat accumulate and feed odor-causing microbes. You don’t necessarily need to wash daily, but your scalp should not feel oily or smell off between washes. Adjusting to every two to three days often resolves the issue.
- Try an antifungal shampoo. If you have any flaking alongside the smell, alternate your regular shampoo with a zinc pyrithione or ketoconazole formula twice a week for a month and see if the odor clears.
Does Apple Cider Vinegar Help?
Apple cider vinegar rinses are a popular recommendation for scalp odor, and there’s some basis for it. Dilute acetic acid (the active component in vinegar) inhibits the growth of common skin bacteria and disrupts biofilm formation at concentrations as low as 0.16% to 0.31%. A typical ACV rinse, one to two tablespoons in a cup of water, falls roughly in that range. The acidity can also help dissolve mineral buildup from hard water and strip light product residue.
That said, the evidence is modest. One controlled study found that ACV soaks did not significantly alter the skin’s bacterial community composition. It may help as a supplemental rinse, particularly for removing buildup and temporarily lowering scalp pH, but it’s unlikely to resolve a mildew smell on its own if the underlying cause is a fungal overgrowth or chronic dampness. Concentrations above 3% acetic acid can cause irritation, so keep your dilution mild and rinse thoroughly.
When the Smell Keeps Coming Back
If you’ve addressed drying habits, switched to a clarifying routine, and tried antifungal shampoos for a full month without improvement, the cause may be something less obvious. Hormonal changes, stress, and certain medications can alter sebum production and scalp chemistry, shifting the microbial balance in ways that produce persistent odor. Hard water with high mineral content can also leave deposits on the scalp that trap oils and microbes, making standard shampooing less effective. A chelating shampoo or a shower filter can help in that case.
Rarely, a persistent unusual scalp odor can indicate a skin condition beyond common dandruff. Darier disease, for example, produces characteristic rough, dome-shaped bumps in oily areas of the skin and is specifically noted in dermatology literature for causing a peculiar odor. Conditions like these look visibly different from a normal scalp, so if you see unusual bumps, persistent sores, or widespread scaling that doesn’t match typical dandruff, a dermatologist can examine your scalp directly and provide a diagnosis.