how long do antibiotics stay in your system

How Long Do Antibiotics Stay in Your System? Common Antibiotics Compared

MedSafeScan Editorial Team5 min read

How long do antibiotics stay in your system? For many common antibiotics the answer is less than a day or two after the last dose, but a few — azithromycin in particular — linger for a week or more. Knowing the rough timeline helps when you are wondering about alcohol, starting a new medicine, or side effects that seem to appear after you finish a course.

Key takeaways

  • A drug is mostly cleared after about five half-lives — that rule of thumb gives a rough timeline.
  • Amoxicillin and cephalexin are usually cleared within about a day.
  • Ciprofloxacin and metronidazole are usually cleared within about one to two days.
  • Doxycycline can take several days; azithromycin can remain for one to two weeks.
  • Effects on gut bacteria — and the risk of C. diff — can last weeks to months after the drug itself is gone.

The half-life rule of thumb

A medicine's half-life is the time it takes for the amount in your blood to fall by half. After about five half-lives, roughly 97% of a dose has been eliminated, which is the standard way to estimate when a drug is effectively out of your system. Half-lives vary widely between antibiotics, and they lengthen if your kidneys or liver clear drugs more slowly, which is common in older adults.

How long common antibiotics stay in your system

  • Amoxicillin: half-life about 1–1.5 hours; mostly cleared within roughly 8–12 hours.
  • Cephalexin (Keflex): half-life about 1 hour; mostly cleared within roughly 5–8 hours.
  • Ciprofloxacin (Cipro): half-life about 4 hours; mostly cleared within roughly 20–24 hours.
  • Metronidazole (Flagyl): half-life about 8 hours; mostly cleared within roughly 2 days.
  • Sulfamethoxazole-trimethoprim (Bactrim): half-life about 10 hours; mostly cleared within roughly 2–3 days.
  • Doxycycline: half-life about 18–22 hours; mostly cleared within roughly 4–5 days.
  • Azithromycin (Zithromax, Z-Pak): half-life about 68 hours; can remain in tissues for 1–2 weeks.

Why the timeline matters

  • Alcohol: metronidazole and tinidazole can cause a severe reaction with alcohol, so the leaflet advises waiting at least 2–3 days after the last dose.
  • New medicines: interactions do not stop the moment you swallow the last pill. A long-lasting antibiotic like azithromycin, or clarithromycin with its enzyme effects, can still interact with medicines started shortly afterward.
  • Blood thinners: some antibiotics raise warfarin's effect, so INR checks are often advised during and shortly after a course.
  • Delayed side effects: rash, diarrhea, or other reactions can appear after you finish a course.

Effects that last longer than the drug

Even after an antibiotic has left your bloodstream, its effect on your gut bacteria can last for weeks or months. That disruption is why C. diff infection — a cause of severe, watery diarrhea — can develop up to several weeks after treatment. MedlinePlus notes that recent antibiotic use is a major risk factor. Contact your doctor if you develop frequent watery diarrhea, cramps, or fever after a course of antibiotics.

Practical tips

  • Finish the full course as prescribed — leftover drug in your system does not replace missed doses.
  • Tell any doctor or pharmacist about a recent antibiotic course when starting a new medicine.
  • Follow the alcohol advice on the leaflet, including the waiting period after the last dose.
  • Do not save leftover antibiotics for later or share them with others.

For related reading, see our guides on whether antibiotics make you tired, warfarin and antibiotics, probiotics with antibiotics, and alcohol and medication interactions.

How MedSafeScan helps

MedSafeScan keeps a record of the antibiotics you have taken alongside your regular medicines, so when you start something new soon after a course, you and your pharmacist can see the full picture and check for interactions.

MedSafeScan provides informational guidance only and is not a substitute for professional medical advice. Always consult your healthcare provider before making any changes to your medications.

Quick answers

How long does amoxicillin stay in your system?

Amoxicillin has a short half-life of roughly one to one and a half hours in people with normal kidney function, so most of it is cleared within about 8 to 12 hours after the last dose. It may take longer in people with reduced kidney function, older adults, and young infants.

How long after metronidazole can I drink alcohol?

Avoid alcohol while taking metronidazole and for at least 2 to 3 days after the last dose, following the advice on your leaflet. The combination can cause flushing, nausea, vomiting, headache, and a fast heartbeat. Tinidazole carries a similar warning of at least 3 days.

Does azithromycin keep working after you stop taking it?

Yes. Azithromycin has a very long half-life (around 68 hours) and builds up in tissues, which is why short courses of three to five days work. It can remain in the body for one to two weeks after the last dose, so it is still worth mentioning to a doctor or pharmacist if you start a new medicine during that time.

Sources and further reading

These public resources are provided for background reading. They do not replace advice from your pharmacist, doctor, or other licensed healthcare professional.

Last reviewed:

Keep reading

Get MedSafeScan on Google Play

Build your medication profile and check for interactions with MedSafeScan, free on Google Play.