Stiffy Solution: Frustratingly enough, the only solution to exhaustion-based impotence is to get some rest, which is obviously difficult (or your dude wouldn't be having this problem in the first place). But if your guy has been resistant to getting help for his insomnia or asking for different hours at work, the inability to get his nine iron out on the putting green might be the thing that finally motivates him to make a life change. So, at least there's that.
#2 Physically exhausted. If you’ve been cranking it at the gym, haven’t been sleeping well, or you’ve been working your ass off at your job, getting tangled up with your lover for even more physically demanding activities may not sound ideal. Physical exhaustion has a direct effect on your ability to get aroused. The only fix for this one is to get some rest.
Diabetes is an example of an endocrine disease that can cause a person to experience impotence. Diabetes affects the body’s ability to utilize the hormone insulin. One of the side effects associated with chronic diabetes is nerve damage. This affects penis sensations. Other complications associated with diabetes are impaired blood flow and hormone levels. Both of these factors can contribute to impotence.
Both ED and low testosterone (hypogonadism) increase with age. The incidence of the latter is 40% in men aged 45 years and older.  Testosterone is known to be important in mood, cognition, vitality, bone health, and muscle and fat composition. It also plays a key role in sexual dysfunction (eg, low libido, poor erection quality, ejaculatory or orgasmic dysfunction, reduced spontaneous erections, or reduced sexual activity). 
If PDE5 drugs don't work or cannot be used because of potential side effects, your doctor can recommend other therapies. The drug alprostadil (Caverject, Edex, Muse) allows blood to flow more freely in the penis, leading to an erection. The drug can be injected with a tiny needle into your penis. Or, a small pellet (suppository) can be inserted into the opening of the penis. Suppositories and injections are effective in the majority of men.
3. Are there physical causes of erectile dysfunction? Erectile dysfunction may be a symptom of underlying medical conditions, which if not detected may cause further medical problems. A prior history of cigarette smoking, heart attacks, strokes, and poor circulation in the extremities (for example, intermittent claudication or cramping in your leg[s] when you walk) suggest atherosclerosis as the cause of the erectile dysfunction. Loss of sexual desire and drive, lack of sexual fantasies, gynecomastia (enlargement of breasts), and diminished facial hair suggest low testosterone levels. A prior history of pelvic surgery or radiation and trauma to the penis/pelvis/perineum can cause problems with the nerves and blood vessels. Symptoms of intermittent claudication of the lower extremities with exercise may suggest a vascular problem as a cause of the erectile dysfunction.
The recommended starting dose of tadalafil for use as needed for most patients is 10 mg taken orally approximately one hour before sexual activity. A doctor may adjust the dose higher to 20 mg or lower to 5 mg depending on efficacy and side effects. Doctors recommended that patients take tadalafil no more frequently than once per day. Some patients can take tadalafil less frequently since the improvement in erectile function may last 36 hours. Patients may take tadalafil with or without food. Tadalafil is currently the only PDE5 inhibitor that is FDA-approved for daily use for erectile dysfunction and is available in 2.5 mg or 5 mg dosages for daily use.
Another approach is vacuum therapy. The man inserts his penis into a clear plastic cylinder and uses a pump to force air out of the cylinder. This forms a partial vacuum around the penis, which helps to draw blood into the corpora cavernosa. The man then places a special ring over the base of the penis to trap the blood inside it. The only side effect with this type of treatment is occasional bruising if the vacuum is left on too long.
Performance anxiety can be another cause of impotence. If a person wasn’t able to achieve an erection in the past, he may fear he won’t be able to achieve an erection in the future. A person may also find he can’t achieve an erection with a certain partner. Someone with ED related to performance anxiety may be able to have full erections when masturbating or when sleeping, yet he isn’t able to maintain an erection during intercourse.
Men with a rare heart condition known as long QT syndrome should not take vardenafil since this may lead to abnormal heart rhythms. The QT interval is the time it takes for the heart's muscle to recover after it has contracted. An electrocardiogram (EKG) measures the QT interval. Some people have longer than normal QT intervals, and they may develop potentially life-threatening abnormal heart rhythms, especially when given certain medications. Men with a family history of long QT syndrome should not take vardenafil, as it is possible to inherit long QT syndrome. Furthermore, vardenafil is not recommended for men who are taking medications that can affect the QT interval such as quinidine (Quinaglute, Quinidex), procainamide (Pronestyl, Procan-SR, Procanbid), amiodarone (Cordarone), and sotalol (Betapace).
Another common problem for men who have trouble in the bedroom is substance use or abuse. In some cases, a man suffering from erectile dysfunction may be diagnosed with depression and be prescribed selective serotonin reuptake inhibitors, or SSRIs. These medications may be able to assist in alleviating the symptoms of depression, but they can also lead to erectile dysfunction.
As with most other organ system in the human body, changes and loss of function is normal consequence of the ageing process. This is also true of the endocrine system, specifically the levels of testosterone production from the Leydig cells of the testicle. Accompanying the decrease in testosterone is a decrease in erections which also has a component in decrease in the blood supply to the penis making erection not as frequent and not as rigid compared with a young man’s erectile function. Although these changes are in itself not life threatening, they can impact a man’s relationship with his partner, and also ED may be a harbinger of other undiagnosed conditions such as coronary artery disease (CAD), hypercholesterolaemia or diabetes mellitus.6
Factors that mediate contraction in the penis include noradrenaline, endothelin-1, neuropeptide Y, prostanoids, angiotensin II, and others not yet identified. Factors that mediate relaxation include acetylcholine, nitric oxide (NO), vasoactive intestinal polypeptide, pituitary adenylyl cyclase–activating peptide, calcitonin gene–related peptide, adrenomedullin, adenosine triphosphate, and adenosine prostanoids.
"One couple came to see me, and when I asked the man how long he'd had erectile dysfunction, he told me it had been happening for five years. His wife looked at him and said: 'But this is the first I've heard of this.'" He adds that Viagra-type drugs can mask the problem, and many men still buy them online to avoid talking to their doctor about their difficulties in the bedroom. As a result, their risk of heart attack is never picked up.
In some cases, ED can be a warning sign of more serious disease. One study suggests ED is a strong predictor of heart attack, stroke, and death from cardiovascular disease. The researchers say all men diagnosed with ED should be evaluated for cardiovascular disease. This does not mean every man with ED will develop heart disease, or that every man with heart disease has ED, but patients should be aware of the link.