Urgent scrotal pain
Epididymitis vs testicular torsion: telling two causes of testicular pain apart
Both epididymitis and testicular torsion cause pain and swelling in the scrotum, and even doctors cannot always separate them by examination alone. One is usually an infection treated with antibiotics. The other is a twisted testicle that is a surgical emergency. This page explains how they differ, how they overlap, and why sudden severe pain should never wait.
Last checked: 2026-10-10
Key facts
At a glance.
-
Torsion is an emergency
Guy's and St Thomas' NHS Foundation Trust says testicular torsion cuts off the blood supply to the testicle and needs treatment urgently, because delay might lead to damage or loss of the testicle.
-
Epididymitis is usually infection
The NHS says epididymitis, swelling of the tube behind the testicle, is often caused by infection and is usually treated with antibiotics.
-
Examination cannot always separate them
Cambridge University Hospitals says that when torsion remains a possibility after examination, emergency surgery is advised, and that if no twist is found other causes such as epididymitis are looked for.
-
Pain onset is not a reliable rule
The NHS says epididymitis pain can come on suddenly or gradually. Torsion pain is often sudden and severe, according to Cambridge University Hospitals, so onset alone does not settle it.
-
Age gives a hint, not an answer
Cambridge University Hospitals says torsion is most common between the ages of 10 and 25 but can happen at any age. The NHS says epididymitis from an STI is more likely in men under 35.
-
Go to A&E for sudden severe pain
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.
The short answer: act on sudden severe pain
A painful, swollen testicle has more than one possible cause, and the two most discussed are epididymitis and testicular torsion. They matter in different ways. Epididymitis is an inflamed epididymis, the tube behind the testicle, and is usually an infection that antibiotics clear. Testicular torsion is the twisting of the spermatic cord, which supplies blood to the testicle. It is a surgical emergency in which minutes and hours count.
Because the symptoms overlap, you cannot reliably decide which one you have at home. The practical rule drawn from the NHS and hospital guidance is simple: sudden, severe testicular or lower tummy pain should be seen in an emergency department straight away. It is far better to be told it was epididymitis than to lose a testicle by waiting.
What each condition 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 usually treated with antibiotics. In younger men under 35 it is more often due to a sexually transmitted infection such as chlamydia or gonorrhoea; in men over 35 the main cause is usually a urine infection. Less common causes include mumps, tuberculosis, the heart-rhythm medicine amiodarone, a groin injury and Behçet's disease.
Cambridge University Hospitals explains that testicular torsion occurs when the cord carrying blood to the testicle twists, which can range from half a turn to two full turns. The twisting cuts off the blood supply and causes pain and swelling. Some boys and men have a testicle that is not firmly attached at the base of the scrotum (called bell clapper deformity), which lets it twist more freely, but in many there is no apparent cause. Torsion may happen during exercise or sleep, or after an injury, and nothing the person did or did not do causes it.
Symptoms compared
The picture below combines what the NHS says for epididymitis with what the hospital leaflets say for torsion. Sharing a symptom is exactly why examination is needed.
| Feature | Epididymitis | Testicular torsion |
|---|---|---|
| Pain | Sudden or gradual, in one or both testicles (NHS) | Often severe and often sudden; may come and go but tends not to go away (Cambridge University Hospitals) |
| Scrotum | Tender, warm and swollen; fluid (hydrocele) may form a lump (NHS) | Swelling, especially one side, and redness (Cambridge University Hospitals) |
| Other symptoms | Difficulty peeing, or a white, yellow or green discharge from the tip of the penis, depending on cause (NHS) | Nausea or vomiting, abdominal pain; testicle may sit higher and more horizontal than usual (Cambridge University Hospitals) |
| Typical age | Under 35: often an STI. Over 35: usually a urine infection (NHS) | Most common between 10 and 25, but any age (Cambridge University Hospitals) |
| Urgency | See a GP or sexual health clinic; A&E if pain is sudden and unbearable (NHS) | Emergency surgery; do not wait (Guy's and St Thomas') |
How doctors tell them apart
For epididymitis, the NHS says that you will usually need tests to find the cause. These may include a groin examination, a swab of the tube that carries urine out of the body, urine and blood tests, and a rectal examination to check for prostate problems. Your recent sexual contacts may be offered STI testing if an infection is found.
For suspected torsion, the approach is different, because time is the main constraint. Guy's and St Thomas' says that at hospital the team takes a history, examines the scrotum and tests a urine sample for infection and blood, and that more tests are not usually helpful because of the urgency. It also states that it is difficult to be completely certain that someone has torsion, and the doctors might recommend scrotal exploration surgery if they think it is likely.
A scan is not a safe shortcut. The same leaflet says that a scan is not completely accurate and might delay surgery and risk loss of the testicle, and that watching and waiting also risks losing the testicle. It adds that in 1 in 10 people having this type of surgery no twist is found, in which case the cut is stitched and no further treatment is needed. That figure helps to explain why surgeons accept some operations that turn out not to be torsion: the cost of missing a true torsion is far higher.
Treatment and recovery compared
Epididymitis is treated with antibiotics, given as injections, tablets or both. The NHS stresses finishing the whole course even if you feel better, and says you should start to feel better within a few days although full recovery may take up to 3 months. Painkillers such as paracetamol or ibuprofen, a cold pack and supportive underwear can help; the NHS also asks people with a history of seizures to check with a pharmacist before taking an NSAID alongside some of the antibiotics used. If an STI is the cause, it says to avoid sex until treatment is finished or for 7 days after.
Torsion is treated by an operation under general anaesthetic to untwist the testicle. Guy's and St Thomas' explains that if the testicle is healthy it is stitched in place to stop it twisting again, and the other side is usually stitched as well. If the testicle is too badly damaged to recover, it may need to be removed. Most people go home the same day or the day after. Cambridge University Hospitals notes that one testicle is sufficient for hormone production and fertility does not usually suffer long term.
When to seek help
Call 999 or go to A&E for sudden, unbearable pain in the testicles or tummy, and do not drive yourself there. For a lump, swelling, a change in shape, one testicle becoming bigger than the other, or aching that does not go away, the NHS says to see a GP, because lumps can be a sign of testicular cancer, which is easier to treat when found early. A sexual health clinic can also treat epididymitis and many offer walk-in services.
If you have been treated for epididymitis and have not improved, return for review. The NHS says a person still with symptoms after the expected recovery period may be referred for further tests.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
How can I tell epididymitis from testicular torsion?
You usually cannot reliably tell at home. The symptoms overlap, and doctors may also be unable to exclude torsion on examination alone, which is why sudden severe pain needs emergency assessment.
-
Is epididymitis an emergency?
Usually it is treated by a GP or sexual health clinic with antibiotics. But the NHS says to go to A&E if pain is sudden and unbearable, because it could be torsion.
-
How quickly must torsion be treated?
Guy's and St Thomas' says it needs urgent treatment and that delay might lead to loss of the testicle. It is an emergency, so seek help immediately.
-
Can torsion happen at night or during sleep?
Yes. Cambridge University Hospitals says torsion may occur during exercise or during sleep, and may also follow an injury.
-
Does epididymitis always come from an STI?
No. The NHS says STIs are more likely under 35, while over 35 the main cause is usually a urine infection. Mumps, tuberculosis and some medicines are less common causes.
-
Will I need a scan?
For suspected torsion, Guy's and St Thomas' says more tests are not usually helpful because of the urgency, and a scan can delay surgery. Epididymitis is investigated with swabs, urine and blood tests.
-
What if surgery finds no twist?
Guy's and St Thomas' says this happens in 1 in 10 people having scrotal exploration. The cut is closed and no treatment is needed. Other causes such as epididymitis are then considered.
-
How long does epididymitis take to settle?
The NHS says you should start to feel better within a few days, but it may take up to 3 months to fully recover.
-
Should my partner be tested?
The NHS says that if tests show an STI is the cause, it may be recommended that your current or recent sexual partners (over the past 6 months) are also tested.
-
Can I lose fertility?
Cambridge University Hospitals says one testicle is enough for hormone production and fertility, so having only one tends not to cause long-term problems. Guy's and St Thomas' lists reduced fertility as a risk in fewer than 2 in 100 people having surgery.
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-10, next review 2027-10-10.
-
NHS: Epididymitis, https://www.nhs.uk/conditions/epididymitis/ , retrieved October 2026
-
Guy's and St Thomas' NHS Foundation Trust: Testicular torsion surgery, https://www.guysandstthomas.nhs.uk/health-information/testicular-torsion-surgery , retrieved October 2026
-
Cambridge University Hospitals NHS Foundation Trust: Testicular torsion in teenagers, information for parents/carers, https://www.cuh.nhs.uk/patient-information/testicular-torsion-in-teenagers-information-for-parentscarers/ , retrieved October 2026
Related guides
Keep reading.
-
Testicular torsion
The twisted testicle emergency in depth.
Read guide -
Epididymitis
Causes, tests and antibiotic treatment.
Read guide -
Testicular pain
Causes of pain in the testicle.
Read guide -
Chlamydia
A common STI that can cause epididymitis.
Read guide -
Testicular cancer
Lumps and what to do about them.
Read guide