Several sexually transmitted infections can cause anal or rectal symptoms — most commonly gonorrhea, chlamydia, genital herpes, and syphilis. They show up as rectal pain, itching, discharge, bleeding, or sores. But hemorrhoids, fissures, and bowel conditions cause the same complaints, so only a test tells you which, if any, you have.

curable
Gonorrhea

Neisseria gonorrhoeae

curable
Chlamydia

Chlamydia trachomatis

managed
Genital herpes

Herpes simplex virus

curable
Syphilis

Treponema pallidum

Anal or rectal symptoms: likely causes. Source: CDC.
Anal or rectal symptoms: likely causes
ItemValue
Gonorrheacurable — Neisseria gonorrhoeae
Chlamydiacurable — Chlamydia trachomatis
Genital herpesmanaged — Herpes simplex virus
Syphiliscurable — Treponema pallidum

Which STIs cause anal or rectal symptoms?

When an STI infects the rectum, it produces what clinicians call proctitis: inflammation of the rectal lining that can feel like pain, a sense of fullness or pressure, mucus or pus, bleeding, and an urge to pass stool that isn't there. The infection usually arrives through receptive anal sex, though some can spread other ways. Each candidate below has a tell-tale pattern, but the patterns overlap enough that none is diagnostic on its own.

Gonorrhea

Gonorrhea is caused by the bacterium Neisseria gonorrhoeae, which can infect the genitals, rectum, and throat CDC, About Gonorrhea. In the rectum it tends to produce discharge, itching, soreness, and sometimes painful bowel movements, but rectal gonorrhea is often silent, so it goes untreated and gets passed on. At other sites the giveaways differ: men may notice burning on urination and a white, yellow, or green penile discharge; women frequently have no symptoms at all, or only painful urination, more vaginal discharge, or bleeding between periods. Learn more about gonorrhea and its full symptom picture.

Chlamydia

Chlamydia, caused by the bacterium Chlamydia trachomatis, is the classic silent infection. Roughly three-quarters of infected women and half of infected men notice nothing CDC Chlamydia Fact Sheet. In the rectum it can cause mild discharge, itching, or pain, but very often there's nothing to notice. When genital symptoms do appear, they usually show up within one to three weeks after exposure. A particular concern at the rectum is lymphogranuloma venereum (LGV), an aggressive form of chlamydia that causes more severe proctitis with bleeding and pain. See the full picture on chlamydia.

Genital herpes

Herpes is caused by two viruses, HSV-1 and HSV-2, and most people who carry it have no or very mild symptoms. The majority of HSV-2 infections are never diagnosed CDC, About Genital Herpes. When symptoms do occur around the anus, they're usually blisters that break into painful sores. A first outbreak takes a week or more to heal and may come with flu-like fever, body aches, and swollen glands. Sores can appear on or around the genitals, rectum, or mouth. Repeat outbreaks are shorter and milder, and some people feel a prodrome of tingling, itching, or burning a day or two before a sore appears. For managing recurrences, see alternative herpes treatments.

Syphilis

Syphilis is caused by the bacterium Treponema pallidum and is curable with the right antibiotics CDC, About Syphilis. Its primary sign is a chancre: one or more painless, firm, round sores at the site of infection, which for anal exposure means the anus or rectum. Because it doesn't hurt and may sit inside the rectum, the chancre is easy to miss. It appears around three weeks after exposure (the incubation window runs from about ten to ninety days), lasts three to six weeks, and heals on its own while the infection stays. The secondary stage can follow with a rough red or reddish-brown rash, sometimes on the palms and soles, plus fever, swollen lymph nodes, sore throat, patchy hair loss, and fatigue. Read more about what is syphilis? causes, stages & risks.

When it's not an STI

Plenty of anal symptoms have nothing to do with an infection. Hemorrhoids, swollen veins in and around the anus, cause itching, bleeding (usually bright red on the toilet paper), and a sense of pressure. An anal fissure, a small tear in the lining usually from a hard stool, causes a sharp, tearing pain during bowel movements and a little bleeding. Inflammatory bowel conditions like Crohn's disease and ulcerative colitis can produce rectal pain, mucus, bleeding, and urgency that mimics infectious proctitis. None of these is contagious, but they look and feel enough like an STI that you can't reliably tell them apart yourself.

How to tell them apart

A few features point one way more than another. Painless sores suggest syphilis; clustered painful blisters suggest herpes; discharge and burning point toward gonorrhea or chlamydia; bright-red bleeding with bowel movements and itching leans toward hemorrhoids or a fissure. But these clues overlap heavily, and several STIs are frequently silent, so symptoms alone won't settle it. A test will.

Side-by-side comparison

CauseTypical anal/rectal patternPain?Bleeding?STI?
GonorrheaDischarge, itching, soreness; often silentMild or noneSometimesYes
ChlamydiaMild discharge/pain; usually silent; LGV more severeMild or noneWith LGVYes
Genital herpesClustered blisters that break into sores; prodromeOften painfulRareYes
SyphilisPainless firm sore (chancre) at the sitePainlessNoYes
HemorrhoidsItching, pressure, lumpVariableBright red, on paperNo
Anal fissureSharp tearing pain with stoolSharpSmall amountNo
IBD (Crohn's/UC)Mucus, urgency, cramping, bleedingVariableYesNo

How it's tested

For gonorrhea and chlamydia, a nucleic acid amplification test (NAAT) is the recommended method, and it works on a self-collected rectal swab as well as urine CDC STI Treatment Guidelines, 2021. Herpes is confirmed by swabbing an active sore for type-specific NAAT or culture. Syphilis needs two blood tests to confirm: a nontreponemal test (RPR or VDRL) plus a treponemal test (such as TP-PA or an EIA/CIA). In practice that means a urine sample, a quick swab, or a short exam depending on what's suspected. You can get tested for free or low cost at health departments, Planned Parenthood, and Title X clinics, with results usually back in a few days. If you're testing soon after a possible exposure, check when to test after exposure so you don't test too early and miss it.

What to do next

Don't guess — overlapping symptoms make self-diagnosis fail here. Bacterial infections (gonorrhea, chlamydia, syphilis) are curable with antibiotics, and herpes is managed with antiviral medication; a clinician matches the treatment to the confirmed diagnosis. Avoid sex until you've been evaluated and, if treated, told it's safe to resume, and let recent partners know so they can be checked too.

Red flags — when to get seen urgently

  • You have severe rectal pain, heavy bleeding, or are passing pus or large amounts of mucus.
  • You have a fever with the rectal symptoms, or feel generally unwell.
  • A sore or ulcer appears around the anus, painful or painless, since both herpes and syphilis warrant prompt evaluation.
  • Symptoms keep coming back or won't clear despite treatment.
  • You're unable to pass stool or urine, or the pain is rapidly worsening.