How Do You Know If You Have a Lung Infection?

The most telling signs of a lung infection are a persistent cough (often producing colored mucus), fever, and shortness of breath that worsens over several days rather than improving. But lung infections range widely in severity, from mild cases you might mistake for a bad cold to serious pneumonia requiring hospitalization. Knowing which symptoms point to a lung infection, and which signal something more dangerous, can help you decide what to do next.

The Core Symptoms

A lung infection typically announces itself with a cough that hangs on and gets worse. Early on, the cough may be dry, but as the infection progresses it often produces yellow or green mucus. This color shift happens because your immune system is sending white blood cells to fight the infection, and those cells give the mucus its color. Thicker, darker, or rust-colored mucus generally signals a more serious infection.

Beyond the cough, most lung infections cause some combination of fever, fatigue, and body aches. The key question is how severe these symptoms are, because that often tells you whether you’re dealing with bronchitis (an infection of the airways leading to your lungs) or pneumonia (an infection deeper in the lungs, in the tiny air sacs that transfer oxygen into your blood).

Bronchitis vs. Pneumonia

Acute bronchitis and pneumonia share many symptoms, but they differ in intensity and location. Bronchitis affects the larger airways and tends to feel like a lingering chest cold: a nagging cough with mucus, sore throat, runny nose, mild fever, headache, and general tiredness. It’s uncomfortable but manageable for most people.

Pneumonia goes deeper. Because it infects the air sacs in your lungs, it triggers more severe, whole-body symptoms. These include high fever (sometimes reaching 105°F), chills and sweating, rapid breathing or shortness of breath, chest pain that worsens when you cough, confusion or brain fog, and loss of appetite. The chest pain from pneumonia often feels sharp and stabbing, especially with deep breaths, because the inflamed tissue in your lungs is irritated every time they expand.

A useful rule of thumb: if your symptoms stay mostly in your throat and upper chest and you can still function day to day, bronchitis is more likely. If you feel sick throughout your entire body, with high fever and difficulty breathing, pneumonia is the stronger possibility.

Walking Pneumonia: The Mild Version

Not all pneumonia knocks you flat. Walking pneumonia is a milder lung infection that often feels like a stubborn cold. Symptoms include a low-grade fever, sore throat, persistent cough, fatigue, and mild chest discomfort. Many people with walking pneumonia keep going to work or school without realizing they have a lung infection at all. The name literally comes from the fact that you feel well enough to walk around.

Walking pneumonia is worth knowing about because it can linger for weeks if untreated, and the fatigue it causes can be surprisingly heavy even when other symptoms seem minor. If you’ve had cold-like symptoms that just won’t quit after two or three weeks, this is one possible explanation.

Bacterial vs. Viral Infections

The cause of a lung infection matters because it determines what treatment will actually help. Bacterial and viral lung infections look different in several ways.

Bacterial pneumonia tends to hit fast. You may feel fine one day and seriously ill the next, with a high fever, thick or discolored mucus, and sharp chest pain on one side. Viral pneumonia usually creeps in more gradually over several days, with a lower fever and symptoms that feel more like a worsening flu. Viral infections are also more likely to affect both lungs at once, while bacterial infections often concentrate on one side.

Some additional clues: if you have a runny nose along with your cough, a viral cause is more likely. If your symptoms come on abruptly with significant fever and purulent (thick, opaque) mucus, bacteria are a stronger suspect. These patterns aren’t foolproof, which is why doctors often use tests to confirm.

What to Pay Attention to With Mucus

Your mucus is one of the most accessible clues you have. Clear or white mucus is typical of viral infections or simple irritation. Yellow mucus suggests your immune system is actively fighting something. Green mucus indicates a more intense immune response and often points toward a bacterial infection, though it’s not a guarantee. Rust-colored or blood-tinged mucus can signal a more serious lung infection and warrants prompt medical attention.

Color alone doesn’t provide a diagnosis, but tracking how your mucus changes over time is useful information to share with a doctor. Mucus that starts clear and turns progressively darker over several days suggests an infection that’s getting worse rather than resolving on its own.

How Doctors Confirm a Lung Infection

If your symptoms are concerning enough to see a doctor, the evaluation is usually straightforward and painless. A pulse oximetry reading, taken with a small clip placed on your fingertip, measures how much oxygen is in your blood. Low oxygen levels suggest your lungs aren’t working efficiently, which can indicate pneumonia. Normal resting respiratory rate for adults is 12 to 18 breaths per minute; breathing faster than 25 times per minute at rest is a red flag.

A chest X-ray is the standard way to confirm pneumonia. It’s quick and can show whether fluid or inflammation has built up in your lungs, where the infection is located, and how much of your lung tissue is affected. In some cases, doctors may also test a sample of your mucus to identify the specific bacteria or virus causing the infection, which helps guide treatment decisions.

Who Is Most Vulnerable

Certain groups face a higher risk of developing lung infections and of those infections becoming severe. Adults 65 and older are significantly more vulnerable, and the risk keeps climbing with age. Children under 5 are also at elevated risk, with younger children facing greater danger than older ones.

Chronic health conditions increase susceptibility as well, including heart disease, liver disease, lung conditions like COPD or asthma, and diabetes. People with weakened immune systems, whether from medication or illness, face the greatest risk of all. Smoking cigarettes, drinking alcohol excessively, and spending time around sick people also raise your chances of picking up a lung infection.

If you fall into any of these groups and develop symptoms that seem like more than a common cold, the threshold for seeking medical care should be lower.

Warning Signs That Need Immediate Attention

Most lung infections, especially bronchitis and walking pneumonia, resolve without emergency care. But certain symptoms signal that your body is struggling and needs help right away. Go to an emergency room if you are short of breath while sitting still, have new or worsening chest pain, or feel confused or unable to think clearly. Bluish coloring of your skin, lips, or fingernails (called cyanosis) means your blood isn’t getting enough oxygen and requires immediate treatment.

What Recovery Looks Like

Recovery from a lung infection depends heavily on the type and severity. With bronchitis, the cough often improves within a week or two, though it can linger for several weeks after the infection itself has cleared. Pneumonia takes longer. Some people feel better and return to normal routines within one to two weeks, but for others recovery takes a month or more. Fatigue is often the last symptom to resolve; most people recovering from pneumonia still feel noticeably tired for about a month, even after the fever and cough are gone.

During recovery, your lungs are still healing even after your main symptoms improve. Pushing yourself back to full activity too soon can slow things down. Gradual return to your normal routine, paying attention to how your breathing feels with exertion, gives your lungs the best chance to fully recover.