How to Stop Dandruff: Shampoos, Diet & Remedies

Dandruff affects roughly half of all adults worldwide, and stopping it comes down to controlling a naturally occurring fungus on your scalp. The good news: most cases respond well to the right shampoo, proper washing habits, and a few simple changes. Here’s what actually works.

Why Your Scalp Flakes in the First Place

Your scalp is home to a yeast called Malassezia that feeds on the oils your skin produces. This fungus secretes enzymes that break down the triglycerides in sebum to extract energy. The byproduct of that process is a buildup of unsaturated fatty acids, particularly oleic acid, on the skin’s surface. In people prone to dandruff, those fatty acids trigger irritation and an immune response that speeds up skin cell turnover. Your scalp sheds cells faster than normal, and the result is visible flakes.

This means dandruff isn’t caused by poor hygiene or a dry scalp. It’s driven by your skin’s reaction to a fungus that lives on virtually everyone’s head. The difference between someone with dandruff and someone without it is largely how their immune system responds to oleic acid. That’s why treatments target either the fungus itself or the inflammation it causes.

Choose the Right Medicated Shampoo

Over-the-counter medicated shampoos are the first and most effective step for most people. The active ingredients work differently, so it helps to know what you’re looking for on the label.

Ketoconazole (2%) is an antifungal that directly kills the Malassezia yeast. In a head-to-head clinical trial of people with severe dandruff, ketoconazole 2% shampoo achieved a 73% improvement in dandruff severity after four weeks and had a lower recurrence rate than zinc pyrithione. It’s available over the counter at 1% strength in most countries, with the 2% version sometimes requiring a prescription.

Zinc pyrithione (1%) also targets the fungus and is the most widely available active ingredient (found in brands like Head & Shoulders). It produced a 67% improvement in the same trial. That’s a meaningful result, and for mild to moderate dandruff, it’s often enough.

Selenium sulfide (1%–2.5%) slows skin cell turnover on the scalp while also reducing fungal populations. It’s found in Selsun Blue and similar products. It can slightly discolor light or chemically treated hair, so rinse thoroughly.

Coal tar reduces scaling and itching by slowing the rate at which skin cells die and flake off. The FDA classifies it as safe and effective for dandruff treatment in OTC formulations. It has a strong smell and can also stain light hair, so many people use it as a backup when other options haven’t worked.

Salicylic acid works as an exfoliant, loosening and removing existing flakes. It doesn’t kill the fungus, so it’s best used alongside an antifungal ingredient rather than on its own.

How to Actually Use Medicated Shampoo

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) and leave it on for a full five minutes before rinsing. Setting a timer helps. If you rinse it off in 30 seconds like a regular shampoo, the active ingredient barely has a chance to penetrate.

For active flaking, use the medicated shampoo every time you wash for the first two to four weeks. Once the dandruff clears, you can taper down to two or three times a week for maintenance, using a regular shampoo on the other days. If one active ingredient doesn’t work after a month of consistent use, switch to a shampoo with a different one. Rotating between two types can also help prevent the fungus from adapting.

Wash More Often, Not Less

A persistent myth says that washing your hair too often dries out your scalp and worsens dandruff. The research shows the opposite. In studies comparing different washing frequencies across multiple populations, people who washed more frequently experienced less flaking, less itching, and less dryness. Those washing five to six times per week reported the highest overall satisfaction with scalp and hair condition, and daily washing outperformed once-a-week washing on every measure.

This makes sense biologically. Malassezia feeds on sebum, and washing removes that oil from your scalp. The longer oils sit on your skin between washes, the more fuel the fungus has. If you’ve been stretching out wash days hoping to help your scalp, try increasing your frequency for a few weeks and see if your flaking improves.

Tea Tree Oil as a Natural Option

If you prefer a more natural approach, tea tree oil has the strongest clinical evidence behind it. In a randomized trial of 126 patients with mild to moderate dandruff, a shampoo containing 5% tea tree oil improved dandruff severity by 41% over four weeks, compared to just 11% with a placebo. That’s a real, measurable effect, though it’s notably less than what medicated shampoos achieve.

Look for shampoos that list tea tree oil at 5% concentration. Lower concentrations may not deliver the same benefit. Tea tree oil works as a mild antifungal and anti-inflammatory, so it addresses both sides of the dandruff equation. It’s a reasonable choice for mild cases or for people who want to avoid pharmaceutical ingredients, but for stubborn or severe dandruff, a medicated shampoo will likely work better.

Dietary Habits That May Play a Role

There’s emerging evidence linking diet to dandruff severity. In a case-control study comparing people with and without seborrheic dermatitis (the more severe end of the dandruff spectrum), those with the condition consumed significantly more simple carbohydrates like white bread, rice, and pasta. The likely connection: refined carbs increase levels of a hormone called IGF-1, which stimulates your oil glands to produce more sebum. More sebum means more food for the fungus.

Participants also self-reported that sweets, spicy food, fried food, and dairy products seemed to worsen their symptoms. The evidence here is still observational, not definitive, but reducing your intake of refined carbohydrates and sugar is low-risk and may help, especially if you notice your flaking gets worse after periods of heavy processed food consumption.

When It Might Not Be Dandruff

Most scalp flaking is ordinary dandruff, but a few signs suggest something else may be going on. Scalp psoriasis produces thick, silvery scales rather than the fine white or yellowish flakes typical of dandruff. Psoriasis patches often extend beyond the hairline onto the forehead, behind the ears, or down the back of the neck. You might also notice similar scaly patches on your elbows, knees, or lower back. Psoriasis is a chronic autoimmune condition that requires different treatment.

Seborrheic dermatitis sits on the more severe end of the same spectrum as dandruff and involves noticeable redness and inflammation along with greasy, yellowish scales. It can also affect the eyebrows, sides of the nose, and chest. If your symptoms are persistent, painful, very red, or spreading beyond your scalp, it’s worth getting a professional evaluation to rule out these conditions. Standard dandruff responds to the steps above within a few weeks. If yours doesn’t budge after consistent treatment with two different medicated shampoos, that’s another signal to dig deeper.