← Full anogenital ulcers algorithm
Reasoning GP · Diagnostic Compass · decision tree

Anogenital ulcers1 PAGE

A new genital or perianal ulcer: emergency, same day, cancer pathway, or which cause?
BASHH syphilis 2024 · herpes 2024 · HSV pregnancy 2024 · PEP 2021
BHIVA/BASHH/BIA 2020 · NICE NG60 · NG12 (Apr 2026)
Reviewed Oct 2026 · next review Apr 2027
Applies to: sexually active adults with a new genital or perianal ulcer; not children. Painless and indurated = syphilis until serology proves otherwise; test for every STI at the same visit.
Anogenital ulcer

Rapidly spreading painful ulceration, black eschar, crepitus or perineal spread with sepsis (Fournier's, necrotising fasciitis) · Progressive ulceration with systemic collapse

Emergency?
YES
CALL 999
Hospital gives IV antibiotics and immediate debridement: transfer is the treatment; do not wait for swabs or bloods.
NO

Urinary retention, parenteral-level pain, systemic illness, necrosis, ocular or neurological symptoms → hospital · Pregnant, suspected primary herpes or syphilis → hospital + obstetrics; first-episode herpes in third trimester → obstetric contact · HIV exposure ≤72 h → PEP; palms/soles rash → same-day GUM · HIV-positive, immunocompromised, or ulcer persisting → urgent GUM · Behçet's + painful red eye or visual change → ophthalmology · NG12: vulval lump, ulcer or bleeding; penile mass or ulcer, STI excluded or after treatment; anal mass or ulcer

Same day or cancer pathway?
YES
SAME DAY · CANCER PATHWAY
PEP: same-day sexual health / ED, ideally within 24 h. NG12: consider suspected cancer pathway referral; do not delay STI tests for biopsy.
NO
Which pattern?
Primary syphilispainless, indurated, single
  1. Serology + quantitative RPR; urgent GUM.
  2. Treatment and partner notification by GUM.
  3. Warn: Jarisch-Herxheimer (within 24 h); pregnancy → obstetric advice.
Genital herpespainful, multiple, vesicles
  1. First episode: aciclovir 400 mg TDS or valaciclovir 500 mg BD 5–10 days; review day 5.
  2. Recurrent: aciclovir 800 mg TDS 2 days.
  3. Saline, analgesia, lidocaine 5% gel.
Mpox, LGVumbilicated; proctitis, MSM
  1. Mpox: swabs via sexual-health/ID; not routine HSV.
  2. LGV: rectal NAAT + genotyping via GUM.
  3. Not standard chlamydia treatment; partner notification by GUM.
Non-STIonly after STI tests
  1. Lipschütz, aphthae, lichen, trauma or assault.
  2. Fixed drug eruption → withdraw the drug.
  3. Behçet's → rheumatology; perianal fissures → colorectal.
EVERY PATIENT

Tests that change management

  • HSV PCR with typing from a fresh lesion base; mpox/VZV PCR if features.
  • Syphilis serology + RPR; 4th-generation HIV; hepatitis B/C if indicated.
  • Gonorrhoea/chlamydia NAAT by site; history: anal sex, travel, skin-to-skin contact, exposure ≤72 h, pregnancy.
  • Not routine: ANA, HLA-B51, Paul-Bunnell. Biopsy is arranged by the specialist service.

Safety-net · follow up

  • 999: sore spreads fast, skin turns black, very unwell or collapse.
  • Same day: no urine, severe pain, eye or vision change, headache, weakness, pregnant.
  • Persists or unexplained → reassess urgently; review until healed or explained; not by phone or photo alone. Partner notification via sexual health.
Never: Reassure by a painless ulcer or spontaneous healing (a chancre heals in 3–6 weeks) · Trust early negative syphilis serology, an HSV PCR from a crusted lesion, or an HIV test within 45 days · Stop at one positive result or a Lipschütz label: test for every STI first
Reasoning GP · Anogenital ulcers · decision tree · v1.0 · Oct 2026 · Full algorithm: gpreasoning.uk/tools/algorithms/anogenital-ulcers.htmlDecision support, not a substitute for clinical judgement. Check doses in the SPC and your local formulary.