How to Treat Dandruff and Keep It From Coming Back

Most dandruff responds well to over-the-counter medicated shampoos, and you can usually clear it up without seeing a doctor. The key is choosing the right active ingredient, using it correctly, and adjusting your routine based on your hair type. If your flaking is mild to moderate, a few weeks of consistent treatment is typically all it takes.

What Actually Causes Dandruff

Dandruff isn’t caused by poor hygiene. It comes from the interaction of three factors: the natural oil (sebum) your scalp produces, a yeast called Malassezia that lives on everyone’s skin, and your individual sensitivity to the byproducts of that yeast. Malassezia thrives on oily skin because it can’t make its own fatty acids and depends on your sebum for food. As it breaks down scalp oils, it releases oleic acid, a compound that triggers irritation and rapid skin cell turnover in susceptible people. That accelerated shedding is what produces visible flakes.

This is why dandruff tends to be worse during times of high oil production, like puberty and early adulthood, and why it often improves in summer when UV exposure naturally suppresses yeast levels on the skin.

Medicated Shampoos: Your First-Line Treatment

Over-the-counter dandruff shampoos work through different mechanisms, so if one doesn’t help after a few weeks, switching to a different type often does. Here are the main categories:

  • Zinc pyrithione (found in Head & Shoulders, Vanicream): Slows yeast growth and reduces flaking. Gentle enough for frequent use and a good starting point for most people.
  • Ketoconazole 1% (found in Nizoral A-D): An antifungal that directly targets Malassezia. Available over the counter at 1% strength, with a stronger 2% version available by prescription.
  • Selenium sulfide (found in Selsun Blue): Slows skin cell turnover and has antifungal properties. One caveat: if you have light, gray, or chemically treated hair, rinse thoroughly for at least five minutes after each use to avoid discoloration.
  • Coal tar (found in Neutrogena T/Gel): Slows how quickly skin cells die and flake off. Has a strong smell and can make your scalp more sensitive to sunlight.
  • Salicylic acid (found in Neutrogena T/Sal): Works as a scale-softener, helping to loosen and remove existing flakes. It doesn’t address the underlying yeast, so it pairs well with an antifungal shampoo.

If you’ve been using one type for three to four weeks without improvement, try a product with a different active ingredient rather than assuming medicated shampoos don’t work for you.

How to Use Medicated Shampoo Properly

The most common mistake people make with dandruff shampoo is rinsing it out too quickly. These products need time on your scalp to work. Lather the shampoo into your scalp and leave it in place for about five minutes before rinsing. If you just lather and rinse immediately like a regular shampoo, the active ingredients don’t have enough contact time to be effective.

Focus the product on your scalp, not your hair. Massage it in with your fingertips (not your nails, which can break the skin and lead to irritation or infection). You can follow up with a regular conditioner on your ends if the medicated shampoo leaves your hair feeling dry.

Adjusting for Your Hair Type

How often you use medicated shampoo depends on your hair texture and scalp type. If you have fine, straight, or naturally oily hair, washing frequently helps control oil buildup that feeds the yeast. Using your medicated shampoo two to three times a week is a reasonable starting point.

If you have curly, coiled, or textured hair, frequent washing can strip moisture and cause breakage. You may want to use your medicated shampoo less often, perhaps once a week, and alternate with a gentle moisturizing shampoo or co-wash on other wash days. Some people with textured hair find it helpful to apply a lightweight scalp oil between washes to keep the skin from getting too dry, which can actually worsen flaking.

Tea Tree Oil and Other Natural Options

Tea tree oil is the best-studied natural remedy for dandruff. A clinical trial published in the Journal of the American Academy of Dermatology found that a shampoo containing 5% tea tree oil produced a 41% improvement in dandruff severity, compared to just 11% in the placebo group. That’s a meaningful difference, though it’s generally less potent than pharmaceutical antifungals like ketoconazole.

If you want to try tea tree oil, look for a shampoo formulated with at least 5% concentration. Don’t apply undiluted tea tree oil directly to your scalp, as it can cause irritation or contact dermatitis. Apple cider vinegar rinses and coconut oil are popular home remedies, but they lack strong clinical evidence. They’re unlikely to cause harm, but they shouldn’t replace a proven treatment if your dandruff is persistent.

When Flaking Isn’t Simple Dandruff

Dandruff exists on a spectrum with seborrheic dermatitis, which is essentially a more severe version of the same process. If your flaking comes with significant redness, greasy yellowish scales, or spreads to your eyebrows, the sides of your nose, or behind your ears, you’re likely dealing with seborrheic dermatitis rather than garden-variety dandruff. The treatments overlap, but you may need stronger prescription options.

Scalp psoriasis can look similar but has some distinguishing features. Psoriasis scales tend to be thicker and drier, and the patches often extend past the hairline onto the forehead or behind the ears. If you also notice changes in your nails (small pits or ridges) or have scaly patches on your elbows, knees, or lower back, psoriasis is more likely. A doctor can usually tell the difference with a visual exam.

You should see a provider if your skin becomes painful, swollen, or starts oozing fluid (signs of infection), if over-the-counter products haven’t helped after several weeks of consistent use, or if the condition is significantly affecting your daily comfort or confidence.

Keeping Dandruff From Coming Back

Dandruff is a chronic condition, not a one-time problem. Once you’ve gotten it under control, you’ll likely need to continue using a medicated shampoo on a maintenance schedule to keep flakes from returning. Many people find that stepping down to once a week is enough to stay clear, while others need two or three uses weekly during flare-prone seasons like winter, when indoor heating dries out the scalp.

Stress and sleep deprivation can trigger flares because they affect immune function, which in turn changes how your body responds to the yeast on your scalp. There’s no way to eliminate Malassezia entirely (it’s a normal part of your skin ecosystem), so the goal is managing the conditions that let it cause problems. Keeping a consistent washing schedule, rotating active ingredients if one loses effectiveness over time, and paying attention to seasonal patterns will keep most cases well controlled.