Dandruff is driven by a yeast that lives on every human scalp, and getting rid of it comes down to controlling that yeast, removing buildup, and adjusting how often you wash your hair. Most people can clear visible flaking within a few weeks using the right over-the-counter shampoo and a simple change in routine.
What Actually Causes Dandruff
A fungus called Malassezia lives naturally on your scalp and feeds on the oils your skin produces. As it breaks down that oil, it releases an enzyme called lipase that converts sebum into an inflammatory byproduct. This irritates skin cells, disrupts their normal turnover, and causes them to clump together and shed as visible flakes. The process is the same whether you call it dandruff or its clinical name, seborrheic dermatitis. They’re the same condition on a spectrum of severity.
This means dandruff isn’t caused by poor hygiene or a dry scalp, though both can make flaking look worse. It’s an inflammatory response to a microorganism that everyone carries. Some people simply produce more scalp oil or have a stronger inflammatory reaction to the yeast, which is why dandruff tends to run in families and flare during stressful periods or cold, dry weather.
Choosing the Right Medicated Shampoo
The most effective way to treat dandruff at home is with a shampoo containing one of several active ingredients that either kill the yeast or slow skin cell turnover. Look for one of these on the label:
- Zinc pyrithione: An antifungal and antibacterial agent found in many common dandruff shampoos. It reduces Malassezia populations on the scalp.
- Selenium sulfide: Also antifungal, and works by slowing skin cell turnover so flakes don’t accumulate as quickly.
- Ketoconazole: A stronger antifungal available over the counter at 1% concentration. Prescription versions come in 2%.
- Salicylic acid: A keratolytic agent that loosens and dissolves the substance holding dead skin cells together, helping clear existing flake buildup. It works best when combined with an antifungal ingredient.
- Coal tar: Slows the rate at which skin cells on the scalp die and flake off.
Clinical comparisons between zinc pyrithione and selenium sulfide show no significant difference in how long they keep dandruff from returning after treatment. Both are effective, so choosing between them is largely a matter of personal preference and how your hair responds.
How to Use Medicated Shampoo Correctly
The most common mistake is rinsing too quickly. Medicated shampoos need contact time with your scalp to work. Lather the shampoo, massage it into your scalp, and leave it in place for a full five minutes before rinsing. This gives the active ingredients enough time to penetrate the skin’s surface and reach the yeast underneath.
If you have fine, straight, or oily hair, the American Academy of Dermatology recommends washing daily with a gentle shampoo and swapping in your medicated dandruff shampoo twice a week. If you have coarse, curly, or coily hair, wash when needed and use the dandruff shampoo about once a week. Overwashing textured hair can strip moisture and cause dryness that mimics or worsens flaking.
One specific caution: if you use a selenium sulfide shampoo and have light, blond, gray, or color-treated hair, rinse thoroughly for at least five minutes after each use. Selenium sulfide can discolor chemically treated or lighter hair if residue is left behind.
When One Shampoo Isn’t Enough
If your first shampoo stops working after a few weeks, try rotating between two products with different active ingredients. The yeast on your scalp can adapt to a single treatment over time, so alternating between, say, a zinc pyrithione shampoo and a ketoconazole shampoo keeps the approach effective longer.
Start by washing more often with a gentle, non-medicated shampoo between treatments. This removes excess oil and dead skin that the yeast feeds on, which can reduce flaking on its own. Think of the medicated shampoo as the treatment and regular washing as ongoing maintenance.
Tea Tree Oil as a Natural Option
For people who prefer a non-medicated approach, tea tree oil has some clinical support. A study found that shampoo containing 5% tea tree oil reduced dandruff without causing skin irritation. Many commercial tea tree shampoos contain far less than 5%, so check the label or consider adding a few drops of pure tea tree oil to your regular shampoo. It has natural antifungal properties, though it’s generally less potent than the pharmaceutical options listed above.
What Makes Dandruff Worse
Several everyday factors can trigger flare-ups or make existing dandruff harder to control. Stress is one of the most reliable triggers, likely because it suppresses immune function and allows the yeast to proliferate. Cold, dry winter air can irritate the scalp and accelerate flaking. Heavy styling products like gels, mousses, and oils can build up on the scalp, trapping dead skin cells and creating an environment that feeds Malassezia.
If you notice flaking gets worse at predictable times (seasonal changes, stressful periods), preemptively increasing your use of medicated shampoo during those windows can help prevent a full flare.
When It Might Not Be Simple Dandruff
Dandruff and seborrheic dermatitis exist on the same spectrum, but several other conditions can look similar. Scalp psoriasis produces thicker, more silvery scales and often extends past the hairline onto the forehead or behind the ears. Fungal infections like ringworm can cause patchy flaking with hair loss. Contact dermatitis from a new hair product can mimic dandruff with redness and irritation.
If over-the-counter shampoos aren’t helping after several weeks of consistent use, or if you notice redness spreading beyond your scalp, persistent itching that disrupts sleep, or hair loss alongside the flaking, a dermatologist can distinguish between these conditions. Prescription options include higher-strength antifungal shampoos with 2% ketoconazole, topical corticosteroids to calm inflammation, or in severe cases, oral antifungal medication.
A Realistic Timeline
Most people see noticeable improvement within two to four weeks of consistent medicated shampoo use. Complete clearing can take longer, especially if flaking has been building for months. The key word is “consistent.” Dandruff is a chronic condition, not something you cure once. The yeast that causes it is a permanent resident of your skin, so maintenance treatment is part of the long-term picture. Many people find they can eventually reduce medicated shampoo use to once a week or even once every two weeks, but stopping entirely usually brings the flaking back within a month or two.

