If your shoulders are dusted with white flakes and your scalp itches, you have probably blamed dry skin, bad shampoo, or stress. The real answer is more specific. Dandruff is not caused by a bacterium, and it is not simply a fungus living on your scalp. It is the visible result of your skin’s reaction to a common yeast called Malassezia that already lives on almost every adult scalp.
That distinction matters. It explains why antibacterial shampoos usually do not fix dandruff, why antifungal ingredients do, and why the flakes keep coming back when you stop treating them. The yeast is not an invader you can eliminate for good. It is a permanent resident your immune system sometimes overreacts to.
Is Dandruff A Bacteria Or Fungus On Your Scalp?
Dandruff is driven by a fungus, specifically a yeast in the genus Malassezia. It is not a bacterial infection. This is one of the most misunderstood points about flaking scalps, and it changes how you should think about treatment.
Malassezia yeasts are part of the normal human skin microbiome. They are present on the scalps of most healthy adults, including people who never get dandruff. Their presence alone does not cause the problem. What causes dandruff is how a particular person’s scalp reacts to them.
The yeast feeds on sebum, the oily substance your scalp produces. As it breaks down sebum, it releases byproducts, including oleic acid and other fatty acids. In people prone to dandruff, the skin barrier is more permeable to these substances. They penetrate the outer layer of skin and trigger an inflammatory response. That inflammation is what produces the itching, redness, and accelerated shedding of skin cells you see as flakes.
So the accurate framing is this: dandruff is an inflammatory reaction to a fungus, not an infection caused by one. The yeast is the trigger. Your scalp’s response is the disease.
Why Do Some People Get Dandruff And Others Do Not?
Nearly everyone carries Malassezia on their scalp. Only some people develop flaking. The difference comes down to individual factors in skin biology, not hygiene.
Several things influence whether the yeast causes a reaction:
- Sebum composition and production. The yeast needs oil to thrive. Scalps that produce more sebum tend to support more yeast growth, which is one reason dandruff often starts around puberty and can flare during times of hormonal change.
- Skin barrier function. Some people have a scalp barrier that lets yeast byproducts through more easily, prompting inflammation.
- Immune response. The intensity of your immune reaction to the yeast varies from person to person. A stronger inflammatory response produces more visible flaking.
- Individual sensitivity. Two people can carry the same amount of yeast and have completely different scalps, because the reaction, not the yeast count, drives symptoms.
This is why dandruff is not a sign of poor hygiene. People who wash daily still get it. People who wash less often do not necessarily get it. The variable is your skin, not your shampoo schedule.
Is It Dandruff Or Something Else?
Flakes on the scalp can come from several conditions that look similar but have different causes. Getting the distinction right matters because the treatments differ.
Dandruff, sometimes called seborrheic dermatitis when it is more inflamed, sits at the mild-to-moderate end of a spectrum. The two are related and often treated with the same ingredients. Seborrheic dermatitis tends to involve more redness, greasier and larger flakes, and can extend to the eyebrows, sides of the nose, ears, and chest.
Other conditions that can be mistaken for dandruff include:
- Psoriasis of the scalp, which produces thicker, silvery scales and often extends beyond the hairline.
- Contact dermatitis, a reaction to a hair product, dye, or shampoo ingredient.
- Eczema, which can cause dry, itchy, flaking skin on the scalp.
- Tinea capitis, a fungal scalp infection that more commonly affects children and can cause patches of hair loss.
If your flaking is severe, involves hair loss, does not respond to antifungal shampoo, or comes with redness and swelling, that is a reason to see a clinician. A dermatologist can usually tell these apart by examining your scalp.
What Actually Treats Dandruff?
Because the trigger is a fungus, the ingredients that work best are antifungal. This is the clearest practical takeaway from the science.
Common over-the-counter options include:
- Zinc pyrithione, which has antifungal and antibacterial activity.
- Selenium sulfide, which slows yeast growth and reduces cell turnover.
- Ketoconazole, a stronger antifungal available in some over-the-counter and prescription products.
- Ciclopirox, another antifungal used in some shampoos.
- Coal tar and salicylic acid, which mainly help remove existing flakes rather than target the yeast.
Antibacterial shampoos and standard moisturizing shampoos generally do not address the underlying cause. This is the practical reason the bacteria-versus-fungus question matters: it points you toward the ingredients that actually work.
One honest caveat. Dandruff is chronic and tends to return. Treatment manages it rather than eliminating it, because the yeast is a normal part of your skin and cannot be permanently removed. Many clinicians recommend using an effective shampoo regularly and rotating ingredients over time to reduce the chance of the yeast becoming less responsive. That approach is common in practice, though the evidence on ideal rotation schedules is not strong.
Does Diet Or Stress Cause Dandruff?
Diet and stress can influence dandruff, but they are not the root cause. The root cause remains the yeast and your skin’s reaction to it.
Stress is frequently reported as a trigger for flares. The likely mechanism involves stress hormones affecting the skin’s oil production and immune activity, though the research here is not definitive. Many people notice more flaking during stressful periods, and that observation is common enough to take seriously even without a fully mapped mechanism.
Diet plays a less direct role. Some research suggests that certain dietary patterns may influence sebum production or inflammation, but no specific diet has been shown to cure dandruff. Claims that cutting sugar, dairy, or gluten will eliminate dandruff are not supported by strong clinical evidence. If you notice a personal pattern, that is reasonable to discuss with a clinician, but it should not replace antifungal treatment.
When Should You See A Doctor About Scalp Flaking?
Most dandruff responds to over-the-counter antifungal shampoo. Seeing a clinician is warranted when the usual approaches do not work or when something else may be going on.
Consider medical evaluation if:
- Flaking does not improve after several weeks of consistent antifungal shampoo use.
- You have significant redness, swelling, or crusting.
- You notice patches of hair loss.
- The flaking spreads to your face, eyebrows, or chest.
- Your scalp is painful or oozing.
These signs can point to seborrheic dermatitis, psoriasis, or another condition that needs a different treatment. A clinician can prescribe stronger antifungals or anti-inflammatory treatments when over-the-counter products fall short.
The Bottom Line On Bacteria Versus Fungus
Dandruff is a fungal issue, not a bacterial one. The fungus is Malassezia, a yeast that lives on nearly every scalp. Dandruff happens when your skin reacts to it with inflammation, producing flakes and itch.
That single fact guides everything practical. Antifungal ingredients work. Antibacterial ones generally do not. The condition is manageable but not permanently curable, because the yeast is a normal resident of your skin. Understanding this removes the guesswork and points you toward treatments that target the actual cause.
Frequently Asked Questions
Is dandruff caused by bacteria or fungus?
Dandruff is caused by a fungus, specifically a yeast called Malassezia, not by bacteria. The flaking comes from your scalp’s inflammatory reaction to the yeast, not from the yeast alone.
Is dandruff a fungal infection?
Dandruff is not a true infection, because the yeast is a normal part of your skin and is not invading it. It is better described as an inflammatory reaction to a fungus that already lives on your scalp.
Can antibacterial shampoo get rid of dandruff?
Antibacterial shampoos generally do not fix dandruff, because bacteria are not the cause. Antifungal ingredients such as zinc pyrithione, selenium sulfide, or ketoconazole are the ones that target the actual trigger.
Can dandruff be cured permanently?
Dandruff cannot be permanently cured, because the Malassezia yeast is a normal resident of your scalp that cannot be fully removed. It can usually be managed well with regular antifungal treatment.

