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


Conditions associated with reduced nerve and endothelium function (eg, aging, hypertension, smoking, hypercholesterolemia, and diabetes) alter the balance between contraction and relaxation factors (see Pathophysiology). These conditions cause circulatory and structural changes in penile tissues, resulting in arterial insufficiency and defective smooth muscle relaxation. In some patients, sexual dysfunction may be the presenting symptom of these disorders.
Experiencing ED can also be a reason to try not penetrative sex.  Try planning a sex session with your partner hat isn't focused on your erection at all.  Things like kissing, licking, sucking, foreplay and teasing all are super stimulating and don't focus on penetration.  Feel free to bring each other to orgasm using these ideas and see if you are able to relax and enjoy the experience.  Many men feel like failures when their erections become unreliable.  Having a few successful sexual sessions that lead to orgasm without penetration can put the fun back into having sex.  Many couples find success using this technique and begin to reengage sexually instead of avoiding being sexual for fear of failure.
Once a complete sexual and medical history has been completed, appropriate laboratory studies should be conducted. In the initial evaluation of ED, sophisticated laboratory testing is rarely necessary. For example, serum testosterone (and sometimes prolactin) is typically only useful when the patient demonstrates hypogonadal features or testicular atrophy, or when clinical history is suggestive. Additional hormonal evaluation may include thyroid stimulating hormone in those with a clinical suspicion of hypothyroidism or appropriate diabetes screening in those presenting with a concern for impaired glucose metabolism. If the patient has not been evaluated with a lipid panel and hyperlipidemia is suspected, measurement and appropriate referral to internal medicine or cardiology is recommended. In most cases, a tentative diagnosis can be established with a complete sexual and medical history, physical examination, and limited or no laboratory testing.
A physical exam checks your total health. Examination focusing on your genitals (penis and testicles) is often done to check for ED. Based on your age and risk factors, the exam may also focus on your heart and blood system: heart, peripheral pulses and blood pressure. Based on your age and family history your doctor may do a rectal exam to check the prostate. These tests are not painful. Most patients do not need a lot of testing before starting treatment.
×