Infections during pregnancy
Infections during pregnancy are illnesses caused by germs that happen while you are pregnant or soon after birth and can affect you, your baby or both.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
Infections during pregnancy are illnesses caused by germs such as bacteria, viruses, fungi or parasites that happen while you are pregnant, during labour, or in the weeks after giving birth. Doctors group them under the medical name infectious pregnancy complications. The infection may have started before you became pregnant or may be picked up during pregnancy.
Most infections in pregnancy are mild, such as a cold, and do not harm you or your baby. Others need prompt treatment because pregnancy changes how your body fights germs, and some infections can pass to the baby before or during birth. The most serious problem is maternal sepsis, when the body's response to an infection becomes so strong that it starts to damage organs. Sepsis is a medical emergency, but early treatment works well for most people.
This page gives an overview of the main types of infection in pregnancy, the warning signs, and how they are found, treated and prevented.
Main types
Infections in pregnancy can be grouped by where they happen and when.
Infections of the womb and birth canal
- Intra-amniotic infection (chorioamnionitis): infection of the fluid and membranes around the baby, usually during labour or after the waters break.
- Puerperal infection: infection after birth, most often of the lining of the womb (endometritis), or of a caesarean wound or tear.
- Septic abortion: infection of the womb during or after a miscarriage or an abortion, especially if some tissue stays inside.
- Vaginal infections such as bacterial vaginosis and yeast infections.
Infections elsewhere in your body
- Urinary tract infections (UTIs): bladder and kidney infections are common in pregnancy. A kidney infection (pyelonephritis) can be serious.
- Breast infection (mastitis) after birth while breastfeeding.
- Chest infections such as flu, COVID-19 and pneumonia, which tend to be more severe in pregnancy.
Infections that can pass to the baby
- Group B streptococcus (GBS): a common bacterium that is usually harmless to you but can make a newborn very ill.
- Sexually transmitted and blood-borne infections: syphilis, HIV, hepatitis B, chlamydia, gonorrhea and genital herpes.
- Other infections: rubella (German measles), chickenpox, cytomegalovirus (CMV), parvovirus B19, listeria (from some foods) and Zika virus.
- Parasitic infections: such as toxoplasmosis (from undercooked meat or cat feces) and malaria in areas where it is common.
Symptoms
Symptoms depend on the type of infection. Some infections, such as GBS, syphilis, HIV, hepatitis B and many UTIs, cause no symptoms at all, which is why routine tests in pregnancy matter. When symptoms happen, they can include:
- Fever, chills or shivering
- Feeling very unwell, weak or confused
- Pain or burning when you pee, needing to pee often, or pain in your back or side
- Belly or pelvic pain, or a tender womb
- Unusual or foul-smelling vaginal discharge or bleeding
- Redness, swelling, pain or pus from a caesarean wound or stitches
- A painful, red, hot area on the breast
- Cough, shortness of breath or sore throat
- A rash, or sores or blisters in the genital area
- A fast heartbeat, or your baby moving less than usual
Warning signs of sepsis
Sepsis can develop quickly. Signs include a high or very low temperature, shaking chills, a racing heart, fast breathing, feeling short of breath, cold or blotchy skin, confusion, very little urine, or feeling that something is seriously wrong.
Causes and risk factors
During pregnancy, your immune system adjusts so that it does not reject the baby. Hormones also relax the tubes that carry urine, and your growing womb presses on the bladder. These changes make some infections easier to catch or more likely to become serious.
Things that raise the risk include:
- Waters breaking early, or a long time between waters breaking and birth
- A long labour or many internal exams
- Caesarean birth or an assisted birth
- Pieces of placenta or pregnancy tissue left in the womb
- Diabetes, obesity, anemia (low iron or blood count) or a weakened immune system
- A history of UTIs or group B strep
- Unprotected sex with a new partner or a partner with an infection
- Contact with young children (for CMV and parvovirus) or with sick people
- Not being vaccinated against rubella, chickenpox, flu, COVID-19 or whooping cough
Diagnosis
Many infections are found through routine tests at your first prenatal visit and later in pregnancy. These often include:
- A urine test to look for bacteria, even if you have no symptoms
- Blood tests for HIV, syphilis, hepatitis B and immunity to rubella, and often hepatitis C and chickenpox immunity
- Swabs for chlamydia and gonorrhea if you are at risk
- A swab of the vagina and rectum at about 35 to 37 weeks to check for group B strep
If you have symptoms, your care team will check your temperature, pulse, breathing and blood pressure, examine you and listen to your baby's heartbeat. You may need blood tests (including blood cultures, which look for germs in the blood), a urine test, swabs of discharge or wounds, or an ultrasound of your womb or kidneys. If sepsis is suspected, tests are done quickly so treatment is not delayed.
Treatment
Treatment depends on the germ and how sick you are. Your care team will choose medicines that are known to be safe in pregnancy or while breastfeeding.
Bacterial infections
Antibiotics (medicines that kill bacteria) are the main treatment. A bladder infection can often be treated with tablets, such as cephalexin or nitrofurantoin. Kidney infections, infections of the womb and sepsis are treated in hospital with antibiotics given through a vein (intravenously). Common choices include ampicillin, gentamicin, clindamycin and cephalosporins such as cefazolin, cefoxitin or cefotetan. If you carry group B strep, you are given an antibiotic such as penicillin or ampicillin during labour to protect your baby. Syphilis is treated with penicillin.
Viral and other infections
- HIV is treated with combination antiretroviral medicines, which greatly lower the chance of passing HIV to your baby.
- Genital herpes may be treated with acyclovir or valacyclovir, often from late pregnancy, to lower the chance of an outbreak at birth.
- Flu may be treated with oseltamivir, which works best when started early.
- If you have hepatitis B with a high viral level, an antiviral medicine such as tenofovir may be offered late in pregnancy. Babies of parents with hepatitis B get a vaccine and a protective antibody shot soon after birth.
Sepsis and severe infection
Sepsis needs urgent hospital care. This usually means antibiotics within the first hour, fluids through a vein, oxygen, and close monitoring of you and your baby. If the source is in the womb, such as leftover tissue, a procedure to remove it may be needed. Sometimes the safest choice is to deliver the baby. Some people need care in an intensive care unit for a while.
Always take the full course of any medicine prescribed, and don't stop or change it without talking to your care team.
Complications
Most infections in pregnancy are treated without lasting harm. When an infection is not found or treated in time, it can lead to:
- Sepsis, organ damage and, rarely, death of the pregnant person
- Preterm labour or early breaking of the waters
- Miscarriage or stillbirth
- Serious infection in the newborn, such as sepsis, pneumonia or meningitis
- Birth defects or long-term problems in the baby with some infections, such as rubella, CMV, Zika, toxoplasmosis and syphilis
- Damage to the womb or fallopian tubes that can affect future fertility
Prevention
You can lower the risk of many infections:
- Go to your prenatal visits and have the routine tests offered to you.
- Get recommended vaccines. Flu and whooping cough (pertussis) vaccines are recommended during pregnancy, and COVID-19 vaccine is recommended by many health authorities. RSV vaccine may also be offered late in pregnancy, depending on the season and local advice. Rubella and chickenpox vaccines are live vaccines given before or after pregnancy, not during it.
- Wash your hands often, especially after using the toilet, changing diapers, handling raw meat or touching soil.
- Be careful with food. Avoid unpasteurized milk and soft cheeses made from it, cook meat and eggs well, and reheat deli meats and hot dogs until steaming.
- Let someone else clean the cat litter, or wear gloves and wash your hands after.
- Practise safer sex and use condoms if your partner might have an infection.
- Avoid mosquito bites and check travel advice before visiting areas with Zika or malaria.
- After birth, keep wounds clean and dry, change pads often, and watch for signs of infection.
Outlook
With good prenatal care, most infections in pregnancy are found early and treated successfully, and most babies are born healthy. Sepsis is serious, but the earlier it is treated, the better the outcome. If you have had a serious infection in one pregnancy, your care team can plan extra checks and steps to protect you next time.
In Canada
In Canada, prenatal screening for HIV, syphilis, hepatitis B and rubella immunity is offered through provincial and territorial programs, and the Society of Obstetricians and Gynaecologists of Canada (SOGC) publishes guidance on group B strep and infections in pregnancy. Vaccine advice in pregnancy comes from the National Advisory Committee on Immunization (NACI).
Recognition and diagnosis
Maternal sepsis (WHO 2017) is life-threatening organ dysfunction from infection during pregnancy, childbirth, post-abortion or the postpartum period. Physiological changes of pregnancy (tachycardia, lowered blood pressure, mild leukocytosis, especially in labour) blunt standard criteria; use obstetric early warning scores and the obstetrically modified qSOFA (systolic BP 90 mmHg or less, respiratory rate 25/min or more, altered mentation). Common sources: genital tract (intra-amniotic infection, endometritis, septic abortion, retained products), urinary tract, respiratory, wound and breast. Group A streptococcus and E. coli are leading causes of severe disease.
Workup: blood cultures before antibiotics where this causes no delay, lactate, CBC, creatinine, LFTs, coagulation, urine culture, site-specific swabs, and imaging (pelvic ultrasound for retained products or abscess; CT where indicated). Suspected intra-amniotic infection (ACOG) is a clinical diagnosis: intrapartum temperature 39.0°C or higher, or 38.0 to 38.9°C persisting with at least one of maternal leukocytosis, purulent cervical drainage or fetal tachycardia.
Management
Follow Surviving Sepsis principles adapted by SMFM (Consult Series on sepsis in pregnancy and the puerperium): broad-spectrum IV antibiotics within 1 hour, crystalloid resuscitation with careful volume assessment (risk of pulmonary edema), vasopressors (norepinephrine first line) for persistent hypotension, source control, VTE prophylaxis, and early escalation to critical care. Fetal monitoring guides timing, but maternal stabilization usually comes first; delivery is indicated for intra-amniotic infection or when it is the source.
- Intra-amniotic infection (ACOG): ampicillin plus gentamicin; add clindamycin or metronidazole after caesarean for anaerobic cover.
- Postpartum endometritis: clindamycin plus gentamicin; add ampicillin if no response or enterococcus suspected.
- Septic abortion: broad-spectrum IV antibiotics and prompt uterine evacuation.
- Pyelonephritis: admission and IV beta-lactam (e.g. ceftriaxone); then suppression or test-of-cure.
- GBS: intrapartum penicillin G or ampicillin; cefazolin for penicillin allergy at low risk of anaphylaxis; for high-risk allergy, clindamycin only if the isolate is susceptible, otherwise vancomycin.
- Asymptomatic bacteriuria: screen and treat to reduce pyelonephritis.
Drug cautions: avoid tetracyclines; avoid fluoroquinolones where alternatives exist; avoid nitrofurantoin near term, and trimethoprim-sulfamethoxazole in the first trimester and near term, when alternatives exist; monitor aminoglycoside levels and renal function. Group A strep sepsis warrants clindamycin as adjunct and infection-control notification.
Red flags: hypotension, rising lactate, oliguria, altered mentation, hypoxia, severe abdominal pain or rapid deterioration. Prognosis is good with early recognition; delay is the main modifiable factor in maternal sepsis deaths.
When to get medical help
Contact your midwife, doctor or maternity unit the same day if you are pregnant or have recently given birth and you have:
- A fever of 38°C (100.4°F) or higher
- Pain or burning when you pee, or back or side pain
- Unusual, foul-smelling vaginal discharge
- A red, swollen or leaking wound, or a painful red area on your breast
- A rash, or have been in contact with someone with chickenpox, measles or rubella
Go to the emergency department or call emergency services right away if you have shaking chills, a racing heart, fast breathing or trouble breathing, confusion or extreme drowsiness, cold or blotchy skin, very little urine, severe belly pain, heavy bleeding, fluid leaking with fever, your baby moving less than usual, or you feel that something is seriously wrong.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Infectious Pregnancy Complications. meshb.nlm.nih.gov
- MedlinePlus: Infections and Pregnancy. medlineplus.gov/infectionsandpregnancy.html
- World Health Organization: Sepsis fact sheet. who.int/news-room/fact-sheets/detail/sepsis
- CDC: About Sepsis. cdc.gov/sepsis/