Why Do We Get Fevers: Your Immune System at Work

Fever is your body’s deliberate response to infection, not a malfunction. When your immune system detects a threat, it essentially reprograms your internal thermostat to run hotter, creating conditions that help fight off invaders while supercharging your immune cells. A fever is generally defined as a body temperature at or above 100.4°F (38°C).

How Your Body Raises Its Temperature

Your brain’s hypothalamus acts as a thermostat, constantly monitoring your body temperature through sensors spread across your body and adjusting it through mechanisms like sweating, shivering, and changes in blood flow. Under normal conditions, it keeps you right around 98.6°F. During an infection, though, the hypothalamus deliberately resets its target temperature higher.

The process starts when your immune cells detect something foreign, like bacteria or a virus. These immune cells release signaling molecules, including several that act directly on the hypothalamus to trigger a fever. The key players are a group of immune signals that include interleukin-1, interleukin-6, and tumor necrosis factor. Bacterial products like endotoxin are so potent at triggering this cascade that they can provoke a fever in amounts as small as a billionth of a gram per kilogram of body weight.

These immune signals don’t cross directly into the brain. Instead, they interact with the cells lining your brain’s blood vessels. Those blood vessel cells then produce a compound called prostaglandin E2, which binds to receptors in the hypothalamus. Research from the journal Endocrinology confirmed that the cells lining the brain’s blood vessels are both necessary and sufficient to produce this compound and trigger a fever after a peripheral immune challenge. This is also why common fever reducers work: they block the production of prostaglandin E2, preventing the thermostat from resetting.

Why You Shiver When Your Temperature Is Rising

The chills you feel at the start of a fever seem counterintuitive. You’re about to be too warm, so why do you feel cold? The answer is that your brain has already moved the target temperature up, but your body hasn’t caught up yet. Your hypothalamus now reads your normal 98.6°F the same way it would read a dangerously low temperature. As far as your thermostat is concerned, you’re underdressed in a snowstorm.

To close the gap, your body activates every heat-generating and heat-conserving tool it has. Blood vessels near the skin constrict to prevent heat loss, which is why your skin may look pale or feel cool to the touch. Your metabolism ramps up. You instinctively curl up under blankets. And if that’s not enough, your skeletal muscles begin contracting rapidly and involuntarily, producing shivering. Once your actual temperature reaches the new set point, the chills stop, and you simply feel hot.

How Fever Helps Fight Infection

Fever serves two main purposes: it weakens pathogens and strengthens your immune system. Neither effect is trivial.

On the pathogen side, many viruses and bacteria replicate best at normal body temperature and struggle as things heat up. Research on influenza A virus shows that growth at temperatures above normal leads to defects in viral replication. For SARS-CoV-2, raising the temperature to 102.2°F (39°C) and 104°F (40°C) limited the rate of viral RNA synthesis and reduced the amount of virus produced. Dengue virus RNA synthesis drops to its lowest rate at 104°F. These aren’t dramatic kills, but slowing a pathogen’s ability to copy itself gives your immune system critical time to mount a full response.

On the immune side, the benefits are more direct. Research supported by the National Institutes of Health found that T cells (a central part of your adaptive immune system) cultured at fever temperature of 102.2°F proliferated more, had enhanced metabolism, and produced more signaling molecules compared to T cells at normal body temperature. All types of T cells evaluated showed this boost. Fever also enhances parts of the innate immune system, increasing the recruitment of first-responder cells with greater germ-killing capacity and improving the ability of other immune cells to engulf and destroy invaders.

Fever Is Ancient, Not Accidental

One of the strongest arguments that fever serves a real survival purpose is how old it is. Fever isn’t unique to humans or even mammals. Cold-blooded animals that can’t generate their own body heat still exhibit what researchers call “behavioral fever,” deliberately moving to warmer environments when infected.

In one striking experiment, carp infected with a herpesvirus were placed in tanks with water temperatures ranging from 75°F to 90°F. Carp kept at 75°F died from the infection. But carp given the choice migrated temporarily to the warmest water and survived. Lizards prevented from seeking warmth during bacterial infection fared worse than those allowed to raise their body temperature. These behaviors have been documented across fish, reptiles, and amphibians, suggesting that fever as a defense mechanism has been conserved across hundreds of millions of years of evolution. It’s too costly, metabolically, to have persisted this long without conferring a real advantage.

When Fever Becomes Dangerous

Most fevers are self-limiting and productive. The body raises its temperature a few degrees, the immune system gets its boost, and the thermostat resets back to normal as the infection clears. But there is a ceiling.

Temperatures above 106.7°F (41.5°C), a condition called hyperpyrexia, constitute a medical emergency. At that level, the heat itself starts damaging organs. The brain, heart, lungs, liver, kidneys, and gastrointestinal system can all be affected. Complications include brain swelling, permanent brain damage, and coma. This is rare during a typical infection and more commonly associated with heat stroke, certain drug reactions, or damage to the brain’s temperature-regulating centers.

For most adults, a fever in the 100°F to 103°F range during an illness is your immune system doing exactly what it evolved to do. The discomfort you feel, the fatigue, the aching, the desire to rest, are side effects of the same immune signals that triggered the fever in the first place, and they serve their own purpose by pushing you to conserve energy while your body fights.