Epididymitis: the swollen tender testicle, and sorting infection from the emergency that mimics it

Last updated September 3, 2026.

Epididymitis is inflammation, usually infection, of the epididymis, the coiled tube behind the testicle that carries sperm. It shows as one-sided testicular pain and swelling building over hours to days, often with tenderness, sometimes with fever, a discharge, or burning on passing urine. It is treatable with antibiotics and simple measures, and most cases settle fully over one to two weeks. The cause depends on age: in men under 35 the usual driver is a sexually transmitted infection, chlamydia above all, so testing and partner treatment are part of the fix; in older men it is more often a urine infection, sometimes with an enlarged prostate behind it. The critical separation is from testicular torsion, the twisted testicle, which cuts off the blood supply and is a surgical emergency measured in hours: sudden severe pain, a high-riding testicle, and nausea mean the emergency department immediately, not an appointment. Treatment is antibiotics matched to the likely cause, rest, scrotal support, and anti-inflammatory painkillers, with a review if the picture does not settle. Persistent or recurrent cases get an ultrasound to make sure nothing else, including the rare testicular tumor, is hiding behind the story.

What does it look like?

One testicle becoming painful, swollen, and tender over hours to days, sometimes with the skin red and warm, often with the pain easing oddly when the testicle is gently lifted. Fever, burning on urination, discharge from the penis, or a frequent-urination picture may accompany it, depending on the cause. The build over a day or two is the usual tempo; a lightning strike of pain in seconds is a different, more urgent story.

Find answers to epididymitis

Start a free AI doctor consult →

Why does it happen?

Bacteria reach the epididymis and inflame it. Under 35, the travelers are usually sexually transmitted, chlamydia most of all, often with no other symptom; over 35, they are usually urine bacteria, sometimes riding behind an enlarged prostate or a recent catheter or urinary procedure. Rarely, a non-infectious cause, a medicine or urine refluxing under strain, is the driver. It says nothing about hygiene, and an STI-driven case says only that someone was once in contact with an extremely common germ.

How is it treated?

When is it the emergency instead?

Sudden, severe testicular pain starting in seconds to minutes, with a high-riding testicle or nausea and vomiting, is a 911 or immediate emergency department trip, because a twisted testicle dies without surgery within hours. Fever with a very swollen, very red scrotum also deserves same-day assessment. Pymander's escalation routing is built and tested specifically for this class of decision; see the safety architecture working paper.

What a Pymander AI doctor consult looks like

Have you been diagnosed with epididymitis, or do you have a painful swollen testicle now?
I am 29 and three days ago my left testicle started aching and swelling. At the urgent care they said epididymitis, gave me two weeks of antibiotics, and did a urine test and a swab for STIs. I have been with my girlfriend for two years, so the STI part has me completely spun around. Does this mean she cheated, or I did something without knowing? Also they kept asking whether the pain came on suddenly, and it did not, but why did they care so much about that?
Thanks for giving me all this information. Based on what you've said, the STI question first, because it is the one spinning, and the honest answer is that the swab result does not accuse anyone of anything. Two reasons. First, chlamydia, the usual driver at your age, is frequently symptom-free and can be carried silently for years, so a positive result can date from before either of you met; a test taken in year two of a relationship says nothing about year two of the relationship. Second, not all epididymitis is sexually transmitted even at 29, and until the result is back, you are spinning over a possibility, not a fact. If the swab does come back positive, the correct reading is not someone cheated; it is a common germ was carried, silently, by someone, and the fix is mechanical: you both get treated, because partners ping-pong these infections, and the conversation goes far better as a logistics problem than as an accusation. On the sudden-pain questions: they were excluding torsion, and they cared because torsion is the one testicular emergency with a clock. A twisted testicle loses its blood supply and dies without surgery within hours, so the first question in every painful-testicle assessment is did this start in seconds, because that answer divides the clinic path from the operating-theater path. Your slow build over three days is the epididymitis tempo, and the antibiotics plus rest, snug underwear, and anti-inflammatories should have you clearly improving within a few days. The one caution to carry: if the pain ever arrives suddenly, severe, in minutes, with nausea, that is the emergency department immediately, not urgent care. For now: finish the full course even when it feels better, take the swab results as information rather than evidence, and have the logistics conversation if you need it. Here's your care note to share with your care team.
Care note
Epididymitis 29M STI anxiety - silent-carriage reframe, logistics not accusation, the torsion question explained
Twenty-nine-year-old: three days of left testicular ache and swelling, epididymitis diagnosed at urgent care with two weeks of antibiotics plus urine test and STI swab, two-year relationship, spinning over what an STI result would mean, and asking why everyone kept asking whether the pain came on suddenly: the new-diagnosis consult. Plan: the STI anxiety met with the silent-carriage facts (chlamydia symptom-free for years; a positive swab does not date to the relationship), the partner-treatment frame as logistics not accusation, the sudden-pain question explained as the torsion clock (an onset in seconds to minutes is the theater path), the treatment basics (full course, support, anti-inflammatories, improvement in days), and the torsion red flag armed for the future.
View care note →

Illustrative example, not a real member's messages.

Common questions

They swabbed me for STIs. I have been faithful for two years. What does this mean?

It means the usual driver at your age is an STI, so testing is routine, and a positive result, if it comes, accuses nobody of anything. Chlamydia is frequently symptom-free and can be carried silently for years, so an infection diagnosed in year two of a relationship can date from before it began. Not all epididymitis in young men is sexually transmitted either, so until the result is back you are spinning over a possibility, not a fact. If it is positive, the fix is mechanical: you both get treated, because partners ping-pong these infections, and the conversation goes far better as a logistics problem than as an accusation.

Why did everyone keep asking whether the pain came on suddenly?

Because they were excluding torsion, and torsion has a clock. A twisted testicle loses its blood supply and dies without surgery within hours, so the first fork in every painful-testicle assessment is the tempo: pain that arrives in seconds to minutes, severe, often with nausea, is the operating-theater path, while pain building over hours to days is the infection path you are on. Your three-day build is the epididymitis tempo. Carry the other pattern with you, though: if it ever arrives suddenly and severely, that is the emergency department immediately, not urgent care, and saying I think it might be torsion at the door puts you at the front of the right queue.

How long until this settles, and what actually helps?

Most men feel clearly better within a few days of starting the antibiotics, and the swelling resolves over one to two weeks, sometimes with a tender firmness that lingers a little longer. What helps while it settles: rest, snug supportive underwear or a scrotal support, which takes the drag off the inflamed tube, and anti-inflammatory painkillers, which treat both the pain and the swelling. Two things really matter for the finish: taking the full antibiotic course even when it feels better, because a half-treated epididymis can smolder, and going back if it is not clearly improving within a few days rather than enduring it.

Does my girlfriend need to do anything?

Only if your test comes back positive, and then it is simple logistics: she gets tested and treated too, even with no symptoms, because these infections hide silently and ping-pong between partners, and treating only one half of a couple is how the infection circles back. While you are both being treated, sex waits until the courses are done. If her test is negative, nothing further is needed. And it is worth saying the quiet part plainly: this sequence, test, treat both, move on, is how a great many completely faithful couples handle a common germ, and it ends with nobody's health worse and nobody's relationship indicted.

Will this affect my fertility?

For the large majority, no. One episode of epididymitis, treated promptly and fully, leaves fertility intact, and that is the expected outcome for you. The qualifications are honest ones: severe infections involving both sides, or infections left untreated for a long time, can occasionally scar the sperm-carrying tube, which is one more reason the full course and the prompt review when it is not settling matter. If you ever have trouble conceiving in the future with this in your history, mention it, and the testing starts there. But the base rate is strongly in your favor, and the best protection is exactly what you are already doing.

What if it does not get better, or keeps coming back?

Then the story needs a second look, and that is a routine fork, not a disaster. An ultrasound checks that nothing else is driving the picture: an abscess that needs draining, a structural problem with the urinary plumbing, or, rarely, a testicular tumor hiding behind the infection story, which is why any lump felt after the infection settles earns its own review. Recurrent episodes in older men often point to the urinary side, an enlarged prostate or incomplete bladder emptying, and treating that treats the recurrences. Persistent cases also get the antibiotic choice rechecked against the culture results. The rule of thumb: settling within days is the expected path; anything else is a reason to be seen again, not to wait.

Sources

Pymander is not a replacement for a physician and does not provide medical advice, diagnosis, or treatment.

Free AI doctor, 24/7 by textStart a free AI doctor consult