Epididymitis: causes, symptoms and treatment of testicle pain
Epididymitis is inflammation of the epididymis, the coiled tube at the back of each testicle that stores sperm. It causes pain, swelling and redness of the scrotum and is one of the most common causes of testicle pain in adult men. Sudden severe testicle pain, however, can be testicular torsion – a surgical emergency – so it should always be assessed by a doctor.

Contents
What is epididymitis?
The epididymis is a comma-shaped structure along the back of each testicle. When it becomes inflamed, this is called epididymitis; when the testicle itself is also involved, it is epididymo-orchitis. Acute epididymitis develops over hours to days and lasts less than six weeks. Chronic epididymitis means pain or discomfort lasting more than three months, often without an active infection.
Causes
- Sexually transmitted infections – chlamydia and gonorrhoea are the most common causes in sexually active men, particularly under 35 (see STIs).
- Gut bacteria such as E. coli – more common over 35, with a urinary tract infection, an enlarged prostate, after a catheter or urological procedure, or after anal sex.
- Prostatitis – infection can spread from the prostate.
- Mumps – a viral cause of orchitis, mainly in unvaccinated teenagers and young men.
- Non-infectious causes – injury, straining with reflux of urine, some medicines (such as amiodarone), autoimmune disease and, rarely, tuberculosis.
Epididymitis is less common in children and can be linked to urinary tract abnormalities, so a child with scrotal pain must always be examined.
Symptoms
- testicle pain, usually on one side, building up over hours or days;
- swelling and tenderness of the scrotum;
- red, warm skin over the scrotum;
- pain spreading to the groin or lower abdomen;
- burning when passing urine or needing to go more often;
- discharge from the penis – suggesting an STI;
- fever and feeling unwell;
- sometimes blood in semen or pain on ejaculation.
Epididymitis or testicular torsion?
In torsion the testicle twists and its blood supply is cut off. Without surgery within a few hours, the testicle can be lost. It is most common in boys and young men but can happen at any age.
| Torsion | Epididymitis | |
|---|---|---|
| Onset | sudden, often within minutes, can wake you up | gradual, over hours to days |
| Pain | very severe, often with nausea and vomiting | moderate to severe, increasing |
| Testicle position | may sit higher or lie horizontally | usually normal |
| Urinary symptoms | usually absent | often present |
This table is only a guide. With sudden severe testicle pain, call emergency services or go straight to A&E. Only an examination – often with a Doppler ultrasound or surgical exploration – can tell the difference safely.
Tests and diagnosis
- examination of the scrotum, groin and abdomen;
- urine dipstick and culture;
- a NAAT test for chlamydia and gonorrhoea on a first-catch urine sample or urethral swab;
- blood tests such as a blood count and CRP if you are unwell;
- scrotal Doppler ultrasound to show inflammation, blood flow or an abscess;
- further urological tests if episodes keep coming back.
If an STI is likely, testing for HIV and syphilis is usually offered too.
Treatment
Bacterial epididymitis is treated with antibiotics. The choice depends on the likely cause and local resistance patterns; guidelines from the EAU, CDC and BASHH recommend different regimens for STI-related and urinary-related infection. Your doctor will decide on the medicine and how long to take it. Finish the full course and do not use leftover antibiotics.
Self-care alongside treatment
- rest for the first few days;
- support the scrotum with snug underwear or a rolled towel when lying down;
- apply a wrapped cold pack for short periods;
- take over-the-counter pain relief as directed on the pack;
- drink plenty of fluids.
If an STI is the cause
Avoid sex until you and your partner(s) have finished treatment and symptoms have settled. Recent partners should be tested and treated, and a test of cure may be advised. Pain usually eases within a few days, but swelling can take weeks to go down. If you are not improving within about three days, get reviewed.
Chronic epididymitis and complications
Chronic epididymitis can be hard to treat. Options include anti-inflammatory medicines, pelvic floor physiotherapy, treating any proven infection and, rarely, surgery for severe persistent pain. A urologist should be involved.
Possible complications of acute epididymitis include a scrotal abscess, spread to the testicle, chronic pain, reduced fertility (especially if both sides are affected – see male infertility) and, rarely, sepsis. With prompt treatment, most men recover fully. Other causes of scrotal swelling include hydrocele and varicocele.
Recovery and getting back to normal
Most men start to feel better within a few days of starting antibiotics. Swelling and tenderness, however, may take several weeks to go down completely, and a firm area in the epididymis can remain for some time.
- Return to work and light activity as soon as you feel able; avoid heavy lifting, cycling and contact sport until the pain has settled.
- Wear supportive underwear during the day while the scrotum is still tender.
- If an STI was the cause, attend any follow-up appointment and make sure partners have been treated before having sex again.
- Ask for a repeat examination if a lump remains after treatment – it should be checked with an ultrasound.
Repeated episodes deserve further investigation of the urinary tract and prostate by a urologist.
Prevention and when to see a doctor
Condoms reduce the risk of STIs, and mumps vaccination protects against mumps orchitis. Treating urinary infections and prostate problems promptly also helps.
Call emergency services or go to A&E immediately with sudden severe testicle pain, pain with nausea or vomiting, or a painful, swollen testicle after an injury.
See a GP or urologist the same day with testicle pain and swelling that has come on gradually, testicle pain with a fever, burning on urination or discharge from the penis. Any new lump in a testicle, even if painless, should also be checked.
Frequently asked questions
What causes epididymitis?
Usually a bacterial infection – most often chlamydia or gonorrhoea in younger men and gut bacteria from a urine infection in older men. Less often it follows injury, mumps or certain medicines.
How is epididymitis treated?
With antibiotics chosen by a doctor, together with rest, scrotal support, cold packs and pain relief. If an STI is the cause, partners also need treatment.
How long does epididymitis last?
Pain usually improves within a few days of starting treatment, but swelling can take several weeks to settle. Seek a review if there is no improvement after about three days.
Can epididymitis affect fertility?
With prompt treatment the risk is low. Severe, recurrent or two-sided infections can occasionally affect fertility, which is why treatment should not be delayed.
How can I tell epididymitis from torsion?
You cannot be sure from symptoms alone. Sudden, severe testicle pain – especially in a young man – should be treated as torsion and assessed in an emergency department immediately.
Sources
This article is for education and does not replace consultation, diagnosis or treatment by a doctor. In an emergency call emergency services.


