How to Tell If an Infection Is Viral or Bacterial

Most infections you’ll encounter, especially respiratory ones, are viral. The tricky part is that viral and bacterial infections share many of the same symptoms: fever, fatigue, congestion, sore throat. No single symptom reliably separates the two, but several patterns taken together can point you in the right direction.

Why the Distinction Matters

Antibiotics kill bacteria. They do nothing against viruses. Despite this, roughly half of patients hospitalized with viral respiratory infections still receive at least one dose of antibiotics. During the early pandemic, that number climbed above 80%. Every unnecessary prescription contributes to antibiotic resistance, making these drugs less effective when they’re truly needed. Knowing whether your infection is likely viral or bacterial helps you have a more informed conversation with your doctor and avoid treatments that won’t help.

The Symptom Timeline Is Your Best Clue

Viral illnesses tend to follow a predictable arc. Symptoms typically peak within the first three days, then gradually improve over a week. A lingering cough can stick around for up to a month even after you’re otherwise feeling better, and that’s still normal for a virus.

The pattern to watch for is what clinicians call “double sickening.” You start feeling better after several days, then suddenly get worse again with a new or higher fever, worsening congestion, or chest tightness. This U-shaped curve often signals that a bacterial infection has taken hold on top of the original viral one. Viruses weaken your local immune defenses, giving bacteria an opening to colonize tissues that are already inflamed, particularly in the lungs and sinuses.

What Fever Can and Can’t Tell You

Fever alone doesn’t confirm whether an infection is viral or bacterial. Both types cause fevers, and there’s significant overlap in temperature ranges. That said, certain patterns lean one way or the other.

Bacterial infections more often produce high fevers, above 39°C (about 102.2°F). Bacterial pneumonia, for example, commonly arrives abruptly with temperatures between 39.5°C and 40.5°C. Bacterial ear infections run above 39°C roughly 75% of the time. Strep throat causes fever in over 90% of cases, typically peaking on the second day of illness.

Viral fevers from common respiratory infections usually last three to five days, though in children, over 30% can run a fever for five days or longer. A viral fever that stretches past a week is less common but does happen, particularly with certain strains like adenovirus. The key difference isn’t always the height of the fever but the context: a high fever that appears suddenly with localized symptoms (one ear, one side of the throat, deep chest pain) leans more bacterial.

Mucus Color Is Unreliable

Green or yellow mucus is one of the most persistent myths in self-diagnosis. It feels intuitive that colorful, thick mucus means bacteria, while clear mucus means a virus. The reality is more mundane. When white blood cells fight any irritant, viral or bacterial, they release iron-containing enzymes that tint mucus green. Mucus that sits in your sinuses overnight becomes more concentrated and darker. Even seasonal allergies, with no infection at all, can produce thick yellow or green discharge.

You simply cannot distinguish viral from bacterial sinus infections based on mucus color or consistency. If your doctor prescribes antibiotics purely because your mucus is green, it’s worth asking what other evidence supports a bacterial diagnosis.

Swollen Lymph Nodes Feel Different

Both viral and bacterial infections cause swollen lymph nodes, but the character of the swelling differs. In viral infections, swollen nodes are typically soft, mobile under the skin, and mildly tender. They tend to appear on both sides of the neck (or wherever the infection is draining) and resolve on their own as the virus clears.

Bacterial lymph node infections look and feel more aggressive. They’re more often unilateral, appearing on just one side. Nodes invaded by bacteria can become large (over 2 cm), markedly tender, red, and warm to the touch. In severe cases they develop a fluctuant, fluid-filled quality, indicating pus has formed inside. If a swollen node is red, hot, growing rapidly, or clearly one-sided, that points toward bacterial involvement.

The Sore Throat Scoring System

Sore throats are one of the most common reasons people wonder about bacterial versus viral infection. A scoring system called the Centor criteria gives you a rough probability of strep throat based on four factors, each worth one point:

  • Fever of 38°C (100.4°F) or higher
  • No cough (cough suggests a virus)
  • Swollen, tender lymph nodes at the front of the neck
  • Tonsillar swelling or white patches on the tonsils

A score of 0 or 1 makes strep unlikely. A score of 3 or 4 raises the probability enough that testing is warranted. The absence of cough is a particularly useful clue: viral infections tend to involve the whole respiratory tract (runny nose, cough, congestion), while strep throat zeroes in on the throat without much else going on above or below it.

How Doctors Confirm the Diagnosis

When symptoms alone aren’t enough, lab tests help settle the question. The most familiar is the rapid strep test, a throat swab that returns results in minutes. Rapid antigen tests exist for other infections too, including flu and COVID-19. These rapid tests are highly specific, meaning a positive result is very reliable. Their weakness is sensitivity: they miss a meaningful percentage of true infections. Rapid antigen tests for COVID-19, for instance, catch only about 59% of positive cases overall. When the amount of virus is high, accuracy jumps to around 91%, but it drops sharply as viral levels decrease. A negative rapid test doesn’t always rule out infection, which is why doctors sometimes follow up with a more sensitive PCR-based test.

Blood tests offer another window. A standard complete blood count with differential reveals which types of white blood cells your body has mobilized. Neutrophils rise primarily in response to bacteria, while lymphocytes increase more with viral infections. Doctors can also measure a protein called procalcitonin, which the body produces in much larger quantities during bacterial infections. Levels below 0.1 ng/mL make a bacterial cause very unlikely, with a 96.3% negative predictive value. Higher levels, particularly above 0.25 to 0.5 ng/mL, increasingly suggest bacteria are involved. This test is especially useful in pneumonia, meningitis, and situations where distinguishing between viral and bacterial infection changes treatment decisions.

Patterns That Point Viral

Viral infections tend to cast a wide net. You feel sick all over: runny nose, cough, sore throat, body aches, fatigue, maybe watery eyes. Symptoms come on gradually over a day or two and affect multiple body systems at once. Low-grade fever or no fever is common with many viral infections, particularly those affecting the stomach and intestines. Diarrhea and vomiting without a high fever lean viral.

Most viral illnesses are self-limiting. Your body clears the infection within a week or so, and the main treatment is rest, fluids, and managing symptoms while your immune system does its work.

Patterns That Point Bacterial

Bacterial infections tend to be more localized. Instead of feeling vaguely sick everywhere, you have one area that’s intensely affected: a single ear with sharp pain, one side of the throat that’s much worse, a specific area of the lung producing chest pain with breathing, or a skin wound that’s increasingly red and warm. The onset is often more abrupt, with a rapid spike in temperature.

Bacterial infections also tend not to improve on their own the way viral ones do. If you’ve been sick for more than 10 days without improvement, or if you improve and then sharply worsen, the odds of a bacterial cause go up. Bacterial sinus infections, for example, are diagnosed largely on the basis of symptoms lasting beyond the typical viral window or following that double-sickening pattern.