Overview
An erection needs healthy blood vessels, nerves, hormones, and a relaxed state of mind. A problem with any of these can cause ED. Occasional trouble is normal and not a concern.
Because the blood vessels in the penis are small, ED can show up before heart disease causes other symptoms. Diabetes, high blood pressure, high cholesterol, smoking, and obesity raise the risk. Many medicines, alcohol, and drugs can cause ED, as can anxiety, depression, and relationship stress.
When to get medical care
Causes
Common causes include heart and blood vessel disease, diabetes, high blood pressure, high cholesterol, obesity, smoking, alcohol, and aging. Other causes include medicines (some blood pressure medicines, antidepressants, and prostate medicines), low testosterone, nerve damage, prostate surgery or radiation, Peyronie's disease, stress, anxiety, depression, and relationship problems.
OwieClear has pages on 4 conditions that can cause trouble getting or keeping an erection. Each shows how soon to get care.
Common causes
- Erectile dysfunction (ED)See a doctor if it doesn't get better
Trouble getting or keeping an erection firm enough for sex.
Less likely causes
- Peyronie's disease (curved penis)See a doctor if it doesn't get better
Scar tissue inside the penis that causes a curve, lump, or pain with erections.
- Pituitary tumorSee a doctor if it doesn't get better
A growth in the pituitary gland at the base of the brain.
- Priapism (erection that won't go away)May need emergency care
An erection lasting more than 4 hours that isn't from sexual arousal.
What you can do at home
- Exercise regularly, which improves blood flow.
- Lose weight if you're overweight.
- Quit smoking and limit alcohol.
- Manage stress and get enough sleep.
- Talk with your partner, and consider counseling.
Medicines
Prescription pills like sildenafil (Viagra) and tadalafil (Cialis) help many men. Don't take them with nitrate heart medicines, and don't buy them from unreliable sources. Other options include injections, vacuum devices, and implants. Don't stop a prescribed medicine on your own.
At the doctor
The provider will look for the cause and check your heart health.
Questions you may be asked
- How long you've had ED and whether it's all the time
- Morning or night erections
- Sex drive
- Your medicines, alcohol, and smoking
- Heart disease, diabetes, or surgery
- Stress, mood, and relationship
The exam
A physical exam, including blood pressure and genitals.
Tests
- Blood sugar and cholesterol tests
- Testosterone level
- Thyroid tests
Prevention
Healthy habits protect erections and your heart.
- Don't smoke
- Stay active
- Keep a healthy weight
- Control blood pressure, cholesterol, and diabetes
Check your symptoms
Most symptoms have more than one possible cause. The symptom checker looks at all of your symptoms together, plus your age, and shows how soon to get care.
Sources
Last updated 2026-11-13.