Your body sweats to cool itself down. When your internal temperature rises, your brain signals millions of tiny glands in your skin to release fluid onto the surface, where it evaporates and pulls heat away from your body. This cooling system is remarkably powerful: every gram of sweat that evaporates removes about 580 calories of heat energy from your skin. But temperature regulation isn’t the only reason you sweat. Stress, spicy food, and certain medical conditions can all trigger the process through different pathways.
How Your Brain Controls Sweating
The process starts in a region of the brain called the hypothalamus, which acts as your body’s thermostat. Specialized neurons there constantly monitor your core temperature. When it climbs too high, whether from exercise, a hot day, or a fever, these neurons fire signals down through the sympathetic nervous system to your sweat glands. The chemical messenger that flips the switch at the gland itself is acetylcholine, released by nerve endings right next to each gland.
Once activated, the glands pump a dilute fluid to the skin’s surface. As that fluid evaporates, it carries a significant amount of heat with it. This is the same principle behind why stepping out of a pool on a breezy day makes you feel cold. An acclimated adult can produce up to about 50 milliliters of sweat per minute, which translates to roughly 3 liters per hour during intense exercise in the heat.
Two Types of Sweat Glands, Two Different Jobs
You have two kinds of sweat glands, and they serve very different purposes.
Eccrine glands are your primary cooling system. They cover nearly your entire body, with especially high concentrations on your palms, soles, forehead, and upper limbs. These glands produce the clear, watery sweat you notice during a workout or on a hot afternoon. They respond directly to rising body temperature and are responsible for the vast majority of your sweat output.
Apocrine glands are concentrated in the armpits and groin. They don’t play much of a role in temperature regulation. Instead, they produce a thicker secretion that likely serves a pheromone-related function, a holdover from our evolutionary past. Apocrine sweat itself is nearly odorless. The familiar smell of body odor comes from bacteria on the skin breaking down the compounds in apocrine sweat. A specific protein encoded by the ABCC11 gene controls the production of these odor precursors, which is why body odor intensity varies from person to person.
Why You Sweat When You’re Nervous
You’ve probably noticed that anxiety, fear, or embarrassment can make your palms damp and your forehead bead with sweat, even in a cool room. This is emotional sweating, and while it uses the same chemical signaling (acetylcholine released by sympathetic nerves), the trigger is psychological rather than thermal. Stress, anxiety, excitement, anger, and fear can all cause a surge in sympathetic nervous system activity that activates sweat glands, particularly on the palms, soles, underarms, and forehead.
Emotional sweating likely evolved as part of the fight-or-flight response. Damp palms may have improved grip for climbing or grasping tools, while the broader sweat response prepared the body for the physical exertion that typically followed a threat. Today, the same system kicks in during a job interview or before a public speech, which is less useful but entirely normal.
Why Spicy Food Makes You Sweat
Capsaicin, the compound that gives chili peppers their burn, triggers sweating by essentially tricking your nervous system. It activates the same pain receptors in your mouth and skin that normally respond to actual heat. Your central nervous system can’t easily distinguish between a chemical stimulus and a genuine temperature spike, so it launches the full heat-response package: flushing, blood vessel dilation, and sweating. Your body is reacting to a false alarm, cooling you down from a burn that isn’t really there.
This is called gustatory sweating, and it can also happen in anticipation of eating. For most people it’s mild and limited to the face and scalp. In some cases, particularly after injury or surgery near the salivary glands, gustatory sweating can become exaggerated, a condition known as Frey syndrome.
What’s Actually in Your Sweat
Sweat is mostly water, but it carries a mix of electrolytes and waste products. Sodium is the most abundant electrolyte, with concentrations typically ranging from 10 to 90 millimoles per liter depending on the individual, their fitness level, and how acclimated they are to heat. People who are well-adapted to hot environments tend to produce more dilute sweat, conserving sodium. Potassium levels stay relatively stable at around 2 to 10 millimoles per liter regardless of how fast you’re sweating. Small amounts of urea and other metabolic byproducts also come out in sweat, though the kidneys handle the heavy lifting when it comes to waste removal.
The wide range in sodium concentration explains why some people end up with white salt stains on their workout clothes while others don’t. It also explains why electrolyte needs during prolonged exercise vary so much from person to person.
The Evolutionary Edge of Sweating
Humans are among the most efficient sweaters in the animal kingdom, and that’s not an accident. We have relatively sparse body hair and an unusually high density of eccrine sweat glands compared to other mammals. This combination allows heat to leave the body rapidly through evaporation, something a fur-covered animal simply can’t match.
Some anthropologists believe this gave early humans a critical advantage as persistence predators. Rather than relying on speed to catch prey, our ancestors could chase animals over long distances in the midday heat, staying cool while their prey overheated. Most large mammals cool themselves primarily by panting, which is far less efficient than sweating across a large, exposed skin surface. Over time, the prey would collapse from heat exhaustion while the human hunter kept going. Whether or not persistence hunting was the primary driver, our sweating capacity is a genuinely unusual trait among mammals and one of the key adaptations that allowed humans to thrive in hot climates.
When Sweating Becomes a Medical Issue
Hyperhidrosis is the clinical term for excessive sweating that goes beyond what’s needed for temperature regulation. It can be focal, affecting specific areas like the palms, underarms, soles, or forehead, or generalized, affecting most of the body. Focal hyperhidrosis is often driven by an overactive sympathetic nervous system response to emotional triggers, and it tends to run in families. It commonly starts in adolescence and can significantly affect quality of life, making everyday tasks like gripping a pen or shaking hands uncomfortable.
Generalized excessive sweating has a broader list of potential causes. Hormonal shifts during menopause or pregnancy are common triggers. An overactive thyroid gland can ramp up sweating by raising metabolic rate. Certain infections, including tuberculosis, can cause drenching night sweats. Some medications, particularly antidepressants and anti-inflammatory drugs, list excessive sweating as a side effect. Caffeine and opioid withdrawal can also trigger it. Rarely, generalized sweating signals something more serious like lymphoma, so new-onset sweating that soaks your sheets at night or has no obvious explanation is worth getting evaluated.
On the opposite end of the spectrum, some people sweat too little. This can happen with certain nerve disorders, skin conditions, or as a side effect of medications that block acetylcholine. Insufficient sweating is dangerous because it removes your body’s primary cooling mechanism, putting you at risk for heat exhaustion and heatstroke in warm conditions.

