Erectile dysfunction
Erectile dysfunction (ED) is a common, usually treatable problem where you often cannot get or keep an erection firm enough for sex.

Overview
Erectile dysfunction, often shortened to ED, means you regularly have trouble getting an erection, or keeping it firm enough for sex. An older name for it is impotence. Almost everyone with a penis has the odd time when an erection does not happen, especially when tired, stressed or after drinking alcohol. That is normal. ED is when the problem keeps happening, usually for several months, and it bothers you or your partner.
ED is very common. It becomes more likely with age, and many men over 40 have it to some degree. But it is not simply a normal part of getting older, and it can affect younger men too.
An erection depends on many body systems working together: your brain and nerves, your blood vessels, your hormones and your mood. When you are sexually excited, nerves signal the blood vessels in the penis to relax and widen. Blood flows into two spongy tubes inside the penis, and the veins that normally drain blood away are squeezed shut. This traps the blood and makes the penis firm. A problem anywhere along this chain can cause ED.
ED is important for two reasons. First, it can affect your confidence, your mood and your relationship. Second, it can be an early warning sign of other health problems, such as heart disease or diabetes. The good news is that ED can almost always be helped, and there are many safe, effective treatments.
Symptoms
The main signs of ED are:
- Trouble getting an erection, even when you feel aroused
- Getting an erection but losing it before or during sex
- Erections that are not firm enough for penetration
- Fewer erections during sleep or on waking
Some people with ED also notice less interest in sex (low libido), but this is a separate issue and can have different causes. Problems with ejaculation, such as coming too quickly, can happen alongside ED too.
ED that comes on suddenly, happens only with a partner, or comes and goes while morning erections stay normal is more often linked to stress, anxiety or relationship factors. ED that develops slowly and happens in all situations is more often linked to a physical cause.
Causes
Most ED has a physical cause, often combined with emotional factors. Once ED starts, worry about it happening again (sometimes called performance anxiety) can make it worse.
Physical causes
- Blood vessel problems. This is the most common cause. Narrowed or stiffened arteries (atherosclerosis) reduce blood flow into the penis. Doctors call this vasculogenic ED. The arteries in the penis are small, so ED can show up years before heart symptoms.
- Diabetes, which can damage both blood vessels and nerves.
- High blood pressure and high cholesterol.
- Nerve damage from conditions such as multiple sclerosis, Parkinson's disease, spinal cord injury or stroke.
- Surgery or radiation to the pelvis, especially for prostate, bladder or bowel cancer.
- Hormone problems, such as low testosterone, a thyroid problem or high levels of the hormone prolactin.
- Peyronie's disease, where scar tissue in the penis causes a curve and sometimes pain.
Medicines and substances
Some medicines can affect erections, including certain medicines for depression, blood pressure, prostate problems, epilepsy and hormone treatment for prostate cancer. Smoking, heavy drinking and drugs such as cannabis, opioids and cocaine can all contribute. Never stop a prescribed medicine on your own; talk to your clinician, who may be able to change it.
Emotional and relationship causes
- Stress, anxiety or depression
- Relationship problems or poor communication
- Worry about sexual performance
- Past negative sexual experiences
Risk factors
You are more likely to develop ED if you:
- Are older, especially over 50
- Have diabetes, heart disease, high blood pressure, high cholesterol or kidney disease
- Smoke or vape nicotine
- Are overweight or physically inactive
- Drink a lot of alcohol or use recreational drugs
- Have depression or anxiety
- Have had pelvic surgery, radiation or an injury to the pelvis or spine
- Have obstructive sleep apnea, where breathing stops and starts during sleep
Diagnosis
Talking about erections can feel awkward, but doctors and nurses discuss ED all the time. You can see your family doctor or a nurse practitioner first.
Your clinician will usually:
- Ask about your symptoms: how long it has been happening, whether you still get morning erections, and how it affects you and your relationship. You may be asked to fill in a short questionnaire.
- Review your health and medicines, including any supplements, alcohol, smoking and drug use.
- Ask about your mood, stress and sleep.
- Do a physical exam, which may include checking your blood pressure, pulse, weight, and your penis and testicles.
Common tests include:
- Blood sugar (fasting glucose or HbA1c) to check for diabetes
- Cholesterol and other blood fats
- Testosterone, usually measured on a morning blood sample, especially if you also have low sex drive or tiredness
- Sometimes kidney, liver or thyroid tests
Most people do not need special scans. If the cause is unclear or you are thinking about surgery, a urologist (a specialist in the urinary and male reproductive system) may suggest an ultrasound of the penis to look at blood flow.
Because ED is closely linked to heart disease, your clinician may also check your overall heart risk.
Treatment
Treatment depends on the cause, your health, and what matters to you and your partner. Many people use more than one approach. Treating any underlying condition, such as diabetes or high blood pressure, is an important first step.
Lifestyle changes
Stopping smoking, being more active, losing extra weight, eating a heart-healthy diet and cutting down on alcohol can improve erections, especially in milder ED. These steps also protect your heart.
Tablets
The most common treatment is a group of medicines called PDE5 inhibitors. They boost the natural signal that relaxes blood vessels in the penis. They only work when you are sexually aroused; they do not cause an erection on their own. They include:
- sildenafil
- tadalafil, which lasts longer and can also be taken daily at a low strength
- vardenafil
- avanafil, which may start working a little faster
Common side effects are headache, flushing, a stuffy nose, indigestion and back or muscle aches. These medicines must never be taken with nitrates (such as nitroglycerin for chest pain) or with recreational "poppers", because together they can cause a dangerous drop in blood pressure. Tell your clinician about all your medicines. It may take several tries, with the right timing, for a tablet to work well, so don't give up after one attempt.
Only buy these medicines with a prescription from a licensed pharmacy. Products sold online or as "herbal" sex boosters may contain hidden or unsafe ingredients.
Other treatments
- Vacuum erection devices: a plastic tube placed over the penis with a pump that draws blood in. A ring at the base keeps the erection.
- Alprostadil: a medicine that widens blood vessels. It can be injected into the side of the penis with a very fine needle, or inserted as a tiny pellet or cream into the tip of the penis.
- Combination injections: a specialist may use injections that mix medicines such as papaverine, phentolamine and alprostadil.
- Testosterone treatment: only helpful if blood tests confirm low testosterone. It can improve sex drive and may help tablets work better.
- Penile implant: surgery to place an inflatable or bendable device inside the penis. It is usually offered when other treatments have not worked, and most people who have one are satisfied.
Talking therapies
Sex therapy or counselling, alone or with your partner, can help with anxiety, stress, depression and relationship worries. It works well alongside medical treatment.
Living with erectile dysfunction
ED can make you feel frustrated, embarrassed or low. These feelings are common and understandable. Some things that may help:
- Talk with your partner. ED affects both of you. Being open can ease pressure and help you find treatments together.
- Take the focus off penetration. Intimacy, touch and other kinds of sexual activity can still be satisfying and can lower performance anxiety.
- Look after your overall health. Keep up with checkups for blood pressure, blood sugar and cholesterol.
- Get enough sleep and manage stress with activity, relaxation or support.
- Follow up with your clinician if a treatment isn't working or causes side effects. There are usually other options to try.
Complications
ED itself is not dangerous, but it can lead to:
- Stress, low self-esteem, anxiety or depression
- Relationship strain
- Difficulty conceiving a pregnancy with a partner
Most importantly, ED can be a sign of hidden heart and blood vessel disease. Getting checked can help find and treat these problems early. Some treatments, especially injections, can rarely cause priapism, a painful erection that won't go away, which needs emergency care.
Outlook
Most people with ED can find a treatment that works for them. When ED is caused by stress, a medicine or a lifestyle factor, it may improve or go away once that is addressed. ED linked to long-term conditions such as diabetes or damage after prostate surgery may need ongoing treatment, but good sexual function is still possible for many people.
Prevention
The same healthy habits that protect your heart also help protect your erections:
- Don't smoke, or get help to quit
- Be physically active most days
- Keep a healthy weight
- Limit alcohol and avoid recreational drugs
- Keep diabetes, blood pressure and cholesterol well controlled
- Get help for stress, anxiety or depression
In the United States
In the United States, sildenafil, tadalafil and vardenafil are available as generics. Medicare Part D generally does not cover drugs used only for ED, and private insurance coverage varies. The FDA has warned that many 'male enhancement' supplements sold online or in stores contain hidden prescription drug ingredients that can interact dangerously with nitrates.
When to get medical help
See your doctor or nurse practitioner if:
- Erection problems keep happening or are worrying you or your partner
- You also have low sex drive, tiredness or other new symptoms
- You think a medicine may be affecting your erections (don't stop it on your own)
- You have diabetes, heart disease or high blood pressure and notice erection changes
- ED treatment isn't working or causes side effects
Go to an emergency department or call emergency services if:
- You have an erection that lasts more than 4 hours, or a painful erection without sexual arousal (priapism). This can permanently damage the penis if not treated quickly.
- You have chest pain, shortness of breath or feel faint during or after sex. Tell the medical team if you have taken an ED medicine, because nitrates must not be given with it.
- You have sudden loss of vision or hearing after taking an ED medicine.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Erectile Dysfunction. meshb.nlm.nih.gov
- NIDDK: Erectile dysfunction. niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction
- MedlinePlus: Erectile dysfunction. medlineplus.gov/erectiledysfunction.html
- NHS: Erectile dysfunction (impotence). nhs.uk/conditions/erection-problems-erectile-dysfunction/