Condition guide
Erectile dysfunction (ED)
Erectile dysfunction — trouble getting or keeping an erection firm enough for sex — is common, especially with age, and very treatable. It can also be an early sign of heart disease, diabetes, or high blood pressure, since it often comes from reduced blood flow, so it's worth mentioning to a doctor. Pills that boost blood flow help most men.
Medicines covered on KnowYourPills
This isn't a complete list of treatments — your doctor may recommend others, and the right choice depends on you.
First-choice pills
Sildenafil
Urinary and men's healthAlso known as Viagra
Taken about 30 to 60 minutes before sex; lasts several hours.
Tadalafil
Urinary and men's healthAlso known as Cialis
Lasts up to about 36 hours, or taken daily at a low dose.
Other pills that work the same way
Vardenafil
Urinary and men's healthAlso known as Levitra, Staxyn
Generic Levitra — taken about an hour before sex. Also comes as a tablet that melts on your tongue.
Avanafil
Urinary and men's healthAlso known as Stendra
Can start working as soon as about 15 minutes before sex.
Other treatments, such as injections, vacuum devices, and implants, aren't covered here yet.
Besides medicine
- Regular exercise, a healthy weight, and quitting smoking — all improve blood flow
- Limiting alcohol
- Checking blood pressure, blood sugar, and cholesterol
- Talking about stress, anxiety, or relationship concerns — they play a real role
When to get help
- An erection lasting more than 4 hours — this is an emergency; get help now
- Chest pain during sex — stop, call 911, and tell them about any ED medicine you took
- Never take ED pills with nitroglycerin or other nitrates — ask your doctor if you're unsure
Sources
Last updated November 21, 2026. Not yet reviewed by a pharmacist or physician — how our guides are made.