Body odor comes from bacteria on your skin breaking down compounds in your sweat, not from the sweat itself. Fresh sweat is nearly odorless. The smell develops when specific microbes metabolize the proteins, fats, and sulfur-containing molecules that your sweat glands release, producing the volatile compounds your nose actually detects. But bacteria and sweat are only part of the picture. Your genetics, hormones, diet, clothing, and even underlying health conditions all shape how you smell.
Two Types of Sweat Glands, Two Different Jobs
Your body has two main types of sweat glands, and they contribute to odor very differently. Eccrine glands cover nearly your entire body and are present from birth. They produce a watery, mostly salt-based sweat designed to cool you down. This type of sweat is relatively low in the organic compounds bacteria feed on, so it doesn’t generate much odor on its own.
Apocrine glands are a different story. They’re concentrated in your armpits, groin, and around the nipples, and they stay dormant until puberty. Unlike eccrine glands, which simply release liquid from inside cells, apocrine glands secrete by pinching off outer parts of their cells. That process pushes out lipids, proteins, and higher concentrations of urea and potassium along with the fluid. During exercise, potassium levels in apocrine sweat can be nearly five times higher than in eccrine sweat. All of those extra organic molecules give skin bacteria far more raw material to work with, which is why your armpits smell worse than your forearms.
Bacteria Turn Sweat Into Odor
The actual smell is a byproduct of microbial metabolism. One key player is Staphylococcus hominis, a bacterium that lives on your skin and transforms molecules from apocrine sweat into sulfur-containing compounds. These sulfur compounds produce the sharp, onion-like notes in body odor. Researchers have identified a specific enzyme in S. hominis, called ShPepV, that catalyzes the first step of this chemical transformation. Other bacteria on your skin contribute their own byproducts, creating the complex mix of volatile compounds that make up your personal scent.
This is why freshly washed skin doesn’t smell. You’ve temporarily reduced the bacterial population and removed the sweat residue they feed on. As bacteria repopulate and new sweat arrives, odor returns.
Your Genes Set the Baseline
Not everyone produces the same amount of odor-causing compounds, and genetics is a major reason why. A gene called ABCC11 codes for a transport protein found in apocrine sweat glands. It controls how many odorant precursors (the raw materials bacteria convert into smelly compounds) get pumped into your sweat in the first place.
A single variation in this gene dramatically changes how much you smell. People who carry two copies of the variant produce significantly fewer axillary odorant precursors and tend to have much milder body odor. This same gene variant also determines earwax type: people with the low-odor version have dry, white earwax rather than the wet, yellowish kind. The variant is extremely common in East Asian populations, present in 80 to 95 percent of Japanese, Korean, and Chinese individuals. It’s rare (0 to 3 percent) among people of European and African descent, who almost universally carry the version associated with stronger body odor.
Hormones Change How You Smell
Hormonal shifts at puberty, during pregnancy, and through menopause can noticeably alter your body odor. Fluctuations in cortisol, estrogen, and testosterone all play a role. Testosterone, in particular, is linked to greater bacterial diversity in sweat and to the production of androstenol, a chemical associated with a musky scent. This is part of why body odor becomes a new concern during adolescence, when testosterone levels rise and apocrine glands activate for the first time.
During menopause, the same types of hormonal swings recur. Increased anxiety and stress during this period can also shift which glands are doing most of the sweating. Everyday cooling sweat comes from eccrine glands, but stress sweat routes through apocrine glands, which contain more proteins and fats. If your stress levels climb, a greater proportion of your sweat carries the compounds bacteria love, and your odor may change in ways you’re not used to.
Foods That Come Out Through Your Skin
Certain foods can change your body odor for hours or even a day or two after eating them. Garlic, onions, cumin, and curry are the most common culprits. When your body digests these foods, it produces sulfur-like compounds that show up on your breath and also react with sweat on your skin to generate noticeable odor.
Cruciferous vegetables like broccoli, cauliflower, and cabbage are high in sulfur-containing substances that break down into hydrogen sulfide, the compound responsible for a rotten-egg smell. Asparagus takes a different route: it produces sulfur compounds that are excreted primarily through urine, giving it a distinctive rotten-cabbage odor. These effects are temporary and harmless, but they’re real enough that people around you may notice.
Your Clothes Make a Difference
The fabric you wear affects how bad you smell after sweating. Research comparing polyester and cotton shirts worn during exercise found that synthetic fabrics harbor different bacteria than natural fibers, and those differences matter for odor. Micrococcus bacteria, which are strong odor producers, thrived on polyester at concentrations up to 10 million colony-forming units per square centimeter. On cotton, practically no Micrococcus growth occurred. Polyester also supported higher levels of Propionibacterium and Enhydrobacter species.
Cotton wasn’t odor-free, but it encouraged a different microbial community. Staphylococcus hominis, for example, was often able to dominate on cotton but not on synthetic fabrics. The overall pattern is clear: polyester and other synthetic textiles selectively promote the bacteria most associated with strong odor. If you notice your workout clothes smell worse than your cotton T-shirts even after washing, the fiber composition is likely why.
When Body Odor Signals a Health Problem
Sometimes a change in how you smell points to something medical. A fruity or acetone-like scent on the breath is a recognized symptom of diabetic ketoacidosis, a serious complication of diabetes. It happens when the body can’t use glucose for energy and starts breaking down fat at a high rate, producing acids called ketones that accumulate in the blood and alter breath odor. Other symptoms include excessive thirst, frequent urination, nausea, belly pain, and confusion.
Liver and kidney disease can both produce a bleach-like body odor. When these organs can’t filter waste effectively, toxins build up in the bloodstream and get expelled through sweat and breath instead. Gout, overactive thyroid, and certain infectious diseases can also change your scent. A sudden, persistent shift in body odor that doesn’t track with anything you’ve changed in your diet, hygiene, or clothing is worth mentioning to a doctor, especially if it comes with other symptoms.

