Erectile Dysfunction After Hernia Surgery
Learn why it happens, typical recovery times, and UK treatment options with pharmacist-led support.
Takes less than 2 minutes to complete 100% online

Available 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 →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.”
Get Treatment in 3 Steps
Choose your treatment
Select from our recommended UK-licensed medications.
Answer quick questions
Select safe UK treatments. Quick answers.
Get it delivered fast
We will deliver direct to you as quickly as tomorrow.
Erectile Dysfunction After Hernia Surgery: Causes, Recovery & Treatment
Published: 15 October 2026
Erectile dysfunction after hernia surgery is a concern for many men, though it's usually temporary and resolves within weeks to months. While hernia repair—particularly inguinal hernia surgery—is generally safe and effective, some men experience difficulty achieving or maintaining erections during recovery. Understanding why this happens, what to expect during healing, and when treatment may help can provide reassurance and support your recovery.
At a glance
Why Does Erectile Dysfunction After Hernia Surgery Happen?
Hernia surgery, especially inguinal (groin) hernia repair, takes place close to structures involved in erection and sexual function. During the procedure, surgeons work near nerves, blood vessels, and the spermatic cord, all of which can be temporarily affected by surgical trauma, swelling, or inflammation [1].
The most common reasons for erectile difficulties after hernia surgery include temporary nerve irritation or bruising, post-operative swelling and inflammation in the groin area, pain or discomfort that makes sexual activity uncomfortable, and anxiety or psychological stress about the surgery and recovery. In rare cases, direct nerve or vascular injury during surgery may contribute to longer-term problems, though modern surgical techniques have significantly reduced this risk [2].
It's important to note that most cases of erectile dysfunction after hernia surgery are temporary. The body needs time to heal, swelling to subside, and nerves to recover normal function. Many men find that erections gradually improve as they recover from the operation.
How Long Does Erectile Dysfunction Last After Hernia Surgery?
The recovery timeline for erectile function varies from person to person, but most men notice gradual improvement within the first few weeks to three months after surgery. In the immediate post-operative period (first 1-2 weeks), pain, swelling, and surgical restrictions typically mean sexual activity is not advised. During early recovery (2-6 weeks), as swelling reduces and discomfort eases, many men begin to notice some return of normal erectile function [1].
By three to six months post-surgery, the majority of men who experienced temporary erectile difficulties will have returned to their baseline function. If erectile problems persist beyond six months, it's important to discuss this with your GP or surgeon, as further investigation may be needed to rule out other contributing factors such as underlying cardiovascular issues, diabetes, or psychological concerns [2].
Keep in mind that factors such as your age, overall health, the type of hernia repair performed (open versus laparoscopic), and whether you had any complications can all influence your individual recovery timeline. Patience during healing is essential, and open communication with your healthcare team helps ensure any concerns are addressed promptly.
Rehabilitation and Self-Care During Recovery
Supporting your body's natural healing process is the foundation of recovery after hernia surgery. Follow your surgeon's post-operative instructions carefully, including activity restrictions, wound care, and guidance on when to resume physical and sexual activity. Rushing back to strenuous activity—including sex—before you're ready can increase pain, swelling, and the risk of complications.
Gentle physical activity, such as short walks, can improve circulation and support overall recovery without straining the surgical site. Maintaining a healthy lifestyle during recovery is also beneficial: eating a balanced diet, staying hydrated, avoiding smoking, and limiting alcohol all support healing and vascular health, which are important for erectile function [1].
Psychological well-being matters too. Anxiety about surgery, fear of pain during sex, or worry about erectile function can create a cycle that makes erections more difficult. Talking openly with your partner, managing stress through relaxation techniques, and giving yourself time to heal can all help. If anxiety or low mood persist, speaking with your GP or a counsellor may be helpful.
When Can You Resume Sexual Activity?
Most surgeons advise waiting at least two to four weeks after hernia surgery before resuming sexual activity, though this varies depending on the type of repair and your individual recovery. Always follow your surgeon's specific advice. When you do resume, start gently and stop if you experience pain or discomfort. Communication with your partner and taking things slowly can help rebuild confidence and comfort.
| Stage | What to Expect | Options |
|---|---|---|
| First 1-2 weeks | Pain, swelling, surgical restrictions; sexual activity not advised | Rest, follow post-op instructions, gentle walking, wound care |
| 2-6 weeks | Swelling reduces, discomfort eases; gradual return of function | Resume light activity as advised; discuss concerns with GP if needed |
| 3-6 months | Most men return to baseline erectile function | If problems persist, consider GP review and ED treatment options |
| Beyond 6 months | Persistent ED may need investigation | GP assessment, lifestyle changes, oral ED medicines (e.g. sildenafil, tadalafil), specialist referral if needed |
What you need to know
- Erectile dysfunction after hernia surgery is usually temporary, resolving within weeks to months
- Swelling, nerve irritation, pain, and anxiety are common causes during recovery
- Most men can resume sex 2-4 weeks post-surgery, following their surgeon's advice
- Oral ED medicines like sildenafil and tadalafil can help if problems persist
- See your GP if erectile difficulties last beyond six months or worsen
Treatment Options for Erectile Dysfunction After Hernia Surgery
If erectile difficulties persist beyond the early recovery period or are causing significant distress, several treatment options are available. The first step is to speak with your GP, who can assess whether the erectile dysfunction is related to the surgery, an underlying health condition, or a combination of factors. Your doctor may recommend lifestyle changes, address any contributing medical conditions, or refer you to a specialist if needed [2].
For many men, oral PDE5 inhibitor medications can be very effective in restoring erectile function. These medicines—including sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Spedra)—work by increasing blood flow to the penis in response to sexual stimulation [3][4][5][6]. They do not cause automatic erections; sexual arousal is still required.
PDE5 inhibitors are prescription-only medicines in the UK and are only supplied after a clinical assessment by a registered prescriber to ensure they are safe and suitable for you. At Cured Pharmacy, our UK-registered pharmacist-led online consultation allows you to request treatment discreetly and conveniently, with medicines delivered to your door if approved. All current medications, health conditions, and individual circumstances are reviewed during the consultation to ensure safety.
How PDE5 Inhibitors Work
PDE5 inhibitors help relax blood vessels in the penis, allowing increased blood flow during sexual arousal. Sildenafil is typically taken about one hour before sex and lasts around four to six 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 spontaneity. Vardenafil works similarly to sildenafil, while avanafil has a faster onset, often within 15-30 minutes [3][4][5][6]. Your prescriber will help you choose the most suitable option based on your needs and medical history.
Oral ED Medicines Available at Cured Pharmacy
Cured Pharmacy is a GPhC-registered online pharmacy (GPhC 9012511) offering a range of licensed oral treatments for erectile dysfunction. All treatments require an online consultation reviewed by a UK-registered prescriber. If approved, your medicine is dispensed by our pharmacy and delivered discreetly to your home.
We stock both generic and branded options to suit different preferences and budgets. Sildenafil (generic Viagra) is available from £0.45 per tablet (£0.36 with first-order code Ednew), while Tadalafil (generic Cialis) starts at £7.95 (£6.36 with code Ednew). Branded Viagra is priced at £37.95 (£30.36 with code Ednew), and branded Cialis at £12.00 (£9.60 with code Ednew). Other options include Sildenafil 100mg (Teva) at £16.99 (£13.59 with code Ednew), Tadalafil 20mg (Teva) at £9.99 (£7.99 with code Ednew), Avarante (tadalafil) 10mg at £11.49 (£9.19 with code Ednew), Vardenafil (generic Levitra) at £16.95 (£13.56 with code Ednew), and Spedra (avanafil) at £20.95 (£16.76 with code Ednew).
Our pharmacist-led service ensures that every prescription is clinically appropriate and safe for you. During the consultation, you'll be asked about your medical history, current medications, and any health conditions to identify potential interactions or contraindications. This careful assessment is essential for your safety and the effectiveness of treatment.
When to get urgent help
- Erection lasting more than 4 hours (priapism) – call 999 or go to A&E immediately
- Sudden loss of vision or hearing – seek urgent medical attention
- Chest pain during sexual activity – stop immediately and call 999
- Severe or worsening groin pain with fever, redness, or discharge – contact your GP or surgeon urgently
- Persistent numbness or tingling in the groin area not improving – discuss with your surgeon
Call 999 or go to A&E in an emergency, or contact NHS 111 for urgent advice.
When to Seek Medical Help for Erectile Dysfunction After Hernia Surgery
While temporary erectile difficulties are common after hernia surgery, certain situations warrant prompt medical attention. If erectile dysfunction persists beyond six months post-surgery without improvement, speak with your GP or surgeon. This may indicate a need for further investigation or specialist referral [2].
You should also seek medical advice if you develop new symptoms such as severe or worsening groin pain, signs of infection at the surgical site (redness, warmth, discharge, fever), numbness or tingling in the groin or genital area that doesn't improve, or if you experience significant anxiety or depression affecting your quality of life. These symptoms may require assessment to rule out complications or other underlying issues [1].
If you're considering or already using ED medication, contact a healthcare professional urgently if you experience an erection lasting more than four hours (priapism), sudden loss of vision or hearing, or chest pain during sexual activity. These are rare but serious side effects that require immediate medical attention [3][4]. Never take ED medicines if you are using nitrates (such as GTN spray), nicorandil, or recreational drugs known as 'poppers', as the combination can cause a dangerous drop in blood pressure.
The Importance of Seeing Your GP
Erectile dysfunction can sometimes be an early warning sign of underlying health conditions such as cardiovascular disease or diabetes, even when it appears after surgery [2]. A GP consultation allows for a thorough assessment, including blood tests if needed, to identify and manage any contributing factors. Early detection and treatment of these conditions can improve both your erectile function and your overall long-term health.
Give Your Body Time
Patience is key after hernia surgery. Most erectile difficulties improve naturally as swelling subsides and nerves heal. Follow your surgeon's recovery plan, and if problems persist beyond a few months, speak with your GP about treatment options.
Scientific References
- NHS. (n.d.). Erectile dysfunction (impotence). NHS website. https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/ [accessed 15 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 15 October 2026]
- Joint Formulary Committee. (n.d.). Sildenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/sildenafil/ [accessed 15 October 2026]
- Joint Formulary Committee. (n.d.). Tadalafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/tadalafil/ [accessed 15 October 2026]
- Joint Formulary Committee. (n.d.). Vardenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/vardenafil/ [accessed 15 October 2026]
- Joint Formulary Committee. (n.d.). Avanafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/avanafil/ [accessed 15 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.
Common Questions
Is erectile dysfunction common after hernia surgery?
Temporary erectile difficulties can occur after hernia surgery, particularly inguinal hernia repair, due to swelling, nerve irritation, pain, or anxiety. Most cases resolve within weeks to months as the body heals.
How long should I wait before resuming sex after hernia surgery?
Most surgeons recommend waiting at least two to four weeks, though this varies depending on your type of surgery and recovery. Always follow your surgeon's specific advice and resume gently, stopping if you experience pain.
Can hernia surgery cause permanent erectile dysfunction?
Permanent erectile dysfunction after hernia surgery is rare. Modern surgical techniques minimise the risk of nerve or vascular injury, and most men recover normal function within a few months.
Will ED medication work if my erectile problems are due to hernia surgery?
Yes, oral PDE5 inhibitors such as sildenafil or tadalafil can be effective for erectile dysfunction after hernia surgery, especially if the issue is related to blood flow or temporary nerve changes. A prescriber will assess suitability during consultation.
When should I see a doctor about erectile dysfunction after hernia surgery?
If erectile difficulties persist beyond six months, worsen, or are accompanied by severe pain, numbness, or signs of infection, consult your GP or surgeon for further assessment.
Can I use Viagra or Cialis while recovering from hernia surgery?
ED medicines can be considered once you're past the early recovery phase and cleared to resume sexual activity, but they require a prescription and clinical assessment. Discuss timing and suitability with your GP or prescriber.
Does the type of hernia surgery affect erectile function recovery?
Laparoscopic (keyhole) hernia repair may involve less tissue trauma and quicker recovery compared to open surgery, but both approaches can temporarily affect erectile function. Your individual recovery depends on many factors including surgical technique and overall health.
What lifestyle changes can help erectile function after hernia surgery?
Eating a balanced diet, staying active within your surgeon's guidelines, avoiding smoking, limiting alcohol, managing stress, and getting adequate sleep all support healing and vascular health, which are important for erectile function.
Take the First Step Today
- Reviewed by UK-based prescribers
- Takes under 3 minutes
- Discreet Packaging
Medically reviewed by
Tarun Kumar, Superintendent Pharmacist (GPhC 2233073)
Last updated on 15 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 15 October 2026
Content checked and updated as part of our periodic review, to ensure accuracy and currentness.
Current version (15 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.








