Common Causes (Ranked by Likelihood)

Staphylococcus hominis bacteria on your skin have an enzyme called C-T lyase that converts cysteine (an amino acid in sweat) into thioalcohols — the exact same sulfur compounds found in onions. A 2020 study at the University of York identified this as the primary mechanism. Everyone has these bacteria, but some people have more, and some people's sweat contains more cysteine.

Foods high in sulfur compounds are metabolized and the byproducts excreted through sweat. Garlic, onions, cruciferous vegetables (broccoli, cauliflower, cabbage), red meat, eggs, and certain spices all contain sulfur compounds that can make sweat smell distinctly onion-like within 12-48 hours of eating them.

Your genetics determine the composition of your sweat and which bacteria colonize your skin. The ABCC11 gene affects earwax type and body odor — people with wet earwax tend to have stronger body odor. Some people simply produce more cysteine-rich sweat, giving bacteria more fuel to create thioalcohols.

Puberty, menstruation, pregnancy, menopause, and thyroid conditions change sweat production and composition. Apocrine glands become more active during these periods, producing more of the protein-rich sweat that bacteria convert into onion-smelling thioalcohols. Stress hormones also increase apocrine gland activity.

Trimethylaminuria (TMAU or 'fish odor syndrome'), liver disease, kidney disease, or certain metabolic disorders can alter body odor significantly. Hyperthyroidism increases sweating and can change odor. These are uncommon but worth investigating if the smell is new, severe, and doesn't respond to normal interventions.
How to Fix It
Target the Bacteria
$5-20Most effective approach — reduces thioalcohol production at the source.
- 1Wash armpits with benzoyl peroxide wash (2.5-5%) or chlorhexidine soap — these kill Staphylococcus hominis specifically.
- 2Apply a clinical-strength antiperspirant with aluminum chloride (e.g., Certain Dri) at bedtime — blocks sweat and reduces bacterial habitat.
- 3Consider a glycolic acid or salicylic acid exfoliant on armpits — lowers skin pH, making it hostile to odor bacteria.
- 4If OTC products aren't enough, ask your doctor about prescription-strength aluminum chloride (Drysol 20%).
Modify Your Diet
$0Results in 2-7 days.
- 1Cut sulfur-rich foods for 1 week: garlic, onions, broccoli, cauliflower, cabbage, eggs, and red meat.
- 2If smell improves, reintroduce foods one at a time to find your specific trigger.
- 3Drink more water — dilutes sulfur compounds in sweat.
- 4Zinc supplements (15mg daily) may reduce sulfur-compound odor — consult your doctor first.
See a Doctor
$50-300If smell is severe, persistent, and doesn't respond to hygiene/diet changes.
- 1Request thyroid function tests and metabolic panel.
- 2Discuss Botox for axillary hyperhidrosis — FDA-approved, covered by some insurance.
- 3Ask about miraDry treatment — permanently destroys sweat glands in armpits ($1,500-3,000).
- 4Get tested for trimethylaminuria if smell is particularly fishy or sulfurous.
When to Call a Professional
Strong onion smell that doesn't respond to any hygiene measures — possible metabolic condition.
New onset of strong body odor with unexplained weight loss, tremors, or rapid heartbeat — could be thyroid disorder.
Body odor accompanied by yellow skin or eyes, dark urine — see a doctor immediately for liver evaluation.
How to Prevent It
Apply antiperspirant at night — it works best when sweat glands are least active.
Wear natural fibers or moisture-wicking synthetics — cotton traps moisture where bacteria thrive.
Shower immediately after exercise — don't give bacteria time to work on sweat.
Keep armpits trimmed — less hair means less surface area for bacteria.
Why Onion Smell Specifically? The Chemistry
The smell of onions comes from a family of sulfur compounds called thioalcohols, particularly 3-methyl-3-sulfanylhexan-1-ol (3M3SH). In 2020, researchers at the University of York discovered that Staphylococcus hominis bacteria on human skin contain a specific enzyme called C-T lyase that converts the amino acid cysteine (found in apocrine sweat) into this exact compound.
What's remarkable is that this is the same biochemical pathway that produces the sulfurous smell when you cut onions. Your body produces odorless precursor molecules in sweat, and bacteria on your skin do the final chemical conversion that creates the smell. This is why the smell appears gradually as bacteria work on fresh sweat, and why antibacterial products are so effective.
Interestingly, not everyone's bacteria produce the same amount of thioalcohols. Genetic variation in both your sweat composition and your skin microbiome determines how strongly you smell. This is why body odor varies so dramatically between individuals even with identical hygiene habits.
Frequently Asked Questions
Bacteria recolonize your skin within hours of showering. Use an antibacterial soap (benzoyl peroxide or chlorhexidine) instead of regular soap, and apply antiperspirant immediately after drying. This can extend the odor-free window from hours to most of the day.
Yes, absolutely. The sulfur compounds in onions (allicin and its derivatives) are absorbed into your bloodstream and excreted through sweat glands. The effect peaks 12-48 hours after eating and resolves within 72 hours.
It's common for one armpit to smell more than the other. Your dominant arm (usually the right for right-handed people) tends to have more active sweat glands and a different bacterial population. It's completely normal.
Yes. Armpit hair provides surface area for bacteria to colonize and traps moisture. Multiple studies show that trimming or shaving armpits significantly reduces odor intensity, regardless of gender.
