Scalp folliculitis happens when hair follicles on your head become infected or inflamed, usually by bacteria that already live on your skin. The good news: most cases are preventable with consistent hygiene habits, smart grooming choices, and attention to what touches your scalp. Here’s how to keep your follicles clear.
What Causes Scalp Folliculitis
The most common culprit is Staphylococcus aureus, a bacterium that lives on everyone’s skin. It only causes problems when it gets pushed deeper into a follicle through friction, sweat buildup, or a small cut. Yeast overgrowth can also trigger folliculitis, particularly in people with oily scalps or those in adolescence, when oil glands are more active. Less commonly, viruses, parasites, or reactions to medications play a role.
Understanding the cause matters because prevention looks slightly different depending on whether bacteria or yeast is driving the problem. Bacterial folliculitis tends to produce isolated pus-filled bumps, while yeast-related folliculitis often shows up as clusters of itchy bumps that can spread across the scalp and down to the neck and shoulders.
Keep Your Scalp Clean, but Not Stripped
Washing your scalp regularly is the single most important preventive habit. The CDC recommends using soap or shampoo with clean, running water to remove dirt, oil, and product residue. How often you need to wash depends on your hair type and activity level. If you sweat daily from exercise or work outdoors, washing after each session prevents sweat and bacteria from sitting in your follicles. If your scalp runs oily, every day or every other day is a reasonable baseline.
Choose a shampoo that matches your scalp type rather than your hair texture. An oily scalp benefits from a clarifying formula, while a dry scalp does better with something gentler. Over-washing with harsh products can strip your skin’s natural barrier, which ironically makes infections more likely. Using a scalp exfoliator once or twice a week helps break apart product buildup and dead skin cells that can block follicles.
Medicated Shampoos for Recurring Problems
If you’ve dealt with folliculitis before and want to stop it from coming back, certain active ingredients can help. Ketoconazole shampoo is available over the counter at 1% concentration and by prescription at 2%. It targets yeast and fungal overgrowth on the scalp. In one study evaluating relapse prevention, only 19% of people using 2% ketoconazole shampoo once a week experienced a flare-up, compared to 47% of those using a placebo. Even for maintenance, using it once a week or every two weeks can make a meaningful difference.
For bacterial folliculitis, a benzoyl peroxide wash can reduce the bacterial load on your scalp. Look for formulations designed for skin (some body washes contain it) and let the lather sit on your scalp for a minute or two before rinsing. Zinc pyrithione and selenium sulfide shampoos are other options that address both bacteria and yeast, and they’re widely available without a prescription.
Shaving and Grooming Your Scalp Safely
Shaving is one of the biggest triggers for scalp folliculitis. Every pass of a blade can nick the follicle opening, push bacteria inward, or cause hairs to curl back into the skin. If you shave your head, these adjustments reduce your risk significantly:
- Soften hair first. Apply hot water or a warm towel to the scalp before shaving. This opens follicles and makes hair easier to cut cleanly.
- Shave with the grain. Going against the direction of hair growth gives a closer shave but dramatically increases the chance of ingrown hairs and follicle irritation.
- Use a shaving gel or cream. Dry shaving creates more friction and micro-cuts.
- Space out your shaves. Every other day instead of daily gives follicles time to recover.
- Consider an electric razor. Electric razors or clippers don’t cut as close to the skin, which means less follicle trauma.
- Don’t pull the skin taut. Stretching skin while shaving can cause hairs to retract below the surface and become ingrown.
Watch What Touches Your Scalp
Hats, helmets, headbands, and headphones all press against your scalp, trapping heat and moisture while introducing bacteria from surfaces you may not clean regularly. If you wear a helmet for work or cycling, wipe the interior padding after each use and let it air dry completely. Wash hats and headbands at least weekly, more often if you sweat in them. Choose breathable fabrics over synthetic materials when possible.
Pillowcases are another overlooked source. Bacteria, oil, and dead skin accumulate on them every night. Swapping your pillowcase every few days, or at minimum once a week, reduces the bacterial load your scalp encounters for hours at a stretch.
Never share combs, brushes, hair ties, or towels. Staph bacteria transfer easily between people through shared grooming tools, and you can reinfect yourself by using a contaminated brush even after your scalp has healed.
Manage Sweat and Moisture Promptly
Warm, moist environments are where bacteria and yeast thrive. After a workout, a hot day, or any activity that makes your scalp sweat, wash or at least rinse your hair as soon as you can. Letting sweat dry on your scalp and then layering more sweat on top the next day creates ideal conditions for folliculitis.
If you can’t shower right away, a dry shampoo can absorb some oil and moisture as a temporary measure. It’s not a substitute for washing, but it buys you time.
Know Your Personal Risk Factors
Some people are more prone to folliculitis regardless of their hygiene. Diabetes, obesity, and conditions that weaken the immune system all increase susceptibility. Long-term use of oral antibiotics can disrupt the normal balance of bacteria on your skin, allowing resistant strains or yeast to take over. Topical corticosteroids, sometimes prescribed for other scalp conditions like psoriasis or eczema, thin the skin and suppress local immune defenses, making follicles more vulnerable.
If you’re on any of these medications and keep getting scalp folliculitis, it’s worth discussing the pattern with your provider. Sometimes adjusting a medication or adding a preventive antifungal shampoo to your routine is enough to break the cycle. People who scratch their scalp frequently due to itchiness from other conditions also introduce bacteria into follicles through the micro-abrasions caused by their nails, so addressing the underlying itch is part of prevention too.
Building a Prevention Routine
Prevention works best as a consistent routine rather than a reaction to flare-ups. A practical starting point: wash your scalp regularly with a gentle shampoo suited to your hair type, exfoliate once a week, clean anything that touches your head frequently, and if you’ve had folliculitis before, rotate in a medicated shampoo (ketoconazole or zinc pyrithione) once or twice a week. If you shave your scalp, follow the low-irritation techniques above every time, not just when you notice bumps forming.
Most people who adopt these habits see a significant drop in flare-ups within a few weeks. The follicles on your scalp are resilient once you remove the conditions that let infections take hold.

