Symptom guide
Erectile dysfunction: causes, warning signs and when to see a GP
Trouble getting or keeping an erection is common, particularly after 40, and an occasional failure is rarely a concern. When it keeps happening it deserves attention, partly because it is treatable and partly because it can be an early sign of blood vessel disease, diabetes or hormone problems.
Last checked: 2026-10-03
Key facts
At a glance.
-
Very common
The NHS says erectile dysfunction is very common, particularly in men over 40, and is usually nothing to worry about; it advises seeing a GP if it keeps happening.
-
Morning erections
The NHS notes that, depending on the cause, you may still get an erection at other times, such as on waking.
-
A symptom, not a disease
NICE CKS describes erectile dysfunction as a symptom with vascular, neurological, hormonal, anatomical, psychological and drug-related causes, most cases being of mixed origin.
-
Check the heart and sugar
CKS says HbA1c, lipids and morning total testosterone should be checked in all men with erectile dysfunction, and that complications include an increased risk of cardiovascular disease and stroke.
-
Prolonged erection warning
CKS lists a painful erection lasting more than 4 hours, a rare adverse effect of specialist treatments, as a reason for emergency admission.
What counts as erectile dysfunction
The NHS defines erectile dysfunction as being unable to get an erection, or unable to keep one for long enough to have sex. NICE CKS puts it as persistent difficulty attaining and maintaining an erection sufficient for satisfactory sexual performance. Persistent matters: the NHS says most men occasionally fail to get or keep an erection, usually because of stress, tiredness or too much alcohol.
It often comes with other changes. The NHS mentions a lowered sex drive in some men, and CKS asks about desire, arousal, ejaculation and orgasm as separate matters from erections themselves, because the cause differs. Distress, loss of confidence and strain on relationships are recognised complications, and some men avoid seeing anyone for months or years as a result.
Why it happens
An erection depends on healthy blood vessels, working nerves, adequate hormones and a relaxed, aroused mind. Anything that interferes with one of these can contribute, and CKS stresses that many men have more than one cause at once.
| Group | Examples | Comment |
|---|---|---|
| Vascular | High blood pressure, high cholesterol, peripheral arterial disease, smoking, obesity, diabetes | The NHS lists high blood pressure, high cholesterol and diabetes among the conditions that can cause frequent difficulty |
| Neurological | Multiple sclerosis, Parkinson's disease, stroke, spinal cord disease; nerve damage from diabetes, kidney or liver disease, pelvic or urological surgery | The NHS also lists erectile problems among the non-movement symptoms of Parkinson's disease |
| Hormonal | Low testosterone, raised prolactin, diabetes | NHS lists hormone problems; CKS advises referral to endocrinology if testosterone deficiency is suspected |
| Anatomical | Peyronie's disease, prostate cancer | Genital examination can reveal a physical cause |
| Psychological | Stress, anxiety, depression, relationship difficulties, performance worry | NHS says counselling and therapy can help when emotional or mental health problems are linked, though NHS waits may be long |
| Medicines and substances | Blood pressure tablets, diuretics, antidepressants, hormonal treatments, recreational drugs, alcohol | The NHS says a doctor may switch a medicine if it is the cause |
| Lifestyle and activity | Heavy alcohol use, inactivity, weight; long hours of cycling | The NHS advises not drinking more than 14 units of alcohol a week and, if you cycle for more than 3 hours a week, considering a break |
What it can signal, and when to seek help sooner
Erectile dysfunction is not a medical emergency, but it is sometimes the first symptom of something that is. CKS says complications of erectile dysfunction include an increased risk of cardiovascular disease, stroke and all-cause mortality, which is why the cardiovascular risk of the man is examined as part of the assessment. A man who has chest pain, breathlessness or leg pain on walking alongside erectile problems should mention them together.
Back pain with new erectile or other sexual changes belongs in a different category. The NHS says to call 999 or go to A&E if back pain comes with numbness around the genitals or anus, bladder or bowel changes, weakness or numbness in both legs, or changes in how the penis feels during sex including being unable to get or keep an erection.
The NHS also lists passing urine more often than usual alongside erectile problems as a reason for a prostate examination. A painful erection lasting more than 4 hours is an emergency that, per CKS, is a rare adverse effect of specialist treatments for the condition.
-
Erection problems with new back pain, leg weakness or numbness, or loss of bladder or bowel control: 999 or A&E.
-
A painful erection lasting more than 4 hours: emergency care.
-
Erection problems alongside excess thirst, tiredness or passing more urine, which may suggest diabetes.
-
Chest tightness or breathlessness on exertion, which should prompt a heart check.
-
Sudden onset in a young man, or after pelvic, perineal or genital injury: CKS recommends urology referral.
What the GP asks and examines
The NHS says the doctor or nurse may ask about lifestyle, relationships and problems you are having, do basic checks such as blood pressure, and examine the genitals to rule out an obvious physical cause. If you have symptoms such as needing to pee more often, a rectal examination of the prostate may be offered.
NICE CKS adds more detail: past and current sexual relationships, onset, duration and quality of erections, desire, arousal, ejaculation and orgasm, life events, relationship dynamics, mental health, other conditions, risk factors and previous treatments. Examination looks at cardiovascular risk, signs of testosterone deficiency, the external genitalia and, depending on judgement, the prostate. A sexual health clinic is a route the NHS mentions, and many offer walk-in services.
Tests that are usually done
CKS recommends checking HbA1c (a measure of blood sugar control), a lipid profile for cholesterol and a fasting morning total testosterone in all men with erectile dysfunction, with other blood tests added according to the likely cause. These results can reveal diabetes, high cholesterol or low testosterone before any complication has appeared.
The NHS says the aim of assessment is to find treatable causes. Blood pressure measurement is routine, and an ECG or other heart tests may follow if there is a cardiac concern. Psychological assessment or referral for psychosexual counselling is used when the pattern suggests a psychological cause.
How it is treated
The NHS says treatment can usually help. The main treatments are prescribed medicines that increase blood flow to the penis, called PDE-5 inhibitors: sildenafil, tadalafil, vardenafil and avanafil. They are prescription-only, with the NHS noting that sildenafil can also be bought from a pharmacy. CKS advises counselling on how to use them and a follow-up after 6 to 8 weeks to review dose and consider switching drug.
Other routes the NHS lists are vacuum pumps, which encourage blood flow and may not always be available on the NHS, treating the underlying cause such as blood pressure, cholesterol or hormone problems, switching a medicine that is contributing, and counselling or sex therapy when emotional factors are involved. The NHS warns that medicines bought online may be fake or unregulated, and advises checking that online pharmacies are registered with the General Pharmaceutical Council, online doctor services with the Care Quality Commission and doctors with the General Medical Council.
CKS gives referral criteria: urology if symptoms are lifelong, the man is young, there has been pelvic or genital trauma, there is a penile or testicular abnormality, or two PDE-5 inhibitors at maximum tolerated dose have failed; endocrinology for suspected testosterone deficiency; cardiology when the cardiac risk of sexual activity is intermediate or high; and psychosexual or relationship counselling when appropriate.
What helps alongside treatment
The NHS suggests losing weight if overweight, stopping smoking, eating a healthy diet, exercising daily and trying to reduce stress and anxiety. It advises not drinking more than 14 units of alcohol a week. CKS includes the same list: weight loss, smoking cessation, alcohol reduction and increased activity, as clinically needed, plus optimisation of any underlying conditions.
Practical points: take any medicines exactly as advised, mention all medicines and supplements to the prescriber, and consider involving a partner, since the NHS notes relationship factors and counselling can help.
Frequently asked
Questions people ask.
Quick, plain-English answers to the questions we hear most.
-
Is it normal to have occasional trouble with erections?
Yes. The NHS says most men occasionally fail to get or keep an erection, usually because of stress, tiredness or alcohol. It becomes a reason to see a GP when it keeps happening.
-
Can erectile dysfunction be a sign of heart disease or diabetes?
It can. NICE CKS lists vascular disease, hypertension, high cholesterol, diabetes, smoking and obesity among causes and notes that erectile dysfunction is associated with greater cardiovascular risk, so these are checked as part of the assessment.
-
Which tests will a GP arrange?
CKS says HbA1c, lipids and fasting morning total testosterone should be checked in all men, with other tests depending on the likely cause. Blood pressure is checked and the genitals may be examined.
-
Do I need to see a specialist?
Often not at first. CKS reserves urology referral for lifelong symptoms, young age, injury, a penile or testicular abnormality, or failure of treatment with at least two PDE-5 inhibitors; endocrinology and cardiology referrals are for specific concerns.
-
Are online pills safe?
The NHS warns that many websites sell fake medicines and that online medicines are not always regulated. It advises seeing a doctor first and checking registration with the General Pharmaceutical Council, the Care Quality Commission and the General Medical Council.
-
Could my medicines be causing it?
Yes. The NHS says it can be a side effect, and CKS lists blood pressure drugs, diuretics, antidepressants and hormonal treatments. A doctor may switch you to a different medicine; do not stop treatment without advice.
-
Can stress or anxiety cause it?
Yes. Stress, anxiety, depression and relationship difficulties are psychological causes in CKS. The NHS says counselling and therapy can help when emotional or mental health problems are linked.
-
Does cycling affect erections?
The NHS advises that if you cycle for more than 3 hours a week you consider taking a break from cycling for a while as part of managing the problem.
-
What if an erection will not go away?
CKS says a painful erection lasting more than 4 hours is a rare adverse effect of specialist treatments and requires emergency hospital admission.
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-03, next review 2027-10-03.
-
NHS, Erectile dysfunction (impotence): https://www.nhs.uk/conditions/erectile-dysfunction/ (retrieved October 2026)
-
NICE Clinical Knowledge Summaries, Erectile dysfunction: https://cks.nice.org.uk/topics/erectile-dysfunction/ (retrieved October 2026)
-
NHS, Back pain: https://www.nhs.uk/conditions/back-pain/ (retrieved October 2026)
-
NHS, Parkinson's disease symptoms: https://www.nhs.uk/conditions/parkinsons-disease/symptoms/ (retrieved October 2026)
Related guides
Keep reading.
-
Erectile dysfunction
The condition guide, causes and treatment pathways.
Read guide -
Erectile dysfunction (wellness)
Lifestyle and wellbeing angle on the same topic.
Read guide -
Type 2 diabetes
A common underlying cause of erection problems.
Read guide -
Total testosterone test
How testosterone is measured.
Read guide -
HbA1c test
The blood test that reflects long-term blood sugar.
Read guide