Doctors Note Logo

Published on: 2/3/2026

The Infection Warning: When Your Doctor Will Advise Against Sex During Pregnancy

Sex is usually safe in pregnancy, but your clinician may advise against it if infection is present or suspected, including untreated STIs, bacterial vaginosis, UTIs, severe or recurrent yeast infections, certain Group B strep concerns, or higher risk situations like ruptured or leaking membranes, unexplained bleeding, or a shortened cervix. Call your doctor for symptoms such as fever, foul discharge, burning with urination, pelvic pain, painful sex, or bleeding after sex, and confirm when it is safe to resume after treatment and any needed partner testing or condom use. There are several factors to consider; see below to understand timing, precautions, and other details that could change your next steps.

answer background

Explanation

The Infection Warning: When Your Doctor Will Advise Against Sex During Pregnancy

Many people ask, "Can you have sex when pregnant?" For most healthy pregnancies, the answer is yes. Sex during pregnancy is usually safe, comfortable, and even beneficial for intimacy and emotional well‑being. However, there are specific situations—especially those involving infection risk—where your doctor may advise against sex for a period of time.

This article explains when and why infections change the guidance, what symptoms to watch for, and how to protect both you and your baby without creating unnecessary fear. The information here reflects guidance commonly used by obstetricians and supported by respected medical organizations such as the American College of Obstetricians and Gynecologists (ACOG) and the Centers for Disease Control and Prevention (CDC).


When Sex During Pregnancy Is Usually Safe

In a typical, uncomplicated pregnancy:

  • Sex does not harm the baby
  • The baby is protected by the uterus, amniotic fluid, and a mucus plug in the cervix
  • Orgasms and gentle intercourse do not cause miscarriage

So again, can you have sex when pregnant? Yes—unless your doctor identifies a medical reason to pause, most commonly related to infection, bleeding, or early labor risk.


Why Infections Matter More During Pregnancy

Pregnancy naturally changes the immune system. This helps your body support a growing baby, but it can also make it easier for infections to:

  • Develop more quickly
  • Spread more easily
  • Cause complications if not treated promptly

Some infections can irritate the cervix, weaken protective barriers, or increase the risk of preterm labor, rupture of membranes, or newborn infection. This is why doctors sometimes recommend avoiding sex until the infection is treated or fully resolved.


Infections That May Require Avoiding Sex During Pregnancy

Below are common infection-related reasons your doctor may advise against sex temporarily.

1. Sexually Transmitted Infections (STIs)

If you or your partner has an untreated or active STI, your doctor will usually recommend no sex, including vaginal, oral, or anal sex, until treatment is complete.

Examples include:

  • Chlamydia
  • Gonorrhea
  • Syphilis
  • Trichomoniasis
  • Genital herpes (especially during an active outbreak)

These infections can:

  • Be passed to the baby during pregnancy or birth
  • Trigger inflammation that increases preterm labor risk
  • Reinfect a treated partner if sex continues too soon

In some cases, condoms may reduce risk, but abstinence during treatment is often the safest choice.


2. Bacterial Vaginosis (BV)

Bacterial vaginosis is not an STI, but it is linked to:

  • Preterm birth
  • Premature rupture of membranes
  • Uterine infection after delivery

Doctors may recommend avoiding sex while being treated for BV, especially if:

  • You have symptoms like odor, discharge, or irritation
  • You have a history of preterm birth

3. Yeast Infections (Severe or Recurrent)

Most yeast infections are not dangerous to pregnancy, but sex may be discouraged if:

  • Symptoms are severe or painful
  • The infection keeps returning
  • Intercourse worsens irritation or causes bleeding

Sex can delay healing and make symptoms more uncomfortable, even if it does not directly harm the baby.


4. Urinary Tract Infections (UTIs)

UTIs are common in pregnancy and can become serious if untreated.

Your doctor may suggest avoiding sex if:

  • You have significant bladder pain or burning
  • The infection is spreading toward the kidneys
  • You are early in antibiotic treatment

Sex can push bacteria back into the urinary tract and slow recovery.


5. Group B Strep (GBS) Concerns

Group B strep is a bacterium commonly found in the body. It is usually harmless to adults but can be dangerous to newborns during delivery.

While GBS itself does not always require avoiding sex, your doctor may advise caution if:

  • You have other infection risks
  • You have vaginal irritation or inflammation
  • You are close to delivery and membranes are fragile

Situations Where Infection Risk Is Higher

Even without a confirmed infection, doctors may advise against sex when the risk of infection is increased, such as:

  • Ruptured or leaking amniotic membranes
  • Unexplained vaginal bleeding
  • An incompetent or shortened cervix
  • History of preterm labor linked to infection

In these cases, bacteria can travel upward more easily, increasing the risk to the baby.


Symptoms That Should Prompt a Medical Call

Contact your doctor promptly if you notice:

  • Fever or chills
  • Foul-smelling vaginal discharge
  • Burning with urination
  • Pelvic pain or pressure
  • Painful sex or bleeding after sex

These symptoms do not always mean something serious—but they should always be checked during pregnancy.


Emotional and Psychological Factors Also Matter

For some people, sex during pregnancy becomes emotionally complicated, especially if there is:

  • A history of past trauma
  • Painful past medical experiences
  • Anxiety related to pregnancy or body changes

If you've experienced difficult situations in the past that affect your comfort with intimacy, understanding your symptoms can help you have more informed conversations with your healthcare provider. You can use a free, confidential Sexual Trauma symptom checker to better understand what you're experiencing and get personalized guidance on next steps.


What About Your Partner's Health?

Infection prevention during pregnancy is a shared responsibility.

Doctors may recommend:

  • Partner testing and treatment
  • Temporary abstinence even if you feel fine
  • Condom use in specific situations

Even if only one partner has symptoms, both partners often need evaluation to prevent reinfection.


How Long Will Sex Be Off Limits?

In most infection-related cases, restrictions are temporary.

Sex can usually resume when:

  • Treatment is completed
  • Symptoms are gone
  • Follow-up tests (if needed) are clear
  • Your doctor confirms it is safe

Always ask for clear guidance so you know exactly when it's okay to resume intimacy.


The Bottom Line

So, can you have sex when pregnant?
Yes—most of the time.

But when infections are present or suspected, your doctor may advise against sex to:

  • Protect your baby
  • Prevent complications
  • Support proper healing

This guidance is not about blame or fear—it's about safety and timing.

If anything feels off, uncomfortable, or worrying, speak to a doctor right away, especially about symptoms that could be life-threatening or serious. Early care makes a real difference for both you and your baby.

Pregnancy is a time of many changes. Clear information, medical support, and open communication can help you make confident, safe decisions about intimacy throughout the journey.

(References)

  • * De Lisi, R., Nicosia, E., Bruno, M., Cammisa, M., Piazzi, F., & Fiasconaro, F. (2018). Sexual activity during pregnancy: A critical review of the literature. *Minerva Ginecologica*, *70*(6), 661–667. pubmed.ncbi.nlm.nih.gov/30421679/

  • * Bartellas, E., Hannam, T., & Miller, J. (2009). Sexual activity during pregnancy: A literature review. *Journal of Obstetrics and Gynaecology Canada*, *31*(12), 1162–1166. pubmed.ncbi.nlm.nih.gov/20089182/

  • * Gracia, C. R., Lamy, M., & Garcia, R. B. (2018). Sexual Activity During Pregnancy: Risks, Benefits, and Advice. *Current Sexual Health Reports*, *10*(1), 1–6. pubmed.ncbi.nlm.nih.gov/29670535/

  • * Tang, K., Lu, S., Qiu, S., & Li, J. (2020). Sexual activity and the risk of preterm birth: a systematic review and meta-analysis. *BJOG: An International Journal of Obstetrics and Gynaecology*, *127*(11), 1318–1327. pubmed.ncbi.nlm.nih.gov/32338982/

  • * Mercer, B. M. (2009). Premature rupture of membranes: the diagnosis and management implications. *Reviews in Obstetrics & Gynecology*, *2*(1), 12–23. pubmed.ncbi.nlm.nih.gov/19399283/

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Learn more about diseases

Sexual Trauma

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.