Epididymitis

This is an inflammation or swelling of the epididymis, which is the tube at the back of the testicle that stores and carries sperm. It's often caused by a bacterial infection, usually from the urinary tract. Symptoms include pain, swelling, and sometimes fever or discharge.

Condition

What people with Epididymitis report

Every report comes from a Lived member, sent anonymously.

Have you tried Doryx (Doxycycline) for Epididymitis?

NameHow it went

About Epididymitis

What It Is

Epididymitis is inflammation of the epididymis, the coiled tube that sits along the back of each testicle and stores and carries sperm. It usually causes pain and swelling on one side of the scrotum that builds over hours to days, often with tenderness and a feeling of heaviness. Some people also have a fever, burning when urinating or a discharge from the penis. When the inflammation spreads into the testicle itself, it is called epididymo-orchitis. Most cases are acute, meaning symptoms have been present for less than six weeks, and are caused by a bacterial infection that responds well to antibiotics. Chronic epididymitis, with pain lasting six weeks or longer, is less common and has a wider range of causes. Epididymitis matters partly because it is very treatable and partly because it can look like testicular torsion, a twisted testicle that cuts off its own blood supply and needs emergency surgery.

Causes & Risk Factors

The likely cause depends largely on age and sexual history. In sexually active younger men, epididymitis is most often caused by a sexually transmitted infection (STI), mainly chlamydia or gonorrhea, that travels up from the urethra (the tube that carries urine and semen out of the body). That infection of the urethra often causes no symptoms of its own, so epididymitis can be the first sign of it. Men who are the insertive partner during anal sex can also develop epididymitis from bowel bacteria such as E. coli. In older men, the usual cause is bacteria from the urinary tract. This is more likely when something keeps the bladder from emptying fully, such as an enlarged prostate, and after a prostate biopsy, a urinary catheter or other procedures and surgery on the urinary tract. Less common causes include tuberculosis, which tends to produce a slower, longer-lasting form, and amiodarone, a heart rhythm medicine that can inflame the epididymis without any infection. Condomless sex with more than one partner raises the risk of the STI-related form.

How It's Diagnosed

Diagnosis rests mainly on a physical exam and a few simple tests. A clinician feels the scrotum for a swollen, tender epididymis and checks the spermatic cord, the bundle of blood vessels and sperm duct that runs up from each testicle. Pain on both sides at once makes other causes more likely. A urine sample, ideally the first part of the stream, is checked for white blood cells, which signal inflammation, and tested for chlamydia and gonorrhea with a nucleic acid amplification test (NAAT), a highly sensitive lab test that detects the bacteria's genetic material. A urine culture looks for other bacteria and shows which antibiotics will work against them. If there is a discharge, a sample may be examined under a microscope. Because epididymitis can come from an STI, guidelines also recommend testing for HIV and syphilis. An ultrasound of the scrotum is used mainly when torsion is a concern or the diagnosis is uncertain. It does not settle every case: a normal ultrasound does not rule out epididymitis, and a partial twist can look like epididymitis on the scan, so the clinician's overall assessment still counts. Pain that started suddenly and severely, or test results that do not point to an infection, call for urgent evaluation for torsion, usually by a urologist.

Treatment Options

Antibiotics are the main treatment. They are usually started at the first visit, before test results come back, to relieve symptoms, prevent complications such as chronic pain or reduced fertility, and stop an STI from spreading. The choice depends on the most likely bacteria. When chlamydia or gonorrhea is the likely cause, US guidelines recommend a single injection of ceftriaxone (a cephalosporin antibiotic) plus doxycycline tablets twice a day for 10 days. When bowel or urinary bacteria are possible, for example with insertive anal sex or after a urinary procedure, levofloxacin, a fluoroquinolone antibiotic, is taken once a day for 10 days, either with the ceftriaxone injection or alone once gonorrhea has been ruled out. Culture results can change the plan, and finishing the full course matters even after the pain eases. A penicillin allergy rarely rules out ceftriaxone, but any antibiotic allergy should be mentioned. Comfort measures help while the antibiotics take effect: rest, lying down with the scrotum raised, supportive underwear or an athletic supporter, wrapped ice packs, and nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen. Most people recover at home. Hospital care is considered when severe pain or fever suggests something more serious, such as an abscess (a pocket of pus) or lost blood supply to the testicle, or when someone cannot take the antibiotics as prescribed. When chlamydia or gonorrhea is the confirmed or suspected cause, anyone who was a sex partner in the 60 days before symptoms began needs testing and treatment too. Sex should wait until both partners have finished treatment and symptoms have gone. If amiodarone is responsible, the prescriber may lower the dose or switch medicines; it should not be stopped without that conversation. Chronic epididymitis is usually managed by a urologist, because its causes and treatment vary.

What to Expect

With the right antibiotic, symptoms usually start to improve within a few days. Swelling and tenderness settle more slowly than the pain, and some discomfort can linger for a few weeks after the antibiotics are finished, which on its own does not mean treatment has failed. Supportive underwear and rest make the first days easier. Most people recover without lasting effects on sexual function or fertility. Complications are uncommon but include an abscess, ongoing pain, damage to the testicle from loss of blood supply and, rarely, reduced fertility. Epididymitis can come back, especially when an underlying cause such as a urinary blockage or a new STI exposure is not addressed. A follow-up visit confirms the infection has cleared, and swelling that persists after treatment is checked again, since an abscess, tuberculosis or a testicular tumor can occasionally cause similar findings.

When to Seek Help

See a clinician promptly for new pain or swelling in the scrotum, particularly with fever, burning when urinating or discharge from the penis, so that testing and treatment can begin. Contact the care team again if symptoms have not improved within three days of starting antibiotics, or if a lump or swelling remains after the course is finished. Sudden, severe pain in a testicle, or testicle pain after an injury, is an emergency: call 911 or go to an emergency department right away. Sudden pain can be testicular torsion, which needs surgery quickly to save the testicle and is especially common in teenagers.

Questions to Ask Your Doctor

  1. 1.How sure are you that this is epididymitis and not torsion or another problem, and do I need an ultrasound?
  2. 2.Which infection do you think is causing this, and which of my partners should be tested or treated?
  3. 3.What should I do if I am not feeling better in a few days or the pain gets worse?
  4. 4.Is there an underlying cause, such as a prostate or bladder problem, that we should look into so this does not come back?

Last reviewed • Oct 2026

Educational content, not medical advice.