A fishy smell coming from your hair usually traces back to bacteria and oils building up on your scalp, though in rare cases it can signal a metabolic condition called trimethylaminuria. The good news is that most causes are treatable once you identify what’s going on.
Buildup of Oil, Sweat, and Bacteria
Your scalp constantly produces sebum, a natural oil that keeps skin and hair moisturized. That oil is a complex mix of fatty acids, wax esters, cholesterol, and other lipids. On its own, sebum doesn’t smell like much. The problem starts when bacteria and yeast that naturally live on your scalp feed on those oils and break them down into smaller, volatile compounds, some of which can smell sour, musty, or distinctly fishy.
A type of yeast called Malassezia is particularly relevant here. It depends entirely on lipids from your skin to survive, using enzymes to break down the fats in sebum. That process generates a range of byproducts including certain alcohols, ketones, and sulfur compounds. When Malassezia overgrows, it produces more of these byproducts, and the smell intensifies. This same yeast overgrowth is what drives dandruff and seborrheic dermatitis, so if your scalp is also flaky or itchy, the odor and the flaking likely share the same root cause.
Sweat compounds the issue. Your scalp has a dense concentration of sweat glands, and when sweat mixes with sebum and bacteria, it creates an environment where odor-causing microbes thrive. People who exercise frequently, live in humid climates, or wear hats for long periods often notice this more.
Diet Can Make You Smell Fishy
What you eat directly affects how your body smells, including your hair. When you digest certain foods, your gut produces a chemical called trimethylamine. In most people, a liver enzyme quickly converts trimethylamine into an odorless compound before it can cause problems. But certain dietary patterns can temporarily overwhelm that enzyme, leading to a fishy scent that escapes through sweat, which then clings to your hair.
The main dietary triggers include eggs, liver, seafood, soy products, and legumes like beans and peas. Cruciferous vegetables (broccoli, Brussels sprouts, cabbage, cauliflower) also contribute. If you’ve recently started taking choline or carnitine supplements, or fish oil capsules, those are common culprits too. These nutrients play a direct role in producing trimethylamine in the body. Cutting back on these foods for a few days and seeing if the smell fades is a simple first test.
Trimethylaminuria: The Genetic “Fish Odor” Condition
If the fishy smell is persistent, strong, and shows up not just in your hair but also in your sweat, urine, and breath, you may have trimethylaminuria, sometimes called fish odor syndrome. This is a genetic condition caused by mutations in the FMO3 gene, which provides instructions for making the enzyme that normally neutralizes trimethylamine. When this enzyme is missing or underperforming, trimethylamine builds up in the body and gets released through every available route: sweat, urine, saliva, and breath.
Trimethylaminuria is rare. Global estimates put prevalence at roughly 1 in 200,000 to 1 in 1,000,000 people, though carrier rates vary by population. Some people carry one copy of the gene variant without full symptoms but notice a mild fishy odor after eating trigger foods. A urine test measuring the ratio of trimethylamine to its odorless form can confirm the diagnosis. There’s no cure, but managing it revolves around avoiding high-choline and high-carnitine foods, which significantly reduces the odor for most people.
Scalp Infections That Produce Odor
Bacterial infections on the hair shaft itself can generate a foul smell. One example is trichobacteriosis, a superficial infection caused by Corynebacterium species. It typically affects armpit and pubic hair but can occur wherever bacteria colonize hair. The hallmark is tiny yellow or cream-colored nodules along the hair shaft, which are actually large bacterial colonies. Certain strains of these bacteria are specifically associated with producing strong odors, and people who sweat heavily are more prone to it.
Fungal infections of the scalp can also cause persistent odor. These infections thrive in warm, moist environments and often come with other visible signs like redness, scaling, or patchy hair loss. If your fishy-smelling hair is accompanied by any of these symptoms, the odor is likely a secondary effect of the infection rather than a hygiene issue.
How to Get Rid of the Smell
For the most common cause, scalp buildup, the fix is straightforward. A medicated shampoo containing an antifungal ingredient like ketoconazole or zinc pyrithione targets the yeast overgrowth that drives odor production. Use it two to three times per week, letting it sit on your scalp for a few minutes before rinsing so the active ingredients have time to work. On off days, a gentle clarifying shampoo helps remove excess oil and product residue without over-drying your scalp.
If you suspect the smell is diet-related, try reducing your intake of eggs, seafood, legumes, and cruciferous vegetables for a week or two. Stop any choline, carnitine, or fish oil supplements during this period. Many people notice a difference within days.
Pay attention to patterns. A smell that appears only when your hair is wet or sweaty and fades after washing points to microbial buildup. A smell that persists even on freshly washed hair, or that others notice on your skin and breath too, suggests something systemic like trimethylaminuria or a dietary overload of trimethylamine precursors. In that case, a doctor can run a straightforward urine test to check. For scalp-specific concerns with visible flaking, redness, or nodules on the hair shaft, a dermatologist can take skin scrapings or cultures to identify the exact microorganism involved and recommend targeted treatment.

