That musty, wet-dog smell coming from your hair is most likely caused by a combination of natural scalp oils breaking down and microbes thriving in the moisture on your scalp. The odor tends to appear (or get much stronger) when hair is damp because water activates volatile compounds that are barely noticeable when your hair is dry. The good news: it’s common, it’s usually not a sign of anything serious, and it’s fixable once you understand what’s driving it.
How Scalp Oil Creates That Smell
Your scalp constantly produces sebum, an oily substance that protects your skin and hair. Sebum is rich in fatty acids, and when those fatty acids break down through a process called lipid peroxidation, they produce a range of odor-causing chemicals called aldehydes. One of the most notable is 2-nonenal, a compound with a distinctly greasy, stale smell. Research published in The Journal of Biological Chemistry confirmed that 2-nonenal forms when polyunsaturated fatty acids in skin oils, like palmitoleic acid, undergo oxidative breakdown. This is the same chemical family responsible for that “old grease” smell on unwashed kitchen surfaces.
Water accelerates the release of these compounds. When your hair is dry, many of these volatile molecules stay trapped in the oil layer on your scalp. The moment water hits, it disrupts that layer and sends those odor molecules into the air, which is why you notice the smell most after getting caught in the rain, sweating, or stepping out of the shower before fully drying your hair. It’s essentially the same reason a dog smells worse when wet: moisture releases trapped volatile compounds from skin oils and microbial byproducts all at once.
Bacteria and Yeast on Your Scalp
Your scalp is one of the oiliest, most microbe-dense areas of your body. It hosts large populations of bacteria and fungi, including species of Malassezia (a yeast) and Cutibacterium, both of which feed on sebum. Research from MDPI identified sebum production as the dominant factor controlling microbial biofilm formation on the scalp, with high-sebum areas around hair follicles serving as primary growth sites.
These microbes digest sebum and produce their own waste products, many of which smell. In people with heavier biofilm growth, researchers found significantly increased populations of Staphylococcus aureus alongside other bacteria, creating a more complex and odor-producing microbial community. The scalp’s natural warmth and moisture, especially under thick hair that traps humidity, creates an ideal environment for these organisms to multiply. When you add extra water from a shower or sweat, microbial activity ramps up and the smell intensifies.
Product Buildup Makes It Worse
Conditioners, styling creams, dry shampoos, and oils can leave residue on the scalp that mixes with sebum and creates a sticky layer. This layer feeds microbial growth and traps odor compounds close to the skin. Scalp biofilms, which are structured communities of bacteria and yeast embedded in a protective matrix, grow more readily in these lipid-rich environments. Once a biofilm is established, it’s harder to remove with a quick rinse because the microbial community essentially anchors itself to the scalp surface.
People who use heavy leave-in products, skip shampoo for extended periods, or wash with conditioner only (co-washing) are more prone to this kind of buildup. The trapped residue doesn’t just sit passively. It feeds the cycle: more food for microbes means more microbial waste, which means more smell, particularly when the scalp gets wet again.
Hair Porosity Plays a Role
Hair porosity, meaning how easily your hair absorbs and holds moisture, affects how much odor your hair picks up and retains. High-porosity hair has a compromised outer layer (cuticle) from chemical treatments, heat styling, or the natural twists in curly and coily hair types. These lifted cuticle scales absorb water, environmental odors, and product residue more readily than low-porosity hair.
The catch is that high-porosity hair also loses moisture quickly, creating repeated cycles of swelling and shrinking (called hygral fatigue) that further damage the cuticle over time. Each cycle opens the hair shaft to absorb more odor-causing compounds. If your hair absorbs water very quickly but also feels dry soon after, you likely have high porosity, and sealing hydrated hair with lightweight oils can help reduce how much odor the strand itself absorbs.
Hormones and Health Conditions
Hormonal shifts during puberty, pregnancy, and menopause can increase both sebum and sweat production on the scalp. More oil means more raw material for lipid peroxidation and more food for odor-producing microbes. Some people notice the wet-dog smell appearing for the first time during one of these hormonal transitions, even without changing their hair care routine.
There’s also a loosely defined condition sometimes called “smelly hair syndrome,” where the scalp produces a persistent foul odor despite regular washing. This can stem from an overgrowth of yeast or bacteria, underlying skin conditions like seborrheic dermatitis, or in some cases digestive or metabolic issues that change the composition of sweat and sebum. If the smell persists no matter what you try, a doctor can take a scalp culture to check for fungal or bacterial overgrowth, or run blood tests to rule out hormonal imbalances.
How to Get Rid of the Smell
The most effective approach targets all three contributors: excess oil, microbial overgrowth, and product buildup.
- Wash more strategically. If you’re washing infrequently, sebum and microbial waste accumulate. Focus shampoo on the scalp rather than the lengths of your hair, and massage it in for at least 60 seconds to break through buildup.
- Try a medicated shampoo. Active ingredients like zinc pyrithione, ketoconazole, selenium sulfide, and ciclopirox are proven to reduce Malassezia populations on the scalp. Studies show zinc pyrithione significantly decreases yeast counts and reduces the lipid deposits that fuel microbial growth. Using one of these shampoos two to three times per week can make a noticeable difference within a few weeks.
- Clarify periodically. A clarifying shampoo or a scalp scrub with antimicrobial agents can break down biofilm and strip away product residue that regular shampoo leaves behind. This is especially helpful if you use heavy styling products or co-wash regularly.
- Dry your hair promptly. Leaving hair damp for hours gives microbes a warm, moist environment to thrive in. Towel-dry your scalp first, then air-dry or use a blow dryer on a low heat setting. The faster your scalp dries, the less time bacteria and yeast have to multiply.
- Reduce heavy scalp products. Oils, butters, and thick creams applied directly to the scalp feed microbial growth. If you need moisture, apply these products to the mid-lengths and ends of your hair instead.
Why Some People Get It and Others Don’t
Individual differences in sebum production, scalp microbiome composition, hair density, and even diet all influence who deals with this problem. People with oilier scalps naturally produce more of the fatty acids that break down into smelly aldehydes. Those with thick or dense hair trap more heat and humidity against the scalp, creating a better environment for microbial growth. The production of 2-nonenal also increases with age, which is why some people develop the problem in their 40s or later without any obvious change in habits.
Stress, poor sleep, and diets high in processed fats can also shift sebum composition in ways that make the breakdown products more pungent. It’s rarely one single cause. For most people, the smell is a signal that the balance between oil production, microbial activity, and cleansing routine has tipped in the wrong direction, and adjusting one or two factors is usually enough to fix it.