Back to Sexual Health

What Is Epididymitis and How Is It Treated?

Mens Health Guide Editorial 22 February 2026

Epididymitis is inflammation of the epididymis, the coiled tube at the back of each testicle that stores and carries sperm. When the testicle itself is also inflamed, it is called epididymo-orchitis. It is one of the most common causes of scrotal pain in adult men. It usually develops over a day or two and is most often caused by infection, which responds well to antibiotics.

What are the symptoms?

The main symptom is pain and swelling in the scrotum, usually on one side. The pain often starts at the back of the testicle and builds gradually over hours to days. The scrotum may become red, warm and tender, and the swelling can make it hard to tell the testicle and epididymis apart.

Other symptoms can include pain or burning when passing urine, needing to pass urine more often, a discharge from the penis, fever, chills and feeling generally unwell. Some men notice a lump or thickening at the back of the testicle.

How is it different from torsion?

Testicular torsion usually causes sudden, severe pain, often with vomiting, whereas epididymitis usually builds more gradually. However, the two can be hard to tell apart, especially in younger men.

Sudden, severe testicle pain should always be treated as a possible torsion. Go to A&E immediately rather than assuming it is an infection.

What causes it?

In men under thirty-five, epididymitis is most often caused by sexually transmitted infections, especially chlamydia and gonorrhoea. These infections can travel up from the urethra to the epididymis.

In older men, it is more often caused by bacteria that normally cause urine infections, such as E. coli. Conditions that affect the flow of urine, including an enlarged prostate, a narrowing of the urethra, recent urinary procedures or a urinary catheter, increase the risk.

Men who have anal sex may develop epididymitis from bowel bacteria. Less commonly, it can be caused by mumps, tuberculosis, injury, or, rarely, a side effect of the heart medicine amiodarone.

How is it diagnosed?

A doctor will ask about your symptoms and sexual history and examine your scrotum and abdomen. A urine sample is usually tested for infection, and tests for chlamydia and gonorrhoea are taken, often from a urine sample or a swab. Blood tests may be done if you are unwell.

An ultrasound scan may be arranged if the diagnosis is unclear, to rule out torsion or check for an abscess or other problem.

How is it treated?

Treatment is usually with antibiotics. The choice depends on the most likely cause. If a sexually transmitted infection is likely, you may be given an injection and a course of tablets that cover chlamydia and gonorrhoea. If a urinary infection is more likely, a different course of antibiotics is used, often for ten to fourteen days.

Finish the full course, even if you feel better. Painkillers such as paracetamol or ibuprofen, resting, wearing supportive underwear and applying a cold pack wrapped in a towel can ease discomfort.

What about partners?

If epididymitis is caused by a sexually transmitted infection, your recent sexual partners will need to be tested and treated too, to prevent reinfection and protect their health. Sexual health clinics can help with this confidentially. Avoid sex until you and your partners have finished treatment and been given the all-clear.

How long does recovery take?

Pain usually improves within a few days of starting antibiotics. Swelling and tenderness can take several weeks, sometimes longer, to settle completely. See a doctor again if you are not improving within a few days, or if symptoms get worse.

Rarely, complications can occur, including an abscess, ongoing pain or reduced fertility, particularly if both sides are affected.

When should you seek help?

See a GP, sexual health clinic or call NHS 111 the same day if you have a painful, swollen testicle. Seek urgent help for high fever, severe pain or feeling very unwell.

Other guides on the same theme are gathered in our sexual health section.

This page is general information rather than medical advice.