Why Does Dandruff Occur: Fungus, Oil, and Stress

Dandruff happens when a naturally occurring fungus on your scalp grows out of control, feeding on the oils your skin produces and triggering an inflammatory response that speeds up skin cell turnover. The result is the familiar white or yellowish flakes that shed from your scalp. Nearly half of all adults experience dandruff at some point, and understanding what drives it helps explain why it comes and goes and what actually works to stop it.

The Fungus Already on Your Scalp

Your scalp is home to a complex community of bacteria and fungi that normally coexist in balance. One fungus in particular, called Malassezia, lives on virtually every human scalp. It feeds on sebum, the oily substance your sebaceous glands produce to keep skin and hair moisturized. In most people, Malassezia stays in check. But when conditions shift in its favor, it multiplies rapidly and breaks down sebum into byproducts that irritate the skin.

That irritation triggers inflammation, which causes your scalp to push out new skin cells faster than normal. Healthy skin cells take about a month to mature and shed invisibly. When inflammation accelerates that cycle, immature cells clump together and fall off as visible flakes.

How Scalp Microbes Fall Out of Balance

Research comparing healthy and dandruff-affected scalps shows a clear pattern. Healthy scalps are dominated by certain bacterial groups, with fungi present but kept in proportion. On dandruff-prone scalps, that balance flips. Fungal populations surge while bacterial diversity drops. One study measuring the relationship between bacterial and fungal populations found a strong correlation (r = 0.894) in healthy scalps, meaning the two communities rise and fall together in sync. In dandruff-affected scalps, that correlation weakened significantly (r = 0.598), reflecting a disrupted ecosystem where fungi outpace the bacteria that normally keep them in check.

This matters because it frames dandruff not as an infection by a foreign organism, but as a breakdown in the community of microbes that already live on you. Anything that disrupts that community, whether it’s excess oil, hormonal shifts, or harsh products, can tip the balance toward fungal overgrowth.

Oil Production Is the Fuel

Sebum is the key resource Malassezia needs to thrive. Your sebaceous glands are most concentrated on your scalp, face, and upper chest, which is exactly where dandruff and its close relative, seborrheic dermatitis, tend to appear. The more sebum your glands produce, the more food the fungus has available.

Several factors influence how much oil your scalp produces. Androgens, a group of hormones that includes testosterone, are the primary driver of sebum output. This is why dandruff often first appears during puberty, when androgen levels rise sharply and sebaceous glands become more active. It also explains why dandruff is more common in men and why flare-ups can coincide with hormonal changes like pregnancy, menstrual cycles, or periods of high stress.

Stress and Hormonal Triggers

Stress doesn’t cause dandruff on its own, but it reliably makes it worse. When you’re under chronic stress, your body produces more cortisol, which can influence other hormone levels and increase sebum production. That extra oil creates a more hospitable environment for Malassezia to grow and flourish. People who already have dandruff often notice flare-ups during stressful periods, and this hormonal chain reaction is the reason.

Other hormonal shifts have similar effects. Any condition or life stage that increases androgen activity or alters the balance of hormones controlling your sebaceous glands can ramp up oil production and make dandruff more likely. This is also why dandruff severity tends to peak between the ages of 20 and 40, when sebum production is highest, and often improves in older adults as oil output naturally declines.

Weather and Environmental Factors

Dandruff tends to worsen in winter, and two overlapping factors explain why. Cold, dry outdoor air strips moisture from your skin, and indoor heating drops humidity even further. When indoor humidity falls below about 30 percent, skin dries out and becomes more prone to cracking and flaking. A compromised skin barrier is less effective at regulating the microbial community on your scalp, giving fungi an easier foothold.

At the same time, people wash their hair less frequently in cold weather and spend more time in enclosed, heated spaces. Both habits allow sebum and fungal populations to build up. The combination of a weakened skin barrier and increased oil accumulation makes winter a peak season for flare-ups.

Diet and Inflammation

The connection between diet and dandruff is less firmly established than the microbial and hormonal factors, but there’s enough clinical experience to make it worth noting. Dandruff is fundamentally an inflammatory condition, so dietary patterns that promote inflammation may contribute to flare-ups. The U.S. Department of Veterans Affairs notes that while rigorous clinical studies are lacking, some people with stubborn dandruff improve on diets that eliminate breads, cheeses, beer, wine, and foods high in refined carbohydrates, all of which are produced by or feed yeast and fungi.

An anti-inflammatory diet rich in omega-3 fatty acids, vegetables, and whole foods may help reduce the severity of flare-ups for some people. This isn’t a cure, but for those who struggle with persistent dandruff despite topical treatments, dietary changes are a reasonable thing to explore.

Dandruff vs. Seborrheic Dermatitis

You’ll sometimes see dandruff and seborrheic dermatitis described as separate conditions, but they exist on the same spectrum. UCLA Health defines dandruff as seborrheic dermatitis that develops on the scalp. Mild cases produce white, dry flakes with little or no redness. More severe cases involve larger, oilier, yellowish scales, noticeable redness, and itching that can extend to the eyebrows, sides of the nose, or behind the ears. If your symptoms go beyond occasional flaking and include persistent redness, crusting, or spread beyond the scalp, you’re likely dealing with a more active form of seborrheic dermatitis that may benefit from stronger treatment.

How Dandruff Treatments Work

Most over-the-counter dandruff shampoos target the fungal overgrowth at the root of the problem, but they do it through different mechanisms. Understanding those differences helps you choose the right product or switch effectively when one stops working.

Ketoconazole, the active ingredient in shampoos like Nizoral, works by blocking the fungus from building its cell membranes. Without intact membranes, fungal cells become unstable and die. At higher concentrations, it also causes toxic fatty acids to accumulate inside the cells, making it especially effective for moderate to severe dandruff.

Zinc pyrithione, found in Head & Shoulders and similar products, takes a different approach. It disrupts the transport systems in fungal and bacterial cell membranes, essentially short-circuiting the pumps that keep the cells alive. It’s effective for mild to moderate dandruff and has a broad antimicrobial effect that helps rebalance the overall scalp microbiome rather than targeting fungi alone.

Other common ingredients include salicylic acid, which loosens and removes flaky buildup, and coal tar, which slows the rapid skin cell turnover that produces visible flakes. Selenium sulfide works similarly to zinc pyrithione by reducing fungal populations. Because these ingredients attack dandruff through different pathways, dermatologists often recommend rotating between two or three products to prevent the fungus from adapting to any single one. Leaving the shampoo on your scalp for three to five minutes before rinsing gives the active ingredients time to penetrate, which makes a meaningful difference in effectiveness.