Medical note: This is general education, not personal medical advice. ED can be related to cardiovascular disease, diabetes, medication effects, mental health, neurologic disease and other conditions. Persistent or new ED deserves appropriate medical evaluation.

In This Article

  1. When sex is reasonable again
  2. Where ED pills fit
  3. The nitrate rule after a cardiac event
  4. Other heart medicines and ED
  5. Warning signs during or after sex
  6. The part that isn't about the heart
  7. Your next step
  8. FAQs
Key Takeaways

After a heart attack or a stent, most men eventually get around to the same two questions. Is sex safe again, and is it safe to take an ED pill to make it happen? Both questions are reasonable. ED and heart disease share the same blood vessels and risk factors, so a lot of men who have a cardiac event were already having erection problems, or start having them afterward from stress, new medicines or fear.

The answers are more specific than "ask your doctor," though that step is required. Cardiology groups have published timelines, and the FDA labels for ED drugs spell out exactly which heart patients they weren't studied in. This guide puts those rules in one place so you know what to ask.

When sex is reasonable again

The main reference is the American Heart Association's 2012 scientific statement on sexual activity and cardiovascular disease, summarized by the American Academy of Family Physicians. Its timing recommendations depend on what happened and how you're doing now:

SituationAHA statement: sex is reasonable…
Uncomplicated heart attack (MI)At least one week afterward, if you have no cardiac symptoms during mild to moderate physical activity
Stent (PCI), uncomplicatedSeveral days afterward, once the catheter access site has healed without complications
Bypass surgery (CABG)Six to eight weeks afterward, once the breastbone incision is well healed
Unstable, decompensated or symptomatic diseaseNot yet. Defer sex until the condition is stabilized and well managed

Those are minimums for people who are recovering well, not targets. "Uncomplicated" carries a lot of weight in that table. If your heart attack caused heart failure, a dangerous rhythm, or a large area of damage, or you still get chest pain or breathlessness with ordinary effort, the timeline is longer and set by your cardiology team.

For men whose risk is unclear, the statement suggests exercise stress testing. If you can reach roughly 3 to 5 METs (about the effort of brisk walking or climbing a couple of flights of stairs) without chest pain, excessive breathlessness, ECG changes or rhythm problems, sexual activity is considered reasonable. Cardiac rehabilitation and regular exercise are also recommended to lower risk.

Perspective

The AHA statement notes that sexual activity causes less than 1% of all heart attacks. The risk during sex is real but small for most stable patients. The bigger danger is usually a medication combination, not the activity itself.

Where ED pills fit

The AHA statement says phosphodiesterase-5 (PDE5) inhibitors (sildenafil, tadalafil, vardenafil and avanafil) are useful for ED in men with stable cardiovascular disease. That's the good news, and it matters. Plenty of men with stents and old heart attacks use these medicines safely under supervision.

The FDA labels then add caution for recent events, because those patients were left out of the clinical trials:

Both labels also state the obvious point people skip: ED drugs shouldn't be used by men for whom sexual activity is inadvisable because of their heart status. A pill doesn't make sex safe for a heart that isn't ready. It only makes the erection possible.

So the practical sequence is: first, your cardiologist clears you for sexual activity. Second, a prescriber who knows your full medication list decides whether a PDE5 inhibitor fits and at what dose. Many prescribers start with a lower dose after a cardiac event and check how you tolerate it. Our guide to ED medications and blood pressure covers how these drugs affect pressure readings.

The nitrate rule after a cardiac event

The one combination you can't risk

PDE5 inhibitors are contraindicated with organic nitrates in any form, whether you take them regularly or only occasionally. The combination can drop blood pressure to dangerous levels. That includes nitroglycerin tablets or spray, isosorbide mononitrate or dinitrate, nitroglycerin patches and ointment, and recreational "poppers" (amyl or alkyl nitrites).

This rule has a particular catch for heart patients. Many men leave the hospital after a heart attack or stent with a prescription for sublingual nitroglycerin "as needed" for chest pain. Even if you've never opened the bottle, having it means a nitrate could be used in an emergency. Your cardiologist needs to weigh whether a PDE5 inhibitor is appropriate for you at all, and you need a clear plan for what happens if you get chest pain.

The AHA statement gives the timing that emergency teams use: nitrates should not be given within 24 hours of sildenafil or vardenafil, or within 48 hours of tadalafil. The Cialis label repeats the 48-hour figure, and adds that any nitrate given in a life-threatening situation needs close medical supervision and monitoring. Our explainer on why nitrates are an absolute contraindication goes deeper on the mechanism.

The Viagra label lists one more drug class that's contraindicated with PDE5 inhibitors: guanylate cyclase stimulators such as riociguat, used for some forms of pulmonary hypertension.

Other heart medicines and ED

Heart treatment usually means new prescriptions, and several of them deserve a conversation:

Warning signs during or after sex

Stop and get help if you have chest pain or pressure, shortness of breath out of proportion to the effort, a racing or irregular heartbeat, dizziness or fainting during or after sex. Call 911 for anything that feels like your original heart attack.

If you took an ED pill, tell the paramedics and the emergency team which drug, what dose and what time. That single sentence changes their treatment, because nitroglycerin is a standard emergency treatment for chest pain and it's dangerous with a PDE5 inhibitor still in your system.

Seek urgent care too for an erection lasting more than four hours, or sudden loss of vision or hearing after an ED medicine.

The AHA statement specifically calls for screening heart patients for anxiety and depression and counseling both the patient and the partner before returning to sex. Fear is common after a cardiac event, for both people. A partner may worry they'll "cause" another heart attack. You may watch every heartbeat instead of your partner. That kind of monitoring alone can cause ED.

A few things tend to help:

If ED appeared before your heart event, it may have been an early sign of the same vascular disease. Our article on why new ED warrants a heart conversation covers that link.

Your next step

Bring three things to your next cardiology visit: the date you'd like to resume sex, a full list of your medicines (including any as-needed nitroglycerin), and the question "Is a PDE5 inhibitor safe for me, and at what dose?" Get the answer before you fill any ED prescription, online or in person. For background on how each drug differs, see our ED medications overview.

Sources

Frequently Asked Questions

How soon after a heart attack can I have sex?
The American Heart Association says sex is reasonable at least one week after an uncomplicated heart attack, if you have no cardiac symptoms during mild to moderate activity. Complicated heart attacks need a longer wait set by your cardiology team.
Can I take Viagra or Cialis after a stent?
Often yes, once you're stable and cleared, because PDE5 inhibitors are considered useful for ED in men with stable heart disease. The exceptions are men who use nitrates in any form and men whose heart condition makes sex inadvisable. The Cialis label also says it isn't recommended within 90 days of a heart attack.
I have nitroglycerin for emergencies but never use it. Can I still take an ED pill?
Not without your cardiologist's explicit decision. PDE5 inhibitors are contraindicated with nitrates used regularly or intermittently, and an emergency nitroglycerin prescription means a nitrate could be used. Nitrates shouldn't be given within 24 hours of sildenafil or vardenafil, or within 48 hours of tadalafil.
How soon can I have sex after bypass surgery?
The AHA statement says about six to eight weeks after standard bypass surgery, once the breastbone incision has healed well, assuming you're otherwise recovering without symptoms.
What should I do if I get chest pain after taking an ED pill?
Stop, call 911, and tell the responders which ED drug you took, the dose and the time. That information determines whether nitroglycerin can be used safely.