Epididymitis is inflammation of the epididymis, the coiled tube at the back of the testicle that stores and carries sperm.
It causes pain, swelling and tenderness in the scrotum, usually on one side, developing over hours to days. In younger men, it is often caused by sexually transmitted infections such as chlamydia and gonorrhoea. In older men, urinary infections are a common cause. Sudden, severe testicle pain may instead be testicular torsion, which is a surgical emergency. This guide explains the signs, causes and treatment.

Imagine a 24-year-old delivery rider in Thailand who notices a dull ache in his right testicle that gets worse over two days. The testicle becomes swollen, red and very tender, and he has mild burning when passing urine. He feels embarrassed but goes to a sexual health clinic. The nurse examines him gently, notes that lifting the testicle eases the pain, and takes urine and swabs. Tests show chlamydia. He is treated with antibiotics, uses supportive underwear and cold packs, and his partner is treated too. The swelling settles over two weeks.
What is epididymitis?
The epididymis lies along the back of each testicle. Sperm made in the testicle mature in the epididymis before travelling through the vas deferens. When bacteria travel up the urethra into the epididymis, inflammation results. Inflammation can spread to the testicle itself, called epididymo-orchitis.
Acute epididymitis lasts less than six weeks and is usually caused by infection. Chronic epididymitis lasts longer and may cause ongoing pain without clear infection.
Epididymitis is one of the most common causes of scrotal pain in adult men, with hundreds of thousands of cases each year in large countries. It is most common in men aged 19 to 35 and in older men with urinary problems. It can also occur in boys, often without infection.
10 key facts about epididymitis
- Epididymitis is inflammation of the tube behind the testicle.
- Pain and swelling develop over hours to days.
- In men under 35, STIs are a common cause.
- In older men, urinary infections are common causes.
- Sudden severe testicle pain may be torsion, an emergency.
- Diagnosis uses examination, urine tests and swabs.
- Antibiotics treat infectious epididymitis.
- Partners need testing if an STI is found.
- Supportive underwear and cold packs ease pain.
- Condoms reduce risk.
Causes and risk factors
Causes include:
- Chlamydia and gonorrhoea
- Bacteria from urinary tract infections, such as E. coli
- Enlarged prostate or urinary blockage
- Urinary catheters or recent urological procedures
- Anal sex, which can introduce gut bacteria
- Mumps (orchitis)
- Tuberculosis in some regions
- Some medicines, such as amiodarone
- Injury
In boys, epididymitis may follow viral infections or be linked to urinary tract abnormalities.
Symptoms and warning signs
Symptoms include:
- Pain in the testicle or scrotum, usually one side
- Swelling and redness of the scrotum
- Tenderness at the back of the testicle
- Pain when passing urine
- Discharge from the penis
- Fever
- Pain during sex or ejaculation
- Blood in semen
Sudden, severe pain, especially with nausea and vomiting, needs emergency assessment for torsion.
How epididymitis is diagnosed
- A healthcare provider examines the scrotum and abdomen.
- Urine tests check for infection.
- Swabs or urine tests for chlamydia and gonorrhoea.
- Ultrasound with Doppler to rule out torsion or abscess.
- Tests for other STIs, including HIV and syphilis.
Treatment options
- Antibiotics chosen according to likely cause.
- For suspected STI: ceftriaxone with doxycycline.
- For urinary causes: antibiotics such as levofloxacin or ofloxacin.
- Rest and scrotal support.
- Cold packs.
- Pain relief.
- Partner testing and treatment.
- Avoiding sex until treatment is complete.
Possible complications
- Abscess
- Chronic pain
- Testicular damage
- Reduced fertility, rarely
- Spread of infection
Outlook
Most men recover fully with treatment. Pain improves within a few days, but swelling can take weeks to settle.
Return if symptoms worsen or don’t improve within three days.
Can it be prevented?
- Use condoms.
- Get tested for STIs regularly if at risk.
- Treat urinary infections promptly.
- Manage prostate problems.
- Get mumps vaccination.
Living with epididymitis
- Rest and raise the scrotum.
- Wear supportive underwear.
- Use cold packs wrapped in cloth.
- Take all antibiotics.
- Avoid heavy lifting until better.
How families and communities can help
Partners need testing and treatment if an STI is found.
Open communication helps.
Research and new developments
Research is monitoring antibiotic resistance in gonorrhoea.
Studies are exploring chronic epididymitis.
Around the world
Epididymitis occurs worldwide.
Tuberculosis is an important cause in some regions.
Nursing care and the role of nurses
Nurses help diagnose and treat epididymitis.
- Recognise torsion as an emergency.
- Take sensitive sexual histories.
- Arrange tests.
- Give antibiotics.
- Support partner notification.
- Advise on comfort measures.
Epididymitis or torsion?
Testicular torsion happens when the testicle twists on its cord, cutting off blood supply. It usually causes sudden, severe pain, often with nausea and vomiting, and is most common in boys and young men aged 12 to 18. The testicle may sit higher than usual. Torsion needs surgery within hours to save the testicle. Epididymitis usually builds up more gradually and may come with urinary symptoms or discharge. Because they can be hard to tell apart, any sudden severe testicle pain needs emergency assessment.
Easing pain at home
Rest in bed for a day or two, lying with a folded towel under the scrotum to raise it. Supportive underwear or an athletic support helps when up and about. Cold packs wrapped in cloth for 15 to 20 minutes several times a day reduce swelling. Simple pain relief helps. Avoid heavy lifting and strenuous exercise until better.
Epididymitis in boys
Boys can develop epididymitis, often without a sexually transmitted cause. It may follow a viral infection or be linked to urinary tract abnormalities. Because torsion is common in this age group, any boy with testicle pain must be seen urgently. Boys with repeated epididymitis may need tests of the urinary tract.
Chronic epididymitis
Some men have ongoing scrotal pain for more than six weeks, sometimes without infection. This can be distressing. Treatment may include anti-inflammatory medicines, nerve pain medicines, pelvic floor physiotherapy and, rarely, surgery. A specialist can help.
Mumps and the testicles
Mumps can cause painful swelling of one or both testicles, usually a few days after swollen cheeks. It is more common in teenagers and men who were not vaccinated. MMR vaccination prevents mumps.
Why partner treatment matters
When chlamydia or gonorrhoea causes epididymitis, sexual partners from the past 60 days usually need testing and treatment, even if they have no symptoms. Many women with these infections have no symptoms but can develop pelvic inflammatory disease, which can affect fertility. If partners are not treated, the infection can pass straight back. Sexual health clinics can contact partners confidentially on your behalf if telling them yourself feels difficult. Avoid all sex, including oral sex, until you and your partners have finished treatment and symptoms have settled.
Checking your testicles
Getting to know how your testicles normally feel helps you notice changes early. Once a month, after a warm bath or shower, gently roll each testicle between your thumb and fingers. It is normal for one to be slightly larger or hang lower, and the epididymis feels like a soft tube at the back. Look for lumps, hardness, swelling or a change in size or weight. Most lumps are not cancer, but any new lump should be checked. Pain with swelling that does not settle after treatment also needs follow-up.
Myths and facts
Myth: Testicle pain always means an STI.
Fact: There are many causes.
Myth: Epididymitis causes infertility in most men.
Fact: It rarely affects fertility.
Myth: Pain will go away on its own.
Fact: Infection needs antibiotics.
Myth: Only sexually active men get it.
Fact: Older men and boys can get it too.
Frequently asked questions about epididymitis
Is epididymitis an STI?
It can be caused by STIs, but not always.
How long does it last?
Pain improves in days; swelling may take weeks.
Can it affect fertility?
Rarely.
Do I need an ultrasound?
Sometimes, to rule out torsion.
When can I have sex?
After treatment and when partners are treated.
Can boys get it?
Yes.
Can it come back?
Yes, if the cause isn’t treated.
When to seek help
- Sudden severe testicle pain
- Nausea and vomiting with testicle pain
- High fever
- A swelling that keeps growing
- No improvement after three days of antibiotics
Key takeaways
- Epididymitis is inflammation of the tube behind the testicle.
- In older men, urinary infections are common causes.
- Diagnosis uses examination, urine tests and swabs.
- Antibiotics treat infectious epididymitis.
- Supportive underwear and cold packs ease pain.
- Condoms reduce risk.
Looking after your emotional wellbeing
Any long or worrying health problem can affect mood, sleep, relationships and confidence. Feeling anxious, low, angry or isolated after a diagnosis of epididymitis is common and understandable. Talking openly with family, friends, faith leaders or a support group can ease the load, and so can learning as much as you can about what to expect.
If low mood, hopelessness or worry last for more than two weeks, or if you have thoughts of harming yourself, tell your nurse or healthcare provider straight away. Emotional health is part of physical recovery, and support is available.
How to prepare for a clinic appointment
Before you see a nurse or healthcare provider, write down your symptoms, when they started and anything that makes them better or worse. Bring a list of all medicines, including herbal and traditional remedies, and any previous test results or clinic cards. If possible, bring a family member or friend to help you remember what is said.
During the appointment, ask the provider to explain anything you do not understand, and repeat the plan back in your own words. Before you leave, make sure you know what to do if symptoms get worse, when to return and who to contact with questions.
If cost, distance or work makes it hard to attend appointments, tell your nurse. Ask whether free or subsidised services, transport support, community health workers or phone follow-up are available in your area, so that practical problems do not stop you getting the care you need.
Planning ahead
Whether a health problem is short-lived or long term, a little planning makes care safer. Keep a folder or phone note with your diagnosis, medicines, allergies, recent test results and the contact details of your care team, and share it with a trusted family member. If you travel, carry enough medicines and a short letter describing your condition. Agree with your nurse or healthcare provider what to do if symptoms suddenly worsen and where to go out of hours, and review the plan whenever your treatment changes.
Support for carers
Caring for someone with a health condition can be rewarding but tiring. Carers should look after their own sleep, nutrition and health, ask relatives and friends for practical help, and ask about carer assessments, respite services and support groups in their area. Accepting help is a strength, not a failure, and it allows carers to keep supporting their loved one for longer.
Finding reliable health information
Health information online varies widely in quality. Prefer sources such as the World Health Organization, national health ministries, public health agencies, university hospitals and registered professional bodies. Be cautious with social media posts, miracle cures and products sold with promises that sound too good to be true.
If you read something that worries you or contradicts the advice you have been given, write it down and discuss it with your nurse or healthcare provider. They can explain how it applies to your own situation and help you separate evidence from rumour.
Questions to ask your nurse or healthcare provider
- Is this epididymitis or torsion?
- What caused it?
- Which antibiotics will I take?
- Should my partner be tested?
- How long will swelling last?
- When should I come back?
But isn’t testicle pain something to wait out?
Never wait with sudden severe pain. That could be torsion. Even gradual pain with swelling needs checking, because infection needs antibiotics.
Your next step: If you have a painful, swollen testicle, get checked today; if the pain is sudden and severe, go to emergency care now.
Related: Prostatitis
Sources: CDC: epididymitis; MedlinePlus: epididymitis.



Leave a Reply