Does Magnesium Help Erectile Dysfunction?
An honest UK pharmacist review of the evidence, safety, and how it compares with licensed treatments.
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 Our Online Service 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

Does Magnesium Help Erectile Dysfunction? What the Evidence Shows
Published: 18 November 2026
Does magnesium help erectile dysfunction? The short answer is that some small studies suggest a possible benefit, particularly in men with low magnesium levels or diabetes, but the evidence is limited and inconsistent. Magnesium is an essential mineral involved in hundreds of bodily processes, including blood vessel function and testosterone production, which are both relevant to erectile function. However, it is not a licensed treatment for ED in the UK, and the research does not yet support it as a reliable alternative to proven prescription medicines.
Key takeaways
- Evidence for magnesium in ED is limited; small studies suggest possible benefit only in men with low magnesium or diabetes
- Licensed ED medicines such as sildenafil and tadalafil are far more effective and reliable, with proven success rates of 60–80%
- Magnesium supplements are generally safe but can cause diarrhoea and may interact with some medicines
- Lifestyle changes (exercise, healthy diet, weight loss) have strong evidence for improving erectile function
- Always declare supplements during your ED consultation so the prescriber can check for interactions
What is magnesium and why might it affect erectile function?
Magnesium is a mineral found in foods such as green leafy vegetables, nuts, seeds, whole grains, and legumes. It plays a role in muscle and nerve function, blood sugar control, and blood pressure regulation. In the context of erectile dysfunction, magnesium is thought to support the health of blood vessels by helping them relax and widen, which is essential for achieving and maintaining an erection.
Low magnesium levels have been linked to conditions that increase ED risk, including type 2 diabetes, high blood pressure, and cardiovascular disease [1]. Some researchers have proposed that correcting a magnesium deficiency might improve erectile function, particularly in men whose ED is related to poor blood vessel health or metabolic problems. However, most people in the UK get enough magnesium from their diet, and true deficiency is relatively uncommon unless there is an underlying health condition or malabsorption issue.
Does magnesium help erectile dysfunction? Reviewing the clinical evidence
The evidence for magnesium as a treatment for erectile dysfunction is limited and comes mainly from small observational studies and a handful of trials. One study in men with type 2 diabetes found that magnesium supplementation was associated with modest improvements in erectile function scores, possibly by improving blood sugar control and reducing inflammation. Another small trial suggested that magnesium might enhance the effect of exercise on testosterone levels, which could indirectly support sexual function.
However, these studies are not large or robust enough to draw firm conclusions. There have been no high-quality randomised controlled trials comparing magnesium directly with placebo or with licensed ED medicines such as sildenafil or tadalafil. The improvements seen in some studies were modest, and it is unclear whether they would be clinically meaningful for most men with ED. In contrast, PDE5 inhibitors such as sildenafil have been tested in thousands of men and have a well-established success rate of around 60–80% in clinical trials [9].
If you have low magnesium levels confirmed by a blood test, correcting the deficiency may support overall health and potentially improve erectile function as part of a broader approach. However, taking magnesium supplements when your levels are already normal is unlikely to make a significant difference to ED.
What about magnesium and testosterone?
Some studies have suggested that magnesium supplementation can increase free testosterone levels, particularly in men who exercise regularly or have low baseline magnesium. Testosterone plays a role in libido and sexual function, so this has led to interest in magnesium as a potential aid for ED. However, the link between magnesium, testosterone, and erectile function is indirect and not well established. Low testosterone is only one of many possible causes of ED, and most cases are related to blood vessel health rather than hormone levels [1]. If low testosterone is suspected, a blood test and specialist advice are needed, rather than self-treating with supplements.
At a glance
Safety, side effects, and interactions with magnesium supplements
Magnesium supplements are generally considered safe for most people when taken at recommended doses (typically 200–400 mg per day for adults). The most common side effect is diarrhoea, especially with high doses or certain forms such as magnesium oxide. Other possible side effects include nausea, stomach cramps, and, very rarely, irregular heartbeat if taken in excessive amounts.
Magnesium can interact with some medicines. It may reduce the absorption of certain antibiotics (such as tetracyclines and quinolones) and bisphosphonates (used for osteoporosis), so these should be taken at least two hours apart. Magnesium can also add to the blood-pressure-lowering effect of some medicines, including calcium channel blockers and diuretics. If you take any prescribed medicines, it is important to check with a pharmacist or GP before starting magnesium supplements.
People with kidney disease should be particularly cautious, as the kidneys regulate magnesium levels and impaired kidney function can lead to a dangerous build-up of magnesium in the blood. Always speak to a healthcare professional before taking supplements if you have a chronic health condition or take regular medication.
| Option | Strength of evidence | Safety notes |
|---|---|---|
| Magnesium supplements | Limited; small studies suggest possible benefit in men with low magnesium or diabetes, but no large trials | Generally safe at recommended doses; can cause diarrhoea; may interact with some antibiotics and blood pressure medicines; caution in kidney disease |
| Sildenafil (Viagra) | Strong; proven effective in large clinical trials with 60–80% success rate [9] | Not suitable with nitrates, nicorandil, or riociguat; caution with alpha-blockers and some other medicines; prescriber checks all interactions [3] |
| Tadalafil (Cialis) | Strong; proven effective in large trials; on-demand or daily dosing available | Same contraindications and cautions as sildenafil; longer duration of action (up to 36 hours) [4] |
| Lifestyle changes (exercise, diet, weight loss) | Strong; regular exercise and healthy diet improve erectile function and reduce cardiovascular risk [1][2] | Safe for most people; always check with GP before starting vigorous exercise if you have a heart condition |
How does magnesium compare with licensed ED treatments?
Licensed ED medicines such as sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Spedra) are PDE5 inhibitors. They work by increasing blood flow to the penis in response to sexual stimulation, and they have been proven effective in large clinical trials involving thousands of men [9]. These medicines typically work within 15 minutes to an hour and have success rates of 60–80% or higher, depending on the underlying cause of ED.
In contrast, magnesium supplements have not been tested in large-scale trials for ED, and any benefit is likely to be modest and limited to men with low magnesium levels or specific metabolic conditions. Magnesium does not work in the same targeted way as a PDE5 inhibitor; rather, it may support general vascular and metabolic health over time. For most men with ED, a licensed prescription treatment will be far more effective and reliable.
That said, magnesium is not an either/or choice. Ensuring adequate magnesium intake through diet or supplements (if deficient) can be part of a healthy lifestyle that supports erectile function, alongside other measures such as regular exercise, maintaining a healthy weight, not smoking, and limiting alcohol. If you are considering prescription ED treatment, Cured Pharmacy offers a confidential online consultation with a UK prescriber, who will review your health and current medicines to recommend the most suitable option.
Can you take magnesium with ED medicines?
There is no known direct interaction between magnesium supplements and PDE5 inhibitors such as sildenafil or tadalafil. However, because magnesium can have a mild blood-pressure-lowering effect, and PDE5 inhibitors also lower blood pressure slightly, the combination could theoretically add to this effect and cause dizziness in some people. This is usually not a problem at normal supplement doses, but it is important to declare all supplements during your consultation so the prescriber can assess your overall risk. Never start or stop any medicine or supplement without discussing it with a healthcare professional.
Check your magnesium levels first
If you are considering magnesium for ED, ask your GP for a blood test to check your magnesium level. Supplementation is only likely to help if you have a confirmed deficiency, and your GP can also investigate other causes of ED such as diabetes or cardiovascular disease.
Other natural approaches and lifestyle changes for erectile dysfunction
While the evidence for magnesium alone is limited, several lifestyle changes have strong evidence for improving erectile function. Regular physical activity, particularly aerobic exercise, has been shown to improve ED by enhancing blood vessel health and reducing cardiovascular risk factors [1]. Losing weight if you are overweight, stopping smoking, and reducing alcohol intake can all make a significant difference.
A healthy diet rich in fruits, vegetables, whole grains, and oily fish (often called a Mediterranean-style diet) is associated with better erectile function and lower ED risk. This type of diet naturally provides good amounts of magnesium, along with other nutrients and antioxidants that support vascular health. Managing stress, getting enough sleep, and addressing any relationship or psychological factors are also important, as ED often has both physical and emotional components [2].
Some men find that addressing an underlying health condition, such as diabetes or high blood pressure, improves their erectile function. If you have not already done so, it is worth seeing your GP for a health check, as ED can be an early warning sign of cardiovascular disease [1]. Your GP can also check for low testosterone, thyroid problems, or other hormonal issues that might be contributing.
When to consider prescription treatment and how Cured Pharmacy can help
If lifestyle changes and addressing any underlying health issues have not been enough, or if you need a reliable treatment that works quickly, prescription ED medicines are the most effective option. Sildenafil, tadalafil, vardenafil, and avanafil are all available through Cured Pharmacy following an online consultation with a UK-registered prescriber. The consultation is straightforward and confidential, and the prescriber will review your medical history and current medicines to ensure the treatment is safe and suitable for you.
Sildenafil (generic Viagra) is taken about an hour before sex and is available from £0.45 per tablet (£0.36 with first-order code Ednew). Tadalafil (generic Cialis) can be taken on-demand or daily; on-demand tadalafil lasts up to 36 hours and is priced from £7.95 (£6.36 with code Ednew). Other options include vardenafil (from £16.95, £13.56 with code Ednew) and avanafil (Spedra, from £20.95, £16.76 with code Ednew), which works in as little as 15 minutes [6][11].
All PDE5 inhibitors require sexual stimulation to work and are not suitable for everyone. They must not be taken with nitrates, nicorandil, or riociguat, as this can cause a dangerous drop in blood pressure [3][4]. The prescriber will check for any interactions with your current medicines and ensure the treatment is safe. If you experience an erection lasting more than four hours, sudden vision or hearing loss, or chest pain during sex, seek urgent medical help.
What happens during the online consultation?
The consultation involves completing a short health questionnaire about your medical history, current medicines, and any other health conditions. A UK-registered prescriber reviews your answers and, if appropriate, approves the prescription. Your treatment is then dispensed by Cured Pharmacy (GPhC 9012511) and delivered discreetly to your door. If the prescriber has any concerns or needs more information, they may ask follow-up questions or suggest seeing your GP for further assessment. The service is designed to be convenient and confidential, but safety is always the priority.
When to get urgent help
- Erection lasting more than 4 hours (priapism) — go to A&E immediately
- Sudden loss of vision or hearing while taking ED medicine — stop the medicine and seek urgent medical advice
- Chest pain during or after sex — call 999; do not take more ED medicine
- Severe dizziness, fainting, or irregular heartbeat after taking magnesium or ED medicine — seek same-day medical help
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 18 November 2026]
- National Institute for Health and Care Excellence. (n.d.). Erectile dysfunction. Clinical Knowledge Summaries. https://cks.nice.org.uk/topics/erectile-dysfunction/ [accessed 18 November 2026]
- Joint Formulary Committee. (n.d.). Sildenafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/sildenafil/ [accessed 18 November 2026]
- Joint Formulary Committee. (n.d.). Tadalafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/tadalafil/ [accessed 18 November 2026]
- Joint Formulary Committee. (n.d.). Avanafil. British National Formulary. NICE. https://bnf.nice.org.uk/drugs/avanafil/ [accessed 18 November 2026]
- Goldstein, I., Lue, T. F., Padma-Nathan, H., Rosen, R. C., Steers, W. D., & Wicker, P. A. (1998). Oral sildenafil in the treatment of erectile dysfunction. New England Journal of Medicine, 338(20), 1397–1404. https://pubmed.ncbi.nlm.nih.gov/9580646/ [accessed 18 November 2026]
- National Institute for Health and Care Excellence. (2014). Erectile dysfunction: avanafil (ESNM45). https://www.nice.org.uk/advice/esnm45 [accessed 18 November 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.
ED Treatments We Offer
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.









Get Discreet ED Treatment Online
Reviewed by UK-based prescribers · Takes under 3 minutes · Discreet Packaging
Your Questions Answered
Can't find your answer? Our UK pharmacists review every consultation and can help.
Does magnesium help erectile dysfunction if I already eat a balanced diet?
If you already get enough magnesium from your diet (found in green vegetables, nuts, seeds, and whole grains), taking extra supplements is unlikely to improve erectile function. Supplementation may only help if you have a confirmed deficiency.
How long does it take for magnesium to work for ED?
There is no established timeframe, as the evidence for magnesium in ED is limited. Any benefit would likely take weeks or months and would be modest. Licensed ED medicines work within 15 minutes to an hour.
Can I take magnesium with sildenafil or tadalafil?
There is no known direct interaction, but magnesium can lower blood pressure slightly, as can PDE5 inhibitors. Declare all supplements during your consultation so the prescriber can assess your overall risk.
What type of magnesium is best for erectile dysfunction?
There is no specific type of magnesium proven to be better for ED. Magnesium citrate and glycinate are generally well absorbed and less likely to cause diarrhoea than magnesium oxide.
Is magnesium deficiency common in the UK?
True magnesium deficiency is relatively uncommon in the UK if you eat a varied diet. It is more likely in people with certain health conditions (such as Crohn's disease or type 2 diabetes) or those taking some medicines (such as proton pump inhibitors or diuretics).
Can magnesium increase testosterone and help with ED?
Some studies suggest magnesium may increase free testosterone, particularly in active men or those with low baseline levels. However, the link to erectile function is indirect and not well established. Low testosterone is only one of many possible causes of ED.
Are there any risks to taking magnesium supplements long-term?
At recommended doses (200–400 mg per day), magnesium is generally safe long-term for most people. High doses can cause diarrhoea and, rarely, irregular heartbeat. People with kidney disease should avoid supplements unless advised by a doctor.
Should I try magnesium before prescription ED treatment?
If you have confirmed low magnesium or prefer to try a supplement first, that is a reasonable approach, but be aware the evidence is weak. Licensed ED medicines are far more effective and reliable, and you can use both approaches together as part of a healthy lifestyle.
Medically reviewed by
Tarun Kumar, Superintendent Pharmacist (GPhC 2233073)
Last updated on 18 November 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 18 November 2026
Content checked and updated as part of our periodic review, to ensure accuracy and currentness.
Current version (18 November 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.