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
- The American Heart Association says sex is reasonable about one week after an uncomplicated heart attack, several days after an uncomplicated stent, and six to eight weeks after bypass surgery, if you have no symptoms with mild to moderate activity.
- ED pills (PDE5 inhibitors) are considered useful for men with stable heart disease, but never with nitrates in any form, including "as-needed" nitroglycerin.
- The Cialis label says it isn't recommended within 90 days of a heart attack; the Viagra label notes there is no controlled data within six months of one. Your cardiologist makes the call.
- If you get chest pain after taking an ED pill, call 911 and tell responders which pill you took and when.
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:
| Situation | AHA 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), uncomplicated | Several 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 disease | Not 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.
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:
- Cialis (tadalafil) is labeled as not recommended for men with a heart attack in the last 90 days, unstable angina or angina during intercourse, NYHA class 2 or worse heart failure in the last 6 months, uncontrolled arrhythmias, low blood pressure (under 90/50), uncontrolled high blood pressure, or a stroke in the last 6 months.
- Viagra (sildenafil) says there are no controlled clinical data in men who had a heart attack, stroke or life-threatening arrhythmia in the last 6 months, men with resting blood pressure under 90/50 or over 170/110, or men with heart failure or coronary disease causing unstable angina. In those groups it should be prescribed with caution.
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
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:
- Blood pressure drugs. PDE5 inhibitors lower blood pressure a little on their own. Combined with several antihypertensives, or with alpha-blockers, that can cause dizziness or fainting. This is manageable, but it's a reason to start low.
- Blood thinners and antiplatelets. After a stent you'll likely take aspirin plus another antiplatelet drug. The Viagra label says sildenafil's safety is unknown in men with bleeding disorders or active peptic ulcers, so mention any bleeding history.
- Beta-blockers and other drugs that may affect erections. Some men notice changes after starting new medicines. Don't stop a heart medicine on your own. Ask whether an alternative exists. Our list of medications that can cause ED explains which classes are most often discussed.
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 part that isn't about the heart
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:
- Start slowly, in a relaxed and familiar setting, and skip the heavy meal and extra drinks beforehand. Both add strain and can blunt erections on their own.
- Use cardiac rehab to rebuild confidence. Knowing you can handle a workout makes sex feel less like a stress test.
- Talk about it together. Our partner communication scripts are a useful starting point.
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.
Sources
- American Academy of Family Physicians: AHA Releases Statement on Sexual Activity and Cardiovascular Disease (2012)
- American Heart Association: Sexual Activity and Cardiovascular Disease, Top Things to Know
- FDA: Cialis (tadalafil) prescribing information
- FDA: Viagra (sildenafil) prescribing information