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.
In a 2005 study, three months of twice-daily sets of kegel exercises combined with biofeedback and advice on lifestyle changes, such as quitting smoking, losing weight, and limiting alcohol, worked far better than just giving the participants advice. “Wearing tight pants will affect impotence along with some other medical conditions like diabetes and heart disease,” which can also affect a man’s degree of impotence, Dr. Jennifer Burns, specializing in family practice with an emphasis on gastrointestinal health at the BienEtre Center, told Medical Daily.
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
This content is provided as a service of the National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), part of the National Institutes of Health. The NIDDK translates and disseminates research findings through its clearinghouses and education programs to increase knowledge and understanding about health and disease among patients, health professionals, and the public. Content produced by the NIDDK is carefully reviewed by NIDDK scientists and other experts.
Erectile dysfunction (ED) affects 50% of men older than 40 years,  exerting substantial effects on quality of life.  This common problem is complex and involves multiple pathways. Penile erections are produced by an integration of physiologic processes involving the central nervous, peripheral nervous, hormonal, and vascular systems. Any abnormality in these systems, whether from medication or disease, has a significant impact on the ability to develop and sustain an erection, ejaculate, and experience orgasm.
4. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Erectile dysfunction (updated Nov 2015). https://www.niddk.nih.gov/health-information/health-topics/urologic-disease/erectile-dysfunction/Pages/facts.aspx (accessed Nov 2016). myDr myDr provides comprehensive Australian health and medical information, images and tools covering symptoms, diseases, tests, medicines and treatments, and nutrition and fitness.Related ArticlesImpotence causesFind out the physical and psychological causes of impotence, also called erectile dysfunction or ED.Erectile dysfunction: visiting your doctorFind out what questions a doctor may ask when discussing erectile dysfunction (ED, or impotence8 Surprising causes of erectile dysfunctionOccasional erectile dysfunction is not uncommon, but if it's persistent, erectile dysfunction caAdvertisement
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
A variety of lifestyle choices can affect the ability to achieve and maintain an erection, so preventing ED is possible in some cases. Men are encouraged to manage chronic health problems with their doctors and to exercise regularly. They also should avoid smoking and excess alcohol and get help for anxiety or depression, according to the Mayo Clinic.
Like all diabetic complications, ED can occur even when you have followed your doctor’s advice and carefully managed your diabetes. Also like all diabetes complications, ED is less likely to occur with good blood sugar control. Poorly controlled diabetes and high cholesterol increase the chances of vascular complications, which may lead to ED or other circulatory problems. In addition, regular smoking and alcohol use can contribute to ED.
Erectile dysfunction is known to be associated with general health status, thus, lifestyle modification improves erectile function and decreases the rate of decline of function with aging. One year after discontinuation of smoking, patients were found to have a 25% improvement in erectile quality.16 In addition, multivariate analysis found obesity is associated with erectile dysfunction with an approximately 50% increase in ED in obese men as compared with normal weight men.17
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
VIP is a neurotransmitter with regulatory actions on blood flow, secretion and muscle tone with intracorporal adenylate cyclase activation and smooth muscle relaxation. VIP has been shown to elevate cAMP intracellular concentrations without affecting cGMP levels. However, when VIP is given alone it may not induce erection and requires combination with phentolamine or papaverine for it to be effective (88). Common associated adverse effects were facial flushing and headache. VIP in combination with phentolamine is currently being used in the UK and Europe and is seeking regulatory approval for use in the United States.
Cardiovascular diseases: The most common cause of cardiovascular diseases in the United States is atherosclerosis, the narrowing and hardening of arteries that reduces blood flow. Atherosclerosis (a type of vascular disease) typically affects arteries throughout the body; hypertension, high blood cholesterol levels, cigarette smoking, and diabetes mellitus aggravate atherosclerosis. Hardening of the arteries to the penis and pelvic organs, atherosclerosis, causes insufficient blood flow into the penis. There is a close correlation between the severity of atherosclerosis in the coronary arteries and erectile dysfunction. For example, men with more severe coronary artery atherosclerosis (hardening of the arteries in the heart) also tend to have more erectile dysfunction than men with mild or no coronary artery atherosclerosis. Some doctors suggest that men with new onset erectile dysfunction undergo evaluation for silent coronary artery diseases (advanced coronary artery atherosclerosis that has not yet caused angina or heart attacks).
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.