Epididymitis Guide: Symptoms, Causes, and Treatment
Epididymitis is inflammation of the epididymis, the coiled tube at the back of the testicle that stores and carries sperm. This guide covers common symptoms, causes, diagnosis, treatment options, and self-care tips for people diagnosed with this common male health condition.
Epididymitis is a treatable inflammation of the epididymis, most often caused by bacterial infections including sexually transmitted infections (STIs) or urinary tract infections (UTIs). Most people recover fully within 2 to 4 weeks with proper antibiotic treatment and rest. Seek urgent care if you experience sudden severe testicular pain, fever, or nausea, as these can be signs of a complication.
Overview
The epididymis is a small, coiled tube located at the back of each testicle. It stores and carries sperm from the testicles to the vas deferens. Epididymitis occurs when this tube becomes inflamed, usually due to a bacterial infection. It is a common cause of testicular pain in men and people assigned male at birth, and most cases are treatable with prompt medical care.
Signs & Symptoms
Symptoms of epididymitis typically develop gradually over a few days, though they can come on suddenly in some cases. They most often affect only one side of the scrotum, but may spread to both sides in rare instances. Common symptoms include pain or tenderness in the testicle (which may worsen when touched or during movement), swelling, redness, or warmth in the scrotum, pain or burning when urinating, pain during ejaculation, blood in semen, fever and chills, abdominal or pelvic pain, and penile discharge (if caused by an STI).
Causes & Risk Factors
| Cause Type | Most Common In | Details |
|---|---|---|
| Sexually transmitted infections (STIs) | Sexually active people under 35 | Chlamydia and gonorrhea are the most common STI causes of epididymitis |
| Urinary tract infections (UTIs) or prostate inflammation | People over 35, people with a history of UTIs or prostate issues | Bacteria from the urinary tract can spread to the epididymis |
| Other bacterial causes | People with recent urinary tract procedures, enlarged prostate, or long-term catheter use | Bacteria from the prostate, bladder, or urinary tract can travel to the epididymis |
| Non-infectious causes (rare) | People with a history of testicular injury, certain medications (e.g., amiodarone), or autoimmune conditions | Inflammation may occur without an active infection |
Diagnosis
To diagnose epididymitis, your healthcare provider will first ask about your symptoms, sexual history, and urinary health. They will then perform a physical exam of the scrotum, checking for swelling, tenderness, and lumps. Additional tests may include:
- Urine test: To check for bacteria or signs of a UTI or STI
- STI testing: Swab of the urethra or urine test to check for chlamydia, gonorrhea, and other STIs
- Scrotal ultrasound: To rule out other causes of testicular pain, such as testicular torsion (a medical emergency where the testicle twists and cuts off blood supply)
- Blood tests: To check for signs of infection or inflammation
Sudden, severe testicular pain is a medical emergency. Your provider will rule out testicular torsion first, as this condition requires immediate surgery to save the testicle.
Treatment & Management
Epididymitis is almost always treated with antibiotics to clear the underlying bacterial infection. The type of antibiotic prescribed will depend on the suspected cause of your infection, including your age, sexual activity, and any allergies you have. If an STI is the cause, your sexual partner(s) will also need to be tested and treated to prevent reinfection. Supportive care can also help reduce symptoms:
- Rest and scrotal support: Wear supportive underwear, avoid strenuous activity, heavy lifting, and sexual activity until symptoms improve
- Pain relief: Over-the-counter pain medications like ibuprofen or acetaminophen can help reduce pain and swelling
- Cold compresses: Apply a cold pack wrapped in a cloth to the scrotum for 15-20 minutes at a time to reduce swelling
- Complete your full course of antibiotics: Even if you start feeling better after a few days, finish all prescribed medication to fully clear the infection
Living With It & Recovery
Most people start to feel better within 2 to 3 days of starting antibiotic treatment. Full recovery typically takes 2 to 4 weeks, though some people may experience mild lingering discomfort for longer. To reduce your risk of future episodes:
- Practice safe sex: Use condoms during vaginal, anal, and oral sex to reduce your risk of STIs
- Get regular STI screenings if you are sexually active with new partners
- Drink plenty of water and urinate when you feel the urge to avoid UTIs
- Avoid holding in urine for long periods, especially after sexual activity
Medical Review Team
WellAlly Medical Editorial Team
This content is not a replacement for professional medical advice.
Recovery & management timeline
1-3
Onset
Rest, apply cold compresses to the scrotum, take over-the-counter pain relievers as needed, and see a healthcare provider for diagnosis and antibiotic prescription.
3-7
Early Treatment
Continue taking prescribed antibiotics as directed, avoid strenuous activity and sexual intercourse, monitor for improvement in pain and swelling. Most people start to feel better within 2-3 days of starting antibiotics.
7-14
Mid-Recovery
Continue full course of antibiotics, gradually return to light activity as pain allows, continue scrotal support. Follow up with your provider if symptoms do not improve after 3 days of treatment.
14-28
Full Recovery
Complete all prescribed antibiotics, avoid heavy lifting and intense exercise for 2-4 weeks total, resume normal activity and sexual activity once pain has fully resolved. Attend any follow-up appointments to confirm the infection has cleared.
Self-care steps
1Complete your full antibiotic course
Take all prescribed antibiotics for the full length of time directed, even if you feel better after a few days. Stopping early can lead to recurring infection or antibiotic resistance.
2Support the scrotum
Wear snug, supportive underwear (such as briefs or a jockstrap) to reduce movement and discomfort. Avoid tight clothing that puts pressure on the scrotum.
3Manage pain and swelling
Apply a cold pack wrapped in a thin cloth to the scrotum for 15-20 minutes at a time, 3-4 times a day for the first few days. Use over-the-counter pain relievers like ibuprofen or acetaminophen as directed on the label.
4Avoid symptom-triggering activities
Refrain from strenuous exercise, heavy lifting, and sexual activity until your provider confirms it is safe to resume, usually 2-4 weeks after symptoms start.
When to seek medical help
Seek urgent or emergency medical care immediately if you experience sudden, severe testicular pain, high fever (over 101°F or 38.3°C), nausea or vomiting, or if your scrotum becomes extremely swollen and discolored. These symptoms can indicate testicular torsion, a medical emergency that requires immediate surgery to save the testicle, or a severe infection that has spread.
Frequently asked questions
Is epididymitis a sexually transmitted infection (STI)?
Can epididymitis cause infertility?
How long do I need to take antibiotics for epididymitis?
Can I still have sex if I have epididymitis?
Sources
- 1
- 2
- 3NHS - EpididymitisSource
- 4
Click any link to access the full source. PubMed Central (PMC) links provide free full-text access.
This information is for educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment.
This content is for general informational and educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek the guidance of a qualified healthcare provider with any questions you have about a medical condition, and never disregard professional medical advice or delay seeking it because of something you read here.
If you think you may have a medical emergency, call your local emergency number or go to the nearest emergency department immediately.
Medically reviewed by WellAlly Medical Editorial Team · Last reviewed October 9, 2026. · Read our editorial policy