Sweating is your body’s primary cooling system. When your internal temperature rises, your brain triggers millions of sweat glands to release fluid onto your skin, where it evaporates and pulls heat away from your body. Each gram of sweat that evaporates removes roughly 2,430 joules of heat energy, making it one of the most efficient cooling mechanisms in the animal kingdom. But temperature control is only part of the story. You also sweat in response to stress, strong emotions, and even spicy food, each for different biological reasons.
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 heat-sensitive neurons constantly monitor your core temperature. When that temperature climbs, whether from exercise, hot weather, or a fever, the hypothalamus sends signals through the sympathetic nervous system to sweat glands across your entire body. Blood vessels near the skin also dilate at the same time, which is why you look flushed when you’re overheating.
The chemical messenger that activates most sweat glands is acetylcholine, released from nerve fibers running alongside the sympathetic nerves. During intense physical activity, stress hormones like adrenaline and noradrenaline can also kick sweat production into gear, which is why a hard workout drenches you faster than sitting in a warm room.
Cooling Through Evaporation
Sweat itself doesn’t cool you. The cooling happens when sweat evaporates off your skin. The phase change from liquid to vapor requires energy, and that energy comes directly from your body’s heat. At skin temperature, each gram of evaporated sweat absorbs about 2,430 joules, roughly the energy needed to lift a one-pound weight 180 feet off the ground. This is why humid days feel so miserable: when the air is already saturated with moisture, sweat can’t evaporate efficiently, and the cooling effect drops dramatically.
Clothing also matters more than most people realize. When sweat evaporates directly from bare skin, nearly all of the cooling energy benefits your body. Adding a single layer of underwear and a permeable outer garment cuts that efficiency by about 11%. If the moisture migrates outward and evaporates from an outer layer instead of your skin, efficiency can plummet by 60% or more. This is why breathable, moisture-wicking fabrics make a noticeable difference during exercise.
Why You Sweat When You’re Nervous
Sweaty palms before a job interview or a first date aren’t about temperature. The sweat glands on your palms and soles respond to mental stress, anxiety, and fear rather than heat. This “emotional sweating” is driven by the limbic system, the brain’s emotional processing center, including the amygdala and a region called the cingulate cortex. These areas send signals down through the spinal cord to activate sweat glands on your hands and feet specifically.
This type of sweating likely has an evolutionary purpose that predates modern anxiety. Slightly moist palms improve grip. For our ancestors, sweaty hands during a stressful, high-stakes moment (climbing, fighting, gripping a tool) would have reduced slippage. Even today, research confirms that palm sweating is triggered by tasks requiring fine motor control, not just emotional distress. Deep breathing alone can activate it.
Spicy Food and Gustatory Sweating
Eating hot chili peppers or Tabasco sauce often produces visible sweating on the forehead and face. This gustatory sweating occurs because capsaicin, the compound that makes peppers feel hot, activates the same nerve pathways your body uses to detect actual heat. Your brain essentially gets tricked into launching a cooling response. Studies monitoring forehead sweating during chili consumption confirmed that the response is mediated by the sympathetic nervous system: when researchers blocked sympathetic nerve signals on one side of the forehead, sweating stopped on that side but continued on the other.
Sweat as a Defense Against Infection
Beyond cooling, sweat plays a surprisingly active role in protecting your skin from bacteria and fungi. Sweat glands secrete antimicrobial peptides, the most studied being dermcidin, which is released onto the skin surface during physical exertion. In the slightly salty, mildly acidic environment of sweat, dermcidin forms tiny channels that puncture the membranes of microbes, allowing water and zinc ions to flood into the cells and kill them.
Dermcidin is effective against a range of common pathogens, including Staphylococcus aureus, E. coli, and the yeast Candida albicans. Body sites that encounter more bacteria tend to have higher concentrations of dermcidin in their sweat, suggesting the system is tuned to where protection is needed most. This makes the thin film of sweat on your skin part of a living immune barrier, not just waste fluid.
Does Sweating Remove Toxins?
The “sweat out toxins” claim is popular in sauna and hot yoga circles, and it’s more nuanced than most people assume. Your liver and kidneys do the vast majority of detoxification work. However, a systematic review examining arsenic, cadmium, lead, and mercury in sweat found that these metals are excreted in measurable quantities through the skin. For people with higher toxic metal exposure, sweat concentrations of some metals matched or exceeded what was found in urine over a 24-hour period.
For cadmium specifically, total daily excretion through sweat was greater than through urine in exposed individuals. Workers exposed to mercury excreted more mercury in 90 minutes of sweating than in 16 hours of urine collection. For lead, sweat and urine concentrations were roughly similar. One study found that prolonged endurance exercise lowered elevated blood lead levels in exposed workers, with researchers suggesting sweat as the likely elimination route since urine levels didn’t change.
That said, for someone with typical, low-level exposure, the amounts excreted in sweat are small. Sweating is a meaningful backup route for people with elevated toxic metal burdens, but it’s not a substitute for the work your kidneys and liver do every day.
Why Humans Sweat More Than Other Animals
Humans are extreme sweaters by mammalian standards. In hot environments, a person walking produces 1.0 to 1.7 liters of sweat per hour. During running, that can spike to 3.2 liters per hour. Most mammals can’t come close to this output, and the reason traces back roughly two million years to our ancestors on the African savanna.
Early humans likely developed high sweating capacity alongside the loss of body hair as adaptations for persistence hunting, a strategy of chasing prey over long distances in midday heat until the animal collapsed from overheating. Most large mammals cool themselves primarily by panting, which works but limits their ability to run and breathe efficiently at the same time. Humans, with millions of eccrine sweat glands spread across nearly hairless skin, could run for hours under the equatorial sun while staying cool enough to keep going. This advantage came with a tradeoff: our exceptional cooling ability makes us highly vulnerable to dehydration, which is why adequate fluid intake during exercise and heat exposure remains critical.
When Sweating Goes Wrong
Some people sweat far more than their body needs for temperature control, a condition called hyperhidrosis. It commonly affects the palms, soles, underarms, and face, and can be severe enough to soak through clothing or make it difficult to grip objects. Hyperhidrosis is often driven by overactive nerve signaling to sweat glands rather than by any underlying disease.
On the opposite end, anhidrosis (the inability to sweat) is rarer but more dangerous, since it removes the body’s primary defense against overheating. It can result from nerve damage, certain genetic conditions, burns, or skin disorders that destroy sweat glands. People who can’t sweat adequately are at serious risk of heat stroke during exercise or hot weather, because they have no efficient way to shed excess body heat.

