Skip to content

Epididymitis and epididymo-orchitis

Why the epididymis becomes inflamed, how to tell it from torsion and how it is treated.

Dr. Petronio Melo, urologistA reference in urology
CRM-SP 157.598 · RQE 70.275
Reviewed by Dr. Petronio Melo on November 13, 2026
Book a consultation
Drawing of the testicle with a swollen, red epididymis behind it and bacteria moving down the vas deferens
On this page

Quick answer

Epididymitis is inflammation of the epididymis, the tube behind the testicle. It causes pain on one side, swelling and warmth, which get worse over a few days, and it can spread to the testicle, called epididymo-orchitis.1 In young men, the cause is usually an STI, such as chlamydia or gonorrhea. In older men, it is usually a urinary bacterium.1 Treatment is with antibiotics, chosen according to the likely cause.1 In boys and young men, testicular torsion is the most important diagnosis to rule out.1

What it is

The epididymis is a coiled tube that sits behind the testicle. In acute epididymitis, it becomes painful, swollen and warm, usually on one side only, and the pain is at the back of the testicle. Symptoms get worse over a few days. The testicle and the skin of the scrotum can also be affected.1

It is a common condition: 25 to 65 cases per 10,000 adult men per year. It can be acute, chronic or recurrent.1

Causes

Bacteria travel up from the urethra or the bladder, and tests find the cause in up to 90% of cases.1

WhoMost common cause
Young, sexually active menGonorrhea, chlamydia, ureaplasma and mycoplasma1
Older men with a urinary infectionUrinary bacteria, such as E. coli1
Anal sex without a condomHigher risk of bowel bacteria1

When the cause is an STI, there is usually also discharge and burning from the urethra.1 An enlarged prostate, a neurogenic bladder and recent procedures in the urethra increase the risk of the form caused by urinary bacteria.1

When both sides swell, with viral symptoms and swollen salivary glands, the cause may be mumps, which causes viral orchitis. Tuberculosis is a rare cause, usually in a chronic form.1

Epididymitis or testicular torsion

In boys and young men, testicular torsion is the most important diagnosis to rule out.1 Torsion is a surgical emergency, more common in adolescents and in people with no signs of inflammation or infection. Severe pain on one side that starts suddenly needs immediate evaluation by a urologist, because the testicle may be lost.2

Scrotal ultrasound is more accurate than a urine test alone for diagnosing epididymitis and helps rule out other conditions.1 The American guideline uses ultrasound mainly to rule out torsion.2

Tests

The European guideline recommends a urine culture and a test of the first urine of the day, or of a urethral sample, to look for chlamydia and gonorrhea with a molecular test.1 People with a likely STI should be tested for other STIs.1

Treatment

Antibiotics start before the test results and are chosen according to the most likely cause:1

  • Young, sexually active men: an antibiotic that covers chlamydia and urinary bacteria
  • Likely gonorrhea: one dose of ceftriaxone, together with an antibiotic for chlamydia
  • Older men with no STI risk: an antibiotic for urinary bacteria

Treatment usually lasts 10 to 14 days, and the medicine and duration are adjusted according to the bacterium found and the response.1

For pain and swelling, anti-inflammatories, cold compresses and keeping the scrotum raised help.1

When the cause may be an STI, the advice is not to have sex until the infection has cleared. Partners need to be evaluated and treated, and a check-up is due 14 days after the end of treatment.1 The American guideline asks for partners from the 60 days before symptoms to be evaluated.2

If symptoms do not improve within 72 hours of treatment, a new evaluation is needed. Swelling that persists after treatment calls for a search for other causes, including a testicular tumor.2

In rare cases, with very severe pain, fever, an abscess or a widespread infection, a hospital stay for intravenous antibiotics is needed. An abscess may need surgery to drain it.1

When to see a urologist

  • If you have pain or swelling in a testicle
  • If the pain starts suddenly and is severe
  • If you have fever along with testicular pain
  • If you have discharge or burning when urinating

Frequently asked questions

What is epididymitis?

It is inflammation of the epididymis, the coiled tube behind the testicle. It causes pain on one side, swelling and warmth, which get worse over a few days. When the testicle is also inflamed, it is called epididymo-orchitis.1

Is epididymitis an STI?

It can be. In young, sexually active men, the most common causes are gonorrhea, chlamydia and mycoplasma. In older men with a urinary infection, the cause is usually a urinary bacterium, such as E. coli.1

How can it be told apart from testicular torsion?

Torsion is the most important diagnosis to rule out in boys and young men.1 It is a surgical emergency, more common in adolescents and in people with no signs of infection. Severe pain on one side that starts suddenly needs immediate evaluation by a urologist.2

How long does treatment last?

Antibiotics usually last 10 to 14 days, adjusted according to the bacterium found and the response.1

Can I have sex during treatment?

When the cause may be an STI, the advice is not to have sex until the infection has cleared, and partners also need to be evaluated and treated.1

References

  1. EAU Guidelines on Urological Infections. European Association of Urology; 2026. Acute epididymitis section. EAU
  2. Workowski KA, Bachmann LH, Chan PA, et al. Sexually Transmitted Infections Treatment Guidelines, 2021. MMWR Recomm Rep. 2021;70(4):1-187. Epididymitis chapter. CDC

Would you like to talk about your case?

In the consultation, I go over your tests and your priorities.

Book a consultation

Related guides