What Is the Best Antibiotic to Treat Epididymitis?

There isn’t a single best antibiotic for epididymitis. The right choice depends on the most likely cause, which is largely determined by your age and sexual history. For men under 39, the standard treatment is a one-time injection of ceftriaxone plus 10 days of oral doxycycline, since sexually transmitted bacteria cause roughly half of cases in that age group. For men over 39 or those with recent urinary procedures, a fluoroquinolone like levofloxacin taken daily for 10 days is the go-to, because the infection is more likely caused by gut bacteria like E. coli.

Why the Cause Determines the Antibiotic

Epididymitis is an infection of the coiled tube behind the testicle that stores and carries sperm. It causes scrotal pain, swelling, and sometimes fever. The bacteria responsible fall into two broad camps, and no single antibiotic covers both well.

In younger, sexually active men, chlamydia and gonorrhea are the most common culprits. These bacteria require a specific combination: an injection that targets gonorrhea paired with an oral antibiotic that clears chlamydia. In older men, or in anyone who has recently had a catheter, bladder surgery, or other urinary tract procedure, the infection is more often caused by E. coli or related intestinal bacteria. These organisms respond to a different class of antibiotics entirely.

Your doctor will choose a regimen based on which pathogen is most likely before lab results come back, then adjust if needed once urine tests or swabs confirm the specific bacteria.

STI-Related Epididymitis: The Standard Combination

CDC guidelines recommend two antibiotics used together for sexually transmitted epididymitis:

  • Ceftriaxone: a single injection given in the office, which kills gonorrhea bacteria
  • Doxycycline: a pill taken twice daily for 10 days, which clears chlamydia

Both are needed because chlamydia and gonorrhea frequently co-occur, and each antibiotic targets only one of them effectively. You’ll get the injection during your visit and leave with a prescription for the 10-day oral course. If you’ve been diagnosed with STI-related epididymitis, any recent sexual partners need to be notified so they can be tested and treated too.

When Gut Bacteria Are the Likely Cause

For men whose infection is more likely caused by intestinal bacteria, the recommended antibiotic is levofloxacin, taken once daily by mouth for 10 days. This is a fluoroquinolone, a class of antibiotics that penetrates well into reproductive tissue and is effective against E. coli and similar organisms. Ofloxacin, a related fluoroquinolone taken twice daily, is an alternative.

This regimen is typically chosen for men over 39, men who have recently had urinary tract instrumentation, and men whose urine culture grows intestinal bacteria. No injection is needed in these cases since the oral medication alone covers the likely pathogens.

Coverage for Both STIs and Enteric Bacteria

Some men are at risk for both sexually transmitted and gut-derived infections simultaneously. For these patients, guidelines from both the CDC and the European STI organization IUSTI recommend a broader combination: a single ceftriaxone injection plus 10 to 14 days of levofloxacin. This covers gonorrhea, chlamydia, and intestinal bacteria all at once. Levofloxacin replaces doxycycline in this scenario because it handles a wider range of organisms.

What Recovery Looks Like

Most men start feeling better within two to three days of starting antibiotics, but the full 10-day course (or 14 days in some cases) is essential. Stopping early because symptoms improve is a common mistake that leads to incomplete treatment and potential relapse. Over-the-counter anti-inflammatory pain relievers like ibuprofen help with swelling and discomfort during the first few days. Wearing supportive underwear or using scrotal elevation while resting also reduces pain.

Swelling can linger for several weeks even after the infection clears. That lingering fullness doesn’t necessarily mean the antibiotics failed. However, if pain worsens or you develop a fever during treatment, that warrants a prompt return visit since it could indicate an abscess forming or a need to switch antibiotics.

What Happens if Treatment Is Delayed

Epididymitis generally resolves well with timely antibiotics, but delays increase the risk of complications. An untreated or undertreated infection can progress to an abscess, a walled-off pocket of pus that may require drainage. In rare cases, the blood supply to the testicle is compromised, leading to tissue death and potential surgical removal of the testicle.

Research published in the World Journal of Urology found that men over 35 accounted for 80% of the cases requiring surgical testicle removal related to epididymitis. These men tended to wait longer before seeking treatment and had more underlying risk factors. The same study found that patients who needed antibiotics beyond two weeks were significantly more likely to be readmitted to the hospital or require additional treatment later. The takeaway: early treatment with the right antibiotics leads to far better outcomes than a wait-and-see approach.