Understanding Epididymitis and Orchitis
What it is, how it is treated, how your doctor rules out testicular torsion first, and the warning signs that need the ER. Written in plain language.
Welcome
Most adults with new scrotal pain, swelling, and tenderness have an infection called epididymitis or orchitis. The right antibiotic clears it up, and pain usually starts to ease in 2 to 3 days.
There is one other condition the doctor has to think about first, called testicular torsion. Torsion is rare, but it comes on suddenly and has a short clock. Chapter 2 walks you through how to tell the two apart, and when to go straight to the ER.
How to use this guide. If your pain came on suddenly within minutes, jump to chapter 2 now. Otherwise, read in order. The chapters get more specific as they go, and you can come back to chapters 6 and 8 once you know what kind of infection you have.
What epididymitis and orchitis are
Epididymitis is an infection of the small coiled tube behind the testicle. Orchitis is an infection of the testicle itself. Most adults end up with both at once, and the same antibiotics treat both.
The basics
Behind each testicle sits a small coiled tube called the epididymis. Sperm finish maturing there and pass through on the way out. When bacteria reach the epididymis, the tube becomes inflamed, swollen, and tender. That is epididymitis.
If the infection spreads into the testicle itself, that is orchitis. Many people end up with both, called epididymo-orchitis. The same treatment usually works for both, so the labels matter less than the cause.
Most adult cases come from bacteria. The bacteria come from one of two places. One is the urethra, often from a sexually transmitted infection, or STI. The other is the bladder, often from urinary bugs like E. coli. Age, sexual history, and urinary history point to which one is more likely, and that decides the antibiotic.
Who gets it
In younger men, the most common cause is an STI: chlamydia or gonorrhea. In older men, the cause is more often urinary bacteria. That can be linked to an enlarged prostate, a urinary catheter, or a recent procedure on the urinary tract. Men who have insertive anal sex can have either pattern. Treatment usually covers both.
Less commonly, viruses like mumps can cause orchitis on its own, without the epididymis being involved. This is rare in vaccinated adults.
About 8 in 10 patients feel better within 48 to 72 hours on the right antibiotic. Most are back to normal in 2 weeks. Some soreness, and a small lump behind the testicle, can take a few more weeks to fade.
If you are not clearly better by day 3 on the right antibiotic, call your doctor rather than waiting longer. It can mean the wrong bug, the wrong drug, an abscess forming, or something else going on.
Symptoms, and when it could be torsion
The first thing a doctor wants to rule out with new scrotal pain is testicular torsion. Torsion is rare, and when it happens the testicle is on a clock. This chapter helps you tell the two apart.
What epididymitis feels like
Epididymitis usually builds up over hours or a day or two. The pain starts behind the testicle, then spreads. Most people also have one or more of the following:
- One-sided scrotal pain, getting worse over hours to days.
- Swelling, warmth, or redness of the scrotum on that side.
- Burning when you pee.
- Going to the bathroom more often, or feeling like you need to go right now.
- A discharge from the tip of the penis.
- Fever, chills, or feeling generally run down.
- Pain with ejaculation.
The usual story is slow onset, urinary or discharge symptoms in the background, and a sore spot you can feel behind the testicle. If your story sounds like that, epididymitis is the most likely answer. Chapter 3 covers what comes next.
You have sudden severe pain, often starting in minutes, sometimes after sleep, exercise, or activity. You are nauseated or vomiting with the scrotal pain. Your testicle sits high or in a different position than usual. Your pain is much worse than the swelling would suggest. You cannot tell whether this is torsion or epididymitis.
Testicular torsion is twisting of the cord that carries blood to the testicle. If it is torsion, the testicle has roughly a 6-hour window to be saved, and that window closes fast. The ER can sort it out with an exam and an ultrasound, and untwist the cord surgically if needed. If you are not sure which one this is, go to the ER.
How torsion is different
Torsion is more common in teens and men in their twenties, but it can happen at any age. The story is almost always sudden severe pain rather than a build-up. Many people throw up. The testicle may sit higher than the other side, or turned sideways. Urinary symptoms and discharge are not part of the torsion picture.
If the pain came on over hours, you are peeing often, and you have a discharge, you are not in the torsion picture. If the pain came on in minutes, especially with nausea, do not wait it out.
Who treats this
Most patients start with their primary care doctor or an urgent care clinic. If the cause turns out to be urinary, or if symptoms come back, your doctor may send you to a urologist for a closer look at the prostate, bladder, and outlet of the urinary tract. If torsion is on the table, the ER is the right starting point.
How it is diagnosed
For most patients, the diagnosis comes from the story, a focused exam, and a urine test. Imaging is for the cases where the story is unclear or the picture is worse than expected.
What to expect at your visit
Your doctor will ask when the pain started and how fast it built up. They will ask about urinary symptoms. They will ask about any discharge from the penis, about new sexual partners, about any recent procedure on the urinary tract, and about your mumps vaccine.
The exam is focused on the scrotum. The doctor will gently feel for the sore spot, check whether the testicle sits normally, and check the reflex that lifts the testicle when the inner thigh is stroked. They will also check for any urethral discharge and, in older patients or those with urinary symptoms, may check the prostate.
The tests that matter
- Urinalysis. A simple urine test. It checks for infection signs.
- Urine culture. A lab test that grows out the bacteria. This helps your doctor pick the right antibiotic.
- NAAT for chlamydia and gonorrhea. A urine test or swab that looks for STI bacteria. Standard if you are under 35 or have any STI risk.
- HIV and syphilis testing. Offered when an STI is diagnosed or risk is present. Both have simple blood tests.
When ultrasound is used
A scrotal ultrasound with Doppler is the test that looks at blood flow to the testicle. It is the right test when:
- The story or the exam cannot rule out torsion.
- Symptoms are unusually severe, with high fever or a large mass.
- An abscess is possible.
- You are not better after 48 to 72 hours of antibiotics.
Sometimes the picture on the screen looks normal but the concern for torsion is still high. In that case, surgery in the operating room is the answer. The ultrasound supports the diagnosis rather than overriding the exam.
Tests you usually do not need
For a clear case in a healthy adult, you do not need a CT scan, an MRI, or a prostate blood test in the early days. These tests are saved for tougher cases, repeat episodes, or signs that something else is going on.
NAAT stands for nucleic acid amplification test. It looks for the genetic material of the STI bacteria in your urine. You do not need a swab inside the urethra. A urine cup at the visit is usually enough.
Antibiotic treatment
The antibiotic choice depends on what kind of bacteria is most likely. Two patterns cover almost everyone, and a third covers people whose risk spans both. Most courses run 10 to 14 days.
If an STI is the likely cause
This is the most common pattern in men under 35. The bacteria are almost always chlamydia or gonorrhea, sometimes both. The plan is two antibiotics, used together:
- Ceftriaxone. One shot in the arm at the clinic. Treats gonorrhea.
- Doxycycline. A pill taken twice a day for 10 days. Treats chlamydia.
If you have a recent sexual partner, they need to be tested and treated at the same time, even if they feel fine. Untreated partners are the most common reason an STI infection comes back. Do not have sex until your antibiotics are finished and your symptoms are gone, and your partner has been treated.
If urinary bacteria are the likely cause
This is the more common pattern in men over 35, men with an enlarged prostate, men with a urinary catheter, or men who recently had a procedure on the urinary tract. The bacteria are usually E. coli or similar urinary bugs. The standard treatment is one antibiotic for 10 to 14 days. Most often this is a fluoroquinolone, such as levofloxacin. TMP-SMX, sometimes sold as Bactrim, is a common alternative.
Once the urine culture comes back, your doctor may switch the antibiotic to match what they found.
If you might have either pattern
Men who have insertive anal sex can get either kind of infection. The standard treatment covers both. That is the ceftriaxone shot, plus a pill (a fluoroquinolone), for 10 days.
What "complicated" means
Some patients fall outside the simple cases above and need a different plan. This includes patients with:
- A scrotal abscess that needs to be drained.
- Prostate involvement (often longer courses, 3 to 4 weeks).
- Diabetes or a weakened immune system.
- Signs of sepsis (high fever with low blood pressure, severe shaking chills).
- Severe pain or vomiting that prevents keeping pills down.
These patients often start with IV antibiotics in the hospital, and the antibiotic course runs longer. Your doctor will tell you if your case falls into this group.
How fast you should feel better
Most patients feel clearly better within 48 to 72 hours on the right antibiotic. Pain eases first, then the swelling. If you are not better by day 3, call your doctor. It can mean the wrong antibiotic for your bacteria, an abscess forming, or another diagnosis like testicular torsion that needs a same-day look.
Finish every pill, even after you feel back to normal. Stopping early lets the infection return. The bacteria are often harder to treat the second time around.
What you can do alongside antibiotics
The antibiotic is doing the work. The steps below help with swelling and pain, and lower the chance of passing the infection to a partner.
Support the scrotum
Lifting and supporting the scrotum takes the weight off the inflamed tissue. A snug pair of briefs works for most people. A jock strap or athletic supporter helps for more swelling. When you are lying down, a folded towel under the scrotum lifts it.
Use ice in the first 48 hours
A cold pack wrapped in a thin towel, placed over the scrotum for 15 to 20 minutes at a time, helps the swelling settle. Do this several times a day for the first 2 days. Do not put ice directly on the skin.
Take an anti-inflammatory for pain
Ibuprofen (Advil, Motrin) or naproxen (Aleve) eases pain and helps with the inflammation. Take with food. If you have stomach trouble, kidney problems, or take a blood thinner, ask your doctor first. Acetaminophen (Tylenol) is a safer choice when an anti-inflammatory is not a good fit.
Rest and limit activity
Heavy lifting, running, and cycling make the swelling worse. A few days of taking it easy lets the antibiotics get ahead of the infection. Most patients can return to light activity within a week, and to full activity within 2 to 4 weeks.
Drink water steadily
Steady fluid through the day helps the urinary tract clear out. There is no special target. A normal day's drinking is plenty.
Hold off on sex until you are done
No sex until you have finished the antibiotic course and your symptoms are gone. If you have an STI, your partner needs to be treated before you have sex again. Skipping this step reinfects you from an untreated partner.
If you smoke, the inflammation runs hotter and the recovery takes longer. Ask your doctor about quitting. The same goes for heavy drinking while you are on antibiotics.
Red flags during treatment
Most patients get better without any trouble. A small number get worse, and a few of those need same-day care. This chapter covers what to watch for once you are on antibiotics, and where to go.
Go to the ER if
The scrotal skin turns dark, dusky, blistered, or makes a crackling sound when pressed. This one is rare, and it is a true emergency. Go straight to the ER and say those words at the desk. A fever climbing past 102 F or 39 C, especially with shaking chills, in spite of being on antibiotics. Pain that comes back sharply after starting to ease, or pain that is sudden and severe. Severe vomiting that keeps you from holding down pills or fluids. A new sense of feeling really unwell, with low blood pressure, fast heartbeat, confusion, or trouble standing.
Call your doctor the same day if
- You are not at all better by day 3 on antibiotics.
- The swelling is getting bigger instead of smaller.
- You can feel a new soft lump in the scrotum that was not there before. This can be an abscess, which sometimes needs to be drained.
- You develop a rash, hives, swelling of the face or lips, or trouble breathing after starting the antibiotic. This is a possible drug reaction.
- You start vomiting and cannot keep the antibiotic down.
What treatment failure means
Treatment failure is the phrase doctors use when an infection is not responding to the antibiotic chosen. It does not mean nothing will work. It usually means a different antibiotic, longer treatment, IV therapy, an ultrasound to check for an abscess, or in rare cases a procedure to drain an abscess. Catching it early is the point of the 48 to 72 hour rule.
After your symptoms settle
Once the infection is gone, a separate red flag matters: any new firm, painless lump in the testicle that does not go away after 6 weeks. That is a different conversation, about the possibility of a testicular mass, and your doctor will want to examine it and likely order an ultrasound. Most lumps after epididymitis are leftover scar tissue from the infection. The 6-week check sorts out the ones that are not.
Recovery and aftercare
Most patients are back to full activity within 2 to 4 weeks. Mild scrotal aching can last another 4 to 8 weeks while the tissue settles.
Recovery runs in stages. The pain eases over the first 3 days, the swelling settles across the next 2 weeks, and the rest of the time is about making sure the infection does not come back.
What the first 2 weeks look like
By the end of week 1 on the right antibiotic, most patients have less pain, less swelling, and can do their normal day. The scrotum can still feel tender to touch. A small, soft lump behind the testicle is common at this point and usually fades over the following weeks.
By the end of week 2, the antibiotic course is done. Pain should be mild or gone. The scrotum should look much closer to normal. Some lingering tenderness for a few more weeks is normal and is not a sign that the infection is still there.
The 4 to 6 week mark
By 4 to 6 weeks, almost all of the swelling and tenderness should be gone. This is a good time to check yourself for any leftover lump. If anything firm and painless is still there at 6 weeks, your doctor will want to examine it and probably order an ultrasound. This is the testicular-cancer check.
Follow-up testing
If your cause was urinary bacteria, your doctor may repeat a urine test a week or two after the antibiotics are done. This makes sure the urine has cleared. If your cause was an STI, the CDC suggests a repeat test at 3 months. That test catches reinfection from an untreated partner.
Fertility, sex, and partners
For one mild episode on one side, treated quickly, the long-term effect on fertility is usually small. The picture changes with severe infection on both sides. It also changes with repeat episodes or delayed treatment. A semen test is not needed after one episode. If you are trying to conceive and have any concern, ask for a semen test 3 to 6 months out.
For sex, the rule is simple: nothing until you have finished antibiotics and your symptoms are gone. If your cause was an STI, your partners need to be treated before you resume sex with them. The CDC recommends treating all sexual partners from the prior 60 days.
Mild scrotal aching for 4 to 8 weeks after the antibiotics are done is common. It does not mean the infection is still there. It means the tissue is still settling. If your pain is worsening, severe, or new, call your doctor. Steady, fading soreness is part of normal recovery.
When it keeps coming back
About 1 in 5 adult patients have a second episode within a year. Your doctor can usually find the cause. Treating the cause stops the next one.
The usual drivers
Recurrent epididymitis usually traces back to one of these:
- An untreated partner. The most common reason an STI infection comes back. Both you and any sexual partner from the prior 60 days need to be treated, even if the partner has no symptoms.
- The urinary tract is not emptying. An enlarged prostate, a narrowed urethra, or weak bladder emptying can leave bacteria behind. The urologist will check the prostate and measure how much urine is left after you pee, and sometimes they look inside the urethra with a small camera.
- The prostate has become a reservoir. Chronic bacterial prostatitis can keep seeding the rest of the system. This often calls for a longer course of antibiotics that reach into the prostate.
- An underlying condition. Diabetes, drugs that weaken the immune system, HIV, and other immune issues can lead to repeat episodes. Treating the cause is part of stopping the cycle.
- Stopping antibiotics early. The most preventable cause. Finish the full course every time.
What a urological workup looks like
After a second episode, your doctor will likely send you to a urologist. The workup typically includes:
- A repeat urinalysis and urine culture.
- A measurement of post-void residual: how much urine is left in the bladder after you pee. A bladder ultrasound right after voiding does this in a minute or two.
- A look at the urethra with a small camera (cystoscopy) if a stricture is possible.
- An exam of the prostate, and sometimes prostate-specific testing.
- Tests for the main STIs.
The workup looks for the one driver that lets the infection come back. Once your doctor finds it, it can be treated.
Suppressive antibiotics
For a small group of patients with frequent episodes and no fixable driver, a low daily dose of antibiotic for a few months can break the cycle. This is a last-line option. It is a choice to make with a urologist who can weigh the trade-offs of long-term antibiotic use.
Questions to ask your care team
Bring this page to your next visit.
- Based on my story, is this more likely from an STI or from urinary bacteria? What antibiotic does that mean I need?
- What antibiotic am I on, and what class is it in? How many days will I be taking it?
- When should I feel clearly better? At what point should I call back if I am not?
- Do I need an ultrasound? If not, what would change your mind about that?
- If this is an STI, what do my sexual partners need? Where can they get tested and treated quickly?
- Are there warning signs I should watch for that would send me to the ER instead of calling back?
- After the antibiotics are done, do I need a follow-up urine test or STI test?
- If a lump is still there at 6 weeks, what is the next step?
Write down when the pain started, how it built up, and any urinary or sexual history that is relevant. Note any allergies to antibiotics.
Words to know
Plain words for the medical terms you may hear at your visit or read in your discharge papers.
- Abscess
- A pocket of pus inside the body. In the scrotum, an abscess sometimes needs to be drained with a small procedure on top of antibiotics.
- Ceftriaxone
- An antibiotic given as a single injection at the clinic. The standard treatment for gonorrhea.
- Cystoscopy
- A short office procedure where a thin camera looks inside the urethra and bladder. Used when a narrowing of the urethra or another structural issue is possible.
- Doxycycline
- An oral antibiotic taken twice a day. The standard treatment for chlamydia and a partner to ceftriaxone for STI epididymitis.
- Epididymis
- The small coiled tube behind each testicle where sperm finish maturing.
- Epididymitis
- Inflammation of the epididymis. Most adult cases are bacterial.
- Epididymo-orchitis
- Inflammation of both the epididymis and the testicle at the same time. The most common adult pattern.
- Fluoroquinolone
- A class of oral antibiotic that includes levofloxacin and ofloxacin. The standard choice when urinary bacteria are the likely cause.
- NAAT
- Nucleic acid amplification test. A urine test or swab that looks for the genetic material of chlamydia and gonorrhea bacteria.
- Orchitis
- Inflammation of the testicle itself. Can happen alone (often viral) or with the epididymis (usually bacterial).
- Post-void residual
- The amount of urine left in the bladder right after you pee. Measured by a quick bladder ultrasound.
- Scrotal ultrasound
- An ultrasound that looks at the testicle, the epididymis, and the blood flow to both. Used when torsion is possible or symptoms are not improving.
- Testicular torsion
- Twisting of the cord that carries blood to the testicle. A surgical emergency. Sudden severe pain is the hallmark.
- Treatment failure
- When the chosen antibiotic does not bring noticeable improvement within 48 to 72 hours. Calls for a new plan, not just more time.
- Urinalysis
- A simple test on a urine sample. It checks for signs of infection or blood.
Sources and further reading
This guide is built from expert guidelines and research current at the time of review.
- CDC Sexually Transmitted Infections Treatment Guidelines, 2021. Epididymitis. Centers for Disease Control and Prevention. cdc.gov
- EAU Guidelines on Urological Infections 2025. European Association of Urology. Epididymitis and orchitis sections. uroweb.org
- CDC STI Treatment Guidelines, 2021. Mycoplasma genitalium. Centers for Disease Control and Prevention. cdc.gov
- EAU Guidelines on Paediatric Urology 2025. European Association of Urology. Testicular torsion section (used for emergency framing only). uroweb.org
- Acute Scrotum in Adults: Evaluation and Management. Wampler SM, Llanes M. Primary Care: Clinics in Office Practice. 2010;37(3):613-626. pubmed.ncbi.nlm.nih.gov
- Salvage Rates by Time in Testicular Torsion. Mellick LB, Sinex JE, Gibson RW, Mears K. Pediatric Emergency Care 2019 review. pubmed.ncbi.nlm.nih.gov
- Cochrane Review: Antibiotics for epididymitis. Hoosen K, et al. Cochrane Database of Systematic Reviews. cochranelibrary.com
- CDC Mumps Clinical Guidance. Centers for Disease Control and Prevention. Orchitis as complication in post-pubertal men. cdc.gov
- NIDDK. National Institute of Diabetes and Digestive and Kidney Diseases. Plain-language information on urinary and reproductive tract health. niddk.nih.gov
About this guide. Written by the WellPrept Clinical Team. Reviewed by board-certified urologists. Designed to be read alongside your care team's guidance, not as a replacement for it.