Getting rid of dandruff comes down to controlling the yeast that causes it. A fungus called Malassezia lives on every human scalp, but in some people it feeds aggressively on scalp oils, breaking them down into byproducts that irritate the skin and trigger rapid flaking. The right shampoo ingredients, proper technique, and a few habit changes can bring flaking under control within a few weeks.
Why Dandruff Happens in the First Place
Dandruff isn’t caused by poor hygiene. The primary driver is Malassezia globosa, a yeast that thrives in oily areas of the skin. This yeast produces enzymes called lipases that break down the natural oils (sebum) on your scalp. One of the byproducts, oleic acid, is enough on its own to trigger dandruff-like flaking in susceptible people. Your skin reacts by speeding up cell turnover, pushing dead skin cells off the surface faster than normal, which creates the visible white or yellowish flakes.
This is why dandruff tends to be worse when your scalp is oilier, not drier. Hormonal shifts, stress, seasonal changes, and even diet can increase oil production and give the yeast more fuel.
Choosing the Right Medicated Shampoo
Over-the-counter dandruff shampoos work by either killing the yeast or slowing skin cell turnover. The active ingredients vary, and some are more potent than others. Here are the main ones to look for on the label:
- Ketoconazole (1%): The strongest antifungal available without a prescription. In lab testing, it inhibits Malassezia growth at concentrations far lower than other ingredients. Look for it if milder shampoos haven’t worked.
- Zinc pyrithione: One of the most widely available options. It has both antifungal and antibacterial properties and works well for mild to moderate dandruff.
- Selenium sulfide: Slows skin cell turnover and has antifungal activity, though it requires higher concentrations than ketoconazole to achieve the same effect. Can slightly discolor light or chemically treated hair.
- Salicylic acid: Helps loosen and dissolve flakes so they wash away more easily. It doesn’t kill yeast directly, so it works best paired with an antifungal ingredient.
- Coal tar: Slows cell turnover and reduces inflammation. Effective but has a strong smell and can also affect color-treated hair.
If one ingredient doesn’t work after three to four weeks of consistent use, switch to a shampoo with a different active ingredient. Some people rotate between two types for better results.
How to Use Dandruff Shampoo Effectively
The most common mistake is rinsing the shampoo out too quickly. Medicated shampoos need contact time with your scalp to work. Lather the product directly onto your scalp and leave it in place for about five minutes before rinsing. This gives the active ingredients time to penetrate and act on the yeast.
For frequency, two to three times per week works for most people. Once your dandruff improves, you can scale back to once a week to keep flaking from returning. On non-medicated days, use your regular shampoo as usual.
Adjustments for Curly, Coily, or Textured Hair
If you have curly or coily hair, the ingredients that fight dandruff can strip moisture from your strands. The American Academy of Dermatology recommends using dandruff shampoo about once a week and applying it only to your scalp, not through the length of your hair. Follow up with a moisturizing conditioner on your ends. This protects your hair’s moisture balance while still treating the scalp.
Tea Tree Oil as a Natural Option
For people who prefer a non-medicated approach, tea tree oil has the most clinical evidence behind it. In a randomized study of 126 patients with mild to moderate dandruff, a shampoo containing 5% tea tree oil reduced flaking severity by 41% over four weeks, compared to 11% improvement with a placebo. Participants also reported less itchiness and greasiness, with no adverse effects.
Look for shampoos that list tea tree oil (melaleuca) at around 5% concentration. Lower concentrations may not deliver the same results. Tea tree oil is a reasonable first step for mild dandruff, but it’s less potent than ketoconazole or zinc pyrithione for moderate or stubborn cases.
Diet and Lifestyle Factors
What you eat may play a supporting role. Research has found that people with seborrheic dermatitis (the more clinical name for dandruff) consume significantly more simple carbohydrates like white bread, rice, and pasta than people without the condition. In one case-control study, participants with the condition self-reported that sweets, spicy food, fried food, and dairy products were the most common triggers for flare-ups.
The proposed mechanism involves insulin-like growth factor (IGF-1), which rises with high-carbohydrate diets and has been found at significantly elevated levels in people with more severe seborrheic dermatitis. Reducing refined carbohydrates and sugar won’t cure dandruff on its own, but it may help reduce flare-ups alongside proper shampoo use.
Stress is another well-known trigger. It doesn’t cause dandruff directly, but it can increase oil production and suppress immune function, both of which give Malassezia an advantage.
When It Might Not Be Dandruff
Not all flaking is dandruff, and misidentifying the problem means the wrong treatment. Two conditions commonly confused with dandruff are dry scalp and scalp psoriasis.
Dry scalp produces smaller, finer flakes and usually comes with dry skin elsewhere on your body. It responds to moisturizing, not antifungal shampoos. Dandruff flakes tend to be larger, oilier, and often yellowish, and the scalp itself feels greasy rather than tight.
Scalp psoriasis looks different from dandruff in a few key ways. The patches are thicker, silvery, and more scale-like than flaky. Psoriasis is chronic and persistent, while dandruff fluctuates. Psoriasis patches also tend to extend beyond the hairline onto the forehead, behind the ears, or down the neck. If you have similar scaly patches on your elbows, knees, or lower back, psoriasis is more likely the cause.
If over-the-counter dandruff shampoos don’t produce noticeable improvement after four to six weeks of consistent use, or if your scalp becomes red, painful, or develops thick crusting, prescription-strength treatments exist. These are typically reserved for widespread or treatment-resistant cases.

