Condition guide
Epididymitis: symptoms, causes and treatment
Epididymitis is swelling and pain of the epididymis, the tube behind the testicle. It is often caused by an infection and is usually treated with antibiotics. It causes pain in one or both testicles and a tender, warm, swollen scrotum. Sudden unbearable testicular pain needs emergency care because it could be testicular torsion, not epididymitis.
Last checked: 2026-10-11
Key facts
At a glance.
-
What it is
The NHS says epididymitis is where the epididymis, a tube behind the testicles, becomes swollen and painful. It is often caused by an infection and is usually treated with antibiotics.
-
Symptoms
Sudden or gradual pain in 1 or both testicles, a tender, warm, swollen scrotum, and sometimes a build-up of fluid around the testicle (hydrocele). Depending on the cause there may be difficulty peeing or discharge from the penis.
-
Causes
The NHS says it is usually caused by a sexually transmitted infection such as chlamydia or gonorrhoea, more likely in men under 35. In men over 35 the main cause is usually a urine infection.
-
Treatment
Antibiotics as injections, tablets or both. The NHS says to finish the whole course even if you feel better.
-
Recovery
The NHS says you should start to feel better within a few days, but it may take up to 3 months to fully recover. If symptoms continue after this you might be referred for further tests.
-
Emergency
The NHS says sudden, unbearable pain in the testicles or tummy could be a twisted testicle and needs to be treated in hospital as soon as possible. Call 999 or go to A&E.
-
Where to go
The NHS says you can be treated for epididymitis at a GP surgery or a sexual health clinic, many of which offer a walk-in service.
What are the symptoms of epididymitis?
The NHS lists sudden or gradual pain in 1 or both testicles, the scrotum (the bag of skin containing the testicles) feeling tender, warm and swollen, and a build-up of fluid around the testicle (a hydrocele) that feels like a lump or swelling.
Depending on the cause you may also have difficulty peeing, or a white, yellow or green discharge from the tip of the penis. Symptoms can come on suddenly or gradually.
What is epididymitis?
The epididymis is the tube behind the testicles. In epididymitis it becomes swollen and painful. The NHS says it is often caused by an infection and is usually treated with antibiotics.
NICE CKS describes epididymo-orchitis as including both epididymitis and orchitis (inflammation of the testicle), and lists it among several causes of scrotal pain and swelling that need to be told apart.
What causes epididymitis?
The NHS says epididymitis is usually caused by a sexually transmitted infection (STI), such as chlamydia or gonorrhoea, which is more likely in younger men under 35. In men over 35, the main cause is usually a urine infection.
A urinary tract infection (UTI) is more likely if you have an enlarged prostate gland, a urinary catheter or have recently had surgery to the groin, prostate gland or bladder. The NHS lists less common causes as mumps, tuberculosis, taking amiodarone (a medicine for heart rhythm disorder), a groin injury and Behçet's disease.
If tests show an STI, the NHS says it may be recommended that current or recent sexual partners (over the past 6 months) are also tested.
How is epididymitis diagnosed?
At a GP or sexual health clinic you will usually have some tests to find the cause. The NHS lists a groin examination, a swab of the urethra (the tube that carries pee out of the body) to test for infection, urine and blood tests, and a rectal examination to check for problems with the prostate.
NICE CKS says assessment of scrotal pain includes asking about the history of pain, swelling, sexual history, trauma and urinary symptoms, examination of the scrotum and groin, and arranging STI testing or UTI investigations if indicated. An urgent ultrasound scan of the scrotum is arranged when there is diagnostic uncertainty or persistent or unexplained symptoms.
How is epididymitis treated?
The treatment is usually antibiotics, given as injections, tablets or a combination. The NHS says it is important to finish the whole course, even if you start to feel better.
To ease pain and swelling the NHS suggests painkillers such as paracetamol or ibuprofen (if you have a history of seizures or fits, NSAIDs such as ibuprofen should not be taken with some antibiotics used for epididymitis, so check with a pharmacist), holding a cold pack or bag of frozen peas wrapped in a tea towel on the groin, and wearing underwear that supports the scrotum.
If you have gonorrhoea or chlamydia, the NHS says not to have sex until you have finished the full course of treatment, or for 7 days after.
| Epididymitis | Testicular torsion | |
|---|---|---|
| Pain onset | Sudden or gradual | Sudden and unbearable (NHS) |
| Cause | Usually infection (STI or urine infection) | The testicle becomes twisted (NHS) |
| Other signs | Warm, tender, swollen scrotum; discharge or urinary symptoms possible | Pain may also be felt in the tummy |
| What to do | GP or sexual health clinic; antibiotics | Call 999 or go to A&E; treatment in hospital as soon as possible |
How long does epididymitis last?
The NHS says you should start to feel better within a few days of starting antibiotics, but it may take up to 3 months to fully recover. If you still have symptoms after this, you might be referred for further tests.
The NHS suggests continuing the supportive measures above while recovering, and notes that sexual partners may need testing and treatment if an STI is the cause.
When should you get urgent help?
The NHS says to call 999 or go to A&E if you get sudden, unbearable pain in your testicles or tummy, because it could be a twisted testicle and needs to be treated in hospital as soon as possible. Do not drive yourself; ask someone to drive you or call 999.
NICE CKS says testicular torsion should be suspected in any person presenting with acute scrotal pain and swelling before other causes are considered, and that emergency hospital admission is arranged for suspected torsion or severe epididymo-orchitis with possible sepsis or abscess.
See a GP for a lump in the testicle, swollen testicles, a change in shape, one testicle becoming bigger than the other, or aching or discomfort that does not go away, because lumps can be a sign of testicular cancer, which is easier to treat if found early.
NHS and private pathways
You can be assessed by a GP or at a sexual health clinic. The NHS says sexual health clinics can provide the same antibiotics you would get from your GP, and many offer a walk-in service. NICE CKS advises urgent referral to a sexual health clinic for suspected STI-related epididymo-orchitis.
Private GP and urology services are also available. The diagnostic steps and antibiotics are the same; the most important point is not to delay assessment of sudden testicular pain.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What is epididymitis?
The NHS says it is where the epididymis, a tube behind the testicles, becomes swollen and painful. It is often caused by an infection and is usually treated with antibiotics. NICE CKS places it within epididymo-orchitis, one of several causes of scrotal pain and swelling that a clinician has to tell apart.
-
What are the symptoms of epididymitis?
Sudden or gradual pain in one or both testicles, and a scrotum that feels tender, warm and swollen. The NHS says you may also have a build-up of fluid around the testicle (a hydrocele), and depending on the cause, difficulty peeing or a white, yellow or green discharge from the tip of the penis.
-
What causes epididymitis?
The NHS says it is usually caused by a sexually transmitted infection such as chlamydia or gonorrhoea, which is more likely under the age of 35. In men over 35 the main cause is usually a urine infection. Mumps, tuberculosis, amiodarone, a groin injury and Behçet's disease are less common causes.
-
How is epididymitis treated?
With antibiotics, given as injections, tablets or both. The NHS says it is important to finish the whole course even if you feel better. To ease pain, take painkillers such as paracetamol or ibuprofen, hold a cold pack on the groin and wear underwear that supports the scrotum.
-
How long does epididymitis take to go away?
The NHS says you should start to feel better within a few days of starting antibiotics, but it may take up to 3 months to fully recover. If you still have symptoms after this, you might be referred for further tests, so go back to your GP or sexual health clinic if things are not settling.
-
Is epididymitis an STI?
Not always. It is often caused by a sexually transmitted infection such as chlamydia or gonorrhoea, especially in younger men, but in men over 35 the main cause is usually a urine infection. The NHS says if tests show an STI, current or recent sexual partners from the past 6 months may need testing too.
-
Can epididymitis go away without antibiotics?
The NHS says treatment is usually antibiotics because it is often caused by infection, so it is not something to wait out. Testicular pain can also come from other conditions, including testicular torsion, which is an emergency, so it is important to be assessed by a GP or sexual health clinic.
-
How do I know if it is torsion instead?
The NHS says sudden, unbearable pain in the testicles or tummy could be a twisted testicle and needs to be treated in hospital as soon as possible. Call 999 or go to A&E. NICE CKS says torsion should be suspected in anyone with acute scrotal pain and swelling before other causes are considered.
-
Can I have sex with epididymitis?
The NHS says not to have sex if you have gonorrhoea or chlamydia until you have finished the full course of treatment, or for 7 days after. This protects partners from infection, and partners may need to be tested and treated as well if an STI is the cause of your epididymitis.
-
Where can I get treated?
At a GP surgery or a sexual health clinic. The NHS says sexual health clinics can provide the same antibiotics you would get at your GP surgery, and many offer a walk-in service where you do not need an appointment. NICE CKS advises urgent referral to a sexual health clinic for suspected STI-related epididymo-orchitis.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-11, next review 2027-10-11.
-
NHS: Epididymitis, https://www.nhs.uk/conditions/epididymitis/, retrieved October 2026
-
NICE CKS: Scrotal pain and swelling, https://cks.nice.org.uk/topics/scrotal-pain-swelling/, retrieved October 2026
-
NHS: Chlamydia, https://www.nhs.uk/conditions/chlamydia/, retrieved October 2026
Related guides
Keep reading.
-
Testicular torsion
A surgical emergency that causes sudden testicular pain.
Read guide -
Orchitis
Inflammation of the testicle itself.
Read guide -
Testicular cancer
Why testicular lumps need checking.
Read guide -
Chlamydia
A common STI that can cause epididymitis.
Read guide -
Urinary tract infection
A common cause in older men.
Read guide -
Hydrocele
Fluid around the testicle.
Read guide -
Prostatitis
Prostate inflammation with similar urinary symptoms.
Read guide