Dandruff is driven by a yeast that lives on everyone’s scalp, but only causes flaking in people whose skin reacts to its byproducts. The good news: most cases clear up with the right over-the-counter shampoo and a few habit changes. The key is understanding what’s actually happening on your scalp so you can pick the approach that works.
Why Dandruff Happens
Three things have to line up for dandruff to develop: oil production, a specific yeast, and your skin’s individual sensitivity. A fungus called Malassezia globosa lives on every human scalp, feeding on the oils your skin naturally produces. It breaks down the triglycerides in sebum using enzymes called lipases, and one of the byproducts is oleic acid. In people who are susceptible, oleic acid triggers an inflammatory response that speeds up skin cell turnover. The result is visible flakes.
This is why dandruff tends to show up during puberty (when oil production ramps up) and why it clusters on the oiliest parts of the scalp. It also explains why you can’t “catch” dandruff from someone else. The yeast is already there. What matters is how your skin responds to it. Research published in the Journal of Investigative Dermatology confirmed that applying oleic acid alone to a clean scalp still triggered flaking in dandruff-prone individuals, while people without that susceptibility had no reaction at all.
Choosing the Right Medicated Shampoo
Over-the-counter dandruff shampoos work through a few different mechanisms, and not all of them target the same part of the problem. If the first one you try doesn’t help after a few weeks, switch to a different active ingredient rather than assuming nothing will work.
- Zinc pyrithione: The most common active ingredient in dandruff shampoos. It kills Malassezia yeast directly and also reduces inflammation on the scalp, making it a good all-around first choice.
- Ketoconazole: An antifungal that’s especially potent against Malassezia. In lab tests, it inhibits yeast growth at far lower concentrations than other ingredients. Available over the counter at 1% and by prescription at 2%.
- Selenium sulfide: Another antifungal that slows yeast growth and reduces oiliness. It can slightly discolor light or color-treated hair, so rinse thoroughly.
- Salicylic acid: Works differently from the others. Instead of targeting the yeast, it dissolves the buildup of dead skin cells, breaking apart thick, flaky patches. It’s useful for heavy visible flaking but doesn’t address the underlying cause on its own. Pairing it with an antifungal shampoo can be effective.
- Coal tar: Slows the rate at which skin cells on your scalp die and shed. One important caution: coal tar makes your skin significantly more sensitive to UV light. Avoid direct sun exposure on treated areas for at least 72 hours after use.
If one ingredient isn’t making a difference after three to four weeks of consistent use, rotate to another. Some people find that alternating between two different types keeps their dandruff better controlled long-term.
How to Actually Use Medicated Shampoo
The single biggest mistake people make with dandruff shampoo is rinsing it out too quickly. These products need time to work. Lather the shampoo into your scalp and leave it sitting for three to five minutes before rinsing. That contact time allows the active ingredients to penetrate and do their job. If you wash it out immediately like a regular shampoo, you’re wasting most of the benefit.
How often you use it depends on your hair type. The American Academy of Dermatology recommends that people with fine, straight, or oily hair wash frequently, potentially daily, and use a medicated dandruff shampoo about twice a week. If you have coarse, curly, or coily hair, wash as needed and use the dandruff shampoo roughly once a week. On your non-medicated wash days, use a gentle, moisturizing shampoo. Over-washing with harsh products can dry out your scalp and make things worse.
Focus on massaging the product into your scalp with your fingertips, not just running it through your hair. The flaking originates from the skin, not the hair itself.
Tea Tree Oil as a Natural Option
If you prefer something less clinical, tea tree oil has the strongest evidence behind it among natural remedies. A randomized trial of 126 patients found that using a shampoo containing 5% tea tree oil daily for four weeks produced a 41% improvement in dandruff severity, compared to just 11% with a placebo shampoo. That’s a meaningful difference, though it’s generally less potent than pharmaceutical antifungals like ketoconazole.
Look for shampoos that list tea tree oil at around 5% concentration. Lower amounts may not deliver the same results. Pure tea tree oil applied directly to the scalp can cause irritation, so stick to formulated products rather than mixing your own.
Diet and Scalp Health
What you eat can influence how much the Malassezia yeast thrives on your scalp. Diets high in refined carbohydrates and sugar appear to feed the yeast more aggressively, since Malassezia metabolizes sugars and simple carbs for energy. High-glycemic foods also trigger insulin spikes, which promote systemic inflammation, potentially worsening the inflammatory response that causes flaking in the first place.
This doesn’t mean cutting out all carbs will cure your dandruff. But if you’re doing everything else right and still struggling, reducing your intake of sugary drinks, white bread, and processed snacks may take some of the fuel away from the yeast and calm the inflammation on your scalp.
Dandruff vs. Something More Serious
Simple dandruff produces white or yellowish flakes with mild itching. It stays confined to the scalp and responds to over-the-counter shampoos within a few weeks. If what you’re seeing doesn’t match that description, you may be dealing with a related but distinct condition.
Seborrheic dermatitis is essentially dandruff’s more aggressive cousin. It produces thicker, oily, crusted patches and can spread to the eyebrows, sides of the nose, and behind the ears. It often requires stronger treatment than basic dandruff shampoo.
Scalp psoriasis looks different in a few key ways. The scales tend to be thicker, drier, and silvery rather than oily. Psoriasis patches frequently extend past the hairline onto the forehead or behind the ears. And psoriasis rarely stays in one place. If you also notice thick, dry patches on your elbows, knees, or lower back, or small pits and ridges in your fingernails, that points toward psoriasis rather than dandruff.
If over-the-counter dandruff shampoos aren’t helping after several weeks of regular use, or if your scalp is red, painful, or developing thick crusted areas, it’s worth seeing a dermatologist. Prescription-strength antifungals or topical anti-inflammatory treatments can address what store-bought products can’t reach.

