An occasional problem achieving an erection is nothing to worry about. But failure to do so more than 50% of the time at any age may indicate a condition that needs treatment. About 40% of men in their 40s report at least occasional problems getting and maintaining erections. So do more than half (52%) of men aged 40 to 70, and about 70% of men in their 70s.
Following a detailed discussion about the history of erectile dysfunction and its risk factors, your doctor will examine the testicles and penis to help determine the cause of erectile dysfunction. Your doctor will check reflexes and pulses in the area to see if problems with blood vessels or nerves are contributing to the erectile dysfunction. If necessary, your doctor will order tests to help diagnose erectile dysfunction.
When stimulated by the nerves, the spongy tissue arranges itself in such a way that more blood can be stored in the penis. The veins running through the outer sheath of the penis then compress which stops the blood from leaving the penis. As the blood is stopped from flowing out, the penis fills with blood and stretches within the outer casing, giving an erection.
The aim of treatment for hypogonadism is to normalize serum testosterone levels and abolish symptoms or pathological states that are due to low testosterone levels. The exact target testosterone level is a matter of debate, but current recommendations advocate levels in the mid-lower normal adult range (Nieschlag et al 2005). Truly physiological testosterone replacement would require replication of the diurnal rhythm of serum testosterone levels, but there is no current evidence that this is beneficial (Nieschlag et al 2005).
If you’re experiencing psychological ED, you may benefit from talk therapy. Therapy can help you manage your mental health. You’ll likely work with your therapist over several sessions, and your therapist will address things like major stress or anxiety factors, feelings around sex, or subconscious conflicts that could be affecting your sexual well-being.
One study examined the role of testosterone supplementation in hypogonadal men with ED. These men were considered nonresponders to sildenafil, and their erections were monitored by assessing nocturnal penile tumescence (NPT). After these men were given testosterone transdermally for 6 months, the number of NPTs increased, as did the maximum rigidity with sildenafil.  This study suggests that a certain level of testosterone may be necessary for PDE5 inhibitors to function properly.
Another recent development is the production of adhesive tablets which are applied twice daily to the buccal mucosa on the gum above the incisor teeth. The tablets gradually release testosterone into the systemic venous circulation and steady state physiological concentrations are achieved in most patients within two days (Ross et al 2004). Some patients do not like the feeling of the tablet in the mouth or find that there is an abnormal taste in the mouth, but local adverse effects are usually mild and transient (Wang, Swerdloff et al 2004).
There is increasing interest in the group of patients who fail to respond to treatment with PDE-5 inhibitors and have low serum testosterone levels. Evidence from placebo-controlled trials in this group of men shows that testosterone treatment added to PDE-5 inhibitors improves erectile function compared to PDE-5 inhibitors alone (Aversa et al 2003; Shabsigh et al 2004).
Testosterone levels generally peak during adolescence and early adulthood. As you get older, your testosterone level gradually declines — typically about 1 percent a year after age 30 or 40. It is important to determine in older men if a low testosterone level is simply due to the decline of normal aging or if it is due to a disease (hypogonadism).
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
It is hard to know how many men among us have TD, although data suggest that overall about 2.1% (about 2 men in every 100) may have TD. As few as 1% of younger men may have TD, while as many as 50% of men over 80 years old may have TD. People who study the condition often use different cut-off points for the numbers, so you may hear different numbers being stated.
More can be learned from a large, randomized, placebo-controlled trial of finasteride treatment in 18,800 men aged 55 or more. Finasteride is a 5α-reductase inhibitor which acts to prevent the metabolism of testosterone to dihydrotestosterone (DHT) – the most active androgen in the prostate. The trial showed a greater overall incidence of prostate cancer in the control group, but men treated with finasteride were more likely to have high grade tumors (Thompson et al 2003), suggesting that reduced androgen exposure of the prostate may delay the presentation of prostate cancer and/or promote advanced disease in some other way.
Low testosterone levels may contribute to decreased sex drive, erectile dysfunction, fragile bones, and other health issues. Having low testosterone levels may also indicate an underlying medical condition. See your doctor if you suspect you have low testosterone. A simple blood test is all it takes to check if your testosterone falls within the normal range.