What Makes Body Odor? Bacteria, Diet, and More

Body odor is created when bacteria on your skin break down the proteins and fatty acids in your sweat. The sweat itself is virtually odorless when it leaves your body. It’s the interaction between that sweat and the millions of microorganisms living on your skin that produces the smell most people recognize as B.O.

Two Types of Sweat Glands, One Smell

Your body has two kinds of sweat glands, and they don’t contribute equally to odor. Eccrine glands cover almost your entire body, with the highest concentration on your palms and soles. They produce a watery sweat made mostly of water and salt, and they’re primarily responsible for cooling you down. This type of sweat doesn’t generate much smell on its own.

Apocrine glands are the main culprit. These are concentrated in your armpits, groin, and around the nipples, and they open into hair follicles rather than directly onto the skin surface. The fluid they release is thicker and milkier, packed with proteins, fatty acids, and other organic compounds that skin bacteria love to feed on. When bacteria break down these compounds, volatile byproducts are released into the air. That’s what you smell.

Apocrine glands are present from birth but don’t activate until puberty, which is why young children rarely have noticeable body odor. Hormonal changes during adolescence switch these glands on, and they stay active for life.

The Bacteria Behind the Smell

Your armpit is a warm, moist habitat teeming with bacteria, and the specific species living there determine how you smell. In adults, Corynebacterium species are the primary drivers of underarm odor. In teenagers and children, different species play a larger role: Staphylococcus hominis and Staphylococcus epidermidis can independently produce malodor, each with its own scent profile.

These bacteria break down naturally secreted, odorless components of sweat, including fatty acids, amino acids, glycerol, and lactic acid. The metabolic process is surprisingly specific. Enzymes from S. epidermidis, for instance, convert lactic acid and glycerol through a chain of reactions that ultimately produce isovaleric acid (a sour, cheesy smell) and acetic acid (a sharp, vinegar-like smell). Other Staphylococcus species produce sulfur compounds, which add that distinctly pungent edge. One particularly potent molecule identified in armpit odor, 3-methyl-3-sulfanylhexan-1-ol, is a sulfur-containing alcohol that serves as a major signature of the human underarm scent.

The balance matters. Higher populations of odor-producing bacteria like S. hominis and S. epidermidis correlate with stronger odor intensity, while certain other species, like Acinetobacter schindleri, are associated with less smell.

Genetics Play a Bigger Role Than You Think

A single gene called ABCC11 largely determines whether you produce significant body odor at all. This gene controls the composition of what your apocrine glands secrete, and it also determines your earwax type. People with the “wet” earwax variant produce the protein-rich apocrine sweat that bacteria thrive on. People with the “dry” variant produce far less of it, resulting in minimal underarm odor.

The distribution of these variants varies dramatically by population. Roughly 100% of people with African ancestry and about 95% of people with European ancestry carry the wet-type variant. In East Asian populations, the numbers flip: only about 15% of Japanese people, 10% of Han Chinese, and 5% of Koreans carry the wet type. This means the majority of East Asian populations naturally produce little to no underarm odor, a trait directly encoded in their DNA.

Stress Sweat Smells Worse

Not all sweating creates the same odor. When you exercise or overheat, your eccrine glands do most of the work, producing thin, watery sweat across your whole body. When you’re stressed or anxious, your apocrine glands kick in, releasing that thicker, milky fluid concentrated in your armpits and groin. Because apocrine sweat contains far more of the organic compounds bacteria feed on, stress sweat tends to smell noticeably stronger than the sweat you produce during a workout.

How Diet Changes Your Scent

Foods high in sulfur compounds can alter your body odor from the inside out. Cruciferous vegetables like broccoli, cabbage, Brussels sprouts, and cauliflower release sulfur compounds during digestion, and these can be intensified when they exit through sweat, breath, or gas. Garlic and onions work through a similar mechanism. Asparagus contains asparagusic acid, which your body converts into sulfur compounds during digestion, most famously affecting the smell of urine. The effect is temporary, clearing once your body finishes processing the food, but it can be noticeable for hours.

Your Clothes Matter Too

The fabric you wear can amplify or reduce body odor. A study comparing clothing after exercise sessions found that polyester harbors significantly more odor-causing bacteria than cotton. Micrococcus species, which are strong odor producers, grew selectively on synthetic fabrics, reaching populations up to 17 million colony-forming units per square centimeter on polyester. On cotton, no selective growth of these bacteria occurred. Fleece and viscose fabrics actually inhibited Micrococcus growth. This is why a polyester gym shirt can smell dramatically worse than a cotton one after the same workout, even after washing.

How Antiperspirants and Deodorants Work Differently

Antiperspirants and deodorants tackle odor through completely different mechanisms. Antiperspirants contain aluminum salts that physically block sweat pores, reducing the flow of sweat from the gland to the skin surface. Less sweat means less food for bacteria, which means less odor. Deodorants don’t reduce sweating at all. Instead, they use ingredients like baking soda or alcohol to neutralize odor-causing bacteria, combined with fragrances to mask whatever smell remains.

Many products combine both approaches, which is why the terms are often used interchangeably, even though they work in fundamentally different ways.

When Body Odor Signals Something Medical

Unusual or sudden changes in body odor can sometimes point to an underlying health condition. A few conditions produce distinctive smells that persist regardless of hygiene.

  • Trimethylaminuria (fish odor syndrome): A genetic condition where the body can’t break down trimethylamine, a compound produced during digestion. The result is a strong, rotten-fish smell that comes through in sweat, breath, and urine. It can also develop as a secondary condition in people with severe liver or kidney disease.
  • Diabetic ketoacidosis: When blood sugar is dangerously uncontrolled, the body produces high levels of acetone. This creates a fruity smell on the breath, often compared to rotten apples. It’s a sign of a medical emergency.
  • Liver failure: A failing liver can’t properly process ammonia, leading to a urine-like or fishy smell on the breath known as fetor hepaticus.

As people age, body chemistry shifts too. Compounds like nonanal, an aldehyde produced by skin, increase with age and contribute to what’s sometimes called “old person smell.” This is a real biochemical change, not just a matter of hygiene or perception.