Conditions

Diabetes Thyroid PCOS Sexual Wellness Weight Management Menopause Hair Loss
Know Your Condition How It Works Results The Science Articles Tools About Disha
Hinglish mein padhiye FAQ Contact Us

Download Disha

Erectile dysfunction in young men: stress, sugar and heart links

Short answer

Erection problems before 40 are more common than most men think, and one bad night is normal. Stress, anxiety and relationship strain are frequent causes in young men. But if problems keep happening, see a doctor: erectile dysfunction can appear years before diabetes or heart disease is found, and simple blood tests can check.

Silhouette of a couple walking hand in hand along a beach at sunset

Losing an erection in your 20s or 30s can feel frightening and lonely. Many men in India search for it privately as “erection problem”.

For the overview of all men’s sexual problems and tests, see our guide to men’s sexual health in India.

How common erectile dysfunction is in young men

Erection problems are not only an older man’s problem. European Association of Urology (EAU) guidelines describe a study of men seeking help for new erection problems in which one in four was under 40, and almost half of those young men had severe symptoms. That describes men who came to one clinic for help, not all men.

Population surveys give lower numbers. A 2017 review reports a multinational study of 27,839 men in which about 8% of men in their 20s and 11% in their 30s had erection problems; some estimates reach 30%, depending on how the question is asked.

In India, we could not find a reliable nationwide figure. One community survey of 894 men in rural Haryana, run by All India Institute of Medical Sciences (AIIMS) New Delhi, found self-reported erection problems in 1.9% of men aged 18–30 and 7.6% of men over 30. The 2017 review warns that under-reporting means rates in young men may be underestimated.

Situational or persistent: what the pattern tells you

The pattern is one of the most useful clues. National Health Service (NHS) says most men occasionally fail to get or keep an erection, usually because of stress, tiredness or too much alcohol, and that this is nothing to worry about.

Morning erections are a clue, not a test. NHS notes that, depending on the cause, you may still get erections when you wake up. The 2017 review says psychological problems tend to start suddenly, with good erections still on waking or when alone; physical causes tend to come on gradually. The EAU adds that most cases have mixed causes.

PatternWhat it may point toWhat to do
A bad night now and then, after stress, tiredness or drinkingCommon and usually temporaryRest, drink less, avoid testing yourself
Problems only with a partner, or only in some situations, but normal erections on waking or when aloneMore likely anxiety, stress or relationship strainRoutine visit; counselling can help
Weaker erections in every situation, including on waking, coming on slowly over monthsA physical cause becomes more likely, such as blood vessel, sugar or hormone problemsSee a doctor for a check-up and blood tests
Erection problems together with low desireSometimes a hormone problem, such as low testosteroneSee a doctor; a morning blood test may help

Stress, anxiety and other psychological causes

In young men, the mind is often a large part of the story. The 2017 review describes a Turkish study in which 85.2% of 526 men under 40 with erection problems had a mainly psychological cause, compared with 40.7% of older men.

  • Performance anxiety. The American Urological Association (AUA) says psychologically driven erection problems are generally driven by anxiety about being able to get an erection. One bad night makes you watch for the next.
  • Stress, depression and anxiety. The EAU says these frequently travel with erection problems, as do short spells of low mood after a crisis.
  • Relationship factors. The EAU links feeling emotionally disconnected from a partner to erection trouble, and finds intimacy protective.
  • Pressure around marriage. The Indian Psychiatric Society describes exaggerated anxiety about the wedding night (suhaag raat).

A psychological cause is not imaginary. It is common and treatable.

Porn and erections: what the evidence says

Many young men worry that porn has “damaged” their erections. The evidence is mixed. A 2019 review of observational studies found “little if no evidence” that porn use causes erection problems, though longer studies are needed. One study it describes linked erection problems to feeling that porn use was out of control, not to how often men watched. If your use feels compulsive, our guide to porn use that feels out of control covers habits, sleep and when to get help.

Dhat and the semen-loss worry

In the Haryana survey, the most common sexual complaint by far was a self-perceived problem with semen, reported by 64.4% of men. The Indian Psychiatric Society describes a common belief that masturbation and nightfall (swapnadosh) before marriage cause loss of potency, and treats it as a myth to be corrected with sex education. The worry itself can feed performance anxiety. Our premature ejaculation guide covers Dhat syndrome in more detail.

Why erectile dysfunction (ED) can be an early warning for diabetes and heart disease

Erections depend on healthy blood vessels, and the AUA says erection problems and heart disease share causes. So guidelines treat erectile dysfunction in young men as a reason to check the heart and blood sugar, not only to treat the erection.

  • A marker, not a verdict. The AUA advises that men be told erection problems are a risk marker for heart disease and other conditions. Symptoms may come up to five years before a heart event, and in younger men they predict a marked rise in future heart risk.
  • European view. The EAU says erection problems should be considered a precursor of heart disease, and that younger men with them, especially under 50, had a higher estimated heart risk.
  • An Indian study. In 175 men having a coronary angiogram in Lucknow, 70% had erection problems, and in 84% of them the erection trouble began before the heart symptoms, by about two years on average. The study did not focus on young men and cannot prove cause.
  • Sugar. The AUA says erection problems appear at a younger age in men with diabetes, and can sometimes be the first sign of undiagnosed diabetes. Our diabetes guide explains symptoms and tests.

None of this means you have heart disease. It means a simple check-up can find high sugar, blood pressure or cholesterol years early.

Smoking, alcohol, weight, sleep and activity

HabitWhat the evidence saysStrength
Inactivity and extra weightThe EAU finds regular exercise and a lower body mass index (BMI) can improve erections, and the AUA finds diet and exercise programmes may have small benefitsTrials: the best evidence on this list
SmokingListed by the EAU as a blood-vessel cause of erection problems; smoking was linked to sexual problems in the Haryana surveyConsistent association
AlcoholThe Indian Psychiatric Society notes that heavy drinking can raise prolactin and lower testosteroneAssociation; the EAU lists heavy drinking as a cause
Poor sleepThe EAU lists sleep disorders, including obstructive sleep apnoea (loud snoring with pauses in breathing), among associated conditionsAssociation

On alcohol, guidelines differ. NHS advises not drinking more than 14 units a week. Indian Council of Medical Research–National Institute of Nutrition (ICMR-NIN), India’s national nutrition body, goes further and advises avoiding alcohol. For Indian readers, the national advice applies: if you drink, less is better.

For weight, our BMI calculator uses Indian cut-offs, which flag risk at a lower number than World Health Organization (WHO)’s international ones.

Medicines, gym steroids and recreational drugs

Some medicines and drugs can affect erections. The EAU lists:

  • some blood pressure tablets, antidepressants and antipsychotics;
  • some tablets used for hair loss or an enlarged prostate;
  • recreational drugs such as cannabis, cocaine and heroin; heavy alcohol use; and anabolic steroids, which some men take for bodybuilding.

In the Haryana survey, cannabis use was linked to sexual health problems. If a prescribed medicine might be the cause, do not stop it yourself; NHS notes that your doctor may be able to switch you to another one.

Which tests a doctor may do

Diagnosis starts with conversation and a short examination. Expect questions about morning erections, desire, stress, your relationship, alcohol, smoking and every medicine or supplement you take, then a blood pressure check and a genital examination.

  • Fasting glucose or glycated haemoglobin (HbA1c) for diabetes, and a lipid profile for cholesterol. The EAU advises these if not checked in the past 12 months.
  • Morning testosterone. The EAU and AUA both advise an early-morning testosterone level in men with erection problems; it matters most if desire is also low. The EAU specifies a fasting sample, and a borderline result may need further calculation to confirm it.
  • Other tests, such as thyroid, prolactin or a penile ultrasound, only when your history points to them.

A normal result is good news, not proof that “nothing is wrong”: stress and anxiety are real causes too.

Treatment: what a doctor may offer

NHS says treatment can usually help erection problems. A doctor matches it to the cause:

  • Treating the cause, such as diabetes, blood pressure, cholesterol, a hormone problem or a medicine side effect.
  • Counselling or sex therapy, alone or as a couple. For mainly psychological problems, the AUA advises offering psychotherapy instead of, or alongside, medicine.
  • Prescription tablets that increase blood flow to the penis. Our guide to erection and timing tablets explains what each type does and who should not take it.
  • Other options if tablets do not suit you: vacuum devices, injections and, in severe cases, surgery.
  • Testosterone, which the Indian Psychiatric Society reserves for men with documented deficiency.

Two dangers to know about

“Sex power” and “josh” products. The US Food and Drug Administration (FDA) warns that many male enhancement, energy and stamina pills are likely to contain dangerous hidden ingredients, are often sold as natural, and can lead to hospitalisation. Its list covers only a small fraction of them.

Erection tablets with nitrates. The EAU calls combining erection tablets with any nitrate, including nitrate heart medicines and recreational “poppers”, an absolute contraindication, because blood pressure can fall unpredictably. Hidden erection drugs in “herbal” products carry the same risk. Get treatment from a registered doctor, not a website or roadside shop.

When to see a doctor

See the full list of warning signs in our sexual health guide.

Emergency: get help now

  • An erection lasting more than 3 to 4 hours, or a painful erection lasting more than 1 hour if you have sickle cell disease. NHS says this needs hospital treatment as soon as possible to avoid permanent damage. Do not use ice, and do not drive yourself.
  • Chest pain that feels tight or squeezing, pain spreading to the arm, neck or jaw, or severe breathlessness, during or after sex or at any other time: call 112.
  • Sudden, severe pain in a testicle. NHS says this needs hospital treatment straight away.
  • Thoughts of harming yourself: call 112 or Tele Mental Health Assistance and Networking Across States (Tele-MANAS), the Government of India’s mental-health helpline (14416).

Prompt review: within days to a few weeks

  • Erection problems with chest discomfort or breathlessness on exertion, even if these settle.
  • Erection problems with thirst, peeing often or unexplained weight loss, which can be signs of diabetes.
  • Erection problems that began after a new medicine or supplement.
  • A new curve, a lump in the penis, or painful erections.
  • Low mood or anxiety on most days.

Routine review

Book an appointment if erection problems keep happening, even if you are young and fit, and especially if you smoke, are overweight, or diabetes or heart disease runs in your family. A general physician is a good first stop.

How Disha can help

Disha is an AI health coach that chats and calls in Hindi, English and Hinglish. It does not diagnose, prescribe or replace a doctor, but it can help with movement, sleep, alcohol, smoking and stress. The 15–20 minute onboarding call is by Disha, the AI; no human doctor is on the call. Read how Disha coaching works.

This is not medical advice. This page is general education for adults (18+), not a diagnosis or treatment plan. Do not start, stop or change any medicine because of it. If you are trying for a baby, tell your doctor before starting any treatment. In an emergency, call 112; Disha does not provide emergency care.

Frequently asked questions

Is it normal to have erection problems in your 20s?

An occasional bad night is normal at any age. NHS says it is usually caused by stress, tiredness or too much alcohol. Ongoing problems are less common in young men but not rare: in one clinic study described by European guidelines, one in four men seeking help for new erection problems was under 40. If it keeps happening, see a doctor.

If I get morning erections, is my problem psychological?

It makes a mainly psychological cause more likely, but it is not proof. A 2017 review notes that men with psychological causes usually still have good erections on waking or when alone, and problems often start suddenly. European guidelines say most cases have mixed causes, so a doctor may still check blood pressure, sugar, cholesterol and testosterone.

Can erection problems be an early sign of heart disease?

Yes. American urology guidelines advise that men be told erection problems are a risk marker for heart disease, and that symptoms may come up to five years before a heart event. The link matters most in younger men. This does not mean you have heart disease, but a simple check-up of blood pressure, sugar and cholesterol can find risks early.

Does watching porn cause erectile dysfunction?

The evidence is mixed. A 2019 review of observational studies found little evidence that porn use itself causes erection problems, though better long-term studies are needed. One study found a link with feeling that porn use was out of control, not with how often men watched. If your use feels compulsive, it is worth talking to a doctor or counsellor.

Does masturbation or nightfall cause erection problems?

No. The Indian Psychiatric Society treats the belief that masturbation and nightfall (swapnadosh) ruin potency as a myth to be corrected with sex education. Worry about semen loss is very common in India and can itself feed anxiety about sex. A doctor can check for infection, anxiety or low mood and explain how the body actually works.

Are “sex power” or herbal josh capsules safe to try?

They are risky. The US FDA warns that many male enhancement and stamina pills are likely to contain dangerous hidden ingredients, often sold as natural. Hidden erection drugs can lower blood pressure dangerously if you also take nitrate heart medicines or use poppers. Show any product to your doctor, and get treatment from a registered doctor instead.

Which tests should a young man with erection problems ask about?

European guidelines advise fasting glucose or HbA1c and a lipid profile if not checked in the past year, plus an early-morning testosterone level. A doctor will also check your blood pressure and examine you. Thyroid, prolactin or scan tests are added only when your symptoms point to them. Your doctor decides which tests you need.

Sources

  1. European Association of Urology. EAU Guidelines on Sexual and Reproductive Health: Management of Erectile Dysfunction and Epidemiology and Prevalence. Current edition, accessed September 2026. Supports: one in four men seeking help for new erection problems under 40, almost half with severe symptoms; mixed causes; morning erections in the history; mental-health and relationship factors; erection problems as a precursor of heart disease, with higher risk in men under 50; risk factors including smoking, obesity, inactivity and sleep disorders; medicines and recreational drugs; glucose or HbA1c, lipids and early-morning testosterone; lifestyle evidence (level 1b); nitrates and poppers as an absolute contraindication.
  2. Burnett AL, Nehra A, Breau RH, et al. Erectile Dysfunction: AUA Guideline. American Urological Association, 2018. Supports: counselling men that erection problems are a risk marker for heart disease (Clinical Principle); symptoms up to five years before a heart event; greater predictive value in younger men; earlier onset in diabetes and undiagnosed diabetes; morning testosterone; psychologically driven problems and psychotherapy; small benefits of lifestyle programmes.
  3. Nguyen HMT, Gabrielson AT, Hellstrom WJG. Erectile Dysfunction in Young Men: A Review of the Prevalence and Risk Factors. Sexual Medicine Reviews, 2017. Supports: prevalence up to 30%; 8% in men in their 20s and 11% in their 30s in a multinational study; 85.2% mainly psychological causes in Turkish men under 40; sudden onset with good spontaneous erections in psychological causes, gradual onset in physical causes; situational causes.
  4. Singh AK, Kant S, Abdulkader RS, Lohiya A, Silan V, Nongkynrih B, Misra P, Rai SK. Prevalence and correlates of sexual health disorders among adult men in a rural area of North India: an observational study. Journal of Family Medicine and Primary Care, 2018. Supports: 894 men in Ballabgarh, Haryana; erection problems in 1.9% aged 18–30 and 7.6% over 30; self-perceived defect in semen in 64.4%; smoking and cannabis linked to sexual health disorders.
  5. Kumar J, Bhatia T, Kapoor A, et al. Erectile dysfunction precedes and is associated with severity of coronary artery disease among Asian Indians. Journal of Sexual Medicine, 2013. Supports: erection problems in 70% of 175 men having coronary angiography; onset before heart symptoms by a mean of 24.6 months in 84%.
  6. Avasthi A, Grover S, Sathyanarayana Rao TS. Clinical Practice Guidelines for Management of Sexual Dysfunction. Indian Journal of Psychiatry (Indian Psychiatric Society), 2017. Supports: beliefs about masturbation and nightfall and loss of potency; wedding-night anxiety; sex education for Dhat worries; heavy alcohol use raising prolactin and lowering testosterone; testosterone only in documented deficiency.
  7. Dwulit AD, Rzymski P. The Potential Associations of Pornography Use with Sexual Dysfunctions: An Integrative Literature Review of Observational Studies. Journal of Clinical Medicine, 2019. Supports: “little if no evidence” that porn use induces erection problems; need for longitudinal studies; the link with self-reported problematic use rather than use itself.
  8. NHS. Erectile dysfunction (impotence), Priapism and Testicle pain. Pages last reviewed 2023–2025. Supports: occasional problems from stress, tiredness or alcohol; erections on waking depending on the cause; the 14-unit alcohol advice; medicine switching; treatment usually helps; the 3–4 hour and 1 hour sickle cell thresholds, no ice, no driving; sudden severe testicle pain needing hospital treatment.
  9. US Food and Drug Administration. Sexual Enhancement and Energy Product Notifications. Current list, accessed September 2026. Supports: enhancement, energy and stamina pills likely to contain dangerous hidden ingredients, sometimes sold as natural; risk of hospitalisation; the list covers only a small fraction of such products.
  10. ICMR–National Institute of Nutrition. Dietary Guidelines for Indians. 2024. Supports: the advice to avoid alcoholic beverages.

Build heart-healthy habits, in private

Disha helps you turn heart-healthy changes into steady daily habits, alongside your doctor’s care.

Disha AI Health Coach