Dandruff can’t be permanently cured, but it can be controlled well enough that you never see a flake. The key is understanding what’s actually causing it and matching your treatment to that cause. For most people, the right medicated shampoo used correctly will clear visible flaking within two to four weeks.
What Actually Causes Dandruff
Dandruff isn’t caused by poor hygiene or a dry scalp, though both can make it worse. The real driver is a yeast called Malassezia that lives naturally on everyone’s scalp. This yeast feeds on the oils your scalp produces, breaking down triglycerides in sebum and releasing irritating free fatty acids, particularly oleic acid. If your skin is sensitive to these byproducts, it responds with inflammation, rapid skin-cell turnover, and visible flaking.
This is why dandruff tends to be worse when your scalp is oilier (during puberty, in humid weather, or during stressful periods) and why it’s a lifelong tendency rather than something you catch or outgrow. Three factors determine severity: how much oil your scalp produces, how much Malassezia is present, and how reactive your skin is to the fatty acids the yeast generates. Effective treatment targets at least one of these.
Medicated Shampoos That Work
Over-the-counter medicated shampoos are the first-line treatment, and most people never need anything stronger. The active ingredients fall into a few categories, each working differently.
- Antifungal shampoos (containing ketoconazole or piroctone olamine) directly reduce Malassezia populations on your scalp. Ketoconazole is the most potent option. In lab studies, it inhibited yeast growth at concentrations far lower than other common ingredients. A 1% version is available over the counter; a 2% version requires a prescription and has been shown to reduce both flaking and yeast counts significantly more than the 1% formula, with fewer relapses after stopping.
- Zinc pyrithione shampoos (the active ingredient in Head & Shoulders and similar brands) are antifungal and antibacterial. They’re effective for mild to moderate dandruff and gentle enough for frequent use.
- Selenium sulfide shampoos slow skin-cell turnover on the scalp while also fighting yeast. These work well but can discolor light or color-treated hair if not rinsed thoroughly.
- Salicylic acid shampoos take a different approach. Rather than killing yeast, salicylic acid is a keratolytic, meaning it dissolves the buildup of dead skin cells. Because it’s fat-soluble, it penetrates into hair follicles and sebaceous glands to clear out plugs and reduce inflammation. This is especially useful when you have thick, stubborn scale.
- Coal tar shampoos slow skin-cell production and reduce inflammation. They have a strong smell and can also affect light-colored hair, but they’re effective for persistent cases.
If one ingredient isn’t working after a month of consistent use, switch to a different one rather than assuming medicated shampoos don’t work for you. The mechanisms are different enough that your scalp may respond better to one than another.
How to Use Medicated Shampoo Correctly
The most common mistake people make is treating dandruff shampoo like regular shampoo: lather, rinse, done. These products need contact time to work. Leave the shampoo on your scalp for a full five minutes before rinsing. This gives the active ingredient time to penetrate and act on the yeast or buildup. If you’ve been using a medicated shampoo without seeing results, insufficient contact time is the most likely reason.
How often you use it depends on your hair type. If you have fine, straight, or oily hair, you may need to wash daily and use the medicated shampoo twice a week. If you have coarse, curly, or coily hair, once a week is typically enough. With curly or coily hair, apply the medicated shampoo only to your scalp, not the lengths of your hair. The antifungal and exfoliating ingredients that treat dandruff can strip moisture from textured hair and leave it dry and brittle. You can follow up with a moisturizing conditioner on the mid-lengths and ends.
Natural Options and What the Evidence Shows
Tea tree oil is the best-studied natural alternative. In a controlled trial, a shampoo containing 5% tea tree oil improved dandruff severity scores by 41%, compared to just 11% in the placebo group. Itchiness and greasiness also improved significantly, and no adverse effects were reported. That’s a meaningful benefit, though it’s less dramatic than what you’d see with ketoconazole or zinc pyrithione. Tea tree oil shampoos are a reasonable option for mild dandruff or for people who prefer plant-based products, but they probably won’t be enough for moderate to severe cases on their own.
Apple cider vinegar rinses and coconut oil are popular home remedies, but neither has strong clinical evidence specifically for dandruff. Coconut oil can help with scalp dryness, which may reduce flaking if dryness is contributing, but it won’t address the underlying yeast issue.
When It Might Not Be Dandruff
Dandruff exists on a spectrum with seborrheic dermatitis, which is essentially the same process but more severe, with redness, thicker scale, and sometimes greasy crusted patches. The same treatments apply, but you may need the prescription-strength versions.
Scalp psoriasis can look similar but behaves differently. Psoriasis scales tend to be thicker and drier than dandruff flakes, and the patches often extend past the hairline onto the forehead, behind the ears, or down the neck. If you also have thick, scaly patches on your elbows, knees, or lower back, or if your nails have small pits or dents, scalp psoriasis is more likely than dandruff. Psoriasis requires different treatment, so these clues matter.
Diet, Stress, and Other Triggers
The link between diet and dandruff is surprisingly weak. In one study, about half of people with seborrheic dermatitis reported no food-related flare-ups at all. Among those who did notice a connection, spicy food, sweets, fried food, and dairy were the most commonly reported triggers, each cited by roughly 10 to 17% of participants. But when researchers looked at actual dietary patterns using food-frequency questionnaires, the differences between people with and without dandruff were inconsistent. The research so far doesn’t support eliminating specific foods as a dandruff treatment.
Stress, on the other hand, has a clearer connection. Stress increases sebum production and can suppress immune function, both of which create a better environment for Malassezia to thrive. Sleep deprivation has a similar effect. You can’t “cure” dandruff by reducing stress, but many people notice their flaking worsens during high-pressure periods and improves when things calm down.
Keeping It Under Control Long Term
Because dandruff is driven by a yeast that permanently lives on your skin, it tends to come back once you stop treatment. The goal is maintenance, not a one-time fix. Once your dandruff clears, you can usually reduce how often you use medicated shampoo. Many people do well using it once a week or even every other week as a preventive measure, with their regular shampoo on other days.
If your dandruff returns despite consistent treatment, or if you’re seeing significant redness, thick crusting, or flaking that spreads to your face and eyebrows, a dermatologist can prescribe stronger options including the 2% ketoconazole shampoo or topical treatments applied directly to problem areas. Most people, though, find a good rhythm with over-the-counter products and never need to escalate beyond that.

