Dandruff is caused by a chain reaction between a naturally occurring scalp fungus, the oil your skin produces, and your body’s inflammatory response. Nearly everyone has the fungus responsible for dandruff living on their scalp, but differences in oil production, immune function, and skin sensitivity determine who actually develops visible flaking.
The Fungus Already on Your Scalp
A yeast-like fungus called Malassezia lives on virtually every human scalp. It’s part of the normal skin ecosystem and, for most people, causes no problems at all. But Malassezia feeds on sebum, the oily substance your sebaceous glands produce to keep skin and hair moisturized. The fungus produces enzymes called lipases that break down the fats in sebum into smaller molecules, including a fatty acid called oleic acid.
Oleic acid is where the trouble starts. It penetrates the outer layer of skin and, in people who are sensitive to it, triggers an irritation response. The scalp becomes inflamed, and the body tries to get rid of the irritant by speeding up skin cell turnover. Normally, scalp skin cells mature and shed over the course of about a month. On a dandruff-affected scalp, that cycle compresses to as little as 2 to 7 days. Cells are pushed to the surface before they’re fully ready, clumping together into the visible white or yellowish flakes you see on your shoulders.
Not everyone reacts to oleic acid the same way. Some people can have high levels of Malassezia on their scalp with no flaking at all, while others develop dandruff even with relatively low fungal counts. Individual immune sensitivity to these fungal byproducts is a major reason dandruff affects some people and not others.
Why Oil Production Matters
Because Malassezia depends on sebum for energy, anything that increases oil production on your scalp creates a friendlier environment for the fungus. Hormones play a central role here. Testosterone and other androgens stimulate the sebaceous glands to produce more oil, which is why dandruff tends to appear or worsen during puberty and is more common in men. Women also produce androgens in smaller amounts, so they’re not immune.
Dandruff most commonly affects areas of the body with the highest density of oil glands: the scalp, the sides of the nose, the eyebrows, and behind the ears. If you’ve ever noticed flaking in those spots specifically, the oil-fungus connection is why.
Your Scalp’s Microbiome Gets Disrupted
A healthy scalp hosts a balanced community of fungi and bacteria. When dandruff develops, that balance shifts in measurable ways. Research published in PLOS ONE found that dandruff-affected scalps had significantly higher levels of a fungal species called Malassezia restricta and a bacterium called Staphylococcus capitis compared to healthy scalps. At the same time, beneficial bacteria like Cutibacterium (which helps maintain skin health) dropped significantly.
This isn’t just a side effect of dandruff. The microbial imbalance likely fuels the cycle. As certain species overgrow, they produce more irritating byproducts, which triggers more inflammation, which disrupts the environment further. It’s a feedback loop that explains why dandruff tends to be chronic rather than a one-time event.
Conditions That Raise Your Risk
Several factors make dandruff more likely or more severe:
- Age and hormones: Dandruff peaks between the late teens and age 40, when sebum production is highest.
- Weakened immune function: People with HIV, those taking immunosuppressive medications, and older adults experiencing age-related immune decline are all at higher risk. When the immune system can’t keep Malassezia in check, the fungus overgrows more easily.
- Neurological conditions: Parkinson’s disease is strongly linked to seborrheic dermatitis, a more severe form of dandruff. The combination of increased sebum production and altered immune responses in Parkinson’s patients creates ideal conditions for fungal overgrowth.
- Stress: Stress suppresses immune function and can increase oil production, hitting both sides of the dandruff equation at once.
- Weather: Hot, humid conditions trap sweat, oil, and bacteria against the scalp, weakening the skin barrier. Cold, dry winter air can also trigger flares by drying out the scalp and prompting an overproduction of oil in response.
How Dandruff Shampoos Work
Most dandruff shampoos target the fungal side of the problem. Ketoconazole, one of the most effective active ingredients, works by blocking the fungus from building its cell membranes. Without intact membranes, the fungal cells die. Zinc pyrithione takes a different approach, disrupting the way fungal cells transport nutrients across their membranes, essentially starving them. Other common ingredients like selenium sulfide slow skin cell turnover directly, while salicylic acid helps loosen and remove existing flakes.
How often you use a dandruff shampoo depends on your hair type. The American Academy of Dermatology recommends that people with fine or naturally straight hair, or an oily scalp, shampoo frequently and use a dandruff shampoo about twice a week. If you have coarse, curly, or coily hair, once a week is typically enough, and you should apply the medicated shampoo only to your scalp rather than through the length of your hair, since the active ingredients can be drying.
It’s worth trying different active ingredients if one doesn’t work. Because dandruff involves multiple biological mechanisms, a shampoo that targets fungal growth might work better for one person, while another person responds better to an ingredient that reduces inflammation or slows cell turnover.
Dandruff vs. Seborrheic Dermatitis vs. Psoriasis
Dandruff and seborrheic dermatitis exist on the same spectrum. Dandruff is essentially a mild form of seborrheic dermatitis limited to the scalp, producing white or yellowish flakes with mild itching. When the condition becomes more severe, with visible redness, greasy crusted patches, and spreading to the face or chest, it’s typically classified as seborrheic dermatitis. The underlying cause is the same.
Scalp psoriasis looks different. The scales tend to be thicker and drier, and the patches often extend past the hairline onto the forehead or behind the ears. Psoriasis also usually shows up in other places on the body, particularly the elbows, knees, or lower back. Nail changes like small pits or ridges are another sign that points toward psoriasis rather than dandruff. If your flaking is stubborn, thick, or showing up beyond your scalp, it’s worth getting a closer look to make sure you’re treating the right condition.

