It’s possible that heart medications may contribute to erectile dysfunction. Some drugs used to treat heart conditions, like beta-blockers and diuretics, can affect sexual function. It’s important to discuss your symptoms with your doctor, as they can review your medications and possibly adjust them or suggest alternatives. Additionally, they can check for other underlying causes that might be contributing, like changes in blood flow or cholesterol levels. Lifestyle changes such as exercise, diet, and stress management often help as well. Don’t hesitate to seek professional advice, as there are several treatment options available.