Epididymitis and Erectile Dysfunction Explained
Understand the link between testicular inflammation and ED, and explore safe, pharmacist-led treatment options.
Takes less than 2 minutes to complete 100% online

Trusted by thousands
Real people, real results
“Fabulous service and quick delivery”
“Felt the effects of these after about 5 days. Erections are better and can get aroused and ready easier”
“Excellent value and brilliant customer service”
“I received excellent service and everything went well. The order arrived quickly and in perfect condition. It's working very well! Thank you to the whole team for the great work!”
“Delivery was good, the product lived up to expectations.”
How it Works?
Select from our recommended UK-licensed medications.
1Choose your treatment

Select safe UK treatments. Quick answers.
2Answer quick questions

We will deliver direct to you as quickly as tomorrow.
3Get it delivered fast

Epididymitis and Erectile Dysfunction: Understanding the Connection
Published: 13 October 2026
Epididymitis and erectile dysfunction may be linked when inflammation, pain or anxiety from testicular infection affects sexual function. Epididymitis is inflammation of the epididymis—the coiled tube at the back of the testicle that stores and carries sperm—and can cause scrotal pain, swelling and discomfort that interferes with erections. While epididymitis itself does not directly damage the erectile mechanism, the pain, psychological stress and sometimes the underlying infection can contribute to temporary erectile difficulties.
Key takeaways
- Epididymitis can cause temporary erectile difficulties through pain, inflammation and anxiety.
- Prompt antibiotic treatment usually restores normal sexual function within a few weeks.
- PDE5 inhibitors such as sildenafil and tadalafil can help if ED persists after infection clears.
- Declare all current medicines during consultation to check for antibiotic interactions.
- See your GP if erectile dysfunction continues after recovery or if you have new symptoms.
What is epididymitis and how does it relate to erectile dysfunction?
Epididymitis is inflammation of the epididymis, usually caused by bacterial infection (often sexually transmitted infections such as chlamydia or gonorrhoea in younger men, or urinary bacteria in older men). Symptoms include scrotal pain, swelling, tenderness, and sometimes fever or discharge. The condition is typically treated with antibiotics and pain relief, and most men recover fully within a few weeks.
The link between epididymitis and erectile dysfunction is usually indirect. Acute pain and swelling in the scrotum can make sexual activity uncomfortable or impossible, leading to temporary avoidance of intimacy. Anxiety about the infection, fear of pain during erection or ejaculation, and worry about fertility or sexually transmitted infections can all contribute to psychological erectile dysfunction [1]. In some cases, systemic inflammation or fever may temporarily reduce libido and erectile function.
Chronic or recurrent epididymitis, though less common, can lead to ongoing discomfort and persistent anxiety, which may sustain erectile difficulties even after the infection has cleared. It is important to treat the underlying infection promptly and address any psychological impact to restore normal sexual function [2].
How are epididymitis and erectile dysfunction assessed?
If you develop scrotal pain, swelling or discharge, you should see a GP or sexual health clinic urgently. Epididymitis is diagnosed through a physical examination, urine tests, and sometimes swabs to identify the causative bacteria. Ultrasound imaging may be used to rule out other conditions such as testicular torsion (a surgical emergency) or tumours.
Erectile dysfunction in the context of epididymitis is usually assessed once the acute infection is being treated. Your GP or pharmacist will ask about the onset of erectile difficulties, whether they coincide with the infection, and any psychological factors such as anxiety or relationship stress. Because ED can be an early sign of cardiovascular disease or diabetes, a broader health assessment—including blood pressure, blood sugar and cholesterol—is often recommended, especially if erectile problems persist after the infection resolves [1][2].
If you are considering treatment for erectile dysfunction while recovering from epididymitis, an online consultation with a UK-registered prescriber (such as through Cured Pharmacy) will review your symptoms, current medications (including antibiotics), and overall health to ensure any ED treatment is safe and appropriate.
When to seek urgent medical help
Sudden, severe testicular pain requires immediate medical attention to rule out testicular torsion, which can cause permanent damage if not treated within hours. If you experience high fever, inability to pass urine, or spreading redness and swelling, contact your GP the same day or attend A&E. These may indicate a more serious infection or abscess requiring urgent treatment.
At a glance
Lifestyle measures to support recovery and sexual health
While antibiotics treat the infection, several lifestyle measures can support recovery from epididymitis and help restore erectile function. Rest and scrotal support (wearing supportive underwear or an athletic support) can reduce pain and swelling. Applying ice packs (wrapped in a towel) for 15–20 minutes at a time may ease discomfort in the first few days.
Avoid sexual activity and heavy lifting until the pain and swelling have resolved and your doctor confirms the infection has cleared. Returning to sex too soon can worsen symptoms and may risk transmitting infection to a partner if the cause was sexually transmitted. If an STI was diagnosed, your partner(s) should also be tested and treated to prevent reinfection.
Once recovered, general lifestyle measures that support erectile function include regular physical activity, maintaining a healthy weight, limiting alcohol, stopping smoking, and managing stress [1]. Chronic stress and anxiety—common after a painful or worrying health episode—can perpetuate erectile difficulties, so consider speaking to your GP about psychological support or counselling if anxiety persists.
A balanced diet rich in fruit, vegetables, whole grains and healthy fats supports cardiovascular health, which is essential for strong erections. Staying hydrated and avoiding excessive caffeine or alcohol can also help, as heavy drinking can worsen erectile dysfunction and interfere with recovery.
| Option | Normal price | First order (code Ednew) | How it helps | Points to consider |
|---|---|---|---|
| Sildenafil (generic Viagra) | £0.45 | £0.36 | Taken about 1 hour before sex; works for around 4 hours | Most studied ED treatment; requires sexual stimulation; max once daily [3] |
| Tadalafil (generic Cialis) | £7.95 | £6.36 | On-demand or daily dosing; effects last up to 36 hours | Longer window for spontaneity; can be taken with or without food [4] |
| Vardenafil (generic Levitra) | £16.95 | £13.56 | Taken 25–60 minutes before sex; similar to sildenafil | May work slightly faster in some men; avoid with potent CYP3A4 inhibitors [5] |
| Spedra (avanafil) | £20.95 | £16.76 | Taken 15–30 minutes before sex; fast-acting | Quickest onset; useful if spontaneity is important [6] |
| Viagra (branded) | £37.95 | £30.36 | Original sildenafil brand; same active ingredient as generic | More expensive than generic but some prefer the branded version |
| Cialis (branded) | £12.00 | £9.60 | Original tadalafil brand; same active ingredient as generic | Trusted brand name; clinically identical to generic tadalafil |
Treatment options for epididymitis and erectile dysfunction
Treatment for epididymitis focuses on clearing the infection with antibiotics (the choice depends on the likely cause and test results) and managing pain with paracetamol or ibuprofen. Most men recover fully within two to four weeks, and erectile function typically returns once pain and anxiety subside.
If erectile dysfunction persists after the infection has been treated, or if you wish to resume sexual activity during recovery (once your doctor confirms it is safe), oral ED treatments may be considered. The most commonly used medicines in the UK are PDE5 inhibitors, which increase blood flow to the penis in response to sexual stimulation [1][2]. These include sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra) and avanafil (Spedra).
Sildenafil is taken about one hour before sex and works for around four hours. Tadalafil can be taken on-demand (at least 30 minutes before sex, with effects lasting up to 36 hours) or as a low daily dose for spontaneous activity. Vardenafil and avanafil work similarly to sildenafil but may act slightly faster [3][4][5][6]. All require sexual stimulation to work and are available on prescription after a clinical assessment.
If you are taking antibiotics for epididymitis, it is important to declare this during your ED consultation. Some antibiotics (such as clarithromycin) can interact with PDE5 inhibitors, and your prescriber will check for any contraindications or dose adjustments needed [12]. Pain relief medicines such as paracetamol or ibuprofen do not interact with ED treatments.
Non-oral treatment options
If oral tablets are not suitable or effective, other options include Eroxon, a topical gel that works locally and does not require a prescription, or prescription treatments such as Vitaros (alprostadil cream) and Caverject (alprostadil injection) [7]. These are usually considered after oral treatments have been tried. Your GP or a specialist can discuss these if needed.
Wait until pain resolves
Do not resume sexual activity until scrotal pain and swelling have cleared and your doctor confirms the infection is treated. Returning too soon can worsen symptoms and delay recovery.
Treatment cautions specific to epididymitis and erectile dysfunction
PDE5 inhibitors are generally safe for most men, but certain precautions apply when recovering from epididymitis. If you are taking antibiotics, particularly potent CYP3A4 inhibitors such as clarithromycin, your prescriber may need to adjust the dose of your ED treatment or choose a different option, as these antibiotics can raise PDE5 inhibitor levels in the blood [3][4][5][6][12].
You must never take PDE5 inhibitors if you are using nitrates (GTN spray, isosorbide mononitrate or dinitrate), nicorandil, riociguat, or recreational drugs known as 'poppers' (amyl or alkyl nitrites), as the combination can cause a dangerous drop in blood pressure [3][4][5][6]. If you take alpha-blockers for prostate symptoms (such as tamsulosin or doxazosin), you should be stable on that treatment and start ED medication at the lowest dose, as there is a risk of dizziness or low blood pressure.
If you have ongoing scrotal pain or discomfort, it is important to wait until symptoms have improved before resuming sexual activity, as the physical exertion and pressure during sex can aggravate inflammation. Your GP or sexual health clinic will advise when it is safe to return to normal activity. If erectile dysfunction continues after full recovery from epididymitis, further investigation may be needed to rule out other causes such as diabetes, high blood pressure or low testosterone [1][2].
How Cured Pharmacy can help with epididymitis and erectile dysfunction
Cured Pharmacy is a GPhC-registered online pharmacy (GPhC 9012511) offering discreet, pharmacist-led consultations for erectile dysfunction. If you are recovering from epididymitis and experiencing erectile difficulties, our UK-registered prescribers can assess your suitability for treatment, taking into account your current antibiotics, overall health and any other medications.
We offer a range of licensed ED treatments at transparent prices, including generic and branded options. For example, sildenafil (generic Viagra) is available from £0.45 per tablet (£0.36 with first-order code Ednew), and tadalafil (generic Cialis) from £7.95 (£6.36 with code Ednew). All prescriptions are reviewed individually, and our pharmacists are available to answer questions about interactions, side effects or how to use your treatment safely.
The online consultation is straightforward and confidential. You complete a health questionnaire, a UK prescriber reviews your answers, and if appropriate, your treatment is dispensed and posted in discreet packaging. If ED treatment is not suitable, we will explain why and suggest you see your GP for further assessment. We encourage anyone with new or persistent erectile dysfunction to consult their GP, as it can be an early warning sign of cardiovascular disease or diabetes [1][2].
Ongoing support and advice
Our pharmacy team is here to support you throughout your treatment. If you have questions about timing, side effects, or whether your ED treatment is working as expected, you can contact us for advice. We also provide guidance on lifestyle measures and when to seek further medical help if symptoms do not improve.
When to get urgent help
- Sudden, severe testicular pain (possible torsion – go to A&E immediately)
- Erection lasting more than 4 hours (priapism – call 999 or go to A&E)
- Sudden loss of vision or hearing after taking ED medication (stop and seek urgent medical help)
- Chest pain during sexual activity (stop, rest, and call 999 if it does not resolve quickly)
- High fever, inability to pass urine, or spreading redness (contact GP same day or attend A&E)
Call 999 or go to A&E in an emergency, or contact NHS 111 for urgent advice.
Scientific References
- NHS. (n.d.). Erectile dysfunction (impotence). NHS website. https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/ [accessed 13 October 2026]
- National Institute for Health and Care Excellence. (n.d.). Erectile dysfunction. Clinical Knowledge Summaries. https://cks.nice.org.uk/topics/erectile-dysfunction/ [accessed 13 October 2026]
- Joint Formulary Committee. (n.d.). Sildenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/sildenafil/ [accessed 13 October 2026]
- Joint Formulary Committee. (n.d.). Tadalafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/tadalafil/ [accessed 13 October 2026]
- Joint Formulary Committee. (n.d.). Vardenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/vardenafil/ [accessed 13 October 2026]
- Joint Formulary Committee. (n.d.). Avanafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/avanafil/ [accessed 13 October 2026]
- Joint Formulary Committee. (n.d.). Alprostadil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/alprostadil/ [accessed 13 October 2026]
- Electronic Medicines Compendium. (n.d.). Summaries of Product Characteristics and Patient Information Leaflets. https://www.medicines.org.uk/emc/ [accessed 13 October 2026]
Information on this page is for educational purposes only and is not medical advice. Prescription treatments require clinical assessment by a UK-registered prescriber. Always consult a qualified healthcare professional before starting or changing any medication.
Our ED Treatments
Pricing Disclaimer: Prices on some pages may not be up to date — the live pricing table below and pricing shown during consultation are official current prices and take precedence over any other figures on the site.
Not sure which one? Start a free consultation →Start Your Assessment For Erectile Dysfunction
- Reviewed by UK-based prescribers
- Takes under 3 minutes
- Discreet Packaging
Faq
Can't find your answer? Our UK pharmacists review every consultation and can help.
Can epididymitis cause permanent erectile dysfunction?
Epididymitis itself does not usually cause permanent erectile dysfunction. Most men recover fully once the infection is treated, and erectile function returns as pain and anxiety resolve.
How long after epididymitis can I resume sexual activity?
Wait until pain and swelling have resolved and your doctor confirms the infection has cleared, usually two to four weeks. Returning too soon can worsen symptoms or risk transmitting infection.
Can I take ED medication while on antibiotics for epididymitis?
It depends on the antibiotic. Some, such as clarithromycin, can interact with PDE5 inhibitors. Declare all current medicines during your consultation so the prescriber can check for interactions.
Will epididymitis affect my fertility or testosterone levels?
Acute epididymitis rarely affects fertility if treated promptly. Chronic or recurrent cases may occasionally impact sperm quality. If you have concerns, discuss them with your GP or a fertility specialist.
Is erectile dysfunction after epididymitis psychological or physical?
It is often a mix of both. Pain and inflammation can make erections uncomfortable, while anxiety about the infection or pain can contribute to psychological ED.
What if my erectile dysfunction continues after the infection clears?
See your GP for a broader health assessment, as persistent ED can indicate cardiovascular disease, diabetes or low testosterone. Treatment options such as PDE5 inhibitors can help while underlying causes are addressed.
Are there any side effects of ED treatment I should watch for?
Common side effects include headache, flushing, indigestion and nasal congestion. Seek urgent help if you have an erection lasting more than 4 hours, sudden vision or hearing loss, or chest pain during sex.
Can lifestyle changes alone improve erectile dysfunction after epididymitis?
Lifestyle measures such as exercise, healthy diet, reducing alcohol and managing stress can support recovery and improve erectile function, but many men benefit from ED medication as well.
Medically reviewed by
Tarun Kumar, Superintendent Pharmacist (GPhC 2233073)
Last updated on 13 October 2026.
Review History
Our experts continually monitor new findings in health and medicine, and we update our articles when new information becomes available.
Why this page was updated on 13 October 2026
Content checked and updated as part of our periodic review, to ensure accuracy and currentness.
Current version (13 October 2026)
Edited by: The Editorial Team
Medically reviewed by:
Tarun Kumar, GPhC No. 2233073, Superintendent Pharmacist
How we source info.
When we present you with stats, data, opinion or a consensus, we'll tell you where this came from.








