Skip to content
Back to research

Scalp Microbiome and Hair Loss: How Bacteria and Fungi Affect Your Follicles

Malassezia feeds on sebum and leaves fatty acids that inflame the follicle. How the scalp's bacteria and fungi affect shedding.

Macro water droplets representing the scalp microbiome ecosystem

Quick answer

The scalp microbiome is a complex ecosystem of bacteria and fungi that directly influences follicular health and hair cycling. A 2016 study by Xu et al. in Scientific Reports profiled the scalp microbiome in relation to dandruff and found that the dominant fungi were Malassezia species, alongside two dominant bacterial groups, Propionibacterium and Staphylococcus.

Your scalp is home to billions of microorganisms: bacteria, fungi, mites, and viruses that form a complex ecosystem known as the scalp microbiome. When this ecosystem is balanced, it supports follicular health, regulates sebum production, and maintains the skin barrier that protects growing hairs. When it falls out of balance, the result is chronic inflammation, disrupted hair cycling, and accelerated shedding. Research over the past decade has started to map these connections in detail, and the findings suggest that microbial health may play a larger role in hair loss than most people realize. BaldingAI can help you track whether microbiome-targeted interventions like ketoconazole shampoo or probiotic scalp treatments are actually shifting your density scores over time.

TL;DR

  • The scalp microbiome is dominated by Malassezia fungi, Cutibacterium acnes, and Staphylococcus epidermidis, all of which interact with follicular function.
  • Dysbiosis (microbial imbalance) triggers perifollicular inflammation that can shorten the anagen phase and accelerate telogen entry.
  • Seborrheic dermatitis, driven by Malassezia overgrowth, is associated with increased hair shedding and reduced hair density.
  • Ketoconazole shampoo has dual action: antifungal properties that rebalance the microbiome and mild anti-androgenic effects that may slow miniaturization.
  • Tracking scalp condition alongside density scores for 8 to 12 weeks reveals whether microbiome interventions are contributing to measurable improvement.

Important

This article is educational and not medical advice. If you are worried about sudden shedding, scalp symptoms, or side effects, talk to a licensed clinician.

What lives on your scalp?

The scalp is one of the most sebum-rich environments on the human body, and that lipid-dense surface selects for a specific set of microorganisms. A 2016 study by Xu et al. (2016) published in Scientific Reports used 16S rRNA and ITS sequencing to profile the scalps of 59 adults with and without dandruff. It found that the fungal community is overwhelmingly dominated by Malassezia species, particularly Malassezia restricta and Malassezia globosa, alongside two dominant bacterial groups, Propionibacterium and Staphylococcus. These lipophilic yeasts feed on sebaceous triglycerides and are present on virtually every human scalp.

On the bacterial side, the scalp is primarily colonized by Cutibacterium acnes (formerly Propionibacterium acnes) and Staphylococcus epidermidis. C. acnes thrives in anaerobic follicular environments and produces short-chain fatty acids that help maintain an acidic scalp pH around 5.0 to 5.5. This pH range supports barrier function and inhibits pathogenic overgrowth. S. epidermidis produces antimicrobial peptides that keep competing bacteria in check. Together, these commensal organisms form a protective layer around the hair follicle.

The relationship is not passive. These microorganisms interact directly with keratinocytes and immune cells in the follicular epithelium. When the microbial community is stable, those interactions remain non-inflammatory. When it shifts, the immune system responds.

How dysbiosis triggers follicular inflammation

Dysbiosis refers to a disruption in the composition or diversity of the microbial community. On the scalp, this typically involves overgrowth of Malassezia species relative to bacterial commensals. Whether this kind of shift contributes to androgenetic alopecia is still an open research question.

When Malassezia metabolizes sebaceous lipids, it releases unsaturated fatty acids, including oleic acid and arachidonic acid. These metabolites penetrate the stratum corneum and trigger an innate immune response. Keratinocytes release pro-inflammatory cytokines (IL-1alpha, IL-6, IL-8, TNF-alpha) that recruit immune cells to the perifollicular space. This perifollicular inflammation, sometimes called microinflammation, is a recognized finding in biopsies of androgenetic alopecia, and Mahé et al. (2000) reviewed its role in androgenetic alopecia in the International Journal of Dermatology.

The inflammatory cascade has a direct effect on the hair cycle. Chronic perifollicular inflammation shortens the anagen (growth) phase and pushes follicles prematurely into catagen and telogen. Over repeated cycles, this contributes to follicular miniaturization, the same process driven by dihydrotestosterone (DHT) in androgenetic alopecia. In other words, microbiome-driven inflammation and hormonal signaling may act through converging pathways to shrink follicles.

Seborrheic dermatitis and accelerated shedding

Seborrheic dermatitis is the most visible clinical manifestation of scalp microbiome dysbiosis. It affects an estimated 1 to 3% of the general population and up to 5% of young adults, with higher prevalence in immunocompromised individuals. The condition is characterized by erythematous, flaking, sometimes pruritic patches on sebum-rich areas, and the scalp is its most common site.

Seborrheic dermatitis and increased shedding are often seen together, but the size of that link has not been well measured. One proposed mechanism is that chronic inflammation around the follicular infundibulum disrupts the dermal papilla signaling that sustains anagen, leading to premature catagen entry and increased daily hair shedding counts.

For someone already experiencing androgenetic alopecia, untreated seborrheic dermatitis compounds the problem. The hormonal miniaturization process continues, and inflammatory shedding is layered on top. Treating the dermatitis does not reverse miniaturization, but it can reduce the excess telogen shedding that makes thinning appear worse than the underlying pattern loss alone.

Antibiotics, antifungals, and the microbiome

Oral antibiotics prescribed for unrelated conditions (acne, respiratory infections, urinary tract infections) can alter the scalp microbiome as a secondary effect. Broad-spectrum antibiotics like doxycycline and minocycline reduce bacterial diversity across all body sites, including the scalp. When commensal bacteria like S. epidermidis and C. acnes are suppressed, Malassezia can expand into the vacated ecological niche, potentially triggering a flare of seborrheic dermatitis or subclinical perifollicular inflammation.

How long the scalp microbiome takes to recover after a course of antibiotics has not been measured well. We found no study that gives a recovery time for the scalp, so this page does not state one. If you are on a long-term antibiotic and notice new flaking or more shedding, documenting the timeline with consistent scalp photos helps you and your doctor separate a change that started with the antibiotic from other causes.

Antifungal agents work in the opposite direction by targeting Malassezia directly. Topical antifungals like ketoconazole, ciclopirox, and selenium sulfide reduce Malassezia colony counts and associated inflammation. The question for hair loss specifically is whether reducing fungal load translates into measurable improvements in hair density.

Ketoconazole: antifungal with anti-androgenic properties

Ketoconazole occupies a unique position in hair loss treatment because it may act on two fronts. As an imidazole antifungal, it disrupts ergosterol synthesis in fungal cell membranes, directly reducing Malassezia populations and the inflammatory cascade they trigger. Ketoconazole has also been proposed to have some anti-androgenic activity, though how much that matters for a shampoo used on the scalp is not well established.

Clinical evidence supports its use. A 1998 study by Piérard-Franchimont et al. in Dermatology compared 2% ketoconazole shampoo with an unmedicated shampoo used with or without 2% minoxidil in androgenetic alopecia. Hair density, hair size, and the proportion of anagen follicles improved almost similarly with the ketoconazole and minoxidil regimens, and ketoconazole appeared to lower sebum levels. The authors said the result still needed a larger controlled study, but it established that ketoconazole shampoo belongs in the hair loss conversation rather than just the dandruff aisle.

If a dermatologist includes ketoconazole shampoo in your plan, they set the strength, how often you use it, and how long it stays on the scalp. Log those details exactly as given, plus any dryness or irritation, because over-use can dry the scalp, and those notes make your photo windows easier to read.

Emerging research: probiotics and the scalp

Probiotic approaches to scalp health are in early stages but generating interest. Human data on probiotics for scalp conditions and hair loss remain limited, so treat product claims in this area with caution.

The gut-skin axis is another area of active investigation. There is growing evidence that systemic inflammation driven by gut dysbiosis can influence skin and scalp health through circulating cytokines. This does not mean that taking a probiotic capsule will regrow hair, but it does mean that overall microbial health, both gut and scalp, may influence follicular outcomes in ways that are only starting to be quantified.

How to track microbiome interventions

If you are adding a microbiome-targeted treatment to your routine, whether that is ketoconazole shampoo, a scalp probiotic, or simply reducing shampooing frequency to preserve natural oils, you need baseline data. Capture photos of your hairline, crown, and part line under consistent conditions before starting. BaldingAI locks your lighting, angle, and hair state variables so each scan is directly comparable to the last.

Pay special attention to scalp inflammation and shedding patterns. Redness, visible flaking, and daily shedding counts are all indicators of microbiome status that can be tracked alongside density scores. If you see flaking resolve within two to four weeks of starting ketoconazole but density scores do not improve until week eight or ten, that lag is expected: inflammation resolves before follicles have time to re-enter anagen and produce visible new growth.

Plan on a minimum eight-week evaluation period. Microbial rebalancing takes time, and hair growth operates on month-long timescales. At the eight-week mark, compare your density trend to baseline. If the trend is stable or improving and scalp symptoms have resolved, the intervention is worth continuing. If shedding persists despite resolution of flaking, the shedding may be driven by hormonal miniaturization rather than inflammation, and it is time to discuss additional treatment options with a dermatologist.

The bottom line

The scalp microbiome is not a secondary factor in hair health. It is an active participant. Malassezia overgrowth, bacterial displacement, and the resulting perifollicular inflammation directly influence hair cycle dynamics and can accelerate the thinning process in androgenetic alopecia. Treating the microbiome with antifungals like ketoconazole is one of the most underutilized strategies in hair loss management, particularly because ketoconazole also carries mild anti-androgenic properties.

The practical takeaway: if your scalp is inflamed, flaking, or itchy, address that first. A healthy follicular environment is the foundation that other treatments (finasteride, minoxidil, microneedling) build on. And as with any intervention, the only way to know if it is working is to measure the outcome consistently over weeks, not to guess based on how your hair looks in different bathroom lighting.

Sources: Xu et al. 2016, Scientific Reports, Mahé et al. 2000, International Journal of Dermatology, Piérard-Franchimont et al. 1998, Dermatology.

FAQ

Can the scalp microbiome cause hair loss?

The microbiome does not directly cause androgenetic alopecia, but dysbiosis creates an inflammatory environment that can accelerate shedding and worsen existing pattern loss. Malassezia overgrowth can trigger perifollicular inflammation, and a 2016 study by Xu et al. found that the balance of scalp bacteria is linked to dandruff severity, but whether shifts in the scalp microbiome contribute to androgenetic alopecia is still an open research question.

How does ketoconazole shampoo affect the scalp microbiome?

Ketoconazole reduces Malassezia populations and has been proposed to have some anti-androgenic activity. A 1998 study by Pierard-Franchimont et al. found that hair density and the share of growing hairs improved almost as much with 2 percent ketoconazole shampoo as with a regimen that included 2 percent minoxidil. It rebalances the fungal-bacterial ratio without eliminating beneficial organisms. If you add it, log the start date and how often you use it, so shedding changes can be read against it.

What kills good bacteria on the scalp?

Harsh sulfate shampoos, broad-spectrum antibiotics, excessive heat styling, and very frequent washing can strip protective bacterial populations. Alcohol-based styling products also disrupt the microbial film. Maintaining a balanced wash schedule and using gentle, pH-balanced cleansers helps preserve microbial diversity.

Next reads

All research

See the real trend, not the mirror

One AI-scored scan per week. In 4 weeks you'll know exactly what's happening instead of guessing.One look in the mirror cannot settle this, and you cannot go back and take last month's photo. Take today's, and next month there is something to compare it with.

Free · takes 30 seconds

Your scans stay private. Delete or export anytime.