Condition guide
Erectile dysfunction: treatment, causes and symptoms
Erectile dysfunction (ED) is when you cannot get or keep an erection firm enough for sex. It is very common, particularly in men over 40, and is usually nothing to worry about, but it can signal a health condition so see a GP if it keeps happening. Treatment usually helps: tablets such as sildenafil, vacuum pumps, lifestyle changes and treating the cause.
Last checked: 2026-10-11
Key facts
At a glance.
-
What it is
The NHS says ED is when you are either unable to get an erection or unable to keep an erection for long enough to have sex. NICE CKS defines it as the persistent inability to attain and maintain an erection sufficient for satisfactory sexual performance.
-
How common
The NHS says it is very common, particularly in men over 40, and usually nothing to worry about. Most men occasionally fail to get or keep an erection.
-
Common causes
Occasional problems are usually caused by stress, tiredness or too much alcohol. Frequent problems may be due to high blood pressure, high cholesterol, diabetes, depression, anxiety, hormone problems, or some medicines.
-
Main treatment
The NHS says the main treatments are PDE-5 inhibitor medicines: sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra) and avanafil (Spedra). Vacuum pumps are an alternative.
-
Lifestyle
Lose weight if overweight, stop smoking, eat a healthy diet, exercise, reduce stress and do not drink more than 14 units of alcohol a week, according to the NHS.
-
Buying online
The NHS warns many websites sell fake medicines. It is best to see a doctor before buying medicines online.
-
Why see a GP
The NHS says it might be a sign of a health condition that can be treated, so see a GP or go to a sexual health clinic if erection problems keep happening.
How is erectile dysfunction treated?
The NHS says treatment can usually help improve ED. The main treatments are medicines that increase blood flow to the penis, called PDE-5 inhibitors. These are sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra) and avanafil (Spedra). You can get sildenafil on prescription or buy it from a pharmacy; the other types need a prescription.
Vacuum pumps encourage blood to flow to the penis, causing an erection. The NHS says they work for most men and can be used if medicine is not suitable or does not work, though they are not always available on the NHS.
There are also treatments for the causes of ED. Your doctor may switch you to a different medicine if it is causing the problem, high blood pressure, high cholesterol and hormone problems may be treated with medicine, and counselling and therapy can help if erection problems are linked to emotional or mental health problems. The NHS notes there can be a long wait for these services on the NHS.
NICE CKS advises that primary care management includes lifestyle and risk factor changes, optimising management of any underlying conditions, offering a PDE-5 inhibitor if clinically appropriate with counselling on its use, and arranging follow-up after 6 to 8 weeks with possible dose escalation or drug switching.
| Treatment | How it works | Points to know |
|---|---|---|
| Sildenafil (Viagra) | PDE-5 inhibitor; increases blood flow to the penis | On prescription or from a pharmacy. |
| Tadalafil, vardenafil, avanafil | PDE-5 inhibitors | Need a prescription. |
| Vacuum pump | Draws blood into the penis to cause an erection | Works for most men; not always available on the NHS. |
| Treating the cause | Changing medicines, treating blood pressure, cholesterol or hormones | Done by your doctor. |
| Counselling or sex therapy | Helps with emotional or mental health causes | Can be a long wait on the NHS; private therapists exist. |
What is erectile dysfunction?
ED is when you are unable to get an erection, or unable to keep one for long enough to have sex. The NHS says that depending on the cause you may still be able to get an erection at other times, such as when you wake up. Sometimes there is also low sex drive.
NICE CKS points out that ED is a symptom and not a disease. It may have a physical or psychological cause, but most cases are of mixed cause, and incidence and prevalence increase with age.
What are the symptoms and signs?
The main symptom is difficulty getting or keeping an erection. The NHS says most men occasionally fail to get or keep an erection and this is usually due to stress, tiredness or drinking too much alcohol. It is the pattern, if it keeps happening, that suggests seeing a GP.
NICE CKS says assessment includes asking about sexual function, onset and duration, sexual desire, arousal, ejaculation and orgasm, life events, relationship dynamics and mental health. Complications of ED may include performance anxiety, reduced confidence, depression and relationship difficulties.
What causes erectile dysfunction?
The NHS says occasional ED is usually caused by stress, tiredness or drinking too much alcohol, and can be a side effect of some medicines. If it happens often it may be caused by a condition such as high blood pressure or high cholesterol, diabetes, depression or anxiety, or hormone problems.
NICE CKS gives a wider list. Vascular causes include cardiovascular disease, hypertension, high cholesterol, peripheral arterial disease, diabetes, smoking and obesity. Neurological causes include multiple sclerosis, Parkinson's disease and stroke. Others include chronic kidney or liver disease, pelvic or urological surgery, Peyronie's disease, prostate cancer, and endocrine causes such as hypogonadism. Psychological causes include stress, anxiety, depression and relationship issues. Drug causes include antihypertensives, diuretics, antidepressants, hormonal treatments and recreational drugs.
Lifestyle changes that can help
The NHS says healthy lifestyle changes can sometimes help. These include losing weight if you are overweight, stopping smoking, eating a healthy diet, exercising daily and trying to reduce stress and anxiety.
It also advises not drinking more than 14 units of alcohol a week, and not cycling for a while if you cycle for more than 3 hours a week.
What happens at a GP appointment?
The NHS says the doctor or nurse may ask about your lifestyle, relationships and any problems you are having, do basic health checks such as taking your blood pressure, and examine your genitals to rule out any obvious physical cause. If you have symptoms such as needing to pee more often than usual, you may also have a rectal examination of the prostate.
NICE CKS says all men should have HbA1c, a lipid profile and a fasting morning total testosterone level checked, with further tests depending on the likely cause. Referral to urology is considered for lifelong symptoms, young age, pelvic or genital trauma, a penile or testicular abnormality, or no response to at least two PDE-5 inhibitors; to endocrinology if testosterone deficiency is suspected; and to psychosexual counselling or mental health services if a psychological cause is likely.
When to get urgent help
NICE CKS says emergency hospital admission is needed for priapism, which it defines as a painful prolonged erection for more than 4 hours and a rare adverse effect of specialist treatments for ED. If this happens, go to A&E or call 999.
The NHS also says ED can be a sign of a health condition, so it is worth getting checked rather than waiting if it keeps happening.
Buying treatments online
The NHS says to be very careful if you buy sildenafil online because many websites sell fake medicines. Online medicines are not always regulated, and the ingredients can vary from one pack to another. They may cause unpleasant side effects or not be suitable for you.
If you buy online, it says to make sure the pharmacy is registered with the General Pharmaceutical Council (GPhC), any online doctor service is registered with the Care Quality Commission (CQC) and all doctors are registered with the General Medical Council (GMC).
NHS and private pathways
You can see your GP or go to a sexual health clinic. The NHS says sexual health clinics can provide the same treatment as a GP surgery, many offer a walk-in service and they often get test results quicker. You can also pay to see a counsellor or sex therapist privately; the NHS suggests checking membership of recognised professional bodies.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
What is erectile dysfunction?
The NHS says it is when you are unable to get an erection, or unable to keep one for long enough to have sex. It is very common, particularly in men over 40, and treatment can usually help. NICE CKS adds that it is a symptom rather than a disease and often has more than one cause.
-
What causes erectile dysfunction?
Occasional problems are usually due to stress, tiredness or drinking too much alcohol, and some medicines. The NHS says if it happens often, it may be caused by a condition such as high blood pressure, high cholesterol, diabetes, depression or anxiety, or hormone problems, so it is worth seeing a GP.
-
How is erectile dysfunction treated?
The NHS says the main treatments are PDE-5 inhibitor medicines: sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra) and avanafil (Spedra). Vacuum pumps work for most men and are an alternative, and treating the cause or having counselling for emotional causes can also help. Lifestyle changes may support treatment.
-
Can I buy Viagra over the counter?
The NHS says you can get sildenafil on prescription or buy it from a pharmacy, but you need a prescription for the other PDE-5 inhibitors. Be very careful if you buy online, as many websites sell fake medicines and the ingredients can vary from pack to pack. It is best to see a doctor before buying.
-
Can lifestyle changes help?
Sometimes. The NHS suggests losing weight if you are overweight, stopping smoking, eating a healthy diet, exercising daily and trying to reduce stress and anxiety. It also advises not drinking more than 14 units of alcohol a week, alongside the lifestyle changes above.
-
Does cycling cause erectile dysfunction?
The NHS advises not cycling for a while if you cycle for more than 3 hours a week and have erection problems. It lists this among the things to avoid alongside drinking more than 14 units of alcohol a week. If problems keep happening, see a GP or sexual health clinic to look for other causes.
-
Is erectile dysfunction a sign of another health problem?
It can be. The NHS says it might be a sign of a health condition that can be treated, such as high blood pressure, high cholesterol or diabetes. NICE CKS lists complications including depression and increased risk of cardiovascular disease, which is why GPs usually check blood pressure and blood tests.
-
Should I see a GP or a sexual health clinic?
Either. The NHS says sexual health clinics treat problems with sexual health and can provide the same treatment as a GP surgery. Many offer a walk-in service where you do not need an appointment, and they often get test results quicker than GP practices.
-
What if tablets do not work?
NICE CKS says follow-up is arranged after 6 to 8 weeks, with possible dose escalation or drug switching. Urology referral is considered if there is no response to the maximum tolerated dose of at least two PDE-5 inhibitors. The NHS also lists vacuum pumps and treating the underlying cause as options.
-
When is an erection an emergency?
NICE CKS says a painful erection lasting more than 4 hours, called priapism, is a rare adverse effect of specialist treatments for erectile dysfunction and needs emergency hospital admission. If this happens, go to A&E or call 999 rather than waiting to see whether it settles.
Where this comes from
Sources and checking.
This guide is for information, not medical advice.
Your GP or consultant knows your history and can tell you which parts apply to you. If your symptoms are severe, rapidly worsening, or come with red-flag features, seek urgent medical care. Figures and availability change, so treat them as a guide and confirm with the provider.
Published 2026-10-11, next review 2027-10-11.
-
NHS: Erectile dysfunction (impotence), https://www.nhs.uk/conditions/erectile-dysfunction/, retrieved October 2026
-
NICE CKS: Erectile dysfunction, https://cks.nice.org.uk/topics/erectile-dysfunction/, retrieved October 2026
Related guides
Keep reading.
-
Premature ejaculation
Another common male sexual problem.
Read guide -
Low testosterone
A hormonal cause worth checking.
Read guide -
Type 2 diabetes
A common cause of ED.
Read guide -
High blood pressure
A common underlying cause.
Read guide -
High cholesterol
Linked to blood vessel disease and ED.
Read guide -
Depression
Can cause and result from ED.
Read guide -
Anxiety
Performance anxiety and stress.
Read guide