The foods you eat can have a direct impact on erectile dysfunction, Dr. Mucher says. A diet rich in fruit, veggies, whole grains, and fish, and with fewer servings of red meat and refined grains, decreases the risk for ED. A healthy diet also helps to maintain a healthy body weight, which is important because men who have a 42-inch waist are 50 percent more likely to have ED than men with a 32-inch waist. Also, obesity increases the risk for vascular disease and diabetes, two factors that contribute to ED. Poor sleep patterns can be a contributing factor for erectile dysfunction, Mucher says. One review published in the journal Brain Research emphasized the intricate relationship between the level of sex hormones like testosterone, sexual function, and sleep, noting that testosterone levels increase with improved sleep, and lower levels are associated with sexual dysfunction. Hormone secretion is controlled by the body’s internal clock, and sleep patterns likely help the body determine when to release certain hormones.