erectile that comes and goes
Informed by recognized medical guidance
Overview
Erectile dysfunction that comes and goes is a pattern where a man sometimes has trouble getting or keeping an erection strong enough for sex, but at other times has no problem. It is not constant. The trouble may happen with one partner or during one period of life and then improve. It can have physical causes, emotional causes, or both.
Key facts
- Intermittent erectile dysfunction is common and often temporary.
- It can be caused by stress, relationship issues, alcohol, or underlying health problems.
- Because erections depend on blood flow, nerves, and hormones, many body systems are involved.
- It may be an early warning sign for heart or circulation problems, so it is worth discussing with a doctor.
Yes. Most men will experience erectile problems at some point. When they come and go, it is especially common and often linked to stress, tiredness, or relationship worries.
It mainly affects men, especially after age 40, but it can happen at any age. Younger men often experience it due to anxiety or lifestyle factors, while older men more often have physical causes.
Symptoms
- An erection that lasts for more than 4 hours and is painful
- Sudden, severe pain in the testicles or groin
- Sudden loss of feeling, or trouble moving your legs or passing urine after an injury
- ⚠Erections are accompanied by chest pain, palpitations, or shortness of breath
- ⚠You have diabetes and suddenly notice much more frequent or severe erection problems
- ⚠You have had surgery or a procedure in the pelvic area and develop sudden erectile problems or swelling
Common symptoms
- Able to get an erection on some days but not others
- Erection may be strong in the morning but weak or absent in other situations
- Erection may be lost during sex before finishing
- General interest in sex may remain normal
- Sometimes the problem appears with one partner but not another
Symptoms in children
- This condition is not seen in children. If a child or teenager has genital or reproductive health concerns, they should be checked by a doctor.
Symptoms in older adults
- Older adults may notice the pattern becomes more frequent because age-related changes in blood flow and hormone levels are common.
- Intermittent erection problems may also be an early sign of heart, blood vessel, or diabetes related issues in this age group.
Causes
Main causes
- Stress, anxiety, or performance pressure
- Relationship conflict or lack of emotional connection
- Fatigue or lack of sleep
- Alcohol or recreational drug use
- Smoking, which damages blood vessels
- High blood pressure, high cholesterol, or heart disease
- Diabetes
- Hormone problems, especially low testosterone
- Side effects of some medicines for blood pressure, depression, or other conditions
Risk factors
- Age over 40
- Being overweight or inactive
- Smoking
- Heavy alcohol use
- Poorly controlled blood pressure or blood sugar
- Living with long-term stress or anxiety
- Depression
- Kidney or bladder surgery, or prostate surgery
When to see a doctor
See a doctor urgently if:
- You have sudden loss of erection along with back or belly pain, an injury to the pelvic area, or trouble urinating.
- An erection lasts longer than 4 hours and hurts.
- You have chest pain or fainting with the erection problem.
Book a routine appointment if:
- The problem has lasted for several weeks or is getting worse.
- It happens more than half the time you try to have sex.
- It is causing stress or affecting your relationship.
- You have diabetes, heart disease, or high blood pressure and notice new changes.
- You want to check for underlying health problems.
- You are worried that a medicine you take may be causing it.
Diagnosis
A doctor will ask questions about your medical history, lifestyle, sexual health, and any medicines you take. They may also do a physical examination. This is a normal part of health care and is kept private.
Tests that may be done
- Blood tests to check hormone levels, blood sugar, cholesterol, and kidney or thyroid function
- Urine test to check for diabetes or other conditions
- An ultrasound of the blood vessels in the penis if blood flow problems are suspected
- A test to check for erections during sleep, which can help tell whether the cause is physical or mainly mental
What to expect at your appointment
The appointment is private and confidential. It helps to be open and honest. The doctor will want to understand your symptoms, how long they last, and what makes them better or worse. This is the best way to find an effective plan.
Treatment
Treatment for erectile dysfunction that comes and goes depends on the cause. Many men improve with lifestyle changes and emotional support. Others need treatments that improve blood flow or balance hormones. A doctor will help identify the safest and most appropriate approach for your individual situation.
Self-care at home
- Talk openly with your partner about your feelings and worries.
- Reduce stress with deep breathing, mindfulness, or regular relaxation time.
- Drink less alcohol and avoid recreational drugs.
- Get enough sleep.
- Exercise regularly to improve blood flow and mood.
- Quit smoking — your doctor can offer support and resources.
Medical treatments
If lifestyle changes are not enough, several treatment approaches can help. These include oral medicines that increase blood flow to the penis, injections that are used very rarely under medical supervision, vacuum devices, and hormonal therapy if there is a deficiency. Some treatments for depression or stress may also be adjusted, but only by a doctor. Never buy such treatments online without a prescription.
When is surgery considered?
Surgery is rarely used for erectile dysfunction that comes and goes. It may be considered only when all other treatments have not worked, the cause is a blood vessel injury, or the person has had major pelvic surgery. A specialist should explain the risks and benefits.
Living with this condition
Living with unpredictable erectile function can be frustrating. Try to approach intimacy without pressure. Not every sexual encounter needs to include a rigid erection. Focus on touch, affection, and mutual pleasure. Remember that your worth and your relationship are not defined by your erections.
Lifestyle tips
- Try to keep a regular sleep schedule.
- Manage stress through exercise, hobbies, or talking to a friend.
- Limit alcohol and avoid smoking.
- Stay connected with your partner — talking usually helps.
- If a medicine seems to affect you, talk to a doctor instead of stopping it on your own.
Diet and exercise
A heart-healthy diet supports the blood vessels and can help erectile function. This means plenty of vegetables, fruits, whole grains, lean protein, and healthy fats. Regular physical activity, such as brisk walking, swimming, or cycling, improves circulation, energy, and confidence.
Mental health and emotional wellbeing
Erectile problems can trigger shame, anxiety, or depression. These feelings are understandable, but they can also make the problem worse. It is important to remember that erectile dysfunction is a medical condition, not a personal failure. Speaking with a counsellor or therapist can help, especially if anxiety or relationship issues are part of the picture.
Prevention
Not always, but the risk can be reduced with a healthy lifestyle. Keeping your heart and blood vessels healthy also protects erectile function. Managing stress, staying active, eating well, avoiding smoking, and limiting alcohol all help.
Screening programmes
During routine checkups, ask your doctor to check your blood pressure, blood sugar, and cholesterol. These simple checks can identify problems that may affect erections.
Complications
If left untreated
- Stress and anxiety may increase, creating a cycle that makes the problem worse.
- Relationship difficulties may develop from poor communication or avoidance.
- Potentially hidden health problems like high blood pressure, diabetes, or heart disease may remain unnoticed.
- Untreated depression or anxiety can continue to affect sexual health and overall wellbeing.
Long-term outlook
The outlook is often very good. Intermittent erectile dysfunction frequently improves when the cause is addressed. Many men respond well to simple lifestyle changes or talking through worries. Even when there is a physical cause, modern treatments are effective and safe for most men. With the right support, most men can have a satisfying sex life again.
Find support
External links open third-party websites. Ruqelo Health is not responsible for external content. Listing an organisation does not imply endorsement.
Always verify with your doctor
Health guidelines vary by country and region. The information in this article is based on international clinical guidelines but may not reflect the specific guidelines, medications, or practices in your country. Always discuss your health concerns with your own doctor or healthcare provider, and refer to your local national health guidelines where available.
Important notice This information is for educational purposes only. It does not replace professional medical advice, diagnosis, or treatment. Always consult a qualified healthcare provider about your specific situation. If you are experiencing a medical emergency, call your local emergency services immediately.
Related conditions
Sources and guidance
This article is educational and is prepared with reference to recognized health information and clinical guidance sources where available. Specific source links may vary by topic.
Last updated: July 31, 2026
Educational note: This information is for education only and is not a diagnosis.
Use it to support, not replace, advice from a licensed clinician.
If symptoms are severe, worsening, or urgent, call your local emergency number or seek emergency care.