Doxycycline can treat certain types of pneumonia, but not all

Doxycycline is an antibiotic that works against some of the bacteria that cause pneumonia. Your doctor will prescribe it only if lab tests show that the bacteria in your lungs are the kind doxycycline can kill. It does not work against viral pneumonia, fungal pneumonia, or pneumonia caused by bacteria resistant to this drug. Whether doxycycline is the right choice depends on what caused your pneumonia and the results of your sputum or blood culture.

Doxycycline belongs to a class of antibiotics called tetracyclines. It stops bacteria from making the proteins they need to survive and multiply. For pneumonia, it is usually taken by mouth as a tablet or capsule, twice a day, for 7 to 14 days depending on how severe your infection is and how quickly you improve.

Key Takeaways

  • Doxycycline treats pneumonia caused by specific bacteria, including atypical bacteria like Mycoplasma and Chlamydia, but not viral or fungal pneumonia.
  • Your doctor will order a sputum culture or blood culture to identify which bacteria is causing your pneumonia before deciding whether doxycycline is appropriate.
  • Doxycycline is taken by mouth, usually twice a day for 7 to 14 days, and you must take the full course even if you feel better after a few days.
  • Common side effects include nausea, sensitivity to sunlight, and yeast infections, and doxycycline cannot be taken during pregnancy.
  • If you do not improve within 48 to 72 hours of starting doxycycline, tell your doctor because your pneumonia may be caused by a different organism.

Which bacteria doxycycline can and cannot treat

Doxycycline is effective against atypical bacteria — organisms that cause pneumonia but do not grow the same way as common bacteria in a lab. The most common atypical bacteria are Mycoplasma pneumoniae, Chlamydia pneumoniae, and Legionella pneumophila. These bacteria often cause a milder pneumonia with a dry cough and gradual onset, sometimes called "walking pneumonia."

Doxycycline also works against some common bacteria like Streptococcus pneumoniae and Haemophilus influenzae, though other antibiotics are often chosen first for these. It does not work against viruses, so if your pneumonia is caused by a respiratory virus (such as influenza or respiratory syncytial virus), doxycycline will not help. It also does not treat fungal pneumonia, which is rare in otherwise healthy people but can occur in those with weakened immune systems.

Some bacteria have developed resistance to doxycycline over time, meaning the drug no longer works against them. Your doctor will know whether resistance is common in your area and whether doxycycline is likely to work for you.

How your doctor decides whether to use doxycycline

Before prescribing doxycycline, your doctor will take a sample to identify what is causing your pneumonia. This usually means a sputum sample (mucus you cough up) or a blood culture (a blood sample grown in the lab to see what bacteria are present). The lab results tell your doctor which bacteria you have and which antibiotics will kill it.

In some cases, your doctor may start doxycycline right away while waiting for culture results, especially if your symptoms suggest atypical pneumonia. Once the lab results come back, your doctor may continue doxycycline if it matches the bacteria found, or switch to a different antibiotic if it does not.

Your doctor will also consider your age, other medical conditions, and any medications you take. Doxycycline is not safe during pregnancy because it can affect bone and tooth development in the fetus. It can also interact with certain other drugs and supplements, so tell your doctor about everything you are taking.

How to take doxycycline and what to expect

Doxycycline is usually prescribed as 100 mg twice a day by mouth. You should take it with a full glass of water and remain upright (sitting or standing) for at least 30 minutes after each dose to prevent the pill from irritating your esophagus. You can take it with food if it upsets your stomach, though some formulations work better on an empty stomach — your pharmacist will tell you which applies to yours.

It is important to take the full course of doxycycline even if you feel better after a few days. Stopping early can allow bacteria to survive and multiply, leading to a relapse or antibiotic resistance. Most people begin to feel better within 48 to 72 hours, with fever dropping and cough improving over the next week or two.

You should avoid direct sunlight and use sunscreen while taking doxycycline because it can make your skin burn more easily. Wear protective clothing if you will be outside for long periods. This sensitivity usually goes away once you finish the course.

Side effects and who should not take doxycycline

Common side effects include nausea, vomiting, diarrhea, and loss of appetite. Taking doxycycline with food can reduce nausea. Some people develop a yeast infection during or shortly after treatment because the antibiotic kills helpful bacteria along with the harmful ones.

More serious but rare side effects include severe allergic reactions (rash, difficulty breathing, swelling of the face or throat) and a condition called esophageal ulceration if the pill is not taken correctly. If you experience any of these, stop taking doxycycline and seek medical attention right away.

Doxycycline should not be taken during pregnancy or while breastfeeding. It should also be avoided in children under 8 years old because it can permanently stain developing teeth. If you have severe kidney or liver disease, your doctor may need to adjust the dose or choose a different antibiotic. Tell your doctor if you have a history of allergies to tetracycline antibiotics.

What to do if doxycycline is not working

If your symptoms do not improve or get worse after 48 to 72 hours of taking doxycycline, contact your doctor. This can mean your pneumonia is caused by a different organism, the bacteria are resistant to doxycycline, or you have a complication like a pleural effusion (fluid around the lungs) that requires additional treatment.

Your doctor may order a chest X-ray to see whether the pneumonia is clearing or if something else is going on. They may also repeat a sputum or blood culture to check for a different bacteria. If doxycycline is not working, your doctor will switch you to a different antibiotic based on the new results.

Do not stop taking doxycycline on your own or switch to a different antibiotic without talking to your doctor first. Stopping abruptly can allow the infection to worsen, and using the wrong antibiotic can delay recovery.

Doxycycline versus other pneumonia antibiotics

For atypical pneumonia, doxycycline works as well as other common choices like azithromycin (a macrolide antibiotic) or fluoroquinolones. Your doctor may choose doxycycline because it is less expensive, has fewer drug interactions, or because local resistance patterns make it a good choice in your area.

For common bacterial pneumonia caused by Streptococcus pneumoniae, antibiotics like amoxicillin or ceftriaxone are often tried first, though doxycycline can be used if you are allergic to penicillin-type drugs. For severe pneumonia requiring hospitalization, your doctor may use intravenous antibiotics instead of oral doxycycline.

The choice of antibiotic also depends on whether you have other health conditions, your age, and whether you have been hospitalized recently. Your doctor will weigh all these factors when deciding which antibiotic is safest and most likely to work for you.

Frequently Asked Questions

How long does it take for doxycycline to work on pneumonia?

Most people begin to feel better within 48 to 72 hours, with fever dropping and energy improving. A cough may take longer to go away — sometimes 2 to 3 weeks. If you do not feel better after 3 days, tell your doctor because your pneumonia may need a different treatment.

Can I drink alcohol while taking doxycycline for pneumonia?

Doxycycline does not have a direct interaction with alcohol, but drinking may slow your recovery and make nausea worse. It is best to avoid alcohol while you are sick and taking antibiotics so your body can focus on fighting the infection.

What if I miss a dose of doxycycline?

Take the missed dose as soon as you remember, unless it is almost time for your next dose. Do not double up on doses. If you miss several doses, the antibiotic may not work as well, so set a phone reminder to help you remember to take it on time.

Will doxycycline work if I have pneumonia from COVID-19?

No. COVID-19 is caused by a virus, and doxycycline only works against bacteria. However, some people with COVID-19 develop a secondary bacterial pneumonia, and doxycycline might be used to treat that bacterial infection if the bacteria are susceptible to it.

Can I stop taking doxycycline once I feel better?

No. You must take the full course even if you feel better after a few days. Stopping early allows bacteria to survive and multiply, which can cause your pneumonia to come back or lead to antibiotic resistance that makes future infections harder to treat.