Erectile dysfunction (ED) happens when something interferes with blood flow, nerves, hormones or the mind. The most common physical causes are diabetes, high blood pressure, high cholesterol, obesity, smoking and low testosterone; the most common psychological causes are performance anxiety, stress and depression. In young men, anxiety and lifestyle dominate; after 40, physical causes become more common. Often several causes act together.
In this article
- How an erection works
- Vascular causes: the most common physical reason
- Hormonal causes
- Nerve-related causes
- Psychological causes
- Medicines that can cause ED
- Lifestyle causes
- Risk factors you can and cannot change
- ED and heart health: the early warning
- Partial erections, losing erection and morning erections
- Pornography and ED: what we know
- Causes of ED in young men
- How a doctor finds your cause
- Why finding the cause matters
- Get a private ED assessment
- Frequently asked questions
01How an erection works
Sexual arousal sends signals from the brain through the nerves to the penis. The blood vessels relax, the spongy tissue fills with blood and the veins are compressed so blood stays in — producing a firm erection. Hormones such as testosterone support desire. Anything that disturbs the brain signal, nerves, blood vessels or hormones can cause ED, which is why the cause is different from man to man.
02Vascular causes: the most common physical reason
- Diabetes — damages small blood vessels and nerves; men with diabetes are about three times more likely to have ED.
- High blood pressure and high cholesterol — narrow and stiffen arteries.
- Smoking and tobacco — damages the lining of blood vessels.
- Heart disease — ED can appear years before chest symptoms because penile arteries are smaller than heart arteries.
- Obesity and inactivity.
03Hormonal causes
Low testosterone (hypogonadism) mainly reduces desire and can contribute to weaker erections. High prolactin, thyroid disorders and pituitary problems can also affect sexual function. Testosterone should be measured in a morning blood sample and treated only if genuinely low, because unnecessary testosterone can reduce fertility and has other risks.
04Nerve-related causes
Diabetes-related nerve damage, spinal cord injury, multiple sclerosis, Parkinson's disease, and pelvic surgery such as prostate removal can interrupt the nerve signals needed for erection. These cases often need a urologist's input.
05Psychological causes
- Performance anxiety — fear of failing makes failure more likely, creating a cycle.
- Stress from work, money or family.
- Depression and anxiety disorders.
- Relationship conflict or lack of attraction.
- Guilt or myths about masturbation and semen loss.
- Porn-related expectations that real-life sex cannot match.
A useful clue: if you get normal morning erections or erections during masturbation, a psychological cause is more likely.
06Medicines that can cause ED
Some blood pressure medicines (certain beta-blockers and diuretics), antidepressants, antipsychotics, anti-androgens used for prostate conditions, some hair-loss medicines and opioids can affect erections. Never stop a prescribed medicine on your own — ask your doctor whether an alternative is possible.
07Lifestyle causes
Heavy alcohol use, tobacco, recreational drugs, poor sleep, sleep apnoea, long hours of cycling on a hard seat and a sedentary life all raise the risk. The good news: lifestyle causes are the most reversible. Our guide to natural treatment for ED lists practical steps.
08Risk factors you can and cannot change
Cannot change: age (ED becomes more common after 40), family history of diabetes or heart disease, and past pelvic surgery or injury.
Can change: smoking, alcohol, weight, physical activity, sleep, stress, blood sugar control, blood pressure, cholesterol and some medicines. Most men with ED have at least two changeable risk factors — which is why lifestyle steps make such a difference. Even when an unchangeable factor is present, improving the changeable ones often improves erections.
09ED and heart health: the early warning
The arteries supplying the penis are 1–2 mm wide, while heart arteries are 3–4 mm. Narrowing from cholesterol plaques therefore affects erections first. Studies have found that ED can precede symptoms of coronary heart disease by two to five years. If you develop ED, especially after 40 or with risk factors, use it as a prompt to check blood pressure, sugar, cholesterol and weight. Treating these protects both your sex life and your heart. Seek urgent care for chest pain, breathlessness on exertion or palpitations.
10Partial erections, losing erection and morning erections
The pattern of the problem gives clues. Losing an erection during sex or when putting on a condom is often linked to anxiety. Weaker erections in all situations, including morning erections, point more towards physical causes. Erections that are good with masturbation but not with a partner suggest anxiety or relationship factors. Sudden onset with normal morning erections is typically psychological; gradual worsening over months is typically physical. Share these details with your doctor — they shorten the path to the right treatment.
11Pornography and ED: what we know
Research on pornography and ED is mixed, but many clinicians see young men whose arousal has become tied to the novelty and intensity of online content, making partnered sex feel less stimulating. Reducing or pausing porn use for a few weeks, focusing on intimacy with the partner and addressing anxiety often helps. This is not a moral judgement — simply one of several lifestyle factors worth looking at.
12Causes of ED in young men
In men in their 20s and early 30s, the commonest causes are anxiety, stress, alcohol, smoking, vaping, recreational drugs and porn-related expectations. Physical causes like early diabetes or hormone problems are less common but should still be checked, especially if there are other symptoms.
13How a doctor finds your cause
- A detailed history — when ED started, whether morning erections occur, desire, ejaculation, stress and medicines.
- Examination including blood pressure, weight and genital check if needed.
- Blood tests — sugar, HbA1c, lipids, testosterone, thyroid as indicated.
- Special tests like penile Doppler only in selected cases.
Our ED doctor guide explains who to see.
14Why finding the cause matters
Treating only the symptom with a tablet may hide diabetes, heart disease or depression that needs attention. Finding the cause lets your doctor fix what can be fixed, choose the safest medicine and give realistic expectations. Learn about treatment on our main erectile dysfunction treatment page.
15Get a private ED assessment
Consult Dr. Yuvraj Monga at Lajpat Nagar 4, Dwarka Sector 9 or DLF Phase 4 Gurugram, or online. If you are near Dwarka or the airport, see our sexologist near Delhi Airport area.
?What people also search
Real questions patients type into Google about this topic. Each opens our detailed treatment page.
FAQFrequently asked questions
What is the most common cause of ED?
In men over 40, vascular causes linked to diabetes, BP, cholesterol and smoking. In younger men, anxiety and lifestyle factors are most common.
Can stress alone cause erectile dysfunction?
Yes. Stress and performance anxiety commonly cause ED, especially in younger men, and respond well to treatment.
Does masturbation cause erectile dysfunction?
No. Masturbation does not damage erections. Guilt and anxiety about it can contribute to problems.
Can low testosterone cause ED?
It mainly lowers desire and can contribute to weaker erections. It should be confirmed by a morning blood test.
Is ED a sign of diabetes?
It can be. Men with new ED should have blood sugar checked.
How do I find out what is causing my ED?
See a sexologist for a history, examination and targeted tests. WhatsApp +91 70424 24269 to book.
Can smoking cause erectile dysfunction?
Yes. Smoking damages blood vessels and is a major risk factor for ED. Quitting improves erections over time.
Can thyroid problems cause erectile dysfunction?
Yes. Both underactive and overactive thyroid can affect desire and erections. A simple blood test checks thyroid function.
iMedical sources
External links are for further reading and do not replace advice from a qualified health professional.
This guide is general health information, not a diagnosis or personal treatment plan. For emergencies, go to the nearest hospital.

Men's health
Men's health
Sexual health