But he may have a real problem. Generally, erectile dysfunction is linked to cardiovascular health. If your guy has serious health problems, drinks and smokes too much, or does too many drugs, those conditions may play a role. Obesity, heart disease, prescription medications, and diabetes are just a few of the common risk factors. And then there are the psychological causes: depression, stress, and the million things flashing through his head when he's struggling to get it on.
Prostaglandins (alprostadil): Alprostadil can be injected into the penis or inserted as a pellet through the urethra. It causes an erection without sexual stimulation that usually lasts about 60 minutes. The danger with this method is that too high a dose can cause priapism, an erection that won't go away. This condition requires immediate medical attention as it can cause serious bruising, bleeding, pain and permanent penile damage. Once the doctor is sure of the right dose, the man can self-inject at home.
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.
An approach to the diagnosis and management of the impotent patient is presented in Figure 187.1. Apparent and likely causes of impotence should be considered first and, if possible, eliminated before the work-up continues. For instance, observing the patient for a few weeks off offending medication may be all that is necessary to establish the cause of impotence. When no obvious or remediable cause is present, the next step is based on the clinical impression of the likelihood of organic versus psychologic impotence. If the latter is considered more likely, it is perfectly reasonable to refer the patient directly for sexual therapy, with the option of reconsidering the diagnosis if, after appropriate therapy, there is no improvement. While an occasional patient with organic impotence will be misrouted, many more with psychogenic impotence will be spared an unnecessary and costly evaluation for organic causes. When organic impotence is likely, a serum testosterone level is the initial screening test for hypogonadism and should be obtained prior to urologic referral. Patients with low testosterone levels require further endocrine evaluations as depicted in Figure 187.1.
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. 
Sexual dysfunction and ED become more common as men age. The percentage of complete ED increases from 5% to 15% as age increases from 40 to 70 years. But this does not mean growing older is the end of your sex life. ED can be treated at any age. Also, ED may be more common in Hispanic men and in those with a history of diabetes, obesity, smoking, and hypertension. Research shows that African-American men sought medical care for ED twice the rate of other racial groups.