How to Get Rid of Dandruff in Your Hair for Good

Dandruff comes down to a fungus on your scalp that feeds on oil, and getting rid of it requires targeting that fungus while reducing the irritation it causes. The good news: most cases clear up within two to four weeks of consistent treatment with the right shampoo and technique. Here’s what actually works.

Why Dandruff Happens in the First Place

Your scalp naturally produces an oily substance called sebum. A fungus called Malassezia globosa lives on everyone’s scalp, but it causes problems when it breaks down that oil into free fatty acids. Those fatty acids irritate the skin, triggering the rapid cell turnover that shows up as white or yellowish flakes. People with oilier scalps tend to have more dandruff because the fungus has more fuel to work with.

This means dandruff isn’t a hygiene problem. You can wash your hair every day and still have it. Stress, cold weather, hormonal changes, and certain dietary habits can all make flare-ups worse, but the underlying driver is always that fungus-oil interaction on your scalp.

Choosing the Right Medicated Shampoo

Regular shampoo won’t solve dandruff because it doesn’t address the fungus or the buildup of dead skin. Medicated shampoos work through different mechanisms, so if one doesn’t help, switching to a different type often does.

  • Ketoconazole (1%): Directly kills the Malassezia fungus. Available over the counter under the brand name Nizoral. This is one of the most effective first-line options.
  • Zinc pyrithione: Slows fungal growth and reduces flaking. Found in brands like Head & Shoulders and Vanicream.
  • Selenium sulfide: Also antifungal, and slows the rate at which skin cells turn over. Found in Selsun Blue.
  • Salicylic acid (3%): Works differently. It loosens and dissolves the scaly buildup on the scalp so other treatments can penetrate better. It doesn’t kill the fungus itself, so it pairs well with an antifungal shampoo.
  • Coal tar: Slows skin cell production and reduces inflammation. Has a strong smell that some people find unpleasant.

If you’ve been using one type for several weeks without improvement, try rotating to a shampoo with a different active ingredient. The fungus doesn’t become “resistant” in the way bacteria do, but your scalp may respond better to one mechanism over another.

How to Use Medicated Shampoo Properly

The most common mistake people make is rinsing medicated shampoo out too quickly. These products need contact time with your scalp to work. Lather the shampoo into your scalp (not just your hair), then leave it sitting for three to five minutes before rinsing. This gives the active ingredients time to penetrate the skin and reach the fungus.

How often you use it depends on your hair type. If you have fine or naturally straight hair, or your scalp tends to be oily, you can wash daily and use the medicated shampoo twice a week. If you have coarse, curly, or coily hair, the American Academy of Dermatology recommends using medicated shampoo about once a week. Overwashing textured hair strips moisture and can worsen scalp dryness, so find a balance that keeps flakes controlled without leaving your hair brittle.

On the days you don’t use medicated shampoo, your regular shampoo is fine. Focus on massaging the scalp gently with your fingertips rather than scratching with your nails, which can break the skin and invite infection.

What to Expect and When

Most people notice less itching within the first one to two washes. Visible flake reduction typically follows within one to two weeks of consistent use. For moderate dandruff, you should see significant improvement by week two. Stubborn or more severe cases can take the full four weeks to clear.

The key word is “consistent.” Using medicated shampoo once, seeing some improvement, and then stopping is the most reliable way to bring dandruff right back. Even after your scalp clears, most people need to continue using their medicated shampoo once a week or every other week as maintenance. Dandruff is manageable but not permanently curable, because the fungus that causes it is a normal part of your scalp’s ecosystem.

If you’ve followed a consistent routine for four weeks without meaningful improvement, that’s a reasonable point to see a dermatologist.

Natural Options That Have Some Evidence

Tea tree oil is the most studied natural remedy for dandruff. A shampoo containing 5% tea tree oil used daily for four weeks reduced dandruff severity in clinical testing. You can find tea tree oil shampoos at most drugstores, or add a few drops of pure tea tree oil to your regular shampoo. Lower concentrations may not be strong enough to make a noticeable difference.

Coconut oil can help with dryness and itching when applied to the scalp before washing, though it doesn’t address the fungal component directly. Apple cider vinegar rinses are popular but lack strong clinical evidence. They may help restore scalp pH temporarily, but they’re unlikely to replace a medicated shampoo for anything beyond very mild flaking.

Diet and Lifestyle Factors

What you eat can influence how much oil your scalp produces and how much inflammation your body generates, both of which affect dandruff. Diets high in sugar, processed food, and fried food trigger insulin spikes that stimulate oil production. Reducing these foods won’t cure dandruff on its own, but it can make flare-ups less frequent and less severe.

Zinc plays a direct role in scalp health. Zinc-rich foods like oysters, crab, pumpkin seeds, and fortified cereals may help reduce flaking. Some people also benefit from biotin, a B vitamin involved in skin cell maintenance. Sweets and yeast-containing foods like beer, bread, and wine may encourage fungal growth on the scalp, though the evidence for strict dietary avoidance is limited.

Stress is another reliable trigger. It increases oil production and suppresses immune function, both of which give Malassezia an advantage. Managing stress through sleep, exercise, or whatever works for you can have a genuine effect on your scalp.

When It Might Not Be Dandruff

Not all scalp flaking is dandruff. Two conditions that look similar but require different treatment are seborrheic dermatitis and scalp psoriasis.

Seborrheic dermatitis is essentially dandruff’s more aggressive cousin. It causes the same type of oily, yellowish scales but with more redness and inflammation. It can also appear on the face, especially around the eyebrows, nose, and ears. Mild seborrheic dermatitis responds to the same medicated shampoos, but moderate to severe cases often need prescription-strength treatment.

Scalp psoriasis looks different. The scales tend to be thicker, drier, and more silvery. Psoriasis patches often extend beyond the hairline onto the forehead or behind the ears. If you also notice thick, pitted nails or dry, scaly patches on your elbows, knees, or lower back, psoriasis is more likely than dandruff. Psoriasis requires a different treatment approach entirely.

Other warning signs that something beyond basic dandruff is going on include skin that becomes painful or swollen, patches that start oozing fluid (a sign of infection), or flaking that significantly affects your daily life or mental health despite consistent over-the-counter treatment.