med study partner

Articles & Guides › Articles › Male Reproductive

Testicular torsion, epididymitis and scrotal masses

Why the bell-clapper deformity lets a testis twist and how to recognize torsion and send the patient straight to surgery, how torsion of the appendix testis and epididymitis differ, which organisms cause epididymitis at different ages and how each is treated, and how to sort hydroceles, varicoceles, spermatoceles, hernias and testicular tumors by where they sit and whether they transilluminate.

Male Reproductive · 8 min read · Reviewed 2026-11-22

A painful or swollen scrotum has a short list of causes, but one of them, testicular torsion, can cost a teenager a testis within hours. The examination usually separates the causes quickly: how fast the pain came on, where the testis lies, whether the cremasteric reflex is present, and, for painless swellings, whether the lump is inside the testis or beside it and whether light shines through it.

This article covers testicular torsion, epididymitis and orchitis, and hydrocele, varicocele and spermatocele. Testicular tumors have their own article, the processus vaginalis and hernias are covered in the article on male sexual differentiation, and sexually transmitted infections in the article on penile disease and urethritis.

Key points

  • Torsion causes sudden severe pain, vomiting, a high-riding horizontal testis and an absent cremasteric reflex. When the examination is convincing, go straight to surgery for detorsion and fixation of both testes; salvage is likely within about 6 hours.
  • The bell-clapper deformity, in which the tunica vaginalis attaches high on the cord, lets the testis hang free and twist; it is usually present on both sides.
  • Epididymitis comes on gradually with pain at the back of the testis, urinary symptoms and pyuria, and the cremasteric reflex is preserved. Under about 35 it is usually chlamydia or gonorrhea (ceftriaxone plus doxycycline); over 35 or with urinary obstruction it is usually E. coli (levofloxacin).
  • Hydroceles and spermatoceles transilluminate; varicoceles feel like a bag of worms, swell on standing and empty lying down.
  • A firm mass inside the testis is cancer until proven otherwise and needs ultrasound and tumor markers.

Testicular torsion

What happens

The spermatic cord twists, blocking first the venous outflow and then the arterial inflow, so the testis becomes ischemic. Salvage is very likely within about 6 hours and falls steeply after 12–24 hours[1].

Who and why

Torsion peaks in adolescents, at about 12–18 years, with a second peak in newborns. It often starts during sleep, after exercise or in the cold.

  • Normally the back of the testis and epididymis is fixed to the scrotal wall.
  • In the bell-clapper deformity, the tunica vaginalis attaches high on the cord and surrounds the testis completely, so the testis hangs free and can rotate inside it (intravaginal torsion, typical in adolescents). The deformity is usually bilateral.
  • In newborns the whole cord and tunica twist above the testis (extravaginal torsion).

Findings

  • Sudden, severe testicular pain, often with lower abdominal pain and nausea and vomiting.
  • A high-riding, horizontally lying, swollen and tender testis.
  • An absent cremasteric reflex on that side.
  • No relief when the testis is lifted.
  • A usually normal urinalysis.
  • Doppler ultrasound shows reduced or absent blood flow, but it is needed only when the diagnosis is uncertain[1].

Management

Immediate surgical exploration, with detorsion and fixation of both testes, because the deformity is usually bilateral. Surgery isn't delayed for imaging when the examination is convincing. Manual detorsion, rotating the testis outward ("opening the book"), can be tried while the operating room is prepared. A testis that is dead is removed.

Torsion of the appendix testis

The appendix testis, a müllerian remnant at the upper pole, can twist. It causes milder pain that comes on more gradually in boys of about 7–12, with a tender nodule at the upper pole and sometimes a "blue dot" sign through the skin. The cremasteric reflex is preserved and testicular blood flow is normal. It settles with pain relief and rest.

Worked example

A 15-year-old wakes at 3 a.m. with severe right testicular pain and vomits twice. Two hours later in the emergency department his right testis lies high and horizontally, it is exquisitely tender, and the right cremasteric reflex is absent. His scoring on the examination findings is high, so he goes straight to the operating room without waiting for an ultrasound. The testis is untwisted, it pinks up, and both testes are fixed.

Epididymitis and orchitis

Acute epididymitis

Epididymitis is infection or inflammation of the epididymis, usually from organisms climbing up from the urethra or bladder.

  • Gradual onset, over a day or more, of pain and swelling at the back of the testis, sometimes spreading to the testis itself (epididymo-orchitis).
  • Urinary symptoms or a urethral discharge, pyuria and fever.
  • The cremasteric reflex is preserved, and lifting the testis often eases the pain (a positive Prehn sign, which supports the diagnosis but isn't reliable).
  • Doppler ultrasound shows increased blood flow.
GroupUsual organismsEmpiric treatment[2]
Sexually active men under about 35*Chlamydia trachomatis, Neisseria gonorrhoeae*Ceftriaxone plus doxycycline; treat partners and test for other sexually transmitted infections
Men who have insertive anal sexGonorrhea, chlamydia and enteric organismsCeftriaxone plus levofloxacin
Men over about 35, or with prostatic enlargement, urinary obstruction, catheters or instrumentationEnteric gram-negative rods, especially *E. coli*Levofloxacin, or treatment guided by culture
A chronic, hard, craggy epididymis, beaded vas and sterile pyuria*Mycobacterium tuberculosis*Antituberculous treatment
AmiodaroneNoninfectious inflammation of the head of the epididymisLower the dose

Rest, scrotal support, ice and NSAIDs help. Complications include abscess, testicular infarction and infertility from scarring, which causes obstructive azoospermia if both sides are affected.

Orchitis

Isolated orchitis is usually viral. Mumps orchitis affects unvaccinated postpubertal males about a week after parotitis, is usually one-sided and can lead to testicular atrophy and reduced fertility. Coxsackie B and other viruses are less common causes. Bacterial orchitis is usually an extension of epididymitis.

Torsion or epididymitis?

FeatureTorsionEpididymitis
OnsetSuddenGradual
Typical patientAdolescentSexually active man; older man with urinary problems
Nausea and vomitingCommonLess common
Testis positionHigh and horizontalNormal
Cremasteric reflexAbsentPresent
Lifting the testisNo reliefOften relieves pain
UrinalysisNormalPyuria
DopplerReduced flowIncreased flow

Worked example

A 67-year-old man with an enlarged prostate who had a urinary catheter last week develops increasing pain and swelling at the back of his left testis over 2 days, with fever and burning on urination. His cremasteric reflex is present, his urine contains many white cells, and ultrasound shows increased flow in a swollen epididymis. Enteric gram-negative rods are the likely cause, so he is started on levofloxacin after a urine culture is sent.

Hydrocele, varicocele and spermatocele

Four questions

Is the mass inside or outside the testis? Can you get above it? Does it transilluminate? Does it change with position?

MassWhat it isExaminationNotes
HydroceleFluid between the two layers of the tunica vaginalisPainless, smooth, surrounds the testis so the testis is hard to feel, transilluminates, and you can get above itIn infants, often communicating, through a patent processus vaginalis, and usually closes by 1–2 years. In adults, usually idiopathic, but it can be reactive to epididymitis, trauma, torsion or a tumor, so the testis is checked by ultrasound[3]
VaricoceleA dilated pampiniform plexusA "bag of worms" above the testis, worse on standing or straining, empties lying down, doesn't transilluminateMostly left, because the left testicular vein enters the left renal vein at a right angle and can be compressed between the aorta and the superior mesenteric artery. Can cause a dull ache, a smaller testis and infertility. A new left varicocele that doesn't empty suggests renal cell carcinoma in the renal vein; an isolated right one suggests vena cava obstruction[4]
SpermatoceleA cyst of the efferent ductules or head of the epididymis containing spermA smooth, round, painless lump above and separate from the testis that transilluminatesBenign; epididymal cysts are similar but contain no sperm
Inguinal herniaBowel or omentum in a patent processus vaginalisComes from the groin, so you can't get above it; may have bowel sounds; reduces; doesn't transilluminateSurgical repair
HematoceleBlood in the tunica vaginalisFollows trauma; doesn't transilluminateExclude testicular rupture
Testicular tumorGerm cell or stromal tumorA firm, painless mass within the testis; doesn't transilluminateUltrasound and tumor markers, then inguinal orchiectomy

Rule of thumb: a mass inside the testis is cancer until proven otherwise; one outside the testis is usually benign.

Worked example

A 26-year-old man notices a painless, pea-sized lump at the top of his right testis. It is smooth, separate from the testis, which feels normal, and glows when a penlight is held behind it. This is a spermatocele or epididymal cyst. It needs no treatment unless it becomes large or uncomfortable, and an ultrasound can confirm it if there is any doubt.

Common confusions

  • Torsion versus epididymitis: sudden pain, a high horizontal testis, an absent cremasteric reflex and reduced flow versus gradual pain, pyuria, a preserved reflex and increased flow.
  • Torsion of the testis versus torsion of the appendix testis: a surgical emergency versus a tender upper-pole nodule with a blue dot and a preserved reflex.
  • Hydrocele versus spermatocele: both transilluminate, but a hydrocele surrounds the testis while a spermatocele sits above and separate from it.
  • Varicocele versus hernia: a varicocele lies above the testis and you can get above it; a hernia comes down from the groin.
  • Inside versus outside the testis: inside means cancer until proven otherwise.

References

  1. Barbosa JA, Tiseo BC, Barayan GA, et al. Development and initial validation of a scoring system to diagnose testicular torsion in children. J Urol. 2013;189(5):1859-1864. doi:10.1016/j.juro.2012.10.056 Link ↩
  2. Workowski KA, Bachmann LH, Chan PA, et al. Sexually transmitted infections treatment guidelines, 2021. MMWR Recomm Rep. 2021;70(4):1-187. doi:10.15585/mmwr.rr7004a1 Link ↩
  3. Cheng L, Albers P, Berney DM, et al. Testicular cancer. Nat Rev Dis Primers. 2018;4:29. doi:10.1038/s41572-018-0029-0 Link ↩
  4. Jensen CFS, Østergren P, Dupree JM, Ohl DA, Sønksen J, Fode M. Varicocele and male infertility. Nat Rev Urol. 2017;14(9):523-533. doi:10.1038/nrurol.2017.98 Link ↩

Test yourself in the Question Bank · Listen to the podcasts