What Causes Dandruff on Your Scalp and How to Treat It

Dandruff is caused by a yeast-like fungus called Malassezia that lives on every human scalp, feeding on the natural oils your skin produces. The fungus itself isn’t the problem. The problem starts when it breaks down those oils into byproducts that irritate your skin, triggering inflammation and rapid shedding of skin cells. On a healthy scalp, skin cells take about a month to mature and fall off. On a scalp with dandruff, that cycle compresses to as little as 2 to 7 days, producing the visible white or yellowish flakes most people recognize.

But the fungus is only one piece of the puzzle. Oil production, hormones, washing habits, and even diet all influence whether Malassezia causes you noticeable flaking or none at all.

How Scalp Fungus Creates Flaking

Malassezia species, particularly M. globosa and M. restricta, are permanent residents of your scalp. They survive by secreting enzymes called lipases that break down triglycerides in sebum (the oil your scalp naturally produces). The fungus consumes the saturated fatty acids it needs and leaves behind unsaturated fatty acids, especially oleic acid. Oleic acid is the key irritant. It penetrates the outer layer of skin, disrupts the skin’s protective barrier, and triggers an inflammatory response that accelerates cell turnover.

This process feeds on itself. The free fatty acids left behind actually stimulate your oil glands to produce even more sebum, which gives the fungus more food, which produces more irritating byproducts. It’s a self-reinforcing cycle. The fatty acids also acidify the scalp’s surface, creating a lower-pH environment that further favors fungal growth. Meanwhile, byproducts of the fungus’s metabolism generate oxidative stress in skin cells, compounding the inflammation and pushing oil glands into overdrive.

Why Some People Get Dandruff and Others Don’t

Nearly everyone has Malassezia on their scalp, yet not everyone gets dandruff. The difference comes down to how much oil your scalp produces, how your immune system reacts to the fungal byproducts, and your individual skin sensitivity to oleic acid. Some people’s skin simply tolerates oleic acid without mounting a strong inflammatory response.

One French population study of over 1,700 people found that about 17% reported excessive scalp flaking. Men were significantly more affected than women (roughly 21% versus 13%), which tracks with the role hormones play in oil production. The study also found that dandruff prevalence decreases steadily with age: about 22% of people aged 15 to 24 had it, compared with just 12% of those over 65.

The Role of Hormones and Puberty

Dandruff rarely appears before puberty, and that timing isn’t a coincidence. During puberty, a surge in androgens (primarily testosterone in boys, and adrenal androgens and progesterone in girls) causes the sebaceous glands to grow larger and produce substantially more oil. More oil means more fuel for Malassezia, which means more irritating byproducts on the scalp. This is why dandruff often first appears in the teenage years and peaks in early adulthood.

Estrogen has the opposite effect, suppressing oil gland activity. The balance between androgens and estrogen partly explains why men are more prone to dandruff throughout life. Any hormonal shift that increases androgen activity, whether from puberty, stress, or other causes, can increase sebum output and worsen flaking.

Washing Habits and Sebum Buildup

A common misconception is that dandruff comes from washing your hair too often and drying out your scalp. In reality, infrequent washing tends to make dandruff worse. When you go several days without washing, sebum accumulates on the scalp. Studies of people working in Antarctica and astronauts on the International Space Station, both groups with limited washing access, showed dramatic increases in scalp itching, flaking, and Malassezia levels as oil built up.

A small clinical study on young men found that skipping hair washing for just four days allowed significantly more sebum triglycerides to be converted into free fatty acids by scalp fungi. The buildup of those fatty acids correlated directly with increased itchiness. Regular washing removes excess oil and fungal byproducts, which is why medicated shampoos are the first-line treatment for dandruff.

Dandruff vs. Dry Scalp

Many people assume their flaking is dandruff when it’s actually a dry scalp, or vice versa. The distinction matters because the causes and treatments differ. Dandruff flakes tend to be larger, yellowish, and oily-looking. They come from a scalp that feels greasy, and hair often looks heavy or limp. Dry scalp flakes are smaller, whiter, and more powdery. The scalp feels tight or itchy without the oiliness.

If your scalp feels oily and your hair looks greasy alongside the flaking, dandruff driven by excess oil and fungal activity is the more likely cause. If your scalp feels dry and the flakes are fine and white, moisturizing rather than antifungal treatment is usually more appropriate.

When Dandruff Becomes Seborrheic Dermatitis

Dandruff and seborrheic dermatitis exist on the same spectrum. Mild cases produce flaking without much visible inflammation. More severe cases cause red, greasy, irritated patches that can extend beyond the scalp to the eyebrows, nasolabial folds (the creases beside the nose), ears, chest, and upper back. At that point, the condition is typically called seborrheic dermatitis rather than simple dandruff, though the underlying mechanism is the same: fungal metabolism of sebum, barrier disruption, and inflammation.

In severe seborrheic dermatitis, the fungus produces compounds that trigger a more pronounced immune response, including shifts in inflammatory signaling that further compromise the skin barrier. The condition tends to flare and remit, often worsening during periods of stress, illness, or seasonal changes.

Diet and Other Contributing Factors

The connection between diet and dandruff isn’t as well established as the fungal mechanism, but some patterns emerge. Diets high in sugar and processed foods can trigger insulin spikes, which in turn stimulate hormonal surges that increase oil production. That extra oil feeds the cycle. Zinc plays a role in skin health, and zinc pyrithione is one of the most common active ingredients in dandruff shampoos. Some dermatologists note that oral zinc supplementation can help reduce flares, though evidence is limited. Low biotin (a B vitamin) levels have been linked to increased seborrheic dermatitis in infants, though the connection in adults is less clear.

Stress is another reliable trigger. It doesn’t cause dandruff on its own, but it can worsen flaking by altering immune function and potentially increasing oil production. Cold, dry weather can also aggravate symptoms, though this may partly reflect changes in washing habits during winter months.

How Dandruff Treatments Work

Most dandruff shampoos target one or both sides of the problem: the fungus itself or the excess oil and flaking. The FDA recognizes several active ingredients for over-the-counter dandruff control, each working through a different mechanism.

  • Zinc pyrithione (0.3 to 2%) disrupts the fungal cell membrane, blocking its ability to take in nutrients and effectively starving the organism. It’s the most widely used dandruff-fighting ingredient.
  • Selenium sulfide (1%) slows skin cell turnover on the scalp, reducing the rate at which flakes form, while also having antifungal properties.
  • Coal tar (0.5 to 5%) slows cell production and reduces inflammation, though its strong smell and potential to stain light hair make it less popular.
  • Salicylic acid (1.8 to 3%) works as a keratolytic, meaning it softens and loosens flakes so they wash away more easily. It doesn’t address the fungus directly.
  • Sulfur (2 to 5%) has mild antifungal and keratolytic properties, often combined with salicylic acid.

For most people, rotating between two or three of these ingredients works better than sticking with one, since they attack the problem from different angles. If over-the-counter options don’t provide relief after several weeks of consistent use, prescription-strength antifungal shampoos or topical treatments targeting inflammation are the typical next step.