An erection is a chain of events. Arousal starts in the brain, nerves carry the signal to the penis, muscle inside the penis relaxes to let blood rush in, and the swelling tissue presses the veins shut to keep it there. Erectile dysfunction (ED) means a link in that chain has stopped doing its job, often enough to get in the way of sex.
So what causes erectile dysfunction? Most often, a problem with the blood supply. High blood pressure, high cholesterol, diabetes, smoking, extra weight and too little exercise harm arteries all over the body, including the ones that fill the penis. Nerve damage, low testosterone, some medicines, heavy drinking, recreational drugs and pelvic surgery can break the chain too. So can the mind: anxiety, stress, depression and relationship trouble can shut an erection down even when the body works fine.
Most men have more than one cause, and one often feeds another. And because ED can show up years before heart disease, it’s worth a checkup even if you’re sure it’s just stress.

How an erection works, and where it can break
When the penis is soft, the smooth muscle inside its two spongy chambers stays tight and lets in only a trickle of blood. Arousal relaxes that muscle. The arteries widen, blood pours into the chambers, and as they swell they press the small veins against the tough outer sheath, so much less blood can drain away. At full hardness, two pelvic floor muscles at the base of the penis tighten and squeeze the veins harder still.
A classic scheme sorts the failures into three kinds. The nerve signal may not get through, a failure to start. Too little blood may get in, a failure to fill, usually because of the arteries. Or blood gets in but drains out too fast and the erection doesn’t hold, a failure to store that doctors call a venous leak.
The brain can also work against the whole process. When it reads sex as a threat, the body’s stress response releases adrenaline-like chemicals that keep the smooth muscle tight, so blood can’t get in even when you want it to.
What is the main cause of erectile dysfunction?
Poor blood flow. A 2018 review of exercise studies named problems with the arteries as the leading cause of ED and cardiovascular disease as the condition that most often comes with it. Both often come from damaged arteries, which is why they share risk factors: high blood pressure, diabetes, high cholesterol and smoking.
Doctors used to assume the opposite. A review of erection physiology notes that about 90% of men with ED were once thought to have a psychological cause. That belief gave way as research went on, and most cases are now seen as mixed: a physical problem plus the worry it brings, or anxiety that makes a modest physical problem worse. European urology guidelines say the physical-versus-psychological split should be used with caution for exactly that reason.
Age is part of the picture, but not the whole story. In the Massachusetts Male Aging Study, about half of men aged 40 to 70 reported some degree of ED, and complete ED tripled from 5% to 15% over that age span. Age was the factor most strongly tied to ED in that study, yet its authors concluded that ED has many causes, including the risk factors for blood vessel disease, and that part of what looks like aging may be changeable. The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) also says ED is not a routine part of aging.
What causes erectile dysfunction, at a glance
The table lists each cause, what it does and a sensible first step. The sections below go into more detail.
| Cause | What it does | First step |
|---|---|---|
| Narrowed or stiff arteries: high blood pressure, high cholesterol, heart disease | Less blood reaches the penis | Get your blood pressure and cholesterol checked; move more |
| Diabetes | Damages the nerves and the lining of the blood vessels | See a doctor and keep it managed |
| Smoking | Cuts blood flow and keeps the spongy tissue from trapping blood | Quit |
| Extra weight, too little exercise | Linked to the same artery damage as the causes above | Regular aerobic exercise; lose extra weight |
| Heavy drinking, recreational drugs | A common reason for an occasional failed erection; regular heavy use can cause ED | Cut back |
| Medicines: antidepressants, blood pressure drugs, diuretics, antihistamines and more | ED as a side effect | Talk to your prescriber; never stop on your own |
| Low testosterone, thyroid problems | Hormone changes that can weaken erections; low testosterone also lowers sex drive | A blood test |
| Nerve damage: multiple sclerosis, spinal cord injury, stroke | The signal doesn’t get through | See a doctor |
| Prostate or pelvic surgery, radiation, pelvic injury | Damages nerves and blood vessels | See a doctor |
| Peyronie’s disease, penile injury | The sheath around the erectile tissue stops pressing the veins shut | See a urologist |
| Weak pelvic floor, venous leak | May let blood drain away so the erection doesn’t hold | Pelvic floor training; a doctor’s check if it persists |
| Anxiety, stress, depression, relationship problems | The stress response keeps blood out | Ways to calm the stress response; counseling or therapy if needed |
Physical causes of erectile dysfunction
Blood vessels and heart disease
High blood pressure, high cholesterol and atherosclerosis, the fatty buildup inside the arteries, damage blood vessels throughout the body, and the penis is no exception. In a national US survey of more than 2,000 men, ED was especially common among men with high blood pressure, heart disease or other cardiovascular risk factors, even after the researchers accounted for age.
Diabetes
Diabetes hits the chain in two places. It damages the nerves and the inner lining of the blood vessels, and both are needed to release nitric oxide, the chemical messenger that relaxes the muscle in the penis. When researchers pooled 145 studies, just over half of men with diabetes had ED, and their odds of having it were about 3.5 times those of men without diabetes.
Smoking, alcohol and drugs
Nicotine cuts blood flow into the penis and also keeps the spongy tissue from relaxing enough to trap the blood. Compared with men who have never smoked, current smokers have a 51% higher risk of ED, according to a review in American Family Physician. Our post on whether smoking can cause erectile dysfunction covers how much risk there is and what changes after men quit.
Alcohol can cause trouble the same night. Drinking too much is one of the usual reasons for an occasional failure, and the NHS, Britain’s National Health Service, lists it next to stress and tiredness. Regular heavy drinking and recreational drugs are on NIDDK’s list of causes as well.
Extra weight and too little exercise
Weight and exercise matter for the same reason blood pressure and cholesterol do: they’re tied to the arteries. In the US survey above, a lack of physical activity was linked to ED independently of other factors, and the institute names obesity among the most common conditions behind it. It’s also one you can work on yourself; the section on what you can change describes a trial that tested it.
Hormones
Testosterone fuels sex drive, and low levels can contribute to ED. One review calls low testosterone a fairly common finding in men with erection problems. Doctors check it with an early-morning blood test. Thyroid problems can also lead to ED.
Nerves
An erection needs working nerves between the brain, the spinal cord and the penis. Multiple sclerosis, spinal cord injuries and stroke can interrupt them, and so can damage from pelvic surgery.
Medicines
Many common prescription and over-the-counter drugs can cause ED as a side effect, and NIDDK’s list is long: antidepressants, blood pressure medicines and diuretics (water pills), antihistamines and appetite suppressants. It also names chemotherapy and hormone medicines, some pain relievers, sedatives and ulcer medicines. If the problem started soon after a new prescription, tell the doctor who prescribed it. Don’t stop a medicine on your own; MedlinePlus, the US National Library of Medicine’s consumer site, says to talk to your provider first.
The pelvic floor and the veins
The pelvic floor muscles are active during a normal erection. At full hardness they squeeze the veins at the base of the penis, which led researchers to test whether weak pelvic floor muscles could be a cause of ED; a trial of pelvic floor training, described below, found that many men improved. If the swollen tissue doesn’t press the veins shut, or the veins don’t close for another reason, blood drains away and the erection doesn’t hold. That’s the venous leak described above, and our guide to venous leak explains how it’s diagnosed and what helps.
Surgery, injury and Peyronie’s disease
Surgery or radiation in the pelvis can damage the nerves and blood vessels an erection depends on. European guidelines report ED in 25% to 75% of men after radical prostatectomy, the operation that removes the prostate. After radiation for prostate cancer, 57% of men had ED five and a half years later. A broken pelvis or an injury to the penis can do the same. An injury to the penis comes from force, not from how often you have sex. In Peyronie’s disease, the tough sheath around the erectile tissue loses its stretch, so it may not press the veins shut. Prostate problems matter without surgery too: NIDDK lists an enlarged prostate among the conditions behind ED, along with chronic kidney disease and chronic obstructive pulmonary disease (COPD).
Psychological causes of erectile dysfunction
A psychological cause doesn’t mean the problem is imaginary. It works through the same chain, by keeping the stress response switched on when the body needs to relax. NIDDK lists anxiety, depression, stress, feeling isolated or lonely, low self-esteem, a lack of confidence and a negative body image. The same American Family Physician review names sexual performance anxiety and relationship problems as common ones.
Depression runs both ways. Across 49 studies, men with depression had about 39% higher odds of ED, and men with ED had nearly three times the odds of depression.
Doctors also distinguish two patterns. In the generalized type, arousal itself runs low, or intimacy feels hard with anyone. In the situational type, the problem shows up with a particular partner, around performance or during a stressful stretch, while erections at other times are fine.
Mind and body feed each other, too. A physical problem that makes one erection fade can plant the worry that spoils the next one, and the worry keeps the stress response running. That loop is the core of psychological erectile dysfunction, and our guide to it covers the signs and a step-by-step plan.
Train your pelvic floor and your stress response
Keep It Hard, a program in The Coach app, trains your pelvic floor and your stress response with short daily practices. A quiz asks about your situation and sets up your plan.
Why can’t I get hard anymore?
If erections used to be easy and now they aren’t, the most useful question is what changed. A miss after a long week, a bad night’s sleep or a few drinks is common; the NHS says most men occasionally fail to get or keep an erection and calls it nothing to worry about. A pattern that keeps repeating is different. Run through these questions before you see a doctor:
- Did it start suddenly or gradually? A sudden start points more toward the mind, a slow slide over months more toward the body.
- Does it happen every time, or only in some situations? Trouble with a partner but not on your own suggests a psychological cause.
- Do you still wake up with erections? Good erections on waking also point to the mind. If those have faded, our guide to getting morning wood back looks at the physical side.
- Did you start a new medicine? Antidepressants and blood pressure drugs are the usual suspects, but the list is long.
- Has your health changed? A new diagnosis, weight gain, less exercise, more drinking or smoking.
- Has your life changed? A new or strained relationship, a loss, a big event, a stretch of low mood.
- Have you had surgery, radiation or an injury in the pelvis?
No single answer settles it, and many men find clues on both sides. A one-page guide from NHS Lothian, part of Scotland’s public health service, sorts the mind from the body with much the same questions. Bring your answers to the appointment; they’ll make the conversation faster. Our guide to why you can’t get hard shows what each answer points to and what to try first.
Why erectile dysfunction can be an early warning sign
ED and heart disease may be two faces of the same problem in the blood vessels, and erection trouble often shows up first. In a study of 300 men with chest pain and confirmed coronary artery disease, about half had ED, and two-thirds of those said their erection problems began before any heart symptoms, on average a little over three years earlier. That American Family Physician review puts the usual gap at two to five years.
A large US study followed more than 9,000 men aged 55 and older. Those with ED had a 45% higher risk of later cardiovascular events, an increase on par with smoking or a family history of heart attack. The signal matters most in younger men. In a long-term community study, ED in men in their 40s came with a marked rise in future heart problems, while in older men it told doctors little. European guidelines now call ED a precursor of cardiovascular disease.
When to see a doctor
See a doctor if:
- erection problems keep happening
- they started after you began a new medicine (don’t stop it on your own)
- you have diabetes, high blood pressure, high cholesterol or heart disease, or you smoke
- you’re under 50 and there’s no obvious reason, since ED in younger men is a stronger warning sign for heart disease
- the problem followed pelvic surgery, radiation or an injury
- it’s weighing on your mood or your relationship
The NHS puts it simply: an erection problem that keeps coming back might be a sign of a health condition that can be treated.
How a doctor finds the cause
Finding the cause usually starts with a conversation, not a scan. Expect:
- questions about your health, every medicine and supplement you take (including over-the-counter ones), your sex life (desire, erections, ejaculation and orgasm), your mood and your relationship, and maybe a few for your partner
- a physical exam: blood pressure, weight and waist size, signs of blood vessel, nerve or hormone problems, and a genital exam for problems such as Peyronie’s disease
- blood tests for blood sugar (fasting glucose or HbA1c), cholesterol and an early-morning testosterone level
- sometimes, extra tests: a recording of erections during sleep (at home or in a sleep lab), which helps show whether the cause is physical; an ultrasound of blood flow in the penis; or an injection, usually in the doctor’s office, that checks whether the penis can get an erection
For more on the condition and the treatments a doctor may offer, see our overview of erectile dysfunction causes and treatment.
What you can change yourself
Some causes need a doctor. Others respond to what you do every week:
- Lose extra weight and move more. In an Italian trial of 110 obese men with ED, the men coached to eat less and exercise more raised their activity from about 48 to 195 minutes a week and lost weight. After two years, 17 of 55 had erection scores back in the normal range, compared with 3 of 55 in the comparison group.
- Make aerobic exercise a habit. For men whose ED comes with inactivity, excess weight, high blood pressure or heart disease, a 2018 review recommends about 40 minutes of moderate-to-vigorous aerobic exercise four times a week (roughly 160 minutes), kept up for six months. Our guides to increasing blood flow to the penis and exercises for erectile dysfunction turn that into a routine.
- Stop smoking and drink less. Nicotine acts directly on blood flow into the penis, and too much alcohol is one of the usual reasons an erection fails on a given night.
- Train your pelvic floor. In a British trial of 55 men with ED, pelvic floor exercises with biofeedback left 40% with normal erectile function and another 34.5% improved; the rest saw no change.
- Work on the mental side. The NHS says counseling and therapy can help when erection trouble is linked to emotional or mental health problems.
- Review your medicines. Ask your prescriber whether a drug could be involved and what the options are; don’t stop anything on your own.
- Get your numbers checked. Blood pressure, blood sugar and cholesterol are worth keeping an eye on for your heart as much as for your erections.
How The Coach helps with the causes you can change
The Coach is a sexual wellness app, and its Keep It Hard program covers three areas: the body, the mind and sexual skills. It starts by helping you sort physical signs from psychological ones, and when the signs point to the body, the first step is a doctor.
From there, it works on the parts you can train. For the pelvic floor, you first check whether the muscles are weak or tense. A tense floor gets relaxed before it’s strengthened, stretches come before Kegels (squeezes of the pelvic floor muscles), and you do Kegels once or twice a day, adding reverse Kegels, which relax the same muscles, after the first week.
For the stress response, there are breathing and grounding drills, exercises for quieting your inner critic and a written thought record. Other drills, done alone or with a partner, build comfort with arousal and with going soft, without any pressure to perform.
Each practice goes into a daily plan as often as it’s needed, and the whole program takes about 10 to 20 minutes a day on average. In The Coach’s own survey of users after their first four weeks, 58% said they felt more in control during sex.
The app doesn’t diagnose or prescribe. Narrowed arteries, diabetes, nerve damage and hormone problems are a doctor’s job, and training works alongside that care, not instead of it.
Body and mind in one plan
Keep It Hard from The Coach trains the pelvic floor, the stress response and partner skills in about 10 to 20 minutes a day. Take the quiz to get a plan that fits your situation.
More questions about erectile dysfunction causes
Can porn cause erectile dysfunction?
The research so far doesn’t show that watching porn, by itself, causes ED. In three groups of men surveyed for a 2019 study, how much porn they watched had no consistent link to their erections. Men who saw their own porn use as a problem did report more ED, but when the researchers followed men for a year, porn use didn’t predict how their erections changed. Surveys of men in Croatia, Norway and Portugal turned up little evidence of a link either. If porn feels like part of your problem, our guide to what’s often called porn-induced erectile dysfunction goes deeper. Masturbation isn’t a proven cause either; our guide to whether masturbation causes erectile dysfunction covers the habits around it that can matter.
What causes erectile dysfunction in young men?
The same causes as in older men, in a different mix. In one clinic, one in four men seeking help for new ED was 40 or younger. Compared with older patients, they had fewer other illnesses but smoked and used illegal drugs more often, and almost half had severe ED. Young men shouldn’t skip the checkup: ED that starts in a younger man is a stronger warning sign for future heart problems than it is later in life.
Sources
- Dean RC, Lue TF (2005). Physiology of penile erection and pathophysiology of erectile dysfunction. Urologic Clinics of North America. https://pmc.ncbi.nlm.nih.gov/articles/PMC1351051/
- Gerbild H, Larsen CM, Graugaard C, Areskoug Josefsson K (2018). Physical activity to improve erectile function: a systematic review of intervention studies. Sexual Medicine. https://pubmed.ncbi.nlm.nih.gov/29661646/
- European Association of Urology (2026). EAU Guidelines on Sexual and Reproductive Health: Management of erectile dysfunction. European Association of Urology. https://uroweb.org/guidelines/sexual-and-reproductive-health/chapter/management-of-erectile-dysfunction
- Feldman HA, Goldstein I, Hatzichristou DG, et al. (1994). Impotence and its medical and psychosocial correlates: results of the Massachusetts Male Aging Study. Journal of Urology. https://pubmed.ncbi.nlm.nih.gov/8254833/
- National Institute of Diabetes and Digestive and Kidney Diseases (n.d.). Definition & facts for erectile dysfunction. NIDDK. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/definition-facts
- Selvin E, Burnett AL, Platz EA (2007). Prevalence and risk factors for erectile dysfunction in the US. American Journal of Medicine. https://pubmed.ncbi.nlm.nih.gov/17275456/
- Kouidrat Y, Pizzol D, Cosco T, et al. (2017). High prevalence of erectile dysfunction in diabetes: a systematic review and meta-analysis of 145 studies. Diabetic Medicine. https://pubmed.ncbi.nlm.nih.gov/28722225/
- Rew KT, Heidelbaugh JJ (2016). Erectile dysfunction. American Family Physician. https://www.aafp.org/pubs/afp/issues/2016/1115/p820.html
- NHS (2023). Erectile dysfunction (impotence). NHS. https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/
- National Institute of Diabetes and Digestive and Kidney Diseases (n.d.). Symptoms & causes of erectile dysfunction. NIDDK. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes
- MedlinePlus (2025). Drugs that may cause erection problems. U.S. National Library of Medicine. https://medlineplus.gov/ency/article/004024.htm
- Dorey G, Speakman M, Feneley R, et al. (2004). Randomised controlled trial of pelvic floor muscle exercises and manometric biofeedback for erectile dysfunction. British Journal of General Practice. https://pubmed.ncbi.nlm.nih.gov/15527607/
- Cleveland Clinic (2026). Venous leak: causes, symptoms & treatment options. Cleveland Clinic. https://my.clevelandclinic.org/health/diseases/venous-leak
- Liu Q, Zhang Y, Wang J, et al. (2018). Erectile dysfunction and depression: a systematic review and meta-analysis. Journal of Sexual Medicine. https://pubmed.ncbi.nlm.nih.gov/29960891/
- NHS Lothian (2024). Psychogenic versus organic erectile dysfunction. NHS Lothian. https://apps.nhslothian.scot/files/sites/2/Psychogenic-versus-organic-Erectile-Dysfunction.pdf
- Montorsi F, Briganti A, Salonia A, et al. (2003). Erectile dysfunction prevalence, time of onset and association with risk factors in 300 consecutive patients with acute chest pain and angiographically documented coronary artery disease. European Urology. https://pubmed.ncbi.nlm.nih.gov/12932937/
- Thompson IM, Tangen CM, Goodman PJ, et al. (2005). Erectile dysfunction and subsequent cardiovascular disease. JAMA. https://pubmed.ncbi.nlm.nih.gov/16414947/
- Inman BA, St Sauver JL, Jacobson DJ, et al. (2009). A population-based, longitudinal study of erectile dysfunction and future coronary artery disease. Mayo Clinic Proceedings. https://pubmed.ncbi.nlm.nih.gov/19181643/
- National Institute of Diabetes and Digestive and Kidney Diseases (n.d.). Diagnosis of erectile dysfunction. NIDDK. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/diagnosis
- Esposito K, Giugliano F, Di Palo C, et al. (2004). Effect of lifestyle changes on erectile dysfunction in obese men: a randomized controlled trial. JAMA. https://pubmed.ncbi.nlm.nih.gov/15213209/
- Grubbs JB, Gola M (2019). Is pornography use related to erectile functioning? Results from cross-sectional and latent growth curve analyses. Journal of Sexual Medicine. https://pubmed.ncbi.nlm.nih.gov/30621919/
- Landripet I, Štulhofer A (2015). Is pornography use associated with sexual difficulties and dysfunctions among younger heterosexual men? Journal of Sexual Medicine. https://pubmed.ncbi.nlm.nih.gov/25816904/
- Capogrosso P, Colicchia M, Ventimiglia E, et al. (2013). One patient out of four with newly diagnosed erectile dysfunction is a young man: worrisome picture from the everyday clinical practice. Journal of Sexual Medicine. https://pubmed.ncbi.nlm.nih.gov/23651423/





