Getting dandruff out of your hair takes two steps: loosening and removing the visible flakes, then treating the underlying cause so they stop coming back. Dandruff isn’t just dry skin falling off your scalp. It’s driven by a yeast called Malassezia that lives on everyone’s head, feeds on your scalp oils, and produces byproducts that irritate the skin of people who are susceptible. That irritation triggers faster skin cell turnover, which creates the white and yellowish flakes you see on your shoulders and feel in your hair.
Why Dandruff Keeps Coming Back
Understanding the cause saves you from wasting time on fixes that don’t work. Malassezia yeast breaks down the triglycerides in your scalp’s natural oil (sebum) and releases oleic acid as a byproduct. In dandruff-prone people, oleic acid disrupts the skin barrier on the scalp, triggering inflammation, itching, and rapid shedding of skin cells. That’s why dandruff tends to be worse when your scalp is oilier, and why simply scrubbing harder or switching to a “moisturizing” shampoo won’t solve it.
Scratching makes things worse in a very direct way. The damaged skin barrier lets more irritants penetrate, which activates your immune response and produces even more flaking. Breaking that itch-scratch cycle is one of the fastest ways to see improvement.
Medicated Shampoos That Actually Work
Over-the-counter dandruff shampoos contain antifungal or cell-slowing ingredients that target the root cause. The main active ingredients you’ll find on shelves are zinc pyrithione, ketoconazole, selenium sulfide, salicylic acid, and coal tar. They work differently, but all reduce either the yeast population or the rate of skin cell buildup.
In a randomized trial of 246 patients with moderate to severe dandruff, both ketoconazole 2% shampoo and selenium sulfide 2.5% shampoo significantly reduced flaking and itching compared to placebo. Ketoconazole showed a slight edge in the first week and was better tolerated: all nine adverse reactions in the study occurred in the selenium sulfide group. If you’re choosing between the two, ketoconazole is a solid first pick, though both are effective.
Coal tar shampoos slow skin cell turnover and can help stubborn flaking, but they come with trade-offs. Coal tar increases sun sensitivity, so you’ll need to protect your scalp from UV exposure while using it. It can also temporarily change hair color, particularly in lighter hair.
How to Use Dandruff Shampoo Properly
The most common mistake people make with medicated shampoos is rinsing them out too quickly. These products need time to work. Lather the shampoo into your scalp and leave it on for 3 to 5 minutes before rinsing. Just applying it and immediately washing it off won’t give the active ingredients enough contact time to reduce the yeast or penetrate the flaky buildup.
During an active flare, use the medicated shampoo every time you wash your hair. For most people, that means every other day or every few days, depending on hair type. Once flaking is under control, the American Academy of Dermatology recommends stepping down to once a week to prevent flare-ups. If one active ingredient doesn’t seem to work after a few weeks of consistent use, try switching to a shampoo with a different one. Your scalp can respond better to certain formulations.
Loosening Flakes Before You Wash
If you have a visible layer of flakes clinging to your scalp, a pre-wash step can help. A silicone scalp brush or exfoliating brush used gently during shampooing helps dislodge dead skin cells, excess oil, and product buildup. This mechanical removal makes it easier for medicated ingredients to reach the scalp surface where they’re needed.
Once a week is a reasonable frequency for scalp brushing. Over-exfoliating can irritate the skin and worsen flaking, which defeats the purpose. If your scalp has any broken skin, open sores, or raw patches from scratching, skip the brush until the skin has healed. Gentle circular motions with your fingertips work as a safer alternative in the meantime.
Some people also find that applying a small amount of coconut oil or mineral oil to the scalp 30 minutes before washing helps soften thick, stubborn flakes so they rinse away more easily. This is a temporary fix for visible buildup, not a treatment for the underlying yeast.
Tea Tree Oil as a Natural Option
If you prefer a non-pharmaceutical approach, tea tree oil has the strongest clinical backing among natural remedies. A randomized trial found that a 5% tea tree oil shampoo improved dandruff severity scores by 41%, compared to just 11% improvement with placebo. That’s a meaningful difference, though it’s generally less potent than prescription-strength antifungals for moderate to severe cases.
Concentration matters. Most of the evidence supports 5% tea tree oil, which is the strength found in many commercially available tea tree shampoos. Applying undiluted essential oil directly to your scalp can cause irritation or chemical burns. Stick with a pre-formulated shampoo rather than mixing your own.
Diet and Lifestyle Factors
What you eat may play a role in how much your scalp flakes. A case-control study found that people with seborrheic dermatitis (the clinical term for significant dandruff) consumed simple carbohydrates like white bread, rice, and pasta at significantly higher rates than people without the condition. The proposed mechanism involves insulin-like growth factor (IGF-1), which rises after eating refined carbs and stimulates oil glands to produce more sebum. More sebum means more food for the yeast that causes dandruff. People with more severe cases also had higher IGF-1 levels than those with milder symptoms.
This doesn’t mean cutting carbs will cure dandruff, but reducing refined sugars and processed grains may help reduce the oiliness that fuels flare-ups, especially if you notice your dandruff worsens with certain eating patterns. Stress is another common trigger, as it increases inflammation throughout the body and can worsen scalp conditions.
When Flaking Isn’t Ordinary Dandruff
Most dandruff responds to consistent use of medicated shampoos within a few weeks. If it doesn’t improve, the flaking may be something else. Scalp psoriasis is the most common condition mistaken for dandruff, and the differences are worth knowing. Psoriasis scales tend to be thicker and drier, the patches often extend past the hairline onto the forehead or behind the ears, and psoriasis usually shows up on other parts of the body too, like elbows, knees, or lower back.
Flaking that comes with redness spreading beyond the scalp, hair thinning, weeping or crusting sores, or persistent itching that doesn’t respond to over-the-counter shampoos after several weeks of proper use warrants a visit to a dermatologist. Prescription-strength treatments, including stronger antifungal formulations or topical anti-inflammatory medications, can address what store-bought products can’t.

