The antibiotic used for pneumonia depends on where you caught it, how sick you are, and whether you have other health conditions. Most people searching this question have community-acquired pneumonia, the kind you pick up in everyday life, and the first-line treatment is typically amoxicillin or azithromycin for otherwise healthy adults. But the picture gets more complex quickly, so here’s what determines which antibiotic you’ll be prescribed.
Outpatient Treatment for Healthy Adults
If you’re healthy, under 65, and your pneumonia is mild enough to treat at home, you’ll likely receive one of two options: amoxicillin or a macrolide antibiotic like azithromycin. Azithromycin is commonly prescribed as a 5-day course, with a larger dose on day one (500 mg) followed by four days at a lower dose (250 mg). Doxycycline is another option in this category. These antibiotics target the most common bacteria behind community-acquired pneumonia and work well when there are no complicating factors.
When You Have Chronic Health Conditions
If you have chronic heart disease, lung disease, liver or kidney problems, diabetes, or a history of heavy alcohol use, your doctor will typically choose a stronger approach. The two main strategies are:
- Combination therapy: A stronger penicillin-type antibiotic (amoxicillin/clavulanate) or a cephalosporin paired with either azithromycin or doxycycline.
- Single-drug therapy: A respiratory fluoroquinolone like levofloxacin or moxifloxacin, which covers a broader range of bacteria on its own.
The reason for this escalation is straightforward. Chronic conditions weaken your defenses, making you vulnerable to a wider variety of bacteria. A single basic antibiotic may not cover all the likely culprits.
Walking Pneumonia and Atypical Infections
Walking pneumonia, most often caused by Mycoplasma pneumoniae, is a milder infection that usually doesn’t require hospitalization. The bacteria responsible are unusual because they lack a cell wall, which means common antibiotics like penicillin (which work by attacking cell walls) are useless against them.
Azithromycin is the go-to treatment and follows the same 5-day dosing schedule. Doxycycline and fluoroquinolones also work but require a longer course of 7 to 14 days. Most people with walking pneumonia feel tired and have a persistent cough but can continue their daily routine during treatment.
Hospital-Acquired Pneumonia
Pneumonia that develops 48 hours or more after hospital admission is a different situation entirely. The bacteria circulating in hospitals are often resistant to standard antibiotics, which means treatment is more aggressive from the start.
Every patient treated for hospital-acquired pneumonia receives antibiotics targeting Staphylococcus aureus and Pseudomonas, two bacteria commonly found in hospital settings. The specific drugs depend on your risk profile. If you’ve received IV antibiotics within the past 90 days, or you’re in a unit where more than 20% of staph infections are the resistant type (MRSA), you’ll receive antibiotics specifically effective against MRSA. If your risk for resistant bacteria is lower, the chosen antibiotic still covers staph but uses a narrower approach.
For patients at higher risk, doctors often use antibiotics from two different drug classes simultaneously to ensure coverage against Pseudomonas. This is one situation where treatment decisions are highly individualized based on what’s circulating in your specific hospital unit.
Aspiration Pneumonia
Aspiration pneumonia happens when food, liquid, or saliva is inhaled into the lungs, often in people with swallowing difficulties, reduced consciousness, or after surgery. For years, doctors added extra antibiotics to cover anaerobic bacteria (the type that thrive without oxygen) because the mouth harbors many of them.
Current guidelines from the ATS and IDSA now recommend against routinely adding anaerobic coverage. Standard pneumonia antibiotics like ceftriaxone or levofloxacin are sufficient. A large retrospective study found that adding anaerobic coverage provided no mortality benefit and increased the risk of Clostridioides difficile infection, a serious and sometimes dangerous gut infection caused by antibiotic overuse. The added risk was statistically significant, reinforcing that more antibiotics aren’t always better.
How Long Treatment Lasts
Antibiotic courses for pneumonia have gotten shorter over the years as evidence has shown that extended treatment doesn’t improve outcomes for most patients. The current standard from the ATS and IDSA is a minimum of 5 days for community-acquired pneumonia of any severity, provided you’ve stabilized clinically. Clinical stability generally means your fever has broken, your heart rate and breathing have normalized, and you’re able to eat and stay hydrated.
For hospital-acquired pneumonia, guidelines recommend a 7-day course. Some European guidelines suggest 5 to 7 days for severe community-acquired pneumonia when blood markers of infection are trending downward. The key principle across all guidelines is the same: treatment should continue for at least 5 days and can stop once you’ve been clinically stable, rather than running for an arbitrary fixed duration.
Safety Concerns With Fluoroquinolones
Fluoroquinolones like levofloxacin and moxifloxacin are effective, but they carry a boxed warning from the FDA, the most serious type of safety alert. The primary concern is tendon damage, particularly rupture of the Achilles tendon. This risk is highest in people over 60, organ transplant recipients, and anyone taking corticosteroids.
Beyond tendon problems, fluoroquinolones have been linked to seizures, hallucinations, depression, heart rhythm abnormalities, and C. difficile infection. If you’re prescribed one and notice tendon pain, swelling, or inflammation, stop taking it and contact your doctor about switching to a different antibiotic. These drugs remain a valid option for pneumonia, especially when alternatives won’t provide adequate coverage, but they’re not a first choice for otherwise healthy people with mild infections.
Why the Right Antibiotic Matters
Pneumonia is not one disease. It’s caused by dozens of different bacteria (and sometimes viruses or fungi, which antibiotics won’t help at all), and the right treatment hinges on identifying which type you most likely have. Your doctor considers where you were when you got sick, what other health conditions you have, what antibiotics you’ve taken recently, and how severe your symptoms are. Taking the wrong antibiotic, or an unnecessarily broad one, doesn’t just fail to help. It increases your risk of side effects and contributes to antibiotic resistance, making future infections harder to treat for everyone.