Amoxicillin can treat some pneumonia, but not all—it depends on what caused it

Amoxicillin is an antibiotic that kills certain bacteria. It works against some of the bacteria that cause pneumonia, particularly Streptococcus pneumoniae and Haemophilus influenzae, which are common culprits in community-acquired pneumonia (pneumonia you catch outside a hospital). If your pneumonia is caused by one of these bacteria and your doctor prescribes amoxicillin, the antibiotic can reduce the infection and help you recover.

However, amoxicillin will not work against pneumonia caused by viruses, fungi, or certain resistant bacteria. It also will not work if the bacteria causing your pneumonia happen to be resistant to amoxicillin—a growing problem as bacteria evolve. Your doctor decides whether amoxicillin is the right choice by considering what organism likely caused your pneumonia, your age, your overall health, and local patterns of antibiotic resistance in your area.

Key Takeaways

  • Amoxicillin treats bacterial pneumonia caused by susceptible strains of Streptococcus pneumoniae and Haemophilus influenzae, which are common in community-acquired cases.
  • Amoxicillin does not work against viral pneumonia, fungal pneumonia, or bacteria that are resistant to the drug.
  • Your doctor determines whether amoxicillin is appropriate based on your symptoms, chest X-ray findings, and what bacteria are likely circulating in your area.
  • Treatment typically lasts 7 to 10 days, and you should start feeling better within 48 to 72 hours if the antibiotic is working.
  • If you do not improve after three days on amoxicillin, contact your doctor—you may need a different antibiotic or further testing.

How doctors decide whether to prescribe amoxicillin for pneumonia

When you see a doctor with pneumonia symptoms, they gather information to narrow down what caused it. They ask about how quickly symptoms started, whether you have a cough that produces sputum, your age, and whether you smoke or have chronic lung disease. They listen to your lungs with a stethoscope and usually order a chest X-ray to confirm pneumonia is present.

Based on these findings, your doctor makes an educated guess about which bacteria most likely caused your pneumonia. For an otherwise healthy adult with community-acquired pneumonia, Streptococcus pneumoniae and Haemophilus influenzae are common suspects, which is why amoxicillin is often a first choice. For people over 65, those with chronic heart or lung disease, or those who have been hospitalized recently, different bacteria are more likely, and amoxicillin may not be the right drug.

In some cases, your doctor may order a sputum culture—a lab test that grows the bacteria from your cough and identifies which antibiotic will kill it. This test takes several days, so your doctor usually starts you on an antibiotic before results come back. If the culture later shows the bacteria is resistant to amoxicillin, your doctor will switch you to a different drug.

What happens if amoxicillin is working

If amoxicillin is the right antibiotic for your pneumonia, you should notice improvement within 48 to 72 hours. Your fever typically drops, you feel less short of breath, and your cough may become less severe or produce less sputum. You may still feel tired or weak—that is normal and can last for weeks even after the infection is gone.

You will take amoxicillin for the full course your doctor prescribes, usually 7 to 10 days, even if you feel better after a few days. Stopping early gives remaining bacteria a chance to multiply and can lead to relapse or resistance. Finish the entire prescription unless your doctor tells you to stop.

Signs that amoxicillin is not working

If you have been taking amoxicillin for three days and your fever has not dropped, your breathing has not improved, or you feel worse, contact your doctor. This does not necessarily mean amoxicillin failed—you may have a complication like a fluid collection around the lungs (pleural effusion) or an abscess that needs drainage. But it can also mean the bacteria causing your pneumonia is resistant to amoxicillin.

Your doctor may order additional tests, such as a repeat chest X-ray or blood cultures, to see what is happening. They may switch you to a different antibiotic, such as a fluoroquinolone or a macrolide, that covers a broader range of bacteria or targets the specific organism identified in your culture.

Pneumonia caused by viruses and fungi

Amoxicillin will not treat viral pneumonia, which is caused by viruses like influenza, respiratory syncytial virus (RSV), or SARS-CoV-2. Viral pneumonia is managed with supportive care—oxygen, fluids, rest—while your immune system fights the infection. Antivirals such as oseltamivir (Tamiflu) may help if given early in influenza pneumonia, but amoxicillin has no effect.

Fungal pneumonia, which occurs mainly in people with weakened immune systems, also requires different treatment. Antifungal medications such as fluconazole or amphotericin B are needed, not antibiotics like amoxicillin.

Antibiotic resistance and amoxicillin

Over the past two decades, more strains of Streptococcus pneumoniae and Haemophilus influenzae have become resistant to amoxicillin. Resistance develops when bacteria are exposed to antibiotics repeatedly and the bacteria that survive pass resistance genes to their offspring. This is why your doctor may not choose amoxicillin even for common bacterial pneumonia—they consider local resistance patterns and your individual risk factors.

If you have been hospitalized recently, live in a nursing home, or have a weakened immune system, your doctor is more likely to prescribe a broader-spectrum antibiotic from the start. Taking amoxicillin only when truly needed, and always finishing the full course, helps slow the spread of resistance.

Side effects and when to stop taking amoxicillin

Common side effects of amoxicillin include nausea, diarrhea, and rash. Most are mild and go away after you finish the course. A severe allergic reaction—difficulty breathing, swelling of the face or throat, or a widespread rash—is rare but requires immediate medical attention. If you have a known penicillin allergy, tell your doctor before starting amoxicillin, as cross-reactivity can occur.

Diarrhea during or after amoxicillin is common because the antibiotic kills some of your normal gut bacteria. If diarrhea is severe or you develop signs of Clostridioides difficile infection (severe cramping, bloody stools, fever), contact your doctor. Do not take over-the-counter antidiarrheal medications without asking your doctor first, as they can make C. difficile worse.

Frequently Asked Questions

How long does amoxicillin take to cure pneumonia?

If amoxicillin is the right antibiotic, you should feel better within 48 to 72 hours. Full recovery takes longer—typically one to two weeks for symptoms to resolve completely, and several more weeks to regain your normal energy. The bacteria are usually gone after 7 to 10 days of treatment, which is why that is the standard course length.

Can I take amoxicillin if I think I have pneumonia but have not seen a doctor?

No. Pneumonia requires a doctor's diagnosis because it can be caused by viruses, fungi, or bacteria resistant to amoxicillin, and each needs different treatment. Taking amoxicillin without diagnosis can delay the right treatment and allow the infection to worsen. See a doctor for a chest X-ray and proper evaluation before starting any antibiotic.

What if I am allergic to penicillin—can I take amoxicillin?

Amoxicillin is a penicillin-type antibiotic, so if you have a true penicillin allergy, you should not take it. Tell your doctor about your allergy so they can prescribe an alternative, such as a fluoroquinolone or macrolide antibiotic. A rash from amoxicillin is not always a true allergy, but your doctor can help determine whether it is safe to use.

What should I do if I miss a dose of amoxicillin?

Take the missed dose as soon as you remember, unless it is almost time for your next dose. Do not double up on doses. Missing one or two doses is unlikely to cause the treatment to fail, but try to take amoxicillin on schedule to maintain steady levels in your bloodstream.

Can amoxicillin prevent pneumonia if I have been exposed to someone who has it?

No. Amoxicillin is not used to prevent pneumonia in people who have been exposed. Prevention focuses on vaccines (pneumococcal and flu vaccines) and general measures like hand hygiene and avoiding close contact with sick people. If you develop symptoms, see a doctor for evaluation and treatment.