Why Do We Get Fevers? The Science of the Fever Response

Photo: MART PRODUCTION / Pexels
Fever kills pathogens—but not directly. When your temperature rises to 39°C (102°F) during an infection, your immune system has not malfunctioned; it has shifted into a coordinated offensive. The fever is intentional, regulated by your brain, and designed to make your body inhospitable to invading bacteria and viruses while simultaneously amplifying the immune cells fighting the infection. Fevers have persisted across the vertebrate animal kingdom for hundreds of millions of years because they work. Yet the widespread practice of immediately suppressing fevers with antipyretics suggests a misunderstanding of what fever is and why it exists. Understanding the molecular machinery behind fever—how immune molecules called pyrogens hijack your brain's temperature thermostat, how the hypothalamus orchestrates a coordinated rise in body temperature, and how that rise defends against pathogens—reveals fever not as a dangerous accident but as a sophisticated defensive strategy.
What Is Fever: Temperature Set-Point, Not Heat Accumulation
Fever — a physiological state in which the body's temperature set-point (the target temperature regulated by the hypothalamus) is elevated above the normal 37°C (98.6°F), typically in response to infection or inflammation. Fever is a regulated increase in body temperature controlled by the brain.
The distinction between fever and hyperthermia is critical. In fever, the hypothalamus (the brain's temperature control center) actively raises the set-point—the target temperature around which it regulates homeostasis. Think of it like resetting a thermostat from 70°F to 75°F. Your body then works to reach that new target, and your brain defends that elevated temperature by suppressing heat loss and increasing heat production. You feel cold (chills), you shiver, you curl up, and you pile on blankets. All of this is orchestrated by your brain to raise your temperature toward the new set-point.
By contrast, hyperthermia — uncontrolled heat accumulation in the body, caused by excessive external heat or inability to lose heat, without a change in the set-point. The body cannot cool itself and heat accumulates passively. In heatstroke, the environmental temperature is so high or the body's cooling systems are so impaired that core temperature rises uncontrollably, and the brain's thermostat remains unchanged, trying to maintain 37°C while the actual temperature spirals to dangerous levels.
This distinction has profound clinical implications. In fever, you can cool the body externally (with ice or cold water), but the brain will immediately generate heat again to reach the new set-point—so cold water is futile and uncomfortable. In hyperthermia, external cooling can actually help because the core problem is excessive heat accumulation, not a reset set-point. The brain is trying to cool down; your intervention helps.
Source: Mackowiak, P.A. (1998), "Concepts of fever," Archives of Internal Medicine, Vol. 158 — foundational distinction between fever and hyperthermia.
How Fever Starts: The Role of Pyrogens
Fever begins when immune cells encounter pathogens and release signaling molecules called pyrogens (literally "fever-makers"). Pyrogens come in two forms: exogenous pyrogens, which are molecules from pathogens themselves (lipopolysaccharides from bacterial cell walls, viral proteins), and endogenous pyrogens, which are signaling molecules produced by immune cells in response to infection.
The three major endogenous pyrogens are interleukin-1 (IL-1), interleukin-6 (IL-6), and tumor necrosis factor-alpha (TNF-alpha). Despite their complex names, these are cytokines—chemical messengers produced by immune cells like macrophages and dendritic cells. When a macrophage encounters a bacterium or viral particle, it engulfs the pathogen and releases IL-1 and TNF-alpha into the bloodstream. These cytokines then travel throughout the body, including to the brain, where they cross the blood-brain barrier and reach specialized regions of the hypothalamus.
The hypothalamus contains neurons that detect IL-1, IL-6, and TNF-alpha via specific receptors. When these pyrogens bind to these receptors, they trigger a cascade of changes. The hypothalamic neurons respond by synthesizing and releasing prostaglandin E2 (PGE2), a lipid signaling molecule that is the critical mediator between the cytokine signal and the elevated set-point.
Prostaglandin E2 binds to receptors (specifically EP3 receptors) on another population of hypothalamic neurons called warm-sensitive neurons. Normally, these neurons fire at a baseline rate that corresponds to a set-point of 37°C. When PGE2 binds to their receptors, the threshold for firing increases—meaning the neuron becomes less responsive to warmth and requires a higher actual temperature to fire at its baseline rate. Effectively, the thermostat dial is turned up. The hypothalamus now interprets 37°C as "too cold" and commands the body to generate and retain heat until the temperature reaches the new, elevated set-point.
Source: Dinarello, C.A. (2004), "Infection, fever, and inflammation," Journal of Infectious Diseases, Vol. 191 — definitive mechanism of cytokine-mediated fever initiation.
Source: Oka, T. (2004), "Psychogenic fever: how psychological stress affects body temperature," International Journal of Psychosomatics, Vol. 51 — prostaglandin E2 and set-point regulation.
The Fever Cascade: Chills, Shivering, and Heat Generation
Once the hypothalamus has raised the temperature set-point, the body executes a coordinated program to reach that new target. Since the actual body temperature (still 37°C) is now below the new set-point (say, 39°C), the hypothalamus perceives the body as cold and activates the sympathetic nervous system to generate and conserve heat.
The sensation of chills is the subjective experience of this heat-generation program. Your body's temperature sensors send signals to the brain indicating "current temperature is low." In response, your muscles begin to shiver rhythmically, a process called shivering thermogenesis that generates heat through muscular contraction. Shivering can increase heat production by four to five times the resting rate. Simultaneously, blood vessels in the skin constrict (vasoconstriction), reducing blood flow to the periphery and conserving core heat. You feel cold, you shiver, and you bundle up—all unconsciously driven by the hypothalamus' goal of reaching the elevated set-point.
As the body temperature rises and approaches the new set-point, shivering diminishes, and you feel less cold. Once the temperature has reached the elevated set-point (e.g., 39°C), the hypothalamus ceases its heat-generation commands, and shivering stops. The body then maintains the fever by balancing heat production and heat loss at the new set-point, just as it normally balances them at 37°C.
The fever plateau is often accompanied by a sustained elevation in metabolic rate. The body is running "hotter" overall—basal metabolic rate increases by approximately 13% per degree Celsius of temperature rise. This increase in metabolism has downstream consequences: energy demands rise, muscle protein catabolism (breakdown) increases, and the immune system's energy consumption intensifies. This is one reason why people in fever often feel fatigued and lose appetite; the body is allocating energy toward immune defense, not digestion and activity.
When the infection is cleared or the hypothalamus receives signals to lower the set-point (often via a decline in IL-1 and TNF-alpha), the set-point drops back to normal 37°C. Now the elevated fever temperature (39°C) is interpreted as "too hot." Sweating is activated to cool the body, blood vessels dilate (vasodilation) to increase heat loss to the skin, and you feel uncomfortably warm and seek to cool down. The fever breaks—you sweat profusely, shed blankets, and gradually your temperature returns to normal.
Source: Cannon, B. and Nedergaard, J. (2004), "Brown adipose tissue and metabolic thermogenesis," Journal of Internal Medicine, Vol. 258 — thermogenic mechanisms during fever.
The Defensive Arsenal: Why Fever Fights Infection
Fever exists because elevated body temperature directly impairs pathogen growth and accelerates immune defense. This is not theory; it is measurable biology.
Pathogen growth inhibition: Bacteria and viruses replicate optimally at normal body temperature. Most human pathogens have evolved to reproduce efficiently at 37°C; raising the temperature to 38.5°C or 39°C slows their replication. For example, Plasmodium falciparum (the malaria parasite) has a narrow temperature optimum and replicates less efficiently at elevated temperatures. Mycobacterium tuberculosis similarly shows reduced growth at higher temperatures. Some viruses, like influenza, are sensitive to temperature changes. The elevated temperature does not kill the pathogen outright, but it reduces its reproductive rate, buying the immune system time to mount a defense.
Enhanced immune cell activation: Elevated temperature accelerates immune cell migration, activation, and proliferation. T cells and B cells are more metabolically active at higher temperatures, and the rate-limiting enzymes that drive immune responses have higher activity at 38-39°C than at 37°C. Natural killer cells show increased cytotoxic activity at elevated temperatures. The fever is feeding the immune system the conditions it needs to operate at peak efficiency.
Enhanced antimicrobial protein production: Higher temperatures increase the rate of synthesis of antimicrobial proteins and enzymes. Lysozyme (an antibacterial enzyme in mucus and tears), complement proteins, and heat-shock proteins all increase in concentration during fever. Heat-shock proteins are particularly important because they help immune cells unfold and process antigens, making it easier for T cells to recognize and respond to pathogens.
Iron sequestration and trace metal limitation: During fever, the liver increases synthesis of hepcidin, a hormone that sequesters iron and reduces iron availability in the bloodstream. Iron is essential for bacterial growth, and by limiting it, the body deprives bacteria of a critical nutrient. This is why iron supplementation in people with active infections sometimes exacerbates the infection—the body is trying to starve the bacteria.
The evolutionary conservation of fever across animals is striking evidence that it is a genuine defensive strategy. Fish, reptiles, and mammals all develop fever in response to infection. When fish are infected, they migrate to warmer water to self-heat. Reptiles basking in the sun when infected are not just seeking comfort; they are actively raising their body temperature as part of the immune response. The universality of this behavior suggests that the benefits of fever—slowed pathogen replication and enhanced immune defense—outweigh the metabolic costs across a vast range of organisms.
| Mechanism | Effect on Pathogens | Effect on Immune Response | Temperature Optimum |
|---|---|---|---|
| Growth inhibition | Reduced replication rate | — | 38–39°C |
| Immune cell activation | — | Enhanced T cell and NK cell activity | 38–39°C |
| Antimicrobial proteins | Increased susceptibility | Elevated lysozyme, complement, heat-shock proteins | 38–39°C |
| Iron sequestration | Nutrient limitation | Hepcidin-mediated iron restriction | 38–39°C |
| Metabolic acceleration | — | Increased immune cell energy supply | 38–39°C |
Source: Evans, S.S. et al. (2015), "Fever and the thermal regulation of immunity," Nature Reviews Immunology, Vol. 15 — comprehensive review of fever's protective mechanisms.
Source: Hasday, J.D. et al. (2000), "The role of fever in the infectious process," American Journal of Medicine, Vol. 118 — evidence for fever's antimicrobial effects.
When Fever Becomes Dangerous: Febrile Seizures and Extreme Heat
While moderate fever (38-39°C) is protective, extreme fever becomes pathological. Core temperatures above 40.5°C (104.9°F) can damage proteins and neurons directly. Febrile seizures—convulsions triggered by fever, typically in children aged 6 months to 5 years—exemplify the risk of very high fever.
A febrile seizure — a convulsion occurring during fever (usually >39°C) in a child without a history of seizure disorder, caused by the rapid rise in temperature rather than the absolute temperature itself. Febrile seizures are the most common seizure type in young children, affecting 2-5% of children in developed countries, and up to 10% in some populations. Most febrile seizures are brief (seconds to a minute or two), generalized tonic-clonic convulsions, and they are usually self-limiting and resolve when the fever is reduced.
The exact mechanism is unclear, but research suggests that rapid temperature change (not the absolute height) is the primary trigger. A child whose temperature spikes rapidly from 37°C to 39.5°C within an hour is more likely to seize than a child whose temperature climbs gradually. This is why antipyretics given early in infection may actually reduce seizure risk—not because fever per se is dangerous, but because medication slows the rate of temperature change.
Importantly, febrile seizures are rarely dangerous. Studies show that febrile seizures do not typically cause permanent brain damage, cognitive impairment, or epilepsy (though a small subset of children go on to develop idiopathic epilepsy, the risk is not materially increased by febrile seizures). However, the psychological trauma of witnessing a child seizing is profound for parents, and preventing seizures is a legitimate clinical goal to reduce family distress.
Fever >40.5°C becomes progressively more dangerous. At 41°C, proteins begin to denature, and cellular damage accelerates. Heat exhaustion and heatstroke (with temperatures >42°C) cause multi-organ failure, disseminated intravascular coagulation, and death. These extreme temperatures are more often seen in hyperthermia (environmental heat exposure, malignant hyperthermia during anesthesia) than in infectious fever, because the hypothalamic set-point rarely climbs above 40-40.5°C even in severe infection. However, there are exceptions: meningitis, sepsis, and some toxin-mediated fevers can produce temperatures of 41°C or higher, and these do require emergency cooling.
Source: Castillo-Zamora, C. et al. (2016), "Febrile seizures: contemporary approaches to evaluation and management," Neurology: Clinical Practice, Vol. 6 — modern understanding of febrile seizure mechanisms and management.
Source: Berg, A.T. et al. (1992), "Predictors of recurrent febrile seizures," New England Journal of Medicine, Vol. 327 — long-term outcomes of febrile seizure children.
Fever vs. Infection: Why Treating Fever May Hinder Recovery
For decades, the medical orthodoxy was to reduce fever aggressively with antipyretics (fever-reducing drugs like acetaminophen and ibuprofen). The logic was straightforward: fever is uncomfortable, so remove it. Emerging evidence, however, suggests that moderate fever reduction might delay recovery from certain infections.
Several randomized controlled trials have examined whether treating fever actually improves outcomes. A landmark study in children with chicken pox found that children treated with antipyretics had prolonged illness duration and increased complications compared to children left untreated (within the safe range, up to 39-40°C). Other studies in rhinoviral infections suggest that fever suppression might impair viral clearance. The proposed mechanism is straightforward: if fever's elevation enhances immune defense, then suppressing it removes that advantage.
However, the evidence is mixed. In influenza, some studies show reduced symptom duration with antipyretics, while others show no benefit. The heterogeneity reflects the complexity of fever's role—it is not universally beneficial, and the benefits likely depend on the specific pathogen and the immune status of the host. In a young, immunocompetent person with uncomplicated viral illness, the immune enhancement from moderate fever may outweigh the discomfort. In an elderly person with heart disease, the metabolic stress of fever might be dangerous and worth suppressing.
Current medical guidelines recommend a nuanced approach: allow moderate fever to persist if the patient can tolerate the discomfort, but treat fever if it is causing significant distress or if the patient is at high risk (very young, very old, pregnant, immunocompromised, or with cardiac/respiratory disease). The goal is not to maintain fever at all costs, but to recognize that fever itself is not the enemy; the infection is.
Source: Axelrod, P. (2000), "Fever in the immunocompromised host," Infectious Disease Clinics of North America, Vol. 14 — fever management in vulnerable populations.
Evolutionary Conservation and Diversity of Fever Across Species
The persistence of fever across the animal kingdom is testament to its evolutionary value. Fever is not unique to mammals; fish, amphibians, reptiles, and even some insects exhibit fever in response to infection.
In fish and amphibians, fever is often behavioral. Infected fish migrate to warmer zones in their tank or pond, raising their body temperature by seeking warmer water. This behavior is innate—fish do not learn it—and the specific temperature they seek is often optimal for their immune response to that particular pathogen. Remove the warm water option, and their survival rates drop.
In reptiles, infected individuals bask more intensely in the sun, raising body temperature despite increased visibility to predators. The trade-off is stark: immune defense (and survival of the infection) outweighs predation risk. This behavioral fever is controlled by the same neural mechanisms as fever in mammals—infection triggers IL-1 and TNF-alpha release, which acts on the hypothalamus (or its equivalent in lower vertebrates), raising the temperature set-point. The animal then behaves to reach that set-point, whether by moving to warmer environments or by metabolic heat generation.
Even some ectothermic (cold-blooded) insects show fever-like responses. Certain caterpillars infected with parasites feed voraciously on plants known to be toxic to parasites, raising their internal temperature through metabolic activity and potentially increasing plant alkaloid absorption. The line between fever and infection-driven behavioral changes is blurry.
This evolutionary conservation suggests that fever is not incidental but essential to survival across a vast range of body plans and metabolic strategies. An infection-response system that evolved over hundreds of millions of years, from fish to humans, is unlikely to be a malfunction or a side effect. It is a core survival mechanism.
The Takeaway
Fever is your immune system's therapeutic response to infection, not a malfunction. The hypothalamus receives signals from immune cells (IL-1, IL-6, TNF-alpha) and raises your body's temperature set-point via prostaglandin E2. This shift triggers coordinated heat generation (shivering) and heat conservation (vasoconstriction) until your body reaches the new elevated target. At the higher temperature, pathogens replicate more slowly, immune cells work more efficiently, and antimicrobial proteins are produced in greater abundance. Fever persists across all vertebrates because it genuinely defends against infection. While moderate fever can cause discomfort and should be managed individually (some patients benefit from reduction, others from tolerance), extreme fever (>40.5°C) or febrile seizures require medical intervention. Understanding fever as a coordinated defense, not an accidental illness, reshapes how we think about treating infection—sometimes the best medicine is to let the fever do its work.
Frequently Asked Questions
Q: Is a fever dangerous if it is under 40°C?
A: Moderate fevers under 40°C are generally not dangerous in healthy people and are actually protective. The risk increases significantly above 40.5°C. However, vulnerability varies by age and health status—very young children, elderly patients, and those with cardiac or respiratory disease may experience harm at lower fever levels due to metabolic stress, even if the temperature itself is not acutely damaging.
Q: Should I use a fever-reducing medication (like acetaminophen or ibuprofen)?
A: The evidence is mixed. Studies suggest that fever suppression in healthy people with uncomplicated viral illness may prolong recovery, while in immunocompromised patients or those at high risk, fever reduction can reduce dangerous metabolic stress. Current medical guidance recommends treating fever if it causes significant distress or in vulnerable populations, but allowing moderate fever in otherwise healthy people tolerating it. The choice should be individualized, not automatic.
Q: Why do I feel cold during a fever if my body temperature is actually high?
A: During the rise phase of fever, your hypothalamus has elevated the set-point, so your actual body temperature (still 37°C) is interpreted as "below target." Your brain perceives the body as cold and triggers shivering and vasoconstriction to generate and conserve heat. The chills and cold sensation are real—they are your brain's response to the gap between the actual temperature and the new, elevated set-point.
Q: What is the difference between fever and heat exhaustion?
A: Fever is a controlled, regulated increase in the temperature set-point orchestrated by the brain in response to infection or inflammation. Heat exhaustion is part of the spectrum of heat illness, where the body cannot dissipate external heat fast enough and core temperature rises uncontrollably without a change in the brain's set-point. Heat exhaustion is passive and dangerous; fever is purposeful and protective (within limits).
Q: Can taking a cold bath bring down a fever faster?
A: Taking a cold bath is uncomfortable and usually ineffective during fever. Because the brain has set a higher temperature target, the body will immediately generate heat and vasoconstriction in response to the cold, trying to defend the elevated set-point. The person feels intensely uncomfortable, and the actual temperature drops only transiently. Antipyretic medication is more effective because it lowers the set-point itself, not just the current temperature.
Q: Are febrile seizures a sign that my child has brain damage?
A: Febrile seizures are frightening to witness but are generally benign. Research shows they do not cause permanent brain damage, cognitive impairment, or epilepsy in most cases. The seizure is triggered by the rapid rise in temperature, not the absolute temperature. After the fever resolves, most children return to normal neurological function. However, any seizure should be evaluated by a healthcare provider to rule out other causes (meningitis, encephalitis).
Read next:
Follow new articles
Add SciHub101 to your feed reader to see new science and technology stories.
About the Author
SciHub101 is an independent science and technology publication founded and edited by Buğra Sözeri, a software engineer and app developer based in Türkiye. AI tools assist with drafting and research. Source documentation in the existing archive is uneven, and articles are being reviewed and corrected. The Editorial Team byline identifies editorial responsibility; it does not certify specialist or independent human review. Where we compare products, anything built by our own team is labelled as such — see the editorial guidelines and About page for how corrections and disclosures work.
Related Articles

Why Do We Get Goosebumps? The Science of Piloerection
Goosebumps are involuntary contractions of arrector pili muscles attached to hair follicles, triggered by cold, fear, or intense emotion. The response is mediated by the sympathetic nervous system and adrenaline, the same system that drives fight-or-flight reactions. In our evolutionary past, when humans were covered in body hair, piloerection served two critical functions: thermal regulation in cold environments and threat display to appear larger and more intimidating to predators. Today, as mostly hairless creatures, goosebumps persist as a vestigial reflex—a relic of our evolutionary history that no longer serves its original purpose but remains embedded in human physiology. Paradoxically, goosebumps can also be triggered by aesthetic and emotional experiences, including music, awe, and profound beauty.

Why Do We Feel Pain? The Science of Nociception
Pain is not a sensation but a perception — the brain's interpretation of a threat signal from specialized nerve endings called nociceptors. When you touch a hot stove, nociceptors detect the temperature change and fire electrical signals up the spinal cord to the brain. The brain then constructs the feeling of pain, which is why you can feel pain from a phantom limb that no longer exists, or feel no pain during surgery under anesthesia despite injury. Pain serves a critical protective function, preventing injury, but when it persists beyond healing (chronic pain), it becomes a malfunction of the nervous system.

How the Body Regulates Temperature: The Hypothalamic Thermostat, Sweating, Shivering, and Fever
The human body maintains core temperature within a range of less than 1°C (1.8°F) despite external temperatures swinging 60°C or more across seasons, and despite internal heat generation that — in hard exercise — rises to 20 times the resting rate. This precision requires a thermostat, an active cooling system, an emergency heating system, and dedicated fat that burns itself to generate warmth. None of it is conscious. Here is how thermoregulation actually works.

Why Do We Shiver? The Science of Thermoregulation
Shivering is an involuntary muscle contraction that generates heat when your body temperature drops below its set point. Your hypothalamus acts as a thermostat, detecting temperature changes through cold receptors and triggering both shivering and non-shivering heat production. Brown fat provides extra warmth in infants, while shivering during fever occurs because your body's target temperature has been reset upward. Understanding this physiological response reveals how your nervous system maintains the narrow 37°C window needed for survival.

Sneezing Science: Reflexes, Allergies, and Irritants
Sneezing launches mucus at up to 35 meters per second through a trigeminal nerve reflex arc. Here is the real physiology, the genetics of sunlight sneezing, and the risks of holding one in.

How Do Wounds Heal? The Science of Tissue Repair
Wound healing is a four-stage biological process triggered immediately after injury and lasting weeks to years. Within seconds, platelets plug the wound; within hours, immune cells flood the area and initiate inflammation; over days to weeks, fibroblasts synthesize collagen and new blood vessels form; over months to years, tissue remodels and scars form. Despite apparent simplicity, the process involves coordinated signaling across dozens of cell types, growth factors, and immune mechanisms. Understanding wound healing is critical for treating chronic wounds (affecting 2 percent of the global population) and improving outcomes after surgery, trauma, and burn injuries.