An itchy or painful anus can be caused by several STIs — most commonly genital herpes (painful sores), pubic lice or 'crabs' (intense itching), and rectal gonorrhea or chlamydia (often silent, sometimes itching or discomfort). But the same symptoms come from hemorrhoids, fissures, and pinworm too, so a test is what tells you which it is.
painful blisters that crust over; tends to recur
itching with visible lice or nits in coarse hair
discharge and burning; can also hit throat/rectum
often silent; discharge or burning if anything
| Item | Value |
|---|---|
| Genital herpes | managed — painful blisters that crust over; tends to recur |
| Pubic lice (crabs) | curable — itching with visible lice or nits in coarse hair |
| Gonorrhea | curable — discharge and burning; can also hit throat/rectum |
| Chlamydia | curable — often silent; discharge or burning if anything |
The short list of likely causes
When the skin around your anus itches or hurts, the cause usually falls into one of two buckets: an infection passed through sexual contact, or a common non-sexual problem like a hemorrhoid or a small tear. The STIs most worth ruling out are genital herpes, pubic lice, and rectal infection with gonorrhea or chlamydia. These conditions overlap so much in how they feel that you can't reliably tell them apart by symptoms alone, and several cause no symptoms at all.
Which STIs cause an itchy or painful anus
Genital herpes
Genital herpes is caused by two related viruses, herpes simplex virus type 1 (HSV-1) and type 2 (HSV-2) CDC, About Genital Herpes. It tends to hurt rather than itch. A first outbreak produces small blisters that break open into painful sores, often around the genitals, rectum, or mouth, and these can take a week or more to heal. A first episode may come with flu-like symptoms — fever, body aches, and swollen glands — as the immune system reacts to the virus. Sores near or just inside the anus can make sitting, wiping, or passing stool painful.
Most people with herpes have no symptoms or very mild ones, and the majority of HSV-2 infections are never diagnosed. A normal-looking anus doesn't rule it out. Repeat outbreaks tend to be shorter and milder than the first, and some people feel a warning prodrome — tingling, itching, or aching in the area — a day or so before sores appear. If you're managing recurrent episodes, it's worth reading about alternative herpes treatments alongside what your clinician recommends.
Pubic lice (crabs)
Pubic lice — nicknamed 'crabs' — are tiny insects called Pthirus pubis that feed on blood and live in coarse pubic and perianal hair (and sometimes the armpits, chest, beard, or eyelashes) CDC, About Pubic Lice. They spread mostly through sexual contact. The classic complaint is itching in the genital and anal area, often worse at night. Many people can see the lice or their nits (eggs) glued to the hair shafts, and a magnifying lens helps. Scratching can break the skin and lead to sores or a secondary infection. If the itch is the dominant symptom and you can spot something moving in the hair, review the full picture of crabs symptoms to confirm what you're seeing.
Gonorrhea
Gonorrhea is caused by the bacterium Neisseria gonorrhoeae, which can infect the genitals, throat, and rectum CDC, About Gonorrhea. Rectal infection is often silent, but when it causes symptoms they can include anal itching, soreness, discharge, or discomfort with bowel movements. In men, genital gonorrhea more typically shows up as burning when urinating and a white, yellow, or green penile discharge, and less commonly swollen or painful testicles. In women, genital infection is frequently symptom-free. Because rectal infection comes from receptive anal contact and can stay quiet, the only way to catch it reliably is to test.
Chlamydia
Chlamydia is caused by the bacterium Chlamydia trachomatis and is the classic silent infection: roughly three quarters of infected women and half of infected men have no symptoms at all CDC Chlamydia Fact Sheet. Rectal chlamydia, like rectal gonorrhea, can cause anal itching, pain, or discharge but very often causes nothing you'd notice. When genital symptoms do appear, they usually show up within one to three weeks after exposure. Because reinfection is common after treatment, retesting matters — here's what to know about chlamydia reinfection.
When it's not an STI
Plenty of itchy or painful anus cases have nothing to do with sex. The common culprits are hemorrhoids (swollen veins in or around the anus that cause pain, itching, and sometimes bleeding), anal fissures (small tears in the lining that produce sharp pain, especially with bowel movements), and pinworm (a tiny intestinal worm that classically causes intense nighttime anal itching, most often in children but sometimes adults). None of these are infections you catch through sex, and they're far more common overall than rectal STIs.
How to tell them apart
You usually can't tell by looking. These conditions overlap too much to sort out by sight alone, and several are frequently silent. A test settles which one, if any, it is. A few patterns are worth knowing while you arrange testing:
- Painful blisters or sores that scab over point toward herpes rather than an itch-only problem.
- Intense itching plus visible lice or nits on the hair strongly suggests crabs.
- Itch or pain after receptive anal contact, with or without discharge, raises the chance of rectal gonorrhea or chlamydia, but absence of symptoms doesn't clear you.
- Sharp pain during a bowel movement, often with a streak of bright red blood, fits a fissure or hemorrhoid better than an STI.
- Itching that's dramatically worse at night, especially around the same time each evening, can be pinworm.
Side-by-side comparison
| Cause | Main feeling | Tell-tale clue | Often silent? |
|---|---|---|---|
| Genital herpes | Pain | Blisters that break into sores; may feel a tingling prodrome first | Yes — most undiagnosed |
| Pubic lice (crabs) | Itch | Visible lice or nits on pubic/perianal hair | Sometimes |
| Rectal gonorrhea | Itch / soreness | May have discharge; follows receptive anal contact | Often |
| Rectal chlamydia | Itch / discomfort | Frequently nothing noticeable | Very often |
| Hemorrhoids / fissure | Pain, itch, bleeding | Pain with bowel movements; bright red blood | No |
| Pinworm | Itch | Worse at night | No |
How it's tested
Testing is straightforward and depends on what's suspected: a clinician confirms herpes by swabbing a sore for type-specific virologic testing (NAAT or culture works best on an active lesion) CDC Herpes Testing, diagnoses crabs simply by finding lice or nits, and detects gonorrhea and chlamydia with a NAAT — the preferred, highly accurate method for both genital and rectal sites CDC STI Treatment Guidelines, 2021. In practice that means a urine sample, a self-collected swab (including a rectal swab if needed), or a quick exam. Here's the practical breakdown of what to expect and how to get tested, and timing matters too — see when to test after exposure so you don't test too early.
What to do next
Don't guess and don't self-treat blindly. If sores, itching, or pain show up, get the specific cause confirmed first. Herpes, lice, gonorrhea, and chlamydia each need different treatment, and a cream that helps one does nothing for another. Testing is free or low-cost at health departments, Planned Parenthood, and Title X clinics, with results usually back in a few days. Once you have an answer, your clinician will match the treatment to the diagnosis; if it's gonorrhea or chlamydia, ask about retesting and notifying recent partners. You can review the relevant treatment path through the same testing pages above.
Red flags — when to get seen urgently
- Severe anal pain that stops you from sitting, walking, or passing stool.
- Fever, chills, or feeling generally unwell along with the anal symptoms.
- Heavy or persistent rectal bleeding, or blood that's dark rather than a bright streak.
- Spreading redness, swelling, pus, or a painful lump that's getting bigger — possible abscess.
- Widespread blisters or sores, or a first herpes outbreak with high fever and severe pain.
- Symptoms that don't improve after treatment, which can signal reinfection or a missed diagnosis.