Erectile Dysfunction (ED): Causes, Symptoms, Diet and Treatment That Works
Published 5 Jan 2024 · Updated 2 Oct 2026 · 10 min read
Short answer
Erectile dysfunction (ED) is the repeated inability to get or keep an erection firm enough for sex, lasting about three months or more. It is a common medical condition, not a permanent disability. Once the cause is found, most men improve with lifestyle changes, treatment of conditions like diabetes or low testosterone, counselling and, when needed, prescription medicines.
What is erectile dysfunction (ED)?
Erectile dysfunction means you repeatedly cannot get an erection, or cannot keep it firm enough, for satisfying sex. An occasional failed erection is not ED. Tiredness, too much alcohol or a stressful week can all cause one, and almost every man has this experience at some point.
Doctors diagnose ED when the problem has been present for about three months or longer and happens in a good share of attempts, not just once or twice. Words like "impotence" or "namardi" are medically inaccurate and add shame for no reason. ED is an ordinary, treatable medical condition.
How does a normal erection work?
An erection is a team effort between the brain, nerves, hormones and blood vessels, and a problem at any step can show up as ED.
- Arousal signal from the brain
- Nerves activate
- Nitric oxide is released
- Blood vessels widen
- Penis fills with blood
- Erection
- Arousal: when you are sexually aroused, the brain sends signals down the nerves.
- Chemical release: the nerves release nitric oxide, which relaxes the smooth muscle in the penis.
- Blood flow: the arteries widen and blood rushes into the erectile tissue (corpora cavernosa).
- Trapping the blood: the veins that drain the penis are compressed, so blood stays in and the erection holds.
What are the symptoms of ED?
The main symptom is trouble getting or keeping an erection firm enough for intercourse. If any of the following keep happening for several weeks, it is worth paying attention:
- No erection at the start of sex.
- An erection that starts but fades midway through intercourse.
- An erection that is too soft for penetration.
- Morning erections becoming rare or stopping altogether.
- Falling interest in sex (low desire).
Low desire together with weak erections can point to low testosterone. Our guide to low testosterone symptoms, treatment and diet explains how that is checked.
What causes erectile dysfunction?
ED has physical causes, psychological causes, or a mix of both. Physical causes are more common after 40; psychological causes are more common in younger men. In real life the two usually overlap, because a physical problem creates worry, and worry makes the physical problem worse.
| Type of cause | Main reasons | Who is more affected? |
|---|---|---|
| Physical | Diabetes, high blood pressure, heart disease, low testosterone, obesity, smoking, certain medicines | Men over 40, though it can occur earlier |
| Psychological | Stress, performance anxiety, depression, relationship problems | Younger men, roughly 18 to 35 years |
Physical causes
- Heart and blood vessel disease: an erection depends on good blood flow. Narrowed arteries often affect the penis first, which is why ED can be an early warning sign of heart disease.
- Diabetes: high blood sugar damages both nerves and blood vessels, and men with diabetes are several times more likely to have ED.
- Hormonal problems: low testosterone and thyroid disorders can reduce desire and erection quality.
- Obesity: extra weight affects circulation and hormone balance.
- Smoking and alcohol: tobacco narrows blood vessels, and heavy alcohol use dulls nerve signals.
- Medicines: some blood pressure tablets, antidepressants and other drugs can contribute. Never stop a medicine on your own; talk to your doctor.
Psychological causes
- Performance anxiety: the fear of "Will I perform well?" releases adrenaline, which narrows blood vessels and can switch off an erection. See our detailed guide on performance anxiety and ED.
- Work stress and depression: chronic stress raises cortisol and disturbs sleep, mood and desire. Read more in how family and work stress cause ED and PE.
- Relationship problems: unresolved conflict or lack of trust with a partner.
Why does ED happen to young, healthy men?
ED is not only a problem of older men. In a widely cited study, about 1 in 4 men newly seeking help for ED was under 40 (Capogrosso et al., Journal of Sexual Medicine, 2013).
In young men the cause is more often lifestyle and mental strain than blocked arteries. Common triggers include late nights and poor sleep, junk food, smoking or vaping, heavy drinking, performance pressure, guilt about masturbation and heavy porn use. Over-training and some gym supplements can also play a role; see gym overtraining and ED. In men over 40, diabetes, high cholesterol, prostate problems and low testosterone become the usual suspects.
Many men also have erection trouble together with early ejaculation. That combination is common and treatable, and we explain it in ED and PE together, with treatment by age.
Can porn cause erectile dysfunction?
Some men report erection trouble with a real partner after heavy porn use, often called porn-induced ED (PIED), but the evidence is still debated and it is not an official diagnosis.
The proposed explanation is that very frequent, highly intense screen stimulation makes ordinary partner intimacy feel less arousing. Anxiety and guilt around porn probably add to the problem. A break of about 60 to 90 days from porn helps many men, but nobody can promise that the brain "fully resets". If the problem continues after a break, see a doctor, because physical causes need to be ruled out.
Which tests are done to diagnose ED?
Diagnosis starts with a detailed conversation and a physical examination, followed by a few simple blood tests to look for the underlying cause. A doctor may advise:
- Serum testosterone (total, sometimes free): an early-morning blood sample to check for low testosterone.
- Fasting blood sugar and HbA1c: to check for diabetes.
- Lipid profile: cholesterol and heart-health risk.
- Thyroid profile (T3, T4, TSH): thyroid imbalance can affect sexual function.
- Penile Doppler ultrasound: measures blood flow speed and direction in the penis. It is used only in selected cases, such as when the cause is unclear or surgery is being considered.
How is erectile dysfunction treated?
Treatment depends on the cause, and the first step is always to treat the underlying problem and fix lifestyle factors. Medicines are then added where needed.
PDE5 inhibitors (tablets)
Sildenafil, tadalafil and vardenafil are FDA-approved medicines that improve blood flow to the penis when you are sexually aroused. They help roughly two-thirds to three-quarters of men with ED. They are not habit-forming and they do not work without arousal.
| Medicine | Usual onset | How long it works |
|---|---|---|
| Sildenafil | About 30 to 60 minutes | Around 4 to 6 hours |
| Tadalafil | About 30 minutes to 2 hours | Up to about 36 hours; a low daily dose is also used |
| Vardenafil | About 30 to 60 minutes | Around 4 to 5 hours |
Testosterone therapy (only if truly low)
Testosterone replacement therapy (TRT) is FDA-approved for men with a confirmed diagnosis of low testosterone (hypogonadism) and symptoms, not for every man with ED. TRT suppresses sperm production, so men who want to have children are usually offered other options, such as hCG, instead. It needs regular monitoring by a doctor.
Other options
- Counselling or sex therapy: very effective when anxiety, stress or relationship issues are involved, and it works well together with tablets.
- Treating the root cause: better control of diabetes, blood pressure and cholesterol often improves erections.
- Second-line treatments: vacuum erection devices, injections into the penis and, rarely, penile implants, for men who cannot use or do not respond to tablets.
Do Ayurvedic herbs like Shilajit and Ashwagandha help ED?
The evidence for herbal remedies in ED is limited, quality varies a lot, and none of them replaces a proper diagnosis. In Ayurveda ED is called Klaibya, and herbs such as Shilajit, Ashwagandha, Safed Musli and Gokshura are traditionally used.
- Ashwagandha: a few small trials suggest modest benefits for stress and testosterone. That is as far as the evidence goes.
- Shilajit, Safed Musli, Gokshura: studies are few and small, and results are mixed.
- Quality risk: some products have been found to contain heavy metals, or hidden prescription drugs.
If you still want to try a herb, tell your doctor first and choose a reputable brand. Our post on Shilajit for ED and PE compares it honestly with medical treatment.
Which lifestyle changes, diet and exercise help ED?
What is good for your heart is good for your erections, so a healthy diet, regular exercise, enough sleep and no smoking all help. These changes work best alongside medical treatment.
Foods that support blood flow
- Pomegranate: rich in antioxidants that support blood vessel health.
- Watermelon: contains L-citrulline, which may modestly support blood flow. It is not a "natural Viagra".
- Garlic and onion: part of a heart-healthy diet.
- Dark chocolate (in small amounts): contains flavonoids that are good for blood vessels.
- Nuts such as walnuts and almonds: good sources of healthy fats, zinc and L-arginine.
No single food treats ED. A Mediterranean-style pattern of vegetables, fruit, whole grains, nuts, fish and less processed food has the best evidence.
Exercise
- Aerobic exercise: brisk walking, running or cycling for about 30 minutes most days improves circulation and weight, and is linked with better erections.
- Pelvic floor (Kegel) exercises: may help some men, especially when practised regularly for 3 to 6 months. Learn the correct technique first.
- Strength training: helpful in moderation. Excessive training with too little rest can backfire.
When should you see a doctor for ED?
See a doctor if erection problems last more than about three weeks to a month, keep coming back, or come with low desire, chest pain, breathlessness, diabetes or a drop in energy.
Getting checked early matters, because ED can be the first sign of diabetes or heart disease. Improvement usually takes weeks, not days: ED driven by stress or lifestyle often starts to improve within one to two months, while ED with a physical cause may take a few months of steady treatment. If you are worried about nightfall or low sperm count along with ED, read about nightfall and sperm count and motility too.
Myth vs fact
Myth Masturbation causes ED.
Fact Masturbation itself does not cause ED. Guilt, worry and heavy porn use can add to performance anxiety, which can affect erections.
Myth ED is a natural part of ageing and cannot be treated.
Fact The risk rises with age, but ED is not something you simply have to accept. It can be treated at any age.
Myth Some herbs or capsules cure ED in 7 days.
Fact No such miracle exists. Proper diagnosis and treatment usually take several weeks to a few months, and many "instant" products contain hidden drugs.
Myth Taking ED tablets makes you dependent on them.
Fact PDE5 inhibitors are not habit-forming. Many men reduce or stop them once the underlying cause, such as stress or poor lifestyle, is addressed.
Not sure what's causing it?
Take the private 2-minute health check. A registered doctor reviews it, finds the likely cause and builds a plan with you.
Take the 2-minute health check →Frequently asked questions
Can erectile dysfunction be cured permanently?
Often, yes. When ED is caused by stress, lifestyle or a treatable hormone problem, many men recover fully or improve a lot once that cause is dealt with. When the cause is severe nerve damage or advanced heart disease, ED usually needs long-term management rather than a one-time cure.
How long does ED treatment take to work?
It depends on the cause. ED linked to stress or lifestyle often begins to improve in about 4 to 8 weeks. ED with a physical cause may take 3 to 6 months of steady treatment. Prescription tablets can work within an hour, but they work best alongside treatment of the cause.
Can I take Tadalafil or Sildenafil without telling my doctor?
No. These medicines can lower blood pressure and are dangerous with nitrate drugs and in some heart conditions. A doctor needs to check your health and your other medicines before prescribing them.
Do Kegel exercises help with ED?
They may help some men. Studies suggest that regular pelvic floor exercises over 3 to 6 months can improve erection hardness in some men, especially younger men. They work best when learned properly and combined with other lifestyle changes.
Is ED common in men under 40?
Yes, more than most people think. In a study published in the Journal of Sexual Medicine in 2013, about 1 in 4 men newly seeking help for ED was under 40. In younger men the cause is often stress, anxiety, sleep and lifestyle, which respond well to treatment.
Sources
- Erectile Dysfunction (ED) Guideline — American Urological Association (AUA)
- Erectile Dysfunction — National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
- Erectile dysfunction (impotence) — NHS
- Guidelines on Sexual and Reproductive Health — European Association of Urology (EAU)
- One patient out of four with newly diagnosed erectile dysfunction is a young man — Capogrosso et al., Journal of Sexual Medicine, 2013
- Tainted Sexual Enhancement Products — U.S. Food and Drug Administration (FDA)
Medical disclaimer. This article is for general information only and is not a substitute for a consultation with a qualified doctor. Do not start, stop or combine prescription medicines without a doctor's advice — some ED medicines can be dangerous with heart or blood-pressure medicines, especially nitrates. How we review our content.