Epididymitis: Bacterial Etiology, Diagnosis, and Antibiotic Selection by Age and Risk
S1. Pathophysiology and Etiology
Epididymitis is inflammation of the coiled tube on the posterior testis where sperm mature and are stored before ejaculation. Most cases are bacterial in origin and reach the epididymis by retrograde ascent from the urethra (in young sexually active men) or from the bladder/prostate (in older men or those with bladder outlet obstruction). The inflammation typically begins at the epididymal tail (near the lower pole of the testis), spreads proximally to the head, and may secondarily involve the testis itself, producing epididymo-orchitis in advanced cases.
Age and risk-stratified pathogen probability
| Population | Most likely pathogens | Empirical treatment direction |
|---|---|---|
| Sexually active men <35 years | Chlamydia trachomatis (most common), Neisseria gonorrhoeae, Mycoplasma genitalium | STI-pattern coverage (ceftriaxone + doxycycline) |
| Men >35 years, BPH, post-instrumentation, post-prostatectomy | E. coli, Klebsiella, Enterobacter, Pseudomonas, enterococci | Enteric/UTI-pattern coverage (fluoroquinolone or TMP-SMX) |
| Insertive anal sex (any age) | Both STI organisms AND enteric gram-negatives | Combined coverage (ceftriaxone + levofloxacin) |
| Boys / pediatric | Often viral (mumps, adenovirus, enterovirus); when bacterial: Mycoplasma, post-viral inflammation; rarely UTI organisms | Often supportive; antibiotics if culture-positive UTI or suspected bacterial |
| Tuberculous epididymitis (rare; endemic regions, immunosuppressed) | Mycobacterium tuberculosis | 4-drug RIPE regimen × 6 months; consider in chronic, painless, beaded epididymitis with sinus tracts |
| Granulomatous epididymitis | BCG (post-bladder cancer therapy), syphilis, brucellosis, fungi (immunosuppressed) | Pathogen-specific therapy after biopsy/microbiology |
| Drug-induced (chemical) epididymitis | Amiodarone (sterile inflammation, dose-dependent) | Drug discontinuation; amiodarone-related typically resolves |
| Behçet, vasculitis, sarcoidosis | Sterile granulomatous inflammation | Treat underlying disease; corticosteroids if active |
Risk factors and predisposing conditions
- Sexual activity (especially with new partners or multiple partners) — STI exposure
- Bladder outlet obstruction (BPH, urethral stricture) — increased reflux risk
- Recent urethral instrumentation, catheterization, prostate biopsy, or TURP
- Anal-receptive intercourse — enteric gram-negative exposure
- Anatomic abnormalities (vesicoureteral reflux, ectopic ureter, posterior urethral valves in pediatrics)
- HIV / immunosuppression — atypical pathogens including fungal and tuberculous
- Chronic prostatitis — recurrent ascending infection
- Indwelling catheter — biofilm-associated infection
S2. Diagnosis and Differentiation from Torsion
The torsion-vs-epididymitis decision is the urgent clinical task
Both present with acute scrotal pain and swelling, but management diverges sharply: torsion is a 6-hour surgical emergency requiring immediate scrotal exploration; epididymitis is treated with antibiotics. The primary discriminators are onset speed, age distribution, exam findings, and Doppler ultrasound.
| Feature | Epididymitis | Testicular torsion |
|---|---|---|
| Onset | Gradual over hours to days | Abrupt, often awakening from sleep, peak severity within minutes |
| Peak age | Bimodal: 14–35 (STI) and >50 (enteric) | Bimodal: neonatal and 12–18 (peri-pubertal) |
| Pain location | Posterior scrotum (epididymis); often radiates to groin | Diffuse scrotal, lower abdominal |
| Voiding symptoms | Common (dysuria, frequency, urethral discharge) | Absent |
| Cremasteric reflex | Preserved | Absent (key finding — but not 100% specific) |
| Prehn sign (relief with elevation) | Positive (pain relief) | Negative or worsened |
| Testicular position | Normal vertical orientation | High-riding, transverse, asymmetric |
| Color Doppler ultrasound | Increased epididymal flow; testicular flow preserved | Absent or markedly reduced testicular flow (hallmark) |
| Urinalysis/urine culture | Pyuria/bacteriuria common; positive culture | Typically normal |
| Time-sensitive intervention | Antibiotics within hours | Surgical exploration within 6 hours |
Diagnostic workup
| Test | Purpose | Findings in epididymitis |
|---|---|---|
| Color Doppler scrotal ultrasound | Confirm diagnosis, exclude torsion | Enlarged hyperemic epididymis with increased blood flow; preserved testicular flow |
| Urinalysis + urine culture | Identify UTI pathogens | Pyuria common; gram-negative growth in older men |
| NAAT for chlamydia and gonorrhea (urine or urethral swab) | Identify STI pathogens | Positive in 25–50% of young men with epididymitis |
| HIV and syphilis screening | STI co-screening | Standard for any STI-pattern infection |
| Gram stain of urethral discharge (if present) | Rapid pathogen identification | Gram-negative diplococci suggest gonorrhea; PMNs without bacteria suggest chlamydia |
| CBC, BMP, CRP (selected cases) | Severity assessment | Leukocytosis and elevated CRP in moderate-severe cases |
| Repeat scrotal ultrasound (if symptoms persist) | Detect abscess, infarction, malignancy | Hypoechoic fluid collection (abscess); avascular focus (infarction) |
| Mycobacterial culture / acid-fast stain (chronic, atypical) | TB epididymitis | Granulomas on biopsy; positive AFB |
S3. Antibiotic Selection by Risk Profile
STI-pattern epididymitis (sexually active men <35; suspected chlamydia/gonorrhea)
| Drug | Dose | Duration |
|---|---|---|
| Ceftriaxone | 500 mg IM single dose (1 g if weight ≥150 kg) | Single dose |
| + Doxycycline | 100 mg PO BID | 10 days |
| If insertive anal sex (also cover enteric organisms) | Ceftriaxone 500 mg IM × 1 + Levofloxacin 500 mg PO daily | 10 days levofloxacin |
| Doxycycline alternative (if intolerant) | Azithromycin 1 g PO single dose, repeated weekly × 2 (less optimal) | 2-week course |
Enteric/UTI-pattern epididymitis (men >35; BPH; post-instrumentation; suspected E. coli)
| Drug | Dose | Duration |
|---|---|---|
| Levofloxacin (first-line) | Levofloxacin 500 mg PO daily | 10 days |
| Ofloxacin (alternative fluoroquinolone) | Ofloxacin 300 mg PO BID | 10 days |
| Trimethoprim-sulfamethoxazole (alternative when fluoroquinolone resistance) | TMP-SMX DS (160/800 mg) PO BID | 10–14 days |
| Levofloxacin extended for prostatic involvement | Same dose | 3–4 weeks if concomitant prostatitis suspected |
Hospitalized / severe / immunocompromised patients
| Drug | Dose | Duration |
|---|---|---|
| Ceftriaxone IV (broad gram-negative coverage) | Ceftriaxone 1 g IV daily | Until clinical improvement (usually 2–4 days), then transition to oral |
| Piperacillin-tazobactam (if Pseudomonas suspected) | Piperacillin-tazobactam 4.5 g IV q8h | Pending culture/improvement |
| Add doxycycline/azithromycin if STI suspected | Doxycycline 100 mg PO BID or azithromycin | 10 days oral after IV completion |
| Vancomycin (MRSA suspected — IV catheter, recent surgery) | Vancomycin 25–30 mg/kg IV loading, then AUC-guided | Per culture |
Adjunctive therapy
- Scrotal elevation — supportive scrotal support or athletic supporter; reduces dependent edema
- Ice packs — applied 15–20 min q4h during first 1–2 days for analgesia
- NSAIDs — Ibuprofen 400–600 mg PO TID with food or Naproxen 500 mg PO BID for pain and inflammation
- Bed rest with leg elevation — first 2–3 days for severe cases
- Avoid sexual activity and heavy lifting — until pain and swelling resolve (typically 1–2 weeks)
S4. Supportive Care, Complications, and Hospitalization Criteria
Hospitalization criteria and supportive care detail: Most epididymitis is managed outpatient with oral antibiotics, scrotal support, ice packs intermittently for the first 48 hours, NSAIDs for pain and inflammation, and bed rest with scrotal elevation as much as possible. Hospitalization is reserved for: systemic toxicity with high fever and signs of bacteremia, suspected abscess on ultrasound (anechoic or complex collection requiring drainage), failure to improve on outpatient therapy after 3-5 days of appropriate antibiotic, inability to tolerate oral intake or maintain hydration, immunocompromised patients with severe presentation, suspected complicated UTI in elderly males with prostatic involvement, and any concern for Fournier gangrene (perineal extension, crepitus, sepsis). Inpatient antibiotic choice typically pivots to IV ceftriaxone plus doxycycline or IV fluoroquinolone, with transition to oral once afebrile and clinically improving. Imaging with scrotal ultrasound is repeated if no improvement at 5 days to evaluate for abscess formation or pyocele requiring surgical intervention. Long-term complications, when treatment is delayed or inadequate, include chronic epididymitis, subfertility from ductal scarring, and rarely testicular atrophy or infarction. Counseling about partner treatment is essential for sexually transmitted etiology cases.
Hospitalization and IV antibiotics required for:
- Systemic toxicity (high fever >39°C, hypotension, tachycardia, sepsis)
- Severe pain not controlled with oral analgesia
- Inability to tolerate oral antibiotics (vomiting, severe nausea)
- Suspected abscess on ultrasound (hypoechoic fluid collection)
- Immunocompromise (HIV with low CD4, transplant recipient, neutropenia, advanced cirrhosis)
- Failure of outpatient therapy at 72 hours (worsening pain, persistent fever)
- Indwelling catheter or post-instrumentation infection
- Suspected diagnostic uncertainty (concerns for torsion, malignancy, abscess)
- Comorbidities affecting pharmacokinetics (severe renal failure, advanced liver disease)
Complications and management
| Complication | Frequency | Management |
|---|---|---|
| Reactive hydrocele | 50% of moderate-severe cases | Resolves with infection control; rarely needs drainage |
| Epididymal abscess | 2–5% | Ultrasound-guided drainage or surgical drainage; IV antibiotics; urology consult |
| Testicular abscess | 1–3% | Surgical drainage; rarely orchiectomy if extensive necrosis |
| Testicular infarction (Fournier-like progression) | <1% | Emergency exploration; possible orchiectomy |
| Chronic epididymitis (>6 weeks) | 5–10% | Extended antibiotics, NSAIDs, alpha-blockers; rule out atypical pathogens |
| Infertility (rare) | ~1% | Sperm DNA fragmentation; counsel and consider semen analysis if persistent |
| Recurrent epididymitis | 10–15% | Investigate underlying cause: BPH, anatomic anomaly, untreated STI exposure |
| Scrotal cellulitis / Fournier gangrene | Rare but life-threatening | Emergency surgical debridement; broad-spectrum IV antibiotics; ICU admission |
Follow-up
- Reassess at 48–72 hours — if no improvement, reconsider diagnosis (torsion missed? abscess? malignancy?), broaden antibiotics, image again
- Reassess at 7–10 days — pain and swelling should be markedly reduced
- Repeat NAAT at 3 months for STI patients to detect reinfection
- Persistent epididymal mass beyond 4–6 weeks → urology referral to exclude testicular malignancy or chronic granulomatous disease
- Recurrent episodes → urology consult for evaluation of bladder outlet obstruction, anatomic anomaly, or vasectomy as last resort for refractory cases
S5. Special Populations and Chronic Epididymitis
Pediatric epididymitis
Distinct from adult presentations — often viral or post-viral inflammation rather than bacterial. Mumps remains a classic cause in unvaccinated populations. Bacterial epididymitis in boys is uncommon and warrants investigation for underlying anatomic anomaly (posterior urethral valves, ectopic ureter, vesicoureteral reflux). When bacterial infection is confirmed, treatment is guided by urine culture; empirical coverage targets E. coli with cefixime or TMP-SMX. Always exclude torsion, which has higher prevalence in this age group.
Tuberculous epididymitis
Consider in chronic, painless or mildly painful, beaded epididymis with sinus tracts, especially in patients from TB-endemic regions or those with HIV. Diagnosis requires biopsy with AFB stain, mycobacterial culture, and consideration of GeneXpert MTB/RIF. Treatment is standard 4-drug RIPE regimen (isoniazid, rifampin, pyrazinamide, ethambutol) for 6 months. Adjunctive surgery may be needed for fistula or abscess management.
Chronic epididymitis
Defined as scrotal pain ≥3 months without acute inflammatory features. Often a diagnostic challenge — distinguish from chronic orchialgia, post-vasectomy pain syndrome, varicocele, hydrocele, hernia, and referred pain. Management is typically supportive: structured PT (pelvic floor), NSAIDs, neuropathic agents (gabapentin, amitriptyline), psychotherapy for chronic pain coping. Antibiotics should not be empirically prescribed; reserve for confirmed infection. Surgical options (epididymectomy, microdenervation of spermatic cord) are last resort with variable outcomes.
HIV / immunocompromised patients
Atypical pathogens are more common: CMV, fungi (Candida, Cryptococcus), mycobacteria (TB and atypical mycobacteria), and unusual gram-negatives (Pseudomonas). Empirical broader coverage and earlier biopsy/culture are appropriate. Consider TB epididymitis in any HIV patient with chronic scrotal symptoms.
- Suspected torsion or any diagnostic uncertainty
- Suspected abscess on ultrasound
- Failure of outpatient antibiotic therapy at 72 hours
- Recurrent or chronic epididymitis (≥3 episodes or symptoms ≥6 weeks)
- Persistent epididymal mass beyond 4–6 weeks (rule out malignancy)
- Fournier gangrene or rapidly progressing scrotal infection
- Pediatric epididymitis with anatomic concerns
- Suspected tuberculous or granulomatous disease
- Sexual partner notification challenges or PrEP/PEP discussions
S6. Frequently Asked Questions
How do I differentiate epididymitis from testicular torsion?
What is the standard antibiotic regimen for sexually transmitted epididymitis?
What is the standard antibiotic regimen for enteric/UTI-pattern epididymitis?
When should a patient with epididymitis be hospitalized?
What complications should clinicians watch for during epididymitis treatment?
S7. Practice Insights: Epididymitis Without Missing Torsion
1. Rule Out Torsion FIRST
In practice, every acute scrotal pain presentation gets stratified for torsion risk before assuming epididymitis. Features favoring torsion: sudden onset (minutes-hours), age 12-25 (peak incidence), absence of fever or LUTS, abnormal testicular lie (high-riding or horizontal), absent cremasteric reflex, NEGATIVE Prehn sign (elevation does not relieve pain). Features favoring epididymitis: gradual onset (days), urinary symptoms, fever, positive Prehn sign (elevation relieves pain), normal lie, intact cremasteric reflex. Bedside color Doppler ultrasound is the diagnostic test of choice — torsion shows absent or markedly reduced intra-testicular flow. If clinical suspicion for torsion is high and US is unavailable or inconclusive, immediate urology consultation for surgical exploration is the safer move; the 6-hour testicular salvage window does not forgive imaging delays.
2. Age and Sexual Practice Drive Antibiotic Choice
In experienced hands, empirical antibiotic selection follows a strict age-and-risk algorithm. Sexually active men under 35: ceftriaxone 500 mg IM once + doxycycline 100 mg PO BID x 10 days (covers chlamydia + gonorrhea). Men over 35 or pre-pubertal boys: levofloxacin 500 mg PO daily x 10 days OR ofloxacin 300 mg PO BID OR TMP-SMX (covers enteric gram-negatives, E. coli predominant). Men practicing insertive anal intercourse: ceftriaxone + levofloxacin (covers both STI organisms AND enteric flora). clinicians document the sexual history explicitly because that single data point changes the regimen, and patients who feel safe disclosing accurately get the right antibiotic the first time.
3. Partner Treatment Is Non-Negotiable for STI
For any sexually active man with epididymitis under 35 (or where STI etiology is confirmed/suspected), partner treatment is non-negotiable in practice. Experienced clinicians write the patient a prescription for partner therapy (expedited partner therapy permits this in many US states) OR ensure the partner receives evaluation through public health channels. Partner treatment regimen: ceftriaxone 500 mg IM once + doxycycline 100 mg PO BID x 7 days for the partner. They screen the index patient for HIV, syphilis, and other STIs at the index visit and at 3 months. Without partner treatment, the reinfection cycle continues and chronic complications (subfertility, urethritis recurrence) accumulate.
4. Chronic Epididymitis: Stop the Antibiotics
In practice, epididymitis lasting more than 3 months is rarely infectious. Chronic scrotal pain is most often due to post-inflammatory ductal scarring, nerve hypersensitization, varicocele, or referred pain from inguinal/pelvic sources. The dominant pitfall is repeated antibiotic courses without diagnostic re-evaluation. The preferred approach: targeted re-imaging with scrotal ultrasound for varicocele, abscess, mass, or hydrocele; consider urodynamics if voiding symptoms persist; pain management with NSAIDs, scrotal support, neuropathic pain modulators (gabapentin, amitriptyline) if neuropathic features; pelvic floor physical therapy referral; urology referral for nerve block or microsurgical denervation in refractory cases. In endemic areas, consider TB and brucellosis testing. Repeated antibiotics for >3 months without infectious etiology cause iatrogenic harm (resistance, C. difficile, tendon rupture from fluoroquinolones) without addressing the actual pain generator.
Illustrative Scenario — Torsion Initially Treated as Epididymitis
(Composite teaching scenario assembled from published patterns; not an individual patient.)A young adult man presented to urgent care with 6 hours of severe right scrotal pain that he initially associated with heavy lifting at the gym. UC physician noted tenderness without obvious inflammation, no fever, and prescribed ciprofloxacin for presumed epididymitis. Three hours later he presented to the ED with worsening pain, nausea, and exam findings of a high-riding right testicle with absent cremasteric reflex and NEGATIVE Prehn sign.
clinicians obtained bedside color Doppler immediately — absent intra-testicular flow on the right. Urology was paged stat and the patient was in the OR within 45 minutes. The right testicle was found 720° torsed with marginal viability; manual detorsion was attempted but the tissue appeared dusky. Bilateral orchidopexy was performed and the right testicle was preserved but with documented chronic atrophy on follow-up imaging at 6 months. The total ischemia time was approximately 10 hours from symptom onset, well past the 6-hour salvage threshold.
Practice Pattern Refinements vs Standard Approach
- Rule out torsion FIRST for any acute scrotal pain. Prehn + cremasteric + lie + onset; bedside Doppler US; surgical exploration if suspicion high and imaging delayed.
- Antibiotic by age + practice: <35 CTX + doxy (STI); >35 or prepubertal levofloxacin/TMP-SMX (enteric); insertive anal intercourse CTX + levofloxacin (both).
- Partner treatment non-negotiable for STI: expedited partner therapy where permitted; CTX + doxy for partner; HIV/syphilis/STI screening at index + 3 months.
- Chronic >3 months: stop the antibiotics; targeted re-imaging + neuropathic pain management + pelvic floor PT + urology referral. Repeated antibiotics cause iatrogenic harm without addressing pain generator.
- Cellulitis: Diagnosis, Antibiotic Selection, and Management
- Small Intestinal Bacterial Overgrowth (SIBO): Diagnosis, Breath Testing, and Antibiotic Therapy
- Pyogenic Liver Abscess: Diagnosis, Klebsiella Hypervirulent Strain, Drainage, and Antibiotic Management
- Clostridioides difficile Infection: Diagnosis, Risk Stratification, and Fidaxomicin-First Treatment
- Bacterial Meningitis: Diagnosis, Empiric Therapy, and Management
- Lyme Disease: Diagnosis, Antibiotic Therapy, and Post-Treatment Syndromes