Overview: Why Pain During Sex Can Be Linked to STIs
Pain during sex, also called dyspareunia, can have many causes, including sexually transmitted infections (STIs). When an STI causes inflammation, scarring, or irritation in the genital tract, it can make penetration or certain positions painful. Recognizing patterns—such as pain with deep penetration, pain that comes and goes, or pain paired with discharge or spotting—can help you and your clinician identify a possible infection. Early testing and treatment not only address infection but also reduce the risk of long-term complications that can worsen pain over time.
Common STIs That Can Cause Pain During Sex
Chlamydia and Gonorrhea
Chlamydia and gonorrhea often infect the cervix and upper reproductive organs. In people with a uterus, these infections can lead to pelvic inflammatory disease (PID), which may cause persistent pelvic pain and painful sex. In people with a penis, they may cause urethral irritation, discharge, and discomfort during or after ejaculation. Because these infections can be silent, regular screening is important if you are sexually active with new or non-mutually monogamous partners.
Trichomoniasis
Trichomoniasis, caused by a parasite, can lead to inflammation of the vulva, vagina, or urethra. People with vaginas may notice itching, burning, unusual discharge, and pain during sex or urination. People with penises may have mild irritation or discharge. Because the inflammation can make tissues more tender, penetration can feel uncomfortable until treatment clears the infection and reduces swelling.
Herpes (HSV)
Herpes simplex virus causes outbreaks of sores or blisters on or around the genitals. During an active outbreak, sexual contact—even without penetration—can be painful. Even between outbreaks, some people experience irritation because of healed lesions or nerve sensitivity. Using condoms and avoiding contact during visible outbreaks lowers the chance of passing herpes to partners and reduces opportunities for painful contact.
Syphilis
Syphilis progresses in stages, and in its secondary stage it can cause mucous patches or wart-like growths that may be tender. Sores (chancres) in the early stage, often painless, typically appear where the bacterium entered the body. Because syphilis can affect many organs if untreated, regular testing and prompt treatment are important to prevent progression and long-term complications that can contribute to pain.
Other Infections and Considerations
Less commonly, other infections such as human immunodeficiency virus (HIV) can be associated with conditions that contribute to pain, and viral or fungal infections unrelated to STIs can also cause discomfort. Non-infectious causes—such as vulvodynia, vaginismus, endometriosis, or hormonal changes—often occur alongside or instead of an STI. A clinician can help determine whether an STI, another medical condition, or a combination of factors is contributing to your symptoms.
Recognizing Symptoms and When to Seek Care
Symptoms that may suggest an STI alongside painful sex include unusual discharge from the penis or vagina, burning with urination, new bumps or sores, unusual bleeding or spotting after sex, persistent itching, or deep pelvic pain. Pain that recurs each time you have sex, worsens over time, or comes with fever or severe cramping should prompt prompt medical attention. Because some STIs cause few or no symptoms yet can still be passed to partners, routine screening based on your sexual behavior is a key part of prevention.
Testing and Diagnosis: What to Expect
Testing often involves a urine sample, a swab of the cervix or urethra, or a blood test depending on the infections your clinician suspects. For people with vaginas, a pelvic exam may be done to check for tenderness, discharge, or sores. Accurate testing helps identify the right treatment and reduces the risk of complications such as chronic pelvic pain or infertility that can make sex uncomfortable. If you are uncomfortable with a particular type of exam, tell your provider; they can discuss options and still collect useful samples.
Typical STI Tests and Turnaround Times
| Attribute | Verified Detail | Source Type |
|---|---|---|
| Urine NAAT for chlamydia and gonorrhea | Often same-day or next-business-day results in many clinics | Clinic standard |
| Swab of cervix, urethra, or rectum | May be used for chlamydia, gonorrhea, and trichomoniasis testing | Clinic standard |
| Blood test for herpes and syphilis | Results can take a few days to a week depending on the lab | Clinic standard |
| Pelvic or physical exam | Used to check for discharge, sores, or tenderness that inform testing | Clinical guidelines |
Practical Prevention and Safer-Sex Strategies
Using condoms or dental dams the right way, every time, lowers the risk of many STIs that can cause pain. Reducing the number of sex partners and having open conversations about recent testing and symptoms help create shared understanding and reduce risk. If you or a partner has active symptoms or a known infection, delaying penetrative sex until both partners have completed treatment and are cleared reduces the chance of passing infection and experiencing pain. Regular screening—especially after new partners—catches infections before they cause more serious discomfort or complications.
Treatment and Follow-Up for STI-Related Pain
Bacterial STIs such as chlamydia, gonorrhea, and syphilis are treated with antibiotics, which typically reduce inflammation and related pain as the infection clears. Trichomoniasis is treated with specific antiparasitic medication. Herpes cannot be cured, but antiviral medications can shorten outbreaks and lower the risk of passing the virus; managing outbreaks promptly can reduce painful episodes. After treatment, schedule a test-of-cure if recommended, and avoid sex until you and any partners have completed treatment and symptoms have resolved. Follow-up testing ensures infection is gone and helps protect both your health and future partners.
When Pain Persists: Non-STI Causes and Next Steps
If pain continues after STI testing and treatment, consider other causes such as muscular or pelvic floor issues, skin conditions, hormonal changes, or disorders like endometriosis or vulvodynia. A clinician may refer you to a specialist for a more detailed evaluation, including pelvic floor assessment or imaging. Tracking when and how pain occurs—depth of penetration, position, timing, or with specific types of touch—can help clinicians pinpoint causes and tailor treatment. Addressing emotional stress, using lubricants, and experimenting with positions that minimize discomfort can also improve comfort while you and your clinician work toward a diagnosis.