Can an STD Cause Diarrhea?

Published: Updated: Last reviewed: 7 min readDr. Michael Thompson
Can an STD Cause Diarrhea?
On this page

Yes, some STDs can cause diarrhea or symptoms that feel like it. Rectal gonorrhea, chlamydia, herpes, and syphilis can inflame the rectum after anal sex, causing urgency and frequent small stools. Acute HIV can cause diarrhea with fever. Gut infections like Shigella and Giardia can also spread through sex involving stool exposure.

Most diarrhea has nothing to do with sex. It's usually a stomach bug or something you ate. But in my practice, I always ask about sexual history when someone has rectal symptoms or diarrhea that doesn't fit the usual pattern. Several sexually transmitted infections affect the rectum or gut, and they're easy to miss if no one connects the dots.

How Can an STD Cause Diarrhea?

The CDC's treatment guidelines describe three patterns of sexually transmitted gut and rectal infection:

  • Proctitis: inflammation of the last few inches of the rectum, causing rectal pain, discharge, and tenesmus (a constant feeling that you need to pass stool). It's usually caused by gonorrhea, chlamydia, herpes, or syphilis.
  • Proctocolitis: proctitis plus diarrhea or abdominal cramps, with inflammation extending higher into the colon. Causes include Shigella, Campylobacter, and a form of chlamydia called LGV.
  • Enteritis: diarrhea and cramping without rectal inflammation, most often from Giardia or bacteria such as Shigella.
CauseMain symptomsTypical exposureTest
Rectal gonorrhea or chlamydia
Often none; rectal pain, discharge, bleeding, urgency
Receptive anal sex
Rectal swab NAAT
LGV (chlamydia serovars L1–L3)
Severe proctitis, bloody discharge, rectal ulcers
Receptive anal sex
Rectal chlamydia NAAT; LGV testing if available
Herpes
Painful rectal or perianal sores
Anal or oral-anal contact
PCR swab of sores
Syphilis
Painless rectal sore, sometimes proctitis
Anal or oral-anal contact
Blood test
Shigella
Bloody or prolonged diarrhea, fever, cramps
Any sexual activity involving stool exposure
Stool test
Giardia
Watery diarrhea, bloating, gas
Oral-anal contact, contaminated water
Stool test
Acute HIV
Diarrhea with fever, rash, sore throat
2–4 weeks after exposure
HIV antigen/antibody or RNA test

Source: CDC STI Treatment Guidelines (2021) – Proctitis, Proctocolitis, and Enteritis; CDC Shigella page; HIV clinical guidelines.

Can Rectal Gonorrhea or Chlamydia Feel Like Diarrhea?

Yes. Rectal infections often cause no symptoms. When they do, the CDC lists rectal pain, discharge, and bleeding among them. Patients tell me they feel like they need to go constantly, but only pass mucus or a small amount of stool. That's different from the large, watery stools of a stomach bug.

One crucial point: a urine test won't detect a rectal infection. If you've had receptive anal sex, you need a rectal swab. Many people test "negative" because only urine was checked.

What is LGV?

Lymphogranuloma venereum (LGV) is caused by specific strains of chlamydia that invade deeper tissue. Rectal LGV can cause bloody discharge, ulcers, and severe tenesmus, and it's sometimes mistaken for inflammatory bowel disease. The CDC recommends a 3-week course of doxycycline when severe LGV symptoms accompany a positive rectal chlamydia test, rather than the usual 1-week course. Your clinician will determine the exact regimen. We cover other uncommon infections in rare STDs you've never heard of.

Can HIV Cause Diarrhea?

It can, at two different stages. Within weeks of infection, many people develop a flu-like illness. Federal HIV clinical guidelines list fever, swollen lymph nodes, rash, muscle aches, headache, diarrhea, and sore throat among the signs of acute HIV. These symptoms fade on their own, which is why they're so often written off as a virus.

In advanced, untreated HIV, chronic diarrhea can come from the virus itself or from opportunistic infections. With modern treatment, this is far less common. If you've had diarrhea with fever 2 to 4 weeks after a possible exposure, read about early HIV symptoms and the HIV window period, and visit our HIV overview page.

Can Shigella and Giardia Be Sexually Transmitted?

Yes. These are gut infections, not classic STDs, but they spread through tiny amounts of stool, including during sex. The CDC notes that Shigella can spread during sexual activity, and while rates are higher among gay, bisexual, and other men who have sex with men, the risk applies to any sexual activity involving stool exposure. Shigella typically causes bloody or prolonged diarrhea, fever, and stomach pain starting 1 to 2 days after exposure.

Standard STD panels don't test for these organisms. They need a stool test. Some Shigella strains are hard to treat, so your clinician may order susceptibility testing before choosing an antibiotic. The CDC advises people with shigellosis to avoid sex for at least two weeks after diarrhea ends. For more on how infections affect the gut, see STDs and the gut microbiome.

Key point: If you have rectal symptoms after anal sex, ask for rectal swabs. If you have bloody diarrhea after sex involving stool exposure, ask for a stool test too. Both may be needed.

Which Tests Should You Ask For?

  • Rectal pain, urgency, discharge, or bleeding after anal sex: rectal swabs for gonorrhea and chlamydia, a syphilis blood test, and a herpes swab if sores are present
  • Bloody or prolonged diarrhea after oral-anal contact: stool testing for Shigella, Campylobacter, and Giardia, plus STD testing
  • Diarrhea with fever, rash, or sore throat 2–4 weeks after a possible exposure: an HIV antigen/antibody or RNA test

Our article on what STD makes your stomach hurt covers abdominal pain linked to STDs. When you're ready, a confidential STD panel can include site-specific swabs.

When to Seek Urgent Care

Go to the ER immediately if you have:

  • Bloody diarrhea with high fever, severe abdominal pain, or confusion
  • Signs of dehydration: very little urine, dizziness when standing, a racing heart, or inability to keep fluids down
  • Heavy rectal bleeding or passing clots
  • Severe rectal pain with fever and swelling near the anus (possible abscess)

See a clinician within 24–48 hours if:

  • You have rectal pain, discharge, bleeding, or constant urgency after anal sex
  • Diarrhea lasts more than a few days or keeps coming back
  • You develop diarrhea with fever and rash 2–4 weeks after a possible HIV exposure
  • A partner tells you they have gonorrhea, chlamydia, syphilis, or Shigella

Frequently Asked Questions

What STD causes diarrhea most often?

Rectal gonorrhea and chlamydia are the most common STDs behind diarrhea-like symptoms, though what they cause is really proctitis: urgency and frequent small stools with mucus or blood. Acute HIV can cause true diarrhea. Shigella, spread through sexual activity involving stool exposure, causes bloody diarrhea.

Can chlamydia cause diarrhea?

Rectal chlamydia can cause urgency, discharge, and frequent small bowel movements that feel like diarrhea, though it's often silent. The LGV strains cause more severe symptoms with bleeding. Only a rectal swab detects rectal chlamydia. A urine test won't.

How do I know if my diarrhea is from an STD?

Clues include recent receptive anal or oral-anal sex, rectal pain or discharge, constant urgency with little stool, or a flu-like illness weeks after a new partner. But symptoms overlap with food poisoning and bowel conditions, so testing is the only way to know.

Can herpes cause diarrhea?

Herpes can infect the rectum and anus, causing painful sores, rectal pain, and sometimes discharge or urgency. It doesn't typically cause watery diarrhea. A swab of any sore, tested by PCR, confirms it.

Can diarrhea be an early sign of HIV?

It can be part of the acute HIV illness 2 to 4 weeks after infection, usually alongside fever, rash, sore throat, or swollen glands. Diarrhea alone is rarely HIV. If you've had a possible exposure, get an HIV test, and repeat it after the window period if the first is negative.

Rectal or gut symptoms after sex deserve a real answer. Order a private STD test and ask about rectal swabs.

This article is for informational purposes only and does not replace advice from your healthcare provider.

✓ Free • 2 min • No signup

UTI or STD?

Burning, discharge, and pelvic pain can mean a UTI or an STD. Answer 6 questions to narrow it down.

Question 1 of 6

What's your main symptom?

This quiz is for educational purposes only and does not replace medical diagnosis. Both UTIs and STDs require professional testing and treatment.

Dr. Michael Thompson is an expert in sexually transmitted diseases with extensive clinical and research experience. He leads campaigns advocating for early diagnosis and prevention of diseases like HIV and gonorrhea. He collaborates with local organizations to educate both youth and adults about sexual health.