Migraine and Erectile Dysfunction: The Link Explained
Learn how migraine and its treatments may affect erections, and explore safe, effective options through a UK pharmacist-led consultation.
Takes less than 2 minutes to complete 100% online

Migraine and Erectile Dysfunction: Understanding the Connection
Published: 14 October 2026
The relationship between migraine and erectile dysfunction is more common than many men realise, with both conditions sharing underlying vascular and neurological pathways that can affect sexual function. Men who experience regular migraines may find that the condition itself, the medications used to treat it, or the psychological burden of chronic pain all contribute to difficulties achieving or maintaining an erection. Understanding this connection is the first step toward finding effective, safe treatment that addresses both your migraine management and your sexual health.
At a glance
How migraine and erectile dysfunction are linked
Migraine is a neurological condition characterised by severe, throbbing headaches often accompanied by nausea, sensitivity to light, and visual disturbances. Research suggests that men with migraine may experience erectile dysfunction at higher rates than the general population, though the exact mechanisms are still being studied [10]. Both conditions involve changes in blood vessel function—migraine affects blood flow in the brain, while ED involves reduced blood flow to the penis.
The vascular connection is significant because healthy erections depend on the smooth dilation of blood vessels. During a migraine attack, blood vessels constrict and then dilate abnormally, and some researchers believe this vascular dysfunction may extend to other parts of the body, including the genital area. Additionally, chronic migraine can lead to anxiety, depression, and sleep disturbance, all of which are recognised psychological contributors to erectile dysfunction [1].
It's also worth noting that the stress and anticipation of migraine attacks can create a cycle of worry that interferes with sexual confidence and performance. If you experience both migraine and erectile dysfunction, it's important to discuss both conditions with your GP, as effective management of one may positively influence the other.
Migraine medications and their effect on erectile function
Certain medications used to prevent or treat migraine can contribute to erectile difficulties, though not all migraine treatments carry the same risk. Beta-blockers such as propranolol and metoprolol are commonly prescribed for migraine prevention, but they can reduce blood pressure and interfere with the nerve signals needed for an erection. If you're taking a beta-blocker and notice changes in sexual function, speak to your GP—there may be alternative migraine preventatives that have less impact on erections.
Triptans, such as sumatriptan and rizatriptan, are acute migraine treatments that work by narrowing blood vessels in the brain. While they are generally not associated with long-term erectile dysfunction, some men report temporary difficulty with erections if they take a triptan close to the time they wish to be sexually active. This is thought to be due to the drug's vasoconstrictive effects, which may temporarily reduce blood flow elsewhere in the body.
Antidepressants, particularly selective serotonin reuptake inhibitors (SSRIs) and tricyclic antidepressants, are sometimes prescribed for migraine prevention and are well known to cause sexual side effects, including reduced libido and difficulty achieving erections. If you are on any of these medications and experiencing ED, do not stop them without medical advice—your prescriber can review your treatment plan and may adjust your dose or suggest an alternative.
Other migraine treatments and ED
Newer migraine treatments, such as CGRP inhibitors (e.g., erenumab, fremanezumab), are not commonly reported to cause erectile dysfunction, though individual responses vary. Botulinum toxin (Botox) injections for chronic migraine also do not typically affect sexual function. Always inform your prescriber about all medications you are taking, including those for migraine, when seeking treatment for ED, as this allows for a comprehensive safety check.
How migraine and erectile dysfunction are assessed
If you are experiencing both migraine and erectile dysfunction, your GP or healthcare provider will take a detailed medical history covering the frequency and severity of your migraines, the medications you use, and the nature of your erection difficulties. This helps identify whether your ED is related to your migraine condition, your migraine treatment, or other factors such as diabetes, high blood pressure, or stress [2].
Your doctor may ask about the timing of your erectile difficulties—for example, whether they occur during or after a migraine attack, or whether they are present all the time. They may also review your cardiovascular health, as both migraine with aura and ED can be markers of underlying vascular disease. Blood tests to check cholesterol, blood sugar, and hormone levels (including testosterone) are often part of the assessment.
At Cured Pharmacy, our online consultation asks about your current medications, including those for migraine, and any other health conditions. A UK-registered prescriber reviews your answers to ensure that any ED treatment prescribed is safe and appropriate for you. If your migraine medication is contributing to your erectile difficulties, the prescriber may recommend discussing alternatives with your GP alongside starting ED treatment.
| Option | How it helps | Points to consider |
|---|---|---|
| Sildenafil (generic Viagra) – £0.45 per tablet (first order £0.36 with code Ednew) | Increases blood flow to the penis; taken about 1 hour before sex, lasts around 4 hours | Generally safe with migraine medications; avoid if taking nitrates or nicorandil; declare all medicines during consultation |
| Tadalafil (generic Cialis) – £7.95 per tablet (first order £6.36 with code Ednew) | On-demand or daily dosing; effects can last up to 36 hours, allowing more spontaneity | Good option if you prefer flexibility; same safety checks apply; can be taken daily at lower dose |
| Vardenafil (generic Levitra) – £16.95 per tablet (first order £13.56 with code Ednew) | Works within 25–60 minutes; similar effectiveness to sildenafil | May be preferred if sildenafil is less effective; avoid with potent CYP3A4 inhibitors; prescriber will check interactions |
| Spedra (avanafil) – £20.95 per tablet (first order £16.76 with code Ednew) | Fastest-acting PDE5 inhibitor, often effective within 15–30 minutes | Useful if you want a quick-acting option; same contraindications as other PDE5 inhibitors; consultation required |
What you need to know
- Migraine and erectile dysfunction share vascular and neurological pathways that can affect sexual function.
- Some migraine medications, especially beta-blockers and antidepressants, may contribute to ED.
- PDE5 inhibitors like sildenafil and tadalafil are generally safe for men with migraine after a prescriber review.
- Lifestyle changes such as exercise, stress management, and stopping smoking can improve both conditions.
- Always declare all migraine medications during your ED consultation to ensure safe, personalised treatment.
Lifestyle measures to support both migraine and erectile dysfunction
Lifestyle changes can have a positive impact on both migraine frequency and erectile function. Regular physical activity improves cardiovascular health, which is essential for healthy erections, and has been shown to reduce the frequency and severity of migraine attacks in some people. Aim for at least 150 minutes of moderate exercise per week, such as brisk walking, cycling, or swimming.
Managing stress is equally important. Chronic stress is a common trigger for migraine and a significant contributor to erectile dysfunction. Techniques such as mindfulness, cognitive behavioural therapy (CBT), and relaxation exercises can help break the cycle of stress and improve both conditions. Ensuring you get enough good-quality sleep is also vital, as poor sleep can worsen migraine and reduce sexual desire and performance.
Diet and hydration play a role too. Staying well hydrated and avoiding known migraine triggers—such as caffeine, alcohol, aged cheeses, and processed meats—may reduce migraine frequency. Limiting alcohol is particularly important for erectile function, as heavy drinking can make ED worse and interacts with some ED medications. Stopping smoking is one of the most effective steps you can take to improve blood flow and reduce both migraine and ED risk.
Weight and cardiovascular health
Maintaining a healthy weight reduces the risk of conditions such as high blood pressure and diabetes, both of which are linked to migraine and erectile dysfunction. Even modest weight loss can improve vascular health and may reduce the need for some migraine preventative medications that contribute to ED. Speak to your GP or a dietitian for personalised advice on weight management.
Treatment options for erectile dysfunction in men with migraine
Oral PDE5 inhibitors—sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Spedra)—are the first-line treatment for erectile dysfunction and are generally safe for men with migraine [1][2]. These medications work by increasing blood flow to the penis in response to sexual stimulation, and they do not typically interact with most migraine treatments. However, it is essential that your prescriber reviews all your current medications to ensure there are no contraindications.
Sildenafil is taken about one hour before sexual activity and is effective 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 lower daily dose for spontaneous activity. Vardenafil works within 25–60 minutes, and avanafil is the fastest-acting option, often effective within 15–30 minutes [3][4][5][6]. All require sexual stimulation to work and should be taken no more than once a day.
If you are taking nitrates for chest pain, nicorandil, riociguat, or recreational drugs known as 'poppers', you must not use PDE5 inhibitors, as the combination can cause a dangerous drop in blood pressure. If you are on an alpha-blocker for prostate symptoms, you should be stable on that medication and start on the lowest dose of a PDE5 inhibitor. Your prescriber will check for these and other interactions during your consultation.
Other ED treatments
If oral tablets are not suitable or effective, other options include Vitaros (alprostadil cream applied to the tip of the penis) and Caverject (alprostadil injection), both of which are prescription-only [7]. Vacuum erection devices and penile implants are also available for men who do not respond to medication. Your GP or a specialist can discuss these alternatives if needed.
When to get urgent help
- Erection lasting more than 4 hours (priapism) – go to A&E immediately
- Sudden loss of vision or hearing after taking ED medication – seek urgent medical help
- Chest pain during or after sexual activity – call 999 and do not take further ED medication
- Severe headache, confusion, or visual disturbance after taking ED treatment – seek same-day medical advice
- Dizziness, fainting, or very low blood pressure after combining ED medication with other medicines – contact your GP or call 111
Call 999 or go to A&E in an emergency, or contact NHS 111 for urgent advice.
Treatment cautions specific to migraine and erectile dysfunction
Men with migraine who are considering ED treatment should be aware of a few specific cautions. If you take triptans for acute migraine attacks, there is no major contraindication to using PDE5 inhibitors, but both drug classes can affect blood pressure and blood vessel tone. It is generally advisable to avoid taking a triptan and a PDE5 inhibitor at the same time, though no serious interaction is commonly reported. Your prescriber can advise on timing if you use both.
If you are on a beta-blocker or other blood-pressure-lowering medication for migraine prevention, PDE5 inhibitors can add to the blood-pressure-lowering effect, potentially causing dizziness or light-headedness. This is usually manageable by starting on a lower dose and avoiding alcohol, but you must declare all your medications during the consultation so your prescriber can assess the risk.
Some migraine preventatives, such as certain antidepressants or anticonvulsants, do not have direct interactions with PDE5 inhibitors, but the prescriber will still review your full medication list. If you are taking a potent CYP3A4 inhibitor (such as ketoconazole or ritonavir), your PDE5 inhibitor dose may need to be adjusted, or certain options may not be suitable. Never take more than one PDE5 inhibitor at a time, and do not combine them with other ED treatments without medical advice.
Declare all your medications
Always tell your prescriber about every medicine you take for migraine, including preventatives and acute treatments. This ensures your ED treatment is safe and tailored to your needs, with no harmful interactions.
Scientific References
- NHS. (n.d.). Erectile dysfunction (impotence). NHS website. https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/ [accessed 14 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 14 October 2026]
- Joint Formulary Committee. (n.d.). Sildenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/sildenafil/ [accessed 14 October 2026]
- Joint Formulary Committee. (n.d.). Tadalafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/tadalafil/ [accessed 14 October 2026]
- Joint Formulary Committee. (n.d.). Vardenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/vardenafil/ [accessed 14 October 2026]
- Joint Formulary Committee. (n.d.). Avanafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/avanafil/ [accessed 14 October 2026]
- Joint Formulary Committee. (n.d.). Alprostadil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/alprostadil/ [accessed 14 October 2026]
- Feldman, H. A., Goldstein, I., Hatzichristou, D. G., Krane, R. J., & McKinlay, J. B. (1994). Impotence and its medical and psychosocial correlates: Results of the Massachusetts Male Aging Study. Journal of Urology, 151(1), 54–61. https://pubmed.ncbi.nlm.nih.gov/8254833/ [accessed 14 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.
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.

Common Questions
Can migraine cause erectile dysfunction?
Migraine itself does not directly cause ED, but the two conditions share vascular and neurological pathways, and chronic migraine can contribute to stress, anxiety, and sleep problems that affect sexual function.
Do migraine medications cause erectile dysfunction?
Some migraine preventatives, particularly beta-blockers and certain antidepressants, can contribute to erectile difficulties. Triptans are not commonly associated with long-term ED, though some men notice temporary effects.
Is it safe to take Viagra or Cialis if I have migraine?
Yes, PDE5 inhibitors such as sildenafil (Viagra) and tadalafil (Cialis) are generally safe for men with migraine, provided you are not taking nitrates, nicorandil, or certain other medications. Your prescriber will review your full medication list during the consultation.
Can I take a triptan and Viagra at the same time?
There is no major contraindication, but both can affect blood pressure and blood vessel tone. It is generally advisable to avoid taking them at the same time; your prescriber can advise on timing if you use both.
Will treating my migraine improve my erectile dysfunction?
Effective migraine management may reduce stress and improve sleep, which can positively affect erectile function. If your ED is related to a migraine medication, switching to an alternative (with your GP's guidance) may help.
What if my beta-blocker is causing erectile dysfunction?
Do not stop your beta-blocker without medical advice, as it is treating an important condition. Speak to your GP about alternative migraine preventatives, and consider ED treatment such as a PDE5 inhibitor, which can often be used safely alongside beta-blockers at an appropriate dose.
How do I know if my ED is caused by migraine or something else?
A full medical assessment by your GP or prescriber will help identify the cause. They will review your migraine history, medications, cardiovascular health, and other factors to determine the most likely contributors to your ED.
Can lifestyle changes help both migraine and erectile dysfunction?
Yes, regular exercise, stress management, good sleep, a healthy diet, limiting alcohol, and stopping smoking can all reduce migraine frequency and improve erectile function.
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.









Take the First Step Today
Start your journey to better health today.
- Reviewed by UK-based prescribers
- Takes under 3 minutes
- Discreet Packaging
Start Your Journey To Better Health Today
Once you complete a short online assessment you will be able to choose your preferred treatment from safe medically approved options tailored to you.
Start My Assessment Log in to Your Account
Medically reviewed by
Tarun Kumar, Superintendent Pharmacist (GPhC 2233073)
Last updated on 14 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 14 October 2026
Content checked and updated as part of our periodic review, to ensure accuracy and currentness.
Current version (14 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.