Is Dandruff a Bacteria or Fungus on Your Scalp?

Dandruff is not caused by bacteria. It is primarily driven by a yeast, a type of fungus called Malassezia that lives naturally on the scalps of virtually all humans. While bacteria do exist on your scalp and their balance shifts when dandruff develops, the main trigger is this fungus breaking down the oils on your skin and producing byproducts that irritate it.

The Fungus Behind Dandruff

Two species of Malassezia yeast, Malassezia globosa and Malassezia restricta, are the most commonly isolated fungi from the human scalp and are directly associated with dandruff. These organisms are not invaders. They live on the skin of nearly every warm-blooded animal and are part of the normal scalp ecosystem. In fact, Malassezia accounts for more than 86% of all fungal life found on the scalp surface, whether or not dandruff is present.

The difference between a healthy scalp and a flaky one comes down to what Malassezia does with your skin’s natural oils. The yeast produces enzymes called lipases that break down the triglycerides in sebum (the oily substance your scalp secretes) into free fatty acids. One of those byproducts, oleic acid, is the key irritant. When researchers applied oleic acid directly to the scalps of people with a history of dandruff, it triggered visible flaking within five to eight days. People without a dandruff history showed no reaction to the same treatment.

This means dandruff isn’t just about having too much yeast on your scalp. It’s a three-part equation: the yeast needs to be present, your scalp needs to produce enough oil for the yeast to feed on, and your skin needs to be individually sensitive to the fatty acid byproducts. That’s why some people never get dandruff despite having the same Malassezia populations as those who do.

What Bacteria Actually Do on Your Scalp

Your scalp hosts a complex community of microorganisms, and bacteria are a major part of it. The two most abundant bacterial groups are Cutibacterium (formerly called Propionibacterium) and Staphylococcus. On a healthy scalp, Cutibacterium tends to dominate, making up about 56% of the bacterial population, while Staphylococcus sits around 24.5%.

When dandruff develops, this ratio shifts. Cutibacterium drops slightly to about 51.5%, while Staphylococcus rises to roughly 33.7%. Multiple studies using different sequencing methods have confirmed this pattern: the ratio of Staphylococcus to Cutibacterium increases on dandruff-affected scalps. However, this bacterial shift appears to be a consequence of the changed scalp environment rather than the cause of dandruff itself. The irritation and flaking created by Malassezia’s activity changes the conditions on your skin, which in turn favors different bacterial populations.

Why the Distinction Matters for Treatment

If dandruff were bacterial, you’d treat it with antibacterial products. But because it’s fungal, effective dandruff shampoos target yeast. The active ingredients in over-the-counter dandruff shampoos, such as zinc pyrithione, selenium sulfide, and ketoconazole, all work by suppressing Malassezia growth or reducing its ability to break down scalp oils. Coal tar, another common ingredient, slows the rapid skin cell turnover that produces visible flakes.

For mild dandruff, these shampoos are typically enough. You generally need to use them consistently rather than expecting a one-time fix, since Malassezia is a permanent resident of your skin and will resume its activity once you stop treatment.

When Dandruff Becomes Seborrheic Dermatitis

Dandruff and seborrheic dermatitis are essentially the same condition at different severities. Simple dandruff involves white or yellowish flakes and mild itching confined to the scalp. Seborrheic dermatitis takes it further, producing greasy, scaly patches (sometimes called plaques), redness, and raised bumps. It can also appear on the face, around the nose, behind the ears, and on the chest.

Seborrheic dermatitis affects more than 50% of people at some point. Unlike mild dandruff, it rarely resolves on its own and often requires ongoing treatment to manage flare-ups. More severe cases may need prescription-strength medicated shampoos or topical treatments beyond what’s available over the counter.

Factors That Make Dandruff Worse

Your scalp’s pH plays a role in keeping microbial populations in check. A healthy scalp sits at about 5.5 on the pH scale, which is slightly acidic. This mild acidity acts as a protective barrier against overgrowth of both fungi and bacteria. When the scalp becomes too alkaline, from certain hair products, harsh shampoos, or other factors, that protection weakens. An alkaline scalp environment is associated with increased dandruff, fungal infections, and bacterial infections alike.

Oil production is another major factor. Because Malassezia feeds on sebum, people with oilier scalps tend to experience more dandruff. Hormonal changes during puberty, stress, and seasonal shifts (dandruff often worsens in winter when indoor heating dries the air) can all influence how much oil your scalp produces and how your skin reacts to fungal byproducts. Immune suppression also plays a role, which is why seborrheic dermatitis is significantly more common in people with weakened immune systems.