Ammonia-smelling underwear almost always traces back to one basic chemical reaction: bacteria on your skin or fabric breaking down urea into ammonia. Your body excretes urea through both sweat and urine, and the groin happens to be warm, moist, and rich in the exact microbes that specialize in this conversion. The smell can range from faintly sharp to eye-wateringly pungent depending on how much urea is available, what you have been eating, and whether a medical issue is amplifying the process.
Where the Ammonia Actually Comes From
Your groin has a high concentration of apocrine sweat glands, the type that releases a thicker, protein-rich fluid compared to the watery eccrine sweat on your forehead or arms. Both types of sweat contain urea, a nitrogen-rich waste product your body generates when it metabolizes protein. Urea itself is mostly odorless. The smell arrives when bacteria that live naturally on genital skin produce an enzyme called urease, which splits urea into carbon dioxide and ammonia. Several common skin residents are capable of this, including certain Staphylococcus species as well as gut-associated bacteria like Proteus and Klebsiella that can colonize the perineal area.1PubMed Central. Involvement of Urease-Producing Bacteria on Genital Skin in Community-Dwelling Women with Incontinence-Associated Dermatitis: A Cross-Sectional Study
Because the groin stays warm and humid for most of the day, bacteria thrive there more than on drier parts of the body. Tight underwear and synthetic fabrics can make this worse by trapping moisture close to the skin and creating an even friendlier environment for microbial activity. The ammonia that results is a gas, and it is volatile enough to hit your nose the moment you pull down your clothes at the end of the day.
High-Protein Diets and Nitrogen in Sweat
If you have recently increased your protein intake, that ammonia smell may get noticeably stronger. The reason is straightforward: the more protein you eat, the more urea your body produces as a metabolic byproduct, and some of that urea exits through your skin. A classic balance study found that dermal nitrogen output tracked directly with dietary protein. On a protein-free diet, participants lost about 112 mg of nitrogen through the skin per day. At a normal intake of around 75 grams of protein, that rose to about 149 mg. But at a very high intake of 600 grams of protein, dermal nitrogen losses jumped to roughly 514 mg per day, driven largely by rising blood urea levels.2The Journal of Nutrition. Sweat and Miscellaneous Nitrogen Losses in Human Balance Studies
That is nearly a fivefold increase from normal to very-high-protein eating. You do not need to be on some extreme bodybuilder diet to notice the effect, either. Even a moderate bump in protein, say from switching to a low-carb regimen or adding extra protein shakes, can push more urea into your sweat and give bacteria more raw material to convert into ammonia. If the smell appeared around the same time you changed your eating habits, that connection is worth considering before assuming something is medically wrong.
Does Working Out Harder Make It Worse?
Intuitively, you might assume that a more intense workout would flood your sweat with more ammonia-producing compounds. The reality is less clear-cut. While exercise obviously increases sweat volume, and more sweat means more total urea on the skin, the concentration of metabolites in your sweat does not reliably scale with how hard you push yourself. Research on sweat composition has found that metabolite concentrations are not a dependable marker for exercise intensity or other physiological stressors.3SpringerLink (European Journal of Applied Physiology). Physiological mechanisms determining eccrine sweat composition
So a brutal interval session does not necessarily produce sweatier, smellier underwear than a moderate jog. What matters more is the total volume of sweat that accumulates in the fabric over time, how long it sits there, and how well the fabric breathes. That said, dehydration can concentrate urea in your sweat somewhat, so staying hydrated during exercise may dilute the available urea and reduce the ammonia that bacteria can produce from it afterward.
When Urine Is the Culprit
Not every ammonia smell in underwear comes from sweat. Small amounts of urine can end up on fabric throughout the day, and urea is the single most abundant organic compound in urine. Even a tiny amount of post-void dribble, common in both men and women, gives urease-producing bacteria a concentrated feast.
Research on incontinence patients showed this process clearly. When urine contacted standard diapers, bacterial ureases rapidly converted urea into ammonia, producing the sharp smell familiar to anyone who has been near aged urine. The ammonia production was measurable by infrared spectrophotometry and was significant enough that researchers tested copper-acetate-impregnated diapers to suppress it, which did reduce ammonia output compared to standard diapers.4Karger (Gerontology). The urine smell around patients with urinary incontinence. The production of ammonia in ordinary diapers and in diapers impregnated with copper acetate
You do not need a diagnosed incontinence condition for this to be relevant. A few drops of urine retained after wiping, light stress incontinence during coughing or sneezing, or even normal vaginal discharge mixing with trace urine near the urethra can introduce enough urea to generate that ammonia punch after a few hours of warmth and bacterial activity.
Urinary Tract Infections
A urinary tract infection can amplify the ammonia smell significantly, because UTIs often involve the very bacteria that are best at producing urease. When urease-producing bacteria colonize the urinary tract, they break down urea in the urine into ammonium ions. This raises the urine’s pH, making it more alkaline. In that alkaline environment, ammonium ions convert to ammonia gas, which is what you smell.5PLoS One. Hyperammonemia in Urinary Tract Infections
If your underwear suddenly smells much more strongly of ammonia than usual, and especially if you are also experiencing burning during urination, increased urgency, cloudiness in urine, or pelvic discomfort, a UTI is worth ruling out. The classic culprits include Proteus mirabilis and certain Klebsiella species, both prolific urease producers. These infections can make the urine itself smell distinctly of ammonia before it even reaches your underwear.
Bacterial Vaginosis
For people with vaginas, bacterial vaginosis is another common source of strong, unpleasant odors in underwear. BV occurs when the balance of vaginal bacteria shifts away from protective Lactobacillus species toward a mix of anaerobic organisms. The resulting discharge often carries a fishy rather than strictly ammonia-like smell, but the two can be confused, and BV can coexist with the urea-to-ammonia process happening on surrounding skin.
BV-associated bacteria such as Prevotella bivia and Sneathia amnii produce various nitrogen-containing compounds, including amines, that contribute to a sharp or unpleasant odor. If the smell is more fishy than chemical, or worsens after sex or during menstruation, BV is a likely contributor. It is the most common vaginal condition in reproductive-age women and is treatable with antibiotics, so if the smell is persistent and accompanied by thin, grayish discharge, getting tested makes sense.
Kidney Function and Systemic Causes
When your kidneys are not filtering waste efficiently, urea and other nitrogen-containing compounds build up in the blood. The body then tries to shed some of that excess through alternative routes, including the skin. In kidney disease, elevated blood urea nitrogen leads to higher urea concentrations in sweat. Animal models of uremia showed that sweat urea nitrogen in uremic subjects was more than double the level found in healthy controls.6Wiley Online Library (Physiological Reports). Urea transporters and sweat response to uremia
Ammonia is also recognized as one of the inorganic uremic toxins that accumulate in the body when kidney function declines.7PubMed Central. Gases as uremic toxins: is there something in the air? In advanced kidney disease, some patients develop what older medical texts called “uremic frost,” a visible deposit of urea crystals on the skin. Long before things get that severe, though, you might notice your sweat and the clothing closest to your skin smell more strongly of ammonia. This is your body offloading nitrogen waste through the skin because the kidneys are not keeping up.
This is one reason the smell should not be dismissed entirely if it is persistent and strong. For most people, ammonia-smelling underwear is a benign byproduct of sweat and bacteria. But if the smell is new, intense, and not explained by diet or exercise, and especially if it comes alongside fatigue, swelling in the legs, or changes in urination patterns, checking kidney function with a simple blood test is reasonable.
Other Medical Conditions Worth Knowing About
Uncontrolled diabetes can alter body odor in ways that sometimes register as ammonia-like. When blood sugar is poorly managed, the body may break down more protein and fat for energy, increasing urea production. Diabetic ketoacidosis produces a fruity or acetone-like smell on the breath, which some people perceive as chemical or sharp and can confuse with ammonia. The two smells are technically different, acetone versus ammonia, but in the warm, enclosed environment of underwear, they can blend together.
Liver disease can also disrupt the body’s ability to process ammonia. Normally, the liver converts ammonia from protein metabolism into urea for excretion by the kidneys. When liver function is impaired, ammonia levels in the blood can rise, and some of that ammonia finds its way into sweat. This is uncommon as a first or sole symptom, but it can contribute to a generally more pungent body odor.
Hyperhidrosis, or excessive sweating, does not change the chemistry of your sweat in a fundamental way, but it dramatically increases the volume of urea-rich fluid sitting against your skin and underwear. More sweat means more substrate for bacteria, which means more ammonia. People with hyperhidrosis often notice that odor problems are concentrated in the groin, underarms, and feet precisely because those areas combine heavy sweating with enclosed environments.
Fabric and Laundry Factors
Your choice of underwear fabric plays a larger role than most people realize. Synthetic materials like polyester and nylon are hydrophobic, meaning they repel water but trap oils and bacteria in their fibers. Cotton breathes better and absorbs moisture more readily, which can help wick sweat away from the skin. However, cotton also holds moisture for longer once wet, which can extend the window during which bacteria are active.
Old underwear that has been through hundreds of wash cycles can harbor residual bacteria in the fibers even after laundering, especially if washed at low temperatures. Bacteria that survive the wash can start producing ammonia as soon as you put the garment on and begin sweating. Washing underwear in hot water, using an oxygen-based bleach, or adding white vinegar to the rinse cycle can help kill lingering bacteria more effectively than a cold-water wash with standard detergent alone.
One practical detail that matters: don’t leave sweaty underwear sitting in a hamper or gym bag for days. The longer damp fabric sits at room temperature, the more time bacteria have to convert urea into ammonia, and the deeper that smell embeds itself into the fibers. Rinsing underwear with cold water shortly after wearing and hanging it to dry before tossing it in the laundry can prevent the worst of the buildup.
Dehydration and Everyday Triggers
Dehydration concentrates virtually everything in your sweat and urine. When you are not drinking enough water, the urea in your sweat is less diluted, giving bacteria a richer concentration to work with. Your urine also becomes more concentrated, so any trace that ends up on underwear carries a heavier load of urea. People often notice the ammonia smell more during hot weather or after travel, both situations where dehydration is common and people may not realize how little fluid they have taken in.
Certain medications can also contribute. Diuretics increase urine production and can lead to mild dehydration despite frequent urination. Some supplements, particularly high-dose B vitamins and creatine, can change the smell of urine and sweat in ways that overlap with or intensify ammonia. If the smell appeared around the time you started a new supplement, that is worth noting.
Menstrual cycles can affect vaginal pH and discharge volume, both of which influence how underwear smells at different points in the month. Around ovulation and just before menstruation, discharge tends to increase, and pH shifts can create an environment where odor-producing bacteria are more active. This is a normal physiological fluctuation rather than a sign of infection, though it can be hard to tell the difference without paying attention to other symptoms.
When to See a Doctor
Most of the time, ammonia-smelling underwear is a cosmetic annoyance, not a medical emergency. But certain patterns suggest something beyond normal sweat and bacteria. You should consider getting checked if the smell is dramatically stronger than anything you have experienced before and persists for more than a week or two despite good hygiene. Other signals that warrant a visit include pain or burning during urination, unusual discharge in color or consistency, persistent fatigue or unexplained swelling, or a history of kidney or liver problems.
A urinalysis and basic blood panel can rule out the most concerning causes quickly. UTIs are diagnosed with a simple urine culture. Kidney function shows up on a basic metabolic panel. BV is diagnosed with a vaginal swab. None of these tests are invasive or expensive, and catching a UTI or early kidney issue beats worrying about what the smell means.
Practical Steps That Actually Help
If you have ruled out medical causes and just want to manage everyday ammonia odor in your underwear, the strategy is to starve bacteria of their raw materials and limit how long they get to work.
- Stay hydrated: Dilute the urea in your sweat and urine by drinking adequate water throughout the day, especially before and during exercise.
- Moderate protein if extreme: You do not need to go low-protein, but if you are consuming substantially more than your body requires, some of that excess nitrogen ends up on your skin.
- Wash the groin area daily: Gentle cleansing with mild, unscented soap reduces the bacterial population that converts urea into ammonia. Avoid harsh antibacterial soaps that can disrupt protective flora.
- Change underwear after heavy sweating: A fresh pair after a workout or a hot commute resets the bacterial clock.
- Wash underwear in warm or hot water: Cold-water cycles may not kill all odor-producing bacteria embedded in fabric fibers.
- Choose breathable fabrics: Moisture-wicking blends designed for athletic wear can reduce how long sweat sits against the skin, though they should still be washed promptly after use.
Panty liners can absorb trace urine and discharge before they reach the underwear fabric, which helps for people who experience light leakage throughout the day. Changing the liner midday is more effective than relying on one for a full twelve hours. For people dealing with stress incontinence, pelvic floor exercises can reduce leakage over time, which directly cuts down on the urea available for bacterial conversion in underwear.