Why Do You Get a Fever and What Does It Do?

A fever is your body deliberately raising its own temperature to fight off a threat, usually an infection. It’s not a malfunction. Your brain has a built-in thermostat, and when your immune system detects something dangerous, it resets that thermostat higher on purpose. The process is uncomfortable, but it serves a real biological function: making your body a harder place for pathogens to survive while boosting your immune defenses.

How Your Brain Resets the Thermostat

Your body’s temperature control center sits in a small region of the brain called the hypothalamus. Under normal conditions, it keeps your internal temperature around 98.6°F (37°C), though healthy people can range anywhere from 97°F to 99°F throughout the day.

When bacteria or viruses enter your body, white blood cells recognize the invaders and release signaling proteins called cytokines. These cytokines travel through the bloodstream and reach the blood vessels lining the brain. There, they trigger the production of a specific chemical messenger, prostaglandin E2, which crosses into the brain and binds to receptors in the hypothalamus. This binding raises the temperature “set point” from its normal level to something higher, sometimes 101°F, sometimes 103°F or more. Your brain now treats your normal body temperature as too cold, and it activates warming mechanisms to close the gap.

Without this chemical chain reaction, fever doesn’t happen. Studies in mice that lack the specific receptor for prostaglandin E2 in the hypothalamus showed no febrile response at all, even when exposed to the same immune signals that would normally trigger one.

Why You Shiver When Your Temperature Is Rising

This is the part that confuses most people. You have a fever, your skin is hot to the touch, and yet you feel freezing cold and can’t stop shaking. The explanation is straightforward: your brain has just raised the target temperature, and your body hasn’t caught up yet. As far as your hypothalamus is concerned, you’re below where you should be. So it does what it would do on a cold winter day. It triggers shivering, which generates heat through rapid muscle contractions. It constricts blood vessels near your skin to trap warmth inside. You pile on blankets because your brain is telling you you’re cold.

Once your body reaches the new set point, the chills stop. When the fever eventually “breaks,” the opposite happens. The set point drops back to normal, and now you’re overheated. You start sweating, your skin flushes, and blood vessels near the surface dilate to release heat.

What Fever Actually Does to Pathogens

Raising your body temperature isn’t just a side effect of immune activation. It’s a weapon. The simplest mechanism is that higher temperatures push pathogens out of their ideal growth range. Many bacteria and virtually all fungi thrive at temperatures below normal mammalian body heat. A few extra degrees can slow their replication significantly. This is one reason fungal infections are relatively rare in warm-blooded animals compared to reptiles and amphibians.

Fever also supercharges your immune system. At elevated temperatures, immune cells travel through tissue more efficiently because heat-sensitive proteins on their surface shift into a more active shape, helping them reach infection sites faster. Antigen presentation improves, meaning your immune cells get better at identifying specific invaders. Antibody production ramps up. Interferon responses, your body’s primary antiviral defense, become more effective at fever temperatures. In mouse models of viral infection, fever-range temperatures measurably improved the animals’ ability to fight off the virus.

The Physical Cost of Running Hot

Fever isn’t free. Your metabolic rate increases by roughly 8 to 10 percent for every degree Celsius your temperature rises. That means your body burns through more calories, oxygen, and fluids just to maintain the elevated state. Your heart has to work harder to keep up: heart rate can increase by as much as 50 percent during a high fever, while stroke volume (the amount of blood pumped per beat) rises by about 10 percent. This is why fevers leave you exhausted, dehydrated, and with a racing pulse even when you’re lying still. It’s also why fever can be genuinely dangerous for people with heart conditions or other chronic illnesses who can’t handle the extra metabolic demand.

Infections Aren’t the Only Cause

Most fevers come from bacterial or viral infections, but your body can trigger the same inflammatory cascade for other reasons. Autoimmune conditions like rheumatoid arthritis, inflammatory bowel disease, and lupus can cause recurring fevers because the immune system is attacking the body’s own tissue and releasing the same cytokines that would respond to an infection. Certain cancers, particularly lymphoma, leukemia, and kidney cancer, are known to cause persistent fevers. The tumor cells themselves can produce pyrogenic substances or provoke an immune response that mimics infection.

Some medications also trigger fevers as a side effect. This is called drug fever, and it can happen with common drugs including certain antibiotics, blood pressure medications, and anti-seizure drugs. The fever typically resolves once the medication is stopped, but it can be tricky to diagnose because the timing often overlaps with whatever condition the drug was prescribed to treat.

What the Numbers Mean

A fever is formally defined as a temperature of 100.4°F (38°C) or higher when taken rectally, orally, or by ear. Armpit readings run lower, so 99°F (37.2°C) or above in the armpit is considered a fever. Adults with temperatures of 103°F (39.4°C) or higher typically look and feel noticeably sick.

In most healthy adults, fevers below 103°F are uncomfortable but not dangerous. They’re doing their job. The body rarely lets a fever from infection climb above 106°F because the hypothalamus is still in control of the process. True hyperthermia, where the body’s temperature rises uncontrollably (from heat stroke, for example), is a different and far more dangerous situation because the thermostat itself has been overwhelmed.

When Fever Signals Something Serious

Age matters enormously. Any infant under 2 months old with a rectal temperature of 100.4°F or higher needs emergency evaluation immediately, even if the baby otherwise looks fine. For babies between 2 and 3 months, the same temperature warrants an urgent call to their pediatrician. Young infants have immature immune systems, and fever at that age can indicate serious bacterial infections that progress quickly.

In older children, the concerning signs aren’t just about the number on the thermometer. Watch for extreme sleepiness or irritability, difficulty breathing, rashes, localized pain or swelling, refusal to drink, significantly reduced urination, seizures, or a fever lasting longer than three days.

In adults, a fever combined with confusion, rapid breathing, or a drop in blood pressure can signal sepsis, a life-threatening condition where the body’s response to infection starts damaging its own organs. The warning triad is altered mental status, fast breathing (more than 22 breaths per minute), and low blood pressure. Two or more of those signs together with a suspected infection significantly raise the risk of a prolonged hospital stay or death. Sepsis is a medical emergency that requires immediate treatment.