Antibiotics in Pregnancy and Breastfeeding: When Azithromycin, Amoxicillin or Cephalexin Is Used and What to Avoid

🤰 A sore throat, a burning bladder or a fever in pregnancy brings one worry before any other: will the antibiotic harm the baby? Many women delay treatment or stop a course early because of that fear, and that delay is often the bigger danger. 🔍 The good news is that the antibiotics used most often in pregnancy, such as amoxicillin, cephalexin and azithromycin, have been taken by millions of pregnant women over several decades, and doctors know a great deal about which drugs are safe, which need careful timing and which are best left for after the birth. This guide explains how antibiotics reach the baby, why the trimester matters, which medicines are usually chosen for urinary, chest, throat, vaginal and skin infections, which ones are avoided and why, and how the same questions change once the baby is born and breastfeeding begins.
🤰 Why antibiotics in pregnancy need extra thought
🧬 Pregnancy changes the body in ways that matter for medicines. The blood volume rises by about half, the kidneys clear drugs faster, the stomach empties more slowly and the immune system is tuned down slightly so that it does not reject the baby. The same infection can therefore run a harder course, and the same dose can give lower blood levels than outside pregnancy. At the same time, every medicine has to be judged for a second patient who cannot be examined directly. That is why doctors lean on a short list of antibiotics with a long safety record, rather than the newest or broadest drug on the shelf.
📖 This article is a general safety guide for pregnancy and breastfeeding. Single conditions have their own articles on the site, for example chlamydia treatment, partners and pregnancy and strep throat in adults. Here the question is wider: which antibiotic fits a pregnant or breastfeeding woman, and why.
🧬 How a medicine reaches the baby
🧱 The placenta is not a wall. Almost every antibiotic crosses it to some degree, and the amount depends on the size of the molecule, how much of it binds to proteins in the blood and how well it dissolves in fat. Azithromycin crosses only in small amounts, the penicillins and cephalosporins cross freely but are among the gentlest drugs known, and the tetracyclines cross and bind to growing bones and teeth. What matters is not whether a drug crosses, but what it does once it arrives and at which stage of development.
📅 Why the trimester changes the answer
All or nothing period; many women do not yet know they are pregnant
Organs form; trimethoprim and high-dose fluconazole avoided
Teeth and bones mineralise; tetracyclines avoided
Sulfonamides and nitrofurantoin avoided near term
📆 If an antibiotic was taken before the pregnancy was known, the most useful step is to tell the midwife or doctor the name, dose and dates, not to panic. Most short courses of common antibiotics in the first weeks are not linked to birth defects, and the risk assessment is usually reassuring.
⚖️ The infection is often the bigger risk
🌡️ Fear of medicines makes some women wait for an infection to settle on its own. With a cold that is reasonable, since colds are viral and antibiotics do nothing for them. With a bacterial infection, waiting can be costly. A high fever in early pregnancy, a kidney infection or an infection of the waters can trigger early labour and harm the baby far more than a well-chosen antibiotic.
🟢 The antibiotics most often used in pregnancy
📋 A short group of drugs covers most infections seen in pregnancy. Penicillins and cephalosporins are the backbone, with azithromycin and clindamycin as the main alternatives for allergy or for germs that the first group does not reach. Metronidazole and nitrofurantoin fill specific gaps.
| 💊 Antibiotic | 🦠 Typical use in pregnancy | 📝 Notes |
|---|---|---|
| Amoxicillin | Urine, ear, throat, sinus and chest infections | Longest safety record; often first choice |
| Amoxicillin-clavulanate | Resistant urine, dental, skin and chest infections | Avoided when the waters break early |
| Cephalexin, cefuroxime, cefixime | Urine, skin, throat infections; gonorrhoea backup | Very widely used; mild cross-reaction with penicillin is uncommon |
| Azithromycin | Chlamydia, atypical pneumonia, whooping cough, penicillin allergy | Usually 1 to 5 days; heart rhythm caution |
| Clindamycin | Group B strep in allergy, skin and dental infections | Higher risk of diarrhoea and C. difficile |
| Nitrofurantoin | Bladder infections only | Avoided close to delivery |
| Metronidazole | Bacterial vaginosis, trichomonas | No alcohol during and for 2 days after |
💊 Azithromycin in pregnancy
🧪 Azithromycin is a macrolide antibiotic that stays in the tissues for days, which is why a course is so short. Large population studies have not shown a clear increase in major birth defects after azithromycin in pregnancy, and it is a recommended treatment for chlamydia in pregnant women, where doxycycline is not used. It is also chosen for atypical pneumonia, whooping cough and many infections in women who are allergic to penicillin. In hospital, it is part of some regimens when the waters break early and is sometimes added to the usual antibiotic at a caesarean section performed during labour.
📋 How it is usually taken
💊 Chlamydia: 1 g as a single dose
💊 Chest and throat infections: 500 mg on day 1, then 250 mg on days 2 to 5, or 500 mg daily for 3 days
⏱️ Once a day, with or without food
⚠️ What to tell the doctor first
💓 Any heart rhythm problem or long QT
💊 Other medicines that affect the heart rhythm, such as some anti-sickness drugs
🧪 Liver disease
🚫 Past allergy to erythromycin or clarithromycin
💡 The most common side effects are nausea, stomach cramps and loose stools, which can be hard to tell apart from pregnancy sickness. Taking the tablet after a light meal often helps. Antacids that contain aluminium or magnesium should be taken a few hours apart from the dose. For a sinus infection, azithromycin is often not the best pick because of resistance in common sinus germs; the reasons are covered in more detail elsewhere on the site.
💊 Amoxicillin and amoxicillin-clavulanate
📚 Amoxicillin has been given to pregnant women for more than fifty years, and it is the antibiotic with the most reassuring record in every trimester. It covers strep throat, many ear and chest infections and a share of urine infections, although resistance among urine germs means a urine culture is helpful before it is chosen for the bladder. Typical adult doses are 500 mg three times a day or 875 mg twice a day, depending on the infection.
🛡️ Amoxicillin-clavulanate adds a second ingredient that protects amoxicillin from bacterial enzymes, so it reaches resistant germs found in dental abscesses, bites, some skin infections and stubborn urine infections. One important exception: it is avoided when the waters break before 37 weeks, because a large trial found a higher rate of a serious bowel condition (necrotising enterocolitis) in babies born after this treatment. In that situation erythromycin or azithromycin with other drugs is chosen instead. It also causes more diarrhoea and thrush than plain amoxicillin.
💊 Cephalexin and the other cephalosporins
🔬 Cephalosporins are close cousins of penicillin with a similarly long record in pregnancy. Cephalexin is one of the most common choices for a bladder infection in pregnancy, usually 500 mg two to four times a day for about 5 to 7 days, and it also works well for skin infections and, after the birth, for mastitis. A dispersible form such as Cephadex DT (Cephalexin) helps women who struggle to swallow large tablets during nausea. Cefuroxime and cefixime extend the range to more resistant urine germs, and cefixime tablets are a backup for gonorrhoea when the usual injection cannot be given.
🚫 Women with a mild, delayed rash to penicillin many years ago can usually take a cephalosporin safely, because true cross-reactions are uncommon with most of them. After a severe reaction, such as swelling of the throat or a blistering rash, cephalosporins are avoided until an allergy specialist has looked at the history.
🚽 Bladder infections and the timing of nitrofurantoin
💧 Hormones relax the ureters in pregnancy and the growing womb presses on the bladder, so urine flows more slowly and bacteria have more time to multiply. That is why pregnant women are screened for bacteria in the urine even when they feel well, and why a positive result is treated. Without treatment, up to a third of women with silent bacteriuria go on to a kidney infection, which is a leading cause of hospital admission in pregnancy.
💊 The slow-release form is sold as Macrobid (Nitrofurantoin). It should be taken with food, which improves absorption and reduces nausea, and it can turn the urine dark yellow or brown, which is harmless. A repeat urine test after the course is often advised in pregnancy to confirm the bacteria have gone.
⛔ Antibiotics usually avoided in pregnancy
🚧 A few antibiotic groups are set aside during pregnancy, either because of a known effect on the baby or because safer drugs do the same job. Avoided does not always mean dangerous: a single dose taken by accident is rarely a reason for alarm, but these drugs are not chosen on purpose unless nothing else will work.
| 🚫 Antibiotic group | 📝 Why it is avoided | 🔄 Usual alternative |
|---|---|---|
| Doxycycline, tetracycline, minocycline | Bind to developing teeth and bones; yellow-grey staining of baby teeth | Azithromycin, amoxicillin |
| Ciprofloxacin, levofloxacin and other fluoroquinolones | Concerns from animal data about cartilage; safer drugs exist | Cephalosporins, amoxicillin |
| Trimethoprim (first trimester) | Blocks folate, which is needed for the neural tube | Cephalexin, nitrofurantoin |
| Sulfamethoxazole (near term) | Can raise jaundice risk in the newborn | Cephalexin, amoxicillin |
| Gentamicin and other aminoglycosides | Possible harm to the hearing of the baby with longer use | Used only in hospital, short courses, with level checks |
| Erythromycin estolate | Linked to liver problems in pregnant women | Erythromycin base or azithromycin |
| Chloramphenicol tablets | Grey baby syndrome near term | Almost never needed |
📖 Ciprofloxacin is sometimes the only drug that fits a resistant germ, and then a specialist weighs the balance. For everyday infections, a pregnant woman should not be given a fluoroquinolone or a tetracycline without a clear reason being explained.
🚫 Penicillin allergy in pregnancy
🧾 Around one in ten people carry a penicillin allergy label, often from a rash in childhood. When they are tested, about nine in ten turn out not to be allergic, since many childhood rashes come from the virus being treated, not from the drug. In pregnancy the label matters more than usual, because penicillin is the best drug for group B strep in labour and for syphilis, and alternatives are less effective or carry more side effects.
🦠 Common infections and the usual first choice
🧪 These are starting points, not prescriptions. Wherever possible, a urine culture, a throat swab or a vaginal swab is taken before the first tablet, so that the drug can be switched quickly if the germ turns out to be resistant.
🟣 Group B strep: why the antibiotic is given in labour
🧫 Group B streptococcus lives harmlessly in the gut and vagina of many healthy women. It only becomes a problem if it passes to the baby during birth, where it can cause pneumonia, sepsis or meningitis in the first days of life. Women who carry it are offered antibiotics through a drip from the start of labour, usually penicillin or ampicillin. Tablets taken weeks before labour do not help, because the bacteria come back.
💉 For women with a high-risk penicillin allergy, clindamycin is used if lab tests show the strain is sensitive to it; otherwise vancomycin is given. That is one more reason to clarify a doubtful allergy label before the third trimester. Clindamycin tablets such as Cleocin (Clindamycin) are also used outside labour for skin and dental infections in penicillin-allergic women, with the caveat that they cause diarrhoea more often than most antibiotics.
🌸 Bacterial vaginosis and trichomonas in pregnancy
🧫 Bacterial vaginosis causes a thin grey discharge with a fishy smell, often worse after sex. In pregnancy it has been linked to early labour. Women with symptoms are treated, and metronidazole is the standard choice in every trimester; large studies have not linked it to birth defects. The usual dose is 500 mg twice a day for 7 days, or a vaginal gel. Trichomonas, a sexually transmitted parasite, is treated with the same drug, and partners need treatment too.
Flagyl (Metronidazole) 500 mg twice daily, 7 days
None during and for 2 days after the course
Metallic taste, nausea
💑 Chlamydia and gonorrhoea
🧪 Chlamydia in pregnancy can cause eye and lung infections in the newborn. Because doxycycline is avoided, a single 1 g dose of azithromycin is the usual treatment, with amoxicillin as an alternative, followed by a test of cure about four weeks later and a repeat test in the third trimester. Gonorrhoea is treated with a ceftriaxone injection, and cefixime tablets such as Suprax (Cefixime) are a backup when an injection is not possible. Partners must be treated at the same time, or the infection returns. Full details are in the chlamydia treatment guide.
😷 Throat, sinus and chest infections
🤧 Most coughs, colds and sore throats in pregnancy are viral and settle with rest, fluids and paracetamol. An antibiotic is needed when there are clear signs of a bacterial infection: a sore throat with fever, swollen glands and white patches but no cough, a sinus infection lasting more than 10 days or getting worse after starting to improve, or a chest infection with fever and breathlessness. Amoxicillin covers most of these. Azithromycin is added when an atypical germ such as mycoplasma is suspected, or replaces amoxicillin in penicillin allergy.
💉 Whooping cough is a special case. A vaccine given in each pregnancy, in the middle or later weeks set by national schedules, protects the newborn through antibodies that cross the placenta. If a pregnant woman catches whooping cough late in pregnancy, azithromycin is used to treat her and to stop the baby being infected at birth.
🦷 Dental infections in pregnancy
🩥 Swollen, bleeding gums are common in pregnancy, and an untreated dental abscess can spread into the face and neck. Dental treatment, including local anaesthetic and X-rays with a shield, is safe in pregnancy, and the second trimester is the most comfortable time for it. The key step is draining the abscess; amoxicillin, or amoxicillin-clavulanate for spreading infection, is added when there is swelling or fever. Clindamycin or azithromycin are used in penicillin allergy.
🍄 Thrush after a course of antibiotics
🧫 Pregnancy hormones already make vaginal yeast infections more common, and antibiotics tip the balance further. In pregnancy, a 7-day course of a vaginal cream or pessary such as clotrimazole is preferred over fluconazole tablets, because high or repeated doses of oral fluconazole in the first trimester have been linked to birth defects, and data even on single doses are mixed. After the birth, oral fluconazole is generally compatible with breastfeeding. The full picture is in yeast infection after antibiotics.
🤱 Breastfeeding: how much antibiotic reaches the milk
🍼 Once the baby is born, the question changes from the placenta to the breast. Most antibiotics pass into milk only in small amounts, and the baby then absorbs only part of that from the gut. Doctors use a measure called the relative infant dose: the share of the weight-adjusted mother dose that the baby receives. For the common antibiotics it is low, well under the level usually considered acceptable. Stopping breastfeeding to take a standard antibiotic is almost never necessary.
✅ Antibiotics that fit breastfeeding
| 💊 Antibiotic | 🤱 Breastfeeding | 👀 What to watch |
|---|---|---|
| Amoxicillin, amoxicillin-clavulanate | Compatible | Loose stools, nappy rash, thrush |
| Cephalexin, cefuroxime, cefixime | Compatible | Loose stools |
| Azithromycin | Generally compatible | Vomiting, especially forceful vomiting in the first weeks |
| Clindamycin | Usually acceptable | Diarrhoea, blood in stools |
| Nitrofurantoin | Compatible after the first month | Avoid with a newborn under 1 month or with G6PD deficiency |
| Metronidazole | Compatible at usual doses | Milk may taste different; loose stools |
| Doxycycline | Short courses often acceptable | Long courses avoided |
| Ciprofloxacin | Used if no alternative | Diarrhoea; usually a cephalosporin is chosen first |
👶 With azithromycin and especially erythromycin, some studies found a higher rate of a narrowing at the outlet of the stomach (pyloric stenosis) in babies exposed in the first weeks of life, directly or through milk. The risk is small, but projectile vomiting after feeds in a young baby needs a prompt check by a doctor. Many doctors still choose azithromycin for a breastfeeding mother when it is the right drug for her infection.
👶 What to watch in a breastfed baby
🔥 Mastitis: keep feeding
🤱 Mastitis is inflammation of the breast, with a hot, red, painful area, often with fever and flu-like aches. Many cases start as inflammation without infection and settle within a day with rest, cold packs, pain relief and gentle feeding. An antibiotic is added when symptoms do not improve within 12 to 24 hours, or when the woman is clearly unwell. Cephalexin, flucloxacillin or dicloxacillin are usual choices, often for 10 to 14 days, with clindamycin in penicillin allergy. Feeding from the affected breast is safe for the baby and helps clear the milk. A firm lump that does not settle may be an abscess and needs an ultrasound.
📝 Taking a course safely in pregnancy and after birth
🍽️ Food, dairy, antacids and alcohol affect some antibiotics more than others. The general rules on timing and missed doses apply in pregnancy too, and they are explained step by step in how to take antibiotic tablets correctly. Prenatal vitamins that contain iron and calcium matter mainly for tetracyclines and fluoroquinolones, which are rarely used in pregnancy anyway.
🗿 Myths about antibiotics in pregnancy
🚨 When to see a doctor urgently
⛔ Get same-day medical care in pregnancy if you have:
🔹 A temperature of 38 °C or more, shivering or feeling very unwell.
🔹 A urine infection with back or side pain, vomiting or fever.
🔹 Fluid leaking from the vagina, bleeding, regular tightenings or less movement of the baby.
🔹 Breathlessness, chest pain or a cough with blood.
🔹 Swelling of the lips, face or throat, wheeze or a spreading rash after starting an antibiotic: call emergency services.
🔹 After the birth: a red, hot breast with fever that does not settle within a day, or a baby who is feeding poorly, vomiting forcefully or has a fever.
📖 Other medicines often asked about in pregnancy are covered in heartburn in pregnancy and allergy medicine in pregnancy and breastfeeding.
❓ Frequently asked questions
Is azithromycin safe in pregnancy?
Large studies have not shown a clear rise in birth defects, and it is a recommended treatment for chlamydia in pregnancy. A doctor should check heart rhythm risks and other medicines first.
Which antibiotic is safest in the first trimester?
Penicillins such as amoxicillin and cephalosporins such as cephalexin have the longest reassuring record. Trimethoprim and tetracyclines are avoided.
I took an antibiotic before I knew I was pregnant. What now?
Tell your midwife or doctor the name, dose and dates. Most short courses of common antibiotics in early pregnancy are not linked to birth defects.
Why is doxycycline not used in pregnancy?
Tetracyclines bind to developing teeth and bones and can stain baby teeth. Azithromycin or amoxicillin are used instead.
Can I take nitrofurantoin while pregnant?
It is commonly used for bladder infections in the second and early third trimester. It is avoided from about 36 weeks and preferred less in the first trimester when an alternative fits.
Is ciprofloxacin allowed in pregnancy?
Fluoroquinolones are usually avoided because safer antibiotics exist. A specialist may use one when a resistant germ leaves no other choice.
Can I breastfeed while taking azithromycin?
Generally yes. Only small amounts reach the milk. See a doctor if a young baby starts forceful vomiting after feeds.
Do I need to stop breastfeeding for amoxicillin or cephalexin?
No. Both are compatible with breastfeeding. The baby may have looser stools or a nappy rash, which are usually mild.
What if I am allergic to penicillin and pregnant?
Ask what the original reaction was. Many labels are not true allergy and testing helps. After a severe reaction, azithromycin or clindamycin are common alternatives.
Can I use fluconazole for thrush in pregnancy?
A 7-day vaginal cream or pessary such as clotrimazole is preferred. Oral fluconazole is avoided in pregnancy, especially in the first trimester, but is generally fine while breastfeeding.
📑 Sources and editorial
- 📘 Prescribing information for azithromycin, amoxicillin, amoxicillin-clavulanate, cephalexin, nitrofurantoin, clindamycin and metronidazole
- 🤰 Obstetric guidance on urinary tract infections, asymptomatic bacteriuria and group B streptococcus in pregnancy
- 🧪 National guidelines on the treatment of sexually transmitted infections in pregnancy
- 🔬 Population studies of antibiotic exposure in pregnancy and birth outcomes
- 📊 Randomised trial data on antibiotics after preterm rupture of the membranes
- 🤱 Reference databases on drugs and lactation, and breastfeeding medicine protocols on mastitis
- 🚫 Allergy society guidance on penicillin allergy assessment
- 📖 Related reading: chlamydia treatment, yeast infection after antibiotics, how to take antibiotic tablets, strep throat in adults
- 🛒 Related products: Zithromax (Azithromycin), Amoxil (Amoxicillin), Augmentin (Amoxicillin + Clavulanate), Keflex (Cephalexin), Macrobid (Nitrofurantoin), Flagyl (Metronidazole)
- 🩺 RXshop Editorial Team — reviewed by Anita Sharma, MD — Obstetrician and Gynaecologist
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.