Can I Take Antibiotics While Pregnant?

Pregnant woman in a purple shirt taking medicine.

Andersen Ross Photography Inc. / Getty Images

As wonderful as it is to grow a tiny human, the physical adjustments can certainly take a toll. Your body is going through a lot. You're not just dreaming if it feels like you're getting sick more than usual.

It's common for your immune system to weaken during pregnancy, making you more susceptible to catching an illness. On top of it, you're more at risk for a urinary tract infection (UTI) between six and 24 weeks as the uterus grows and puts more pressure on your bladder, blocking the drainage of urine.

"It’s a good idea to start taking a probiotic [after finding out you are pregnant], which will help maintain the good bacteria in your gut and vagina," explains Andrea Chisholm, MD, a board-certified OBGYN and member of the Verywell Family review board.

Whether you're stuck with an upper-respiratory infection or UTI, there's one main treatment they have in common—antibiotics. The good news is that antibiotics are generally considered safe for you and your baby during pregnancy. Here, we'll take a closer look at why antibiotics are used during pregnancy, their benefits, and any safety precautions you should take.

What Are Antibiotics?

Antibiotics are medicines that fight infections caused by bacteria, which are germs that live in the environment as well as inside and outside our bodies. Most bacteria are harmless (or even helpful), but in some cases, they can cause infections. Darren Salinger, MD, OBGYN from KIDZ Medical Services in Florida, explains that the most common reasons antibiotics may be needed during pregnancy include:

  • Acne treatment
  • Skin infections
  • Pneumonia
  • Sinus infections
  • Upper respiratory tract infections
  • Urinary tract infections (UTIs)
  • Kidney infections
  • Group B Strep colonization during labor
  • Preterm labor
  • Appendicitis
  • Gallbladder disease (cholecystitis)
  • Sexually transmitted diseases (STDs)

Antibiotics are not used to treat viral infections, such as the flu or the common cold. The most common side effects of antibiotics include rash, nausea, diarrhea, and yeast infections.

Is It Safe to Take Antibiotics During Pregnancy?

Generally speaking, antibiotics are considered safe. "Antibiotics are effective for many common infections and can be used during pregnancy," confirms Dr. Salinger. Moreover, research suggests that around one in four pregnant women will be prescribed an antibiotic during pregnancy, which accounts for nearly 80 percent of prescription medications for pregnant women.

Dr. Salinger explains that medications, including antibiotics, are grouped into risk categories to help determine whether they are safe to take during pregnancy. They are grouped into the following categories:

  • Category A and B: Medications considered safe for pregnant people
  • Category C: Medications considered generally safe but should only be used if necessary, as there are risks
  • Category D: Medications known to cause potential harm, but may be taken if the benefit is greater than the risk of harm
  • Category X: Medications that should not be used during pregnancy

Pregnancy Safe Antibiotics

Typically, antibiotics in categories A and B will be prescribed during pregnancy. According to Dr. Salinger, the list of antibiotics that are safe to use while pregnant include:

  • Penicillins, including amoxicillin and Augmentin, used for bacterial infections
  • Ampicillin, used during labor in people with group beta streptococcus colonization
  • Vancomycin, used in labor for group beta streptococcus infection with a penicillin allergy
  • Cephalosporins, including Kelex, used for bacterial infections
  • Clindamycin, used for bacterial infections
  • Macrobid (Nitrofuratoin), used for UTIs
  • Clindamycin cream, Metronidazole and Metrogel, used for bacterial vaginosis
  • Rocephin (Ceftriaxone), used for gonorrhea

"There are a [couple of] antibiotics to avoid," explains Dr. Salinger. "Tetracycline, which can cause fetal teeth to turn yellow, and streptomycin, which may cause fetal hearing loss."

Both are typically used to treat bacterial infections.

"Historically the group of antibiotics called fluoroquinolones, like ciprofloxacin or levofloxacin, were considered unsafe in pregnancy," adds Dr. Chisholm. "Recent evidence suggests [they are] unlikely to be harmful, but should be avoided in the first trimester."

Every pregnancy is different. Be sure to consult with a healthcare provider about your circumstances if you have any questions about taking antibiotics while pregnant.

What If I Take Antibiotics Before Realizing I’m Pregnant?

While many antibiotics are considered safe during pregnancy, Dr. Salinger cautions that a few, in particular, are associated with an increased miscarriage if taken before 20 weeks. A 2017 study found that azithromycin (Z pack), Cipro, and Bactrim (commonly used for respiratory illnesses and UTIs) increased the risk of miscarriage during the first trimester. That said, the risk is said to be very low.

If you took one of these antibiotics before realizing you were pregnant, try not to panic—after all, you didn't know! The best thing you can do is make an appointment with your healthcare provider to discuss the next steps and ensure all is well with baby.

Safety Precautions

In a 2020 study published in The BMJ, researchers took a closer look at macrolide (a specific class of antibiotics during pregnancy. They found that the risk of any birth defect, specifically heart defects, was higher if macrolides were used instead of penicillin during the first trimester. Fortunately, it was determined that the risk is still quite low.

Ultimately, any risk should be balanced against the more serious problems that can arise for babies whose parents are not treated for bacterial infections during pregnancy. "If the benefits outweigh the risks, then you are OK taking [that] medication during pregnancy," says Dr. Salinger.

As a precaution, pregnant individuals should avoid taking macrolide antibiotics, including clarithromycin and azithromycin. While the risks may not be high, it's always best to choose a safer antibiotic, and your healthcare provider can offer advice if and when antibiotics are needed during your pregnancy.

"[A] general rule when it comes to antibiotics in pregnancy—make sure that an actual infection needing antibiotic treatment is diagnosed," adds Dr. Chisholm.

When Can I Resume Taking Antibiotics?

It is safe to resume taking most all antibiotics after delivery, but there are certain precautions to take if you are breastfeeding. It's important to ensure the medicine you're taking is safe for your child since it can pass through breastmilk during feeding.

That said, the CDC concluded that most prescription medications are safe to take while breastfeeding. When it comes to antibiotics, however, there are certain types that should be avoided, according to Dr. Chisoholm.

"[It is] typically recommended to avoid metronidazole and tetracycline while breastfeeding," she says. Metronidazole is commonly used for bacterial infections of the vagina, and tetracycline is often used to combat bacterial infections such as gastritis, pneumonia, and chlamydia.

Of course, it's always important to speak with your healthcare provider about any antibiotics you plan on taking while breastfeeding.

A Word From Verywell

While UTIs and respiratory illnesses during pregnancy are tough, the silver lining is that treating them with antibiotics is considered safe for you and your unborn baby. It's important to remember that if the risk to your baby is greater from leaving a bacterial infection untreated, an antibiotic is likely the best option.

A healthcare provider or OBGYN is the best resource when it comes to medication use during pregnancy, so above all else, consult them first to ensure you receive the safest treatment for you and your baby.

10 Sources
Verywell Family uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Racicot K, Kwon J-Y, Aldo P, Silasi M, Mor G. Understanding the complexity of the immune system during pregnancy. American Journal of Reproductive Immunology. 2014;72(2). doi:10.1111/aji.12289

  2. Kashif U, Riaz N, Ramasubramanian SP, Iles D. Urogynaecological complications in pregnancy. Obstetrics, Gynaecology & Reproductive Medicine. 2021;31(2). doi:10.1016/j.ogrm.2020.12.004

  3. Bookstaver PB, Bland CM, Griffin B, Stover KR, Eiland LS, McLaughlin M. A review of antibiotic use in pregnancy. Pharmacotherapy: The Journal of Human Pharmacology and Drug Therapy. 2015;35(11). doi:10.1002/phar.1649

  4. Centers for Disease Control and Prevention. Antibiotic Use Questions and Answers. Updated April 14, 2021.

  5. Muanda FT, Sheehy O, Bérard A. Use of antibiotics during pregnancy and risk of spontaneous abortion. Canadian Medical Association Journal. 2017;189(17). doi:10.1503/cmaj.161020

  6. Fan, H, Gilbert R, O’Callaghan F, Li L. Associations between macrolide antibiotics prescribing during pregnancy and adverse child outcomes in the UK: population based cohort study. BMJ. 2020;368:m331. doi:10.1136/bmj.m331

  7. Ranjan A, Sridhar STK, Matta N, Chokkakula S, Ansari RK. Prevalence of UTI among pregnant women and its complications in newborns. Indian Journal of Pharmacy Practice. 2017;10(1):45-49. doi:10.5530/ijopp.10.1.10

  8. Fan H, Li L, Wijlaars L, Gilbert RE. Associations between use of macrolide antibiotics during pregnancy and adverse child outcomes: A systematic review and meta-analysis. Scotti L, ed. PLOS ONE. 2019;14(2). doi:10.1371/journal.pone.0212212

  9. de Sá Del Fiol F, Barberato-Filho S, de Cássia Bergamaschi C, Lopes LC, Gauthier TP. Antibiotics and breastfeeding. Chemotherapy. 2016;61(3). doi:10.1159/000442408

  10. Centers for Disease Control and Prevention. Prescription Medication Use. Reviewed November 30, 2020.

By Alex Vance
Alex Vance is a freelance writer covering topics ranging from pregnancy and parenting to health and wellness. She is a former news and features writer for and Blog Writer for The HOTH. Her motherhood-related pieces have been published on Scary Mommy, Motherhood Understood, and Thought Catalog.