Getting rid of dandruff comes down to controlling the yeast that naturally lives on your scalp, removing flaky buildup, and keeping oil levels in check. Most people can manage it entirely with the right over-the-counter shampoo and a few habit changes, though stubborn cases sometimes need prescription-strength treatment.
Why Dandruff Happens in the First Place
Dandruff is driven by a yeast called Malassezia that feeds on the oils your scalp produces. Everyone has this yeast, but some people’s skin reacts to its byproducts with irritation, rapid skin cell turnover, and visible flaking. Oily scalps tend to fuel more yeast growth, which is why dandruff often gets worse when you skip washes or during hormonal shifts that increase oil production. Stress, cold dry weather, and certain nutrient deficiencies (particularly zinc and B vitamins) can also make flaking worse.
Medicated Shampoos That Actually Work
The most effective way to treat dandruff is a medicated shampoo with one of the active ingredients approved for over-the-counter dandruff control. These fall into two categories: ingredients that kill the yeast causing irritation, and ingredients that break down the flaky buildup on your scalp.
Yeast-fighting ingredients:
- Pyrithione zinc (0.3 to 2%) is the most common active ingredient in dandruff shampoos. It slows yeast growth and is gentle enough for frequent use.
- Selenium sulfide (1%) works similarly and is especially effective at reducing oiliness. In a clinical trial comparing it to a prescription-strength antifungal, selenium sulfide reduced flaking by about 75% over four weeks.
- Ketoconazole (1%) is a targeted antifungal available without a prescription. It’s a strong option when zinc-based shampoos aren’t cutting it.
Scale-removing ingredients:
- Salicylic acid (1.8 to 3%) loosens and dissolves flakes so they rinse away more easily. It works best for people with thick, visible buildup but can leave the scalp dry afterward.
- Coal tar (0.5 to 5%) slows skin cell turnover, reducing flake production at the source. It has a strong smell and can temporarily change hair color, particularly in lighter shades. It also makes your scalp more sensitive to UV light, so limit sun exposure on days you use it.
- Sulfur (2 to 5%) has mild antifungal properties and helps soften crusty patches.
How to Use Medicated Shampoo Correctly
The biggest mistake people make is rinsing medicated shampoo out too quickly. These products need contact time to work. Lather the shampoo into your scalp and leave it sitting for a full five minutes before rinsing. Washing it out immediately treats your hair but barely touches the skin underneath.
Use the medicated shampoo two to three times per week for the first few weeks. On other days, you can use your regular shampoo. Once flaking is under control, you can taper down to once a week for maintenance. If one active ingredient doesn’t improve things after a few weeks, switch to a shampoo with a different one. Rotating between two different types (say, pyrithione zinc and selenium sulfide) can also prevent the yeast from adapting.
Tea Tree Oil as a Natural Option
If you prefer something less chemical, tea tree oil has genuine clinical support. A randomized trial found that a shampoo containing 5% tea tree oil improved dandruff severity by 41%, compared to just 11% in the placebo group. That’s meaningful, though not as potent as most medicated shampoos. Look for products listing tea tree oil at 5% concentration. Lower concentrations sold in many “natural” shampoos likely won’t do much.
Washing Frequency Matters
How often you wash your hair plays a direct role in dandruff control. Oil buildup feeds the yeast that causes flaking, so letting too many days pass between washes can make dandruff worse. For people prone to dandruff, washing at least two to three times a week helps minimize inflammation and keeps yeast growth in check.
Your ideal frequency depends on your hair type. Fine or oily hair benefits from washing every one to two days. Medium-texture hair does well every two to four days. Thick, coarse, or tightly coiled hair needs less frequent washing to avoid drying out, but aiming for at least every two weeks (and using a medicated shampoo when you do) keeps the scalp healthy. If your scalp feels greasy between washes, that’s a signal to increase your frequency.
Diet and Lifestyle Adjustments
Zinc supports skin repair, and a deficiency is linked to increased dandruff. Foods rich in zinc include oysters, red meat, pumpkin seeds, and chickpeas. B vitamins help regulate skin health and manage stress, which is itself a known dandruff trigger. You’ll find B vitamins in whole grains, eggs, leafy greens, and legumes. These dietary changes won’t replace medicated shampoo for active dandruff, but they support a healthier scalp over time.
Stress management is worth mentioning because flare-ups often coincide with stressful periods. The connection is real: stress triggers inflammation and increases oil production, both of which feed the cycle. Exercise, sleep, and basic stress reduction won’t cure dandruff on their own, but they reduce the frequency of flare-ups for many people.
When It Might Not Be Simple Dandruff
Ordinary dandruff produces white or yellowish flakes with mild itching. If you’re seeing thick, silvery scales that extend past your hairline onto your forehead or behind your ears, that pattern is more consistent with scalp psoriasis. Psoriasis plaques look drier and thicker than dandruff flakes, and they often show up alongside changes in other parts of your body, like pitting on your fingernails or dry patches on your elbows and knees.
Seborrheic dermatitis sits on a spectrum with dandruff (it’s essentially a more severe version) and causes oily, crusted patches with noticeable redness and inflammation. If over-the-counter shampoos haven’t helped after a few weeks of consistent use, or if your scalp is red, painful, or developing thick crusts, a dermatologist can distinguish between these conditions and prescribe stronger treatments like prescription-strength antifungal shampoos or topical steroids.

