Erectile dysfunction (ED) is when you are unable to get an erection, or unable to keep one long enough to have sex [1]. It is also known as impotence, although this term is used less often today [2]. Depending on the cause, you may still get erections at other times, for example, when you wake up [1].
ED is very common, particularly in men over 40 [1]. Research suggests that about 40% of men are affected at age 40, rising to around 70% by age 70 [2]. However, ED is not a normal part of aging, and in most cases it can be treated [1][2].
This page explains the causes of erectile dysfunction, its link with heart health, how it is diagnosed, and the treatments available.
Causes of Erectile Dysfunction
Most men occasionally have trouble getting or keeping an erection. This is usually caused by stress, tiredness or drinking too much alcohol, and is nothing to worry about [1]. When the problem keeps happening, it may be linked to a physical or psychological cause, or both [1][2].
An erection depends on the brain, hormones, nerves and blood vessels working together, so a problem with any of these can lead to ED [2].
Type of cause
Examples
Blood vessel and heart conditions
High blood pressure, high cholesterol, hardening of the arteries (atherosclerosis), stroke [1][2]
Metabolic and other conditions
Diabetes, obesity, chronic kidney disease [2]
Hormone problems
Low testosterone, thyroid imbalance [2]
Nerve damage
Multiple sclerosis, spinal cord injury, damage from pelvic surgery [2]
Conditions of the penis or prostate
Enlarged prostate, Peyronie’s disease [2]
Medicines
Some blood pressure medicines, antidepressants, diuretics, sedatives and chemotherapy [2]
Smoking, heavy drinking, lack of exercise, recreational drug use [2]
If you think a medicine may be causing your symptoms, do not stop taking it without speaking to your doctor first. Your doctor may be able to switch you to a different medicine [1].
Erectile Dysfunction and Heart Health
Erectile dysfunction shares many risk factors with heart and blood vessel disease, including high blood pressure, diabetes, smoking, and high cholesterol [2][4]. In some men, ED can be an early warning sign of heart problems that appear years later [3].
For this reason, ED that keeps happening is worth discussing with a doctor, even if you feel well otherwise. It may be a sign of a health condition that can be treated [1]. Your doctor may check your blood pressure, blood sugar, and cholesterol as part of the assessment [1][3].
Diagnosis of Erectile Dysfunction
Diagnosis usually starts with a conversation. Your doctor will ask about your symptoms, general health, medicines, lifestyle and relationships [1][2]. You may also be asked to fill in a short questionnaire about your sexual function [3][4].
A physical examination may include checking your blood pressure and examining the genitals to look for any obvious physical cause [1]. If you have urinary symptoms, such as needing to urinate more often, your prostate may also be examined [1].
Depending on your situation, further tests may include [2][3]:
Blood tests: To check blood sugar, cholesterol, testosterone, and thyroid function
Ultrasound of the penis: To assess blood flow
Night-time erection test: To check whether erections occur during sleep
Injection test: A medicine is injected into the penis to see how well an erection develops
Most men do not need all of these tests. Your doctor will recommend only those that are relevant to you [4].
Contact our team
How can we help you? Share your contact details to prepare your request.
How can we help?
By submitting you confirm you have read the privacy information and consent to the processing of your personal data.
Treatment of Erectile Dysfunction
Treatment can usually improve erectile dysfunction [1]. Doctors first look for and treat any underlying cause, and then focus on improving sexual function. The right treatment is a personal decision made together with your doctor [2].
Lifestyle Changes
Healthy lifestyle changes can sometimes improve ED on their own and also help other treatments work better [1]:
Lose weight if you are overweight
Stop smoking
Eat a healthy, balanced diet, such as a Mediterranean-style diet [2]
Exercise regularly
Try to reduce stress and anxiety
Keep alcohol within recommended limits
If you cycle more than three hours a week, consider cutting back for a while
Treating the Underlying Cause
This may involve treating high blood pressure, high cholesterol or a hormone problem, or switching to a different medicine if your current one may be causing ED [1]. Testosterone treatment may be considered if blood tests show low levels [2]. If stress, anxiety, depression or relationship issues are contributing, counseling or sex therapy can help [1][2].
Medicines Taken by Mouth
The most widely used treatments are tablets called PDE5 inhibitors. These include sildenafil, tadalafil, vardenafil and avanafil. They work by increasing blood flow to the penis [1][4].
These medicines only work when you are sexually aroused [3]. They must not be taken with nitrate medicines, which are often prescribed for chest pain, because the combination can cause a dangerous drop in blood pressure [3].
Many websites sell fake medicines, so it is best to see a doctor before buying ED tablets online [1][2].
Other Treatment Options
If tablets are not suitable or do not work, other options include [2][3]:
Vacuum devices: A pump draws blood into the penis to create an erection. They work for most men [1].
Injections or urethral medicines: A medicine is injected into the side of the penis or placed in the urethra to produce an erection [2][3].
Penile implant: Surgery to place an implant inside the penis. This is usually considered only when other treatments have not worked [2][3].
Seeking Urgent Help
Get medical help straight away if you have an erection that lasts longer than four hours, or if you notice sudden changes in your vision or hearing after taking an ED medicine [2].
Is erectile dysfunction a normal part of getting older?
ED becomes more common with age, but it is not a normal or unavoidable part of aging [2]. Many cases are linked to treatable health conditions, so it is worth speaking to a doctor if the problem keeps happening [1].
Can erectile dysfunction be cured?
It depends on the cause. When ED is caused by a medicine, a hormone problem or lifestyle factors, treating the cause may resolve it [1][2]. In other cases, treatments such as tablets or devices can help you have satisfying sex, even if the underlying condition remains.
Can stress or anxiety cause erectile dysfunction?
Yes. Stress, anxiety, and depression can all contribute to ED [1][2]. Counseling or sex therapy can help, either on its own or alongside other treatments [1].
Are ED tablets safe for everyone?
No. PDE5 inhibitors must not be taken with nitrate medicines used for chest pain [3]. A doctor will check your health and current medicines before recommending a treatment, which is one reason to avoid buying these medicines online without medical advice [1][2].
When should I see a doctor about erection problems?
See a doctor if erection problems keep happening [1]. ED can be an early sign of conditions such as heart disease or diabetes, so an assessment can benefit your overall health as well as your sex life [2][3].
Next step
If you are experiencing erection problems, a urologist can assess the cause and discuss the treatment options that suit you. You can request an appointment with a urology specialist at Liv Hospital.
References
NHS. Erectile dysfunction (impotence). https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/. Accessed November 25, 2026.
National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Erectile Dysfunction (ED). Last reviewed October 2024. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/all-content
European Association of Urology (EAU) Patient Information. Erectile Dysfunction. https://patients.uroweb.org/hu/wp-content/uploads/sites/29/2018/12/PI_Erectile-Dysfunction-EN-Q1-2020-1.pdf
Wespes E, et al. Guidelines on male sexual dysfunction: erectile dysfunction and premature ejaculation. Eur Urol. 2010;57(5):804–814. doi:10.1016/j.eururo.2010.02.020. https://pubmed.ncbi.nlm.nih.gov/20189712/