Skip to main content
Pneumonia

Is Your Cough More Than a Cold? How to Tell If You Have Community-Acquired Pneumonia

Shiv Sudhakar, MDChristine Giordano, MD
Written by Shiv Sudhakar, MD | Reviewed by Christine Giordano, MD
Updated on December 10, 2025

Key takeaways:

  • Community-acquired pneumonia (CAP) is a common lower respiratory tract infection of the lungs. 

  • Symptoms of CAP include cough, fever, chills, and trouble breathing.

  • Antibiotics treat CAP caused by bacterial infection. Getting early treatment can keep you from developing a more serious lung infection. 

Community-acquired pneumonia (CAP) is a lung infection caused by bacteria and viruses. 

CAP is what most people think of when they hear the term “pneumonia.” The “community-acquired” part sets it apart from the types of pneumonia people get when they’re in a healthcare setting, like hospital-acquired pneumonia and ventilator-associated pneumonia. 

Millions of people get CAP every year, making it one of the most common lower respiratory tract infections.

What causes community-acquired pneumonia?

Both bacteria and viruses cause CAP. Some important bacteria that cause CAP are:

  • Streptococcus pneumoniae: Even with pneumonia vaccines, this is still the most common cause of bacterial pneumonia. It’s where the word “pneumonia” comes from. 

  • Mycoplasma pneumoniae: This bacteria is best known for causing walking pneumonia, especially in children and young adults. 

Common viral causes of CAP include:

How do you get community-acquired pneumonia?

People develop CAP when viruses and bacteria pass from their nose and mouth into their lungs. 

The bugs that cause CAP also cause upper respiratory tract infections, including the common cold. In many cases, people start off with more mild illnesses and then develop pneumonia as the bacteria or virus invades the lungs. 

Scientists are still learning why some people develop pneumonia while others don’t, even if they’re sick with the same bacteria or virus. 

GoodRx icon

Babies, young children, and older adults are more likely to develop CAP. People who have chronic lung conditions or weakened immune systems are also at higher risk of developing CAP. 

What are the symptoms of community-acquired pneumonia?

Symptoms of CAP vary from person to person. Some people have more severe symptoms and get sick all of a sudden. Others have more subtle symptoms that come on more gradually. 

Most people notice:

  • Fever

  • Cough

  • Chest pain when taking in a breath

  • Shortness of breath

  • Rapid breathing

  • Trouble breathing

  • Chills

  • Fatigue

Pneumonia medicationsCompare prices and information on the most popular Pneumonia medications.
  • Zithromax
    Azithromycin
    $7.91Lowest price
  • Acticlate
    Doxycycline Hyclate
    $32.27Lowest price
  • Morgidox
    Doxycycline Hyclate
    $12.08Lowest price

The pattern of your symptoms can give you important clues. If you’ve been sick with a cold, signs you may have developed CAP include:

  • Symptoms that are getting worse instead of better over time

  • A fever that started in the middle of your illness

  • Trouble breathing or shortness of breath that developed all of a sudden or slowly over several days

People older than age 65 may have more subtle symptoms of pneumonia. For example, they may not develop a fever or cough and instead have symptoms like: 

  • Confusion

  • Loss of appetite

  • Malaise

How do you diagnose community-acquired pneumonia?

Your primary care provider may be able to tell if you have CAP just by listening to your lungs and asking you about your symptoms. A chest X-ray can also help diagnose pneumonia, but it’s not always necessary. 

Some people need additional tests if they’re very ill and need care in the hospital. 

How do you treat community-acquired pneumonia?

Antibiotics can treat CAP that a bacteria causes. But antibiotics won’t help if a virus is the cause of your pneumonia.

Even so, most healthcare professionals will prescribe a course of antibiotics just to be safe. That’s because it’s not always easy to tell if a bacteria or virus is the cause of CAP. 

Common antibiotic treatments for CAP include:

People need to take antibiotics for at least 5 days. People with certain medical conditions may need to take antibiotics for longer. 

People who are very sick and need care in the hospital often receive antibiotics through an IV line. 

How do you prevent community-acquired pneumonia?

There are several things you can do to lower your risk of developing CAP.

The same healthy habits that can keep you from getting sick with common viruses can also help you avoid pneumonia:

  • Wash your hands often.

  • Avoid touching your face and nose.

  • Clean and disinfect frequently touched surfaces.

  • Avoid people who are sick with a cold, flu, or COVID.

  • Consider wearing a mask in public places if there’s a lot of virus activity in your community.

Two additional things you can do to keep your lungs safe from CAP include:

  • Quitting smoking: People who smoke are more likely to develop CAP. Secondhand smoke also increases the risk of developing pneumonia in kids. If you smoke, consider quitting. It’ll protect you as well as your loved ones. 

  • Getting vaccinated: There are several pneumococcal vaccines that help prevent pneumonia including — pneumococcal polysaccharide vaccine (PPSV23) and pneumococcal polyconjugate vaccines (PCV15, PCV20, and PCV21). The pneumococcal vaccine is part of the routine childhood vaccination schedule. The CDC also recommends that all people over age 50 get a pneumococcal vaccine. People with weakened immune systems, cochlear implants, or asplenia may need additional doses of these vaccines at different times in their lives.

When to see seek care for pneumonia

You should see a healthcare professional if you think you might have pneumonia. CAP can often be diagnosed in an office visit, based on your symptoms and physical exam. Most people can complete treatment for CAP at home. 

In some cases, though, you might need treatment in a hospital for CAP. Examples are if you have underlying lung, heart, or kidney issues, or if you have a severe infection.

Signs of severe CAP include:

  • Temperature less than 95°F or greater than 103.8°F

  • Respiratory rate greater than 30 breaths per minute (bpm)

  • Low blood pressure

  • Elevated heart rate

  • Abnormal labs like low sodium or elevated blood sugar

Frequently asked questions

Walking pneumonia is a term to describe mild CAP. People with mild CAP generally feel well enough that they’re still “walking around” despite having the infection. The virus or bacteria that cause walking pneumonia can spread from person to person. 

Pneumonia can be life-threatening. Older patients and people with chronic medical conditions that weaken the lungs or immune system are at higher risk for severe CAP. The mortality rate among adults hospitalized with CAP is about 6%.

Yes, it’s possible to have pneumonia without developing a fever. People with mild cases of CAP may not have an elevated temperature. And older adults sometimes don’t get a fever with infection. 

The bottom line

CAP is a lung infection caused by viruses and bacteria. Symptoms include cough, fever, and trouble breathing. Some people have symptoms that start all of a sudden while others notice colds that get worse over time. 

Antibiotics can cure pneumonia caused by a bacterial infection. To avoid getting sick, wash your hands often and avoid contact with people who are sick. There are vaccines that prevent pneumonia. Talk to your primary care provider about whether you’re a candidate for a pneumonia vaccine. 

why trust our exports reliability shield

Why trust our experts?

Shiv Sudhakar, MD, is a fellow of the Infectious Disease Society of America and works as a physician in California. He has co-authored over 10 peer-reviewed research articles and given 20 scientific presentations.
Patricia Pinto-Garcia, MD, MPH, is a medical editor at GoodRx. She is a licensed, board-certified pediatrician with more than a decade of experience in academic medicine.
Christine Giordano, MD, is board-certified in general internal medicine. She received her medical degree from Rutgers New Jersey Medical School and completed residency at Thomas Jefferson University.

References

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Latest articles