Can You Get a Vaccine While on Antibiotics?

Getting a vaccine while taking antibiotics is safe in almost all cases. The CDC states plainly that the use of antimicrobial agents generally does not interfere with the effectiveness of vaccination, with only a couple of narrow exceptions involving live bacterial vaccines.1Centers for Disease Control and Prevention. Special Situations Yet the belief that antibiotics and vaccines should not overlap is surprisingly common, and it leads people to delay or skip shots they could safely receive. The reality is more nuanced than “always fine” or “always wait,” and the details matter depending on which antibiotic, which vaccine, and how sick you are.

Why the CDC Does Not Consider Antibiotics a Contraindication

The CDC’s immunization best practices list “current antimicrobial therapy” as a condition commonly misperceived as a contraindication to vaccination. In other words, it is something people and even some clinicians mistakenly treat as a reason not to vaccinate, when in fact it is not.2CDC. Contraindications and Precautions This is not a gray area in the guidelines. Antibacterial agents have no effect on inactivated (non-live) vaccines, which make up the vast majority of shots on the routine schedule. They also have no effect on most live vaccines.1Centers for Disease Control and Prevention. Special Situations

The reasoning is straightforward. Most vaccines work by introducing a protein, a killed pathogen, or a weakened virus to your immune system. Antibiotics target bacteria, not viruses, and they do not interfere with the way your immune cells recognize and respond to vaccine antigens. A flu shot, a tetanus booster, a COVID vaccine, an HPV shot, a pneumococcal vaccine: none of these are compromised because you happen to be taking amoxicillin for an ear infection or azithromycin for a sinus infection.

The Two Exceptions Worth Knowing About

The CDC flags two specific vaccines where antibiotics can be a problem: the live oral typhoid vaccine (Ty21a) and the BCG vaccine used against tuberculosis.1Centers for Disease Control and Prevention. Special Situations Both are live bacterial vaccines, meaning they contain weakened but living bacteria that need to survive long enough in your body to trigger an immune response. Antibiotics can kill those weakened bacteria before they do their job, rendering the vaccine ineffective.

The oral typhoid vaccine is the more commonly encountered one. If you are prescribed antibiotics before a trip abroad and also need typhoid protection, the timing matters. The general recommendation is to finish the antibiotic course before starting the oral typhoid series, or to use the injectable typhoid vaccine instead, since the injectable version is inactivated and unaffected by antibiotics. BCG, used primarily outside the United States for tuberculosis prevention, follows a similar logic. If you are on antibiotics with activity against mycobacteria, the live BCG bacteria may not survive long enough to produce immunity.

These exceptions affect a tiny fraction of vaccinations. Most people in the United States will never receive either of these vaccines, and if they do, a healthcare provider managing travel immunizations will be aware of the timing issue. For the routine vaccines that make up childhood and adult schedules, antibiotics are not a concern.

It Is the Illness That Matters, Not the Antibiotic

A common source of confusion is that people conflate being on antibiotics with being too sick to vaccinate. These are different questions. The CDC advises that vaccination should be deferred for people with a moderate or severe acute illness, but that decision is based on how sick you are, not on what medication you are taking.2CDC. Contraindications and Precautions A person running a high fever with chills and body aches from a bad bacterial infection has a legitimate reason to reschedule a vaccine appointment. But the reason is the fever, not the antibiotic.

If you have a mild illness, like a low-grade cold or the tail end of a sinus infection, and you happen to be on day four of a ten-day antibiotic course, there is no medical reason to delay your vaccine. The mild illness itself is not a contraindication either. The threshold the CDC uses is “moderate or severe acute illness,” which generally means significant symptoms like high fever, dehydration, or feeling substantially unwell. A scratchy throat and some amoxicillin do not meet that bar.

This distinction is worth emphasizing because missed vaccination opportunities have real consequences. A child brought in for a sick visit who also happens to be due for routine vaccines can often receive those vaccines at the same appointment, even if antibiotics are being prescribed. The same goes for adults. If you are at the pharmacy picking up a Z-pack and the pharmacist mentions you are overdue for a shingles or Tdap shot, the antibiotic is not a reason to say no.

What the Microbiome Research Actually Shows

A more scientifically interesting question is whether antibiotics, by disrupting gut bacteria, could subtly affect how well your immune system responds to vaccines. Researchers at Stanford and Emory explored this in a study published in Cell in 2019. They gave healthy adults broad-spectrum antibiotics before and after seasonal flu vaccination. The antibiotics hammered the gut microbiome, reducing bacterial load by a factor of ten thousand and causing a long-lasting drop in bacterial diversity.3PubMed Central. Antibiotics-driven gut microbiome perturbation alters immunity to vaccines in humans

Despite that dramatic disruption, the overall antibody responses to the flu vaccine were not significantly affected. The vaccine still worked. But there was a wrinkle. In a second trial, the researchers looked specifically at participants who had low pre-existing antibody levels against the flu strains in the vaccine, meaning people who hadn’t been exposed recently and were relying more heavily on the vaccine to build new immunity. In that group, there was a significant impairment in H1N1-specific neutralizing antibodies, as well as in certain classes of antibodies called IgG1 and IgA.3PubMed Central. Antibiotics-driven gut microbiome perturbation alters immunity to vaccines in humans

This finding is fascinating for what it suggests about the gut-immune connection, but it requires careful interpretation. The antibiotics used in this study were far more aggressive than what a typical patient takes for a routine infection. The study employed a cocktail of broad-spectrum agents specifically designed to wipe out gut bacteria as thoroughly as possible, a scenario that does not reflect someone taking a standard course of amoxicillin. The impaired response also appeared only in the subgroup with low prior immunity, not in the general population of study participants. This is a research finding about immune mechanisms, not a practical warning for people taking a normal antibiotic prescription.

What About Antivirals and Antifungals?

The CDC’s guidance extends beyond antibiotics to antimicrobial agents more broadly. Antiviral medications are a consideration for certain live virus vaccines, though the mechanism is different from the antibiotic-live-bacterial-vaccine interaction. Antiviral drugs active against herpes viruses, for instance, could theoretically interfere with the live varicella (chickenpox) or zoster (shingles) vaccines. Current guidelines recommend stopping antivirals like acyclovir and valacyclovir for a period before and after receiving those specific live virus vaccines, to give the weakened vaccine virus a window to replicate and trigger an immune response.

Antifungal medications, on the other hand, do not pose a concern for any vaccine on the standard schedule. There are no widely used live fungal vaccines, so the mechanism that creates problems with antibiotics and live bacterial vaccines simply does not apply.

For inactivated vaccines, neither antivirals nor antifungals matter. The pattern holds the same as with antibiotics: if the vaccine does not depend on a living organism to produce immunity, antimicrobial agents have no way to interfere.

Why the Myth Persists

Several forces keep the “don’t vaccinate while on antibiotics” myth alive. One is a reasonable but misplaced instinct. People on antibiotics are, by definition, fighting an infection. It feels intuitively wrong to challenge the immune system with a vaccine when it is already busy. But the immune system is not a single-lane highway. It handles multiple tasks simultaneously. Receiving a vaccine during a mild infection does not “overload” the system or reduce the vaccine’s effectiveness.

Another factor is that some healthcare providers, especially in busy clinical settings, err on the side of caution and tell patients to come back when they are feeling better. This advice is sometimes appropriate, particularly if the patient is genuinely very ill, but when the only concern is the antibiotic itself, it creates an unnecessary delay. For children on tight vaccination schedules, these delays can compound and leave kids under-protected for weeks or months longer than necessary.

There is also a general tendency to assume that medications interact with each other or with vaccines. This caution is well-founded for some drug combinations, but it does not extend to most antibiotic-vaccine pairings. The pharmacological mechanisms are different enough that there is simply no interaction to worry about in the vast majority of cases.

Practical Guidance for Common Scenarios

A few real-world situations come up repeatedly, and it helps to know where the evidence lands on each.

  • Child on antibiotics for an ear infection: Go ahead with scheduled vaccines. Ear infections treated with standard antibiotics like amoxicillin are not a reason to postpone childhood immunizations, as long as the child does not have a high fever or severe symptoms.2CDC. Contraindications and Precautions
  • Adult taking a course of antibiotics for a UTI or skin infection: You can receive a flu shot, COVID booster, Tdap, shingles vaccine, or any other routine vaccine without waiting.
  • Traveler prescribed antibiotics and needing typhoid protection: Ask your provider about the injectable typhoid vaccine, which is unaffected by antibiotics, or plan the timing so you finish antibiotics before starting the oral typhoid series.
  • Person on long-term antibiotics for acne or another chronic condition: Standard vaccines remain effective. The long-term, low-dose antibiotics used for conditions like acne are not a contraindication for any routine vaccine.1Centers for Disease Control and Prevention. Special Situations
  • Person who just finished antibiotics a few days ago: There is no waiting period after completing an antibiotic course before getting vaccinated. You can get a vaccine the same day you finish antibiotics, or even while still taking them.

Immunosuppressive Drugs Are a Different Story

One area where confusion often arises is between antibiotics and immunosuppressive medications. These are fundamentally different categories, and the rules that apply to one do not apply to the other. Immunosuppressive drugs, such as high-dose corticosteroids, chemotherapy agents, and biologics used for autoimmune conditions, directly dampen the immune system’s ability to respond. For people on these medications, live vaccines can be dangerous because the weakened vaccine organism may cause actual disease in someone whose immune defenses are suppressed. Even inactivated vaccines, while safe, may produce a weaker immune response in people on immunosuppressive therapy.

Antibiotics do not suppress the immune system in this way. They kill bacteria. Your immune cells, your antibody-producing machinery, and your T-cell responses remain intact while you are on a standard antibiotic course. When someone hears “don’t get vaccinated while on medication,” they may be remembering advice that was specifically about immunosuppressive drugs and incorrectly applying it to antibiotics. The two categories operate by completely different mechanisms and carry completely different implications for vaccination.

When to Talk to Your Provider Instead of Guessing

While the general answer is reassuringly simple, a handful of less common scenarios do warrant a conversation with a healthcare provider. If you are on prolonged intravenous antibiotics for a serious infection like endocarditis or osteomyelitis, the severity of the underlying illness, not the antibiotic, may be reason to defer elective vaccination until you are more stable. If you are taking an antibiotic that happens to have some immunomodulatory properties, such as certain tetracyclines at high doses used for their anti-inflammatory effects rather than their antibacterial ones, the picture gets slightly more complex and merits a discussion.

Pregnancy adds another layer. Pregnant people on antibiotics for conditions like group B strep or urinary tract infections can and should still receive recommended vaccines like Tdap and flu, but the overall vaccination plan during pregnancy is more nuanced and worth reviewing with an obstetrician regardless of antibiotic use.

For the overwhelming majority of people, though, the answer does not require a special conversation. If you are on a common oral antibiotic and a vaccine is due, get the vaccine. The evidence is clear, the CDC’s position is unambiguous, and delaying a vaccination for an antibiotic course that will not affect the vaccine’s effectiveness only increases the window during which you are unprotected.