A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
The mechanisms by which testosterone plays a role in erectile function are not completely understood. A study evaluating the effect of testosterone on erections in surgically castrated rabbits and control animals, in which the rabbits’ intracavernosal pressures were compared after cavernosal nerve stimulation, determined that castrated rabbits had much lower pressures after stimulation than control rabbits did.  Notably, the pressures increased when castrated rabbits received exogenous testosterone replacement.
Sildenafil is available as oral tablets at doses of 25 mg, 50 mg, and 100 mg. Patients should take sildenafil approximately one hour before sexual activity. In some men, the onset of action of the drug may be as early as 11-20 minutes. It's best for men to take sildenafil on an empty stomach for best results since absorption and effectiveness of sildenafil can be diminished if it is taken shortly after a meal, particularly a meal that is high in fat. Sildenafil and the other PDE5 inhibitors don't cause an immediate erection. Sexual stimulation is necessary for these medications to work.
Tadalafil shares the common side effects of the PDE5 inhibitors, however, due to its effect on PDE11, another phosphodiesterase located in muscle, tadalafil has been associated with muscle aches. Back pain and muscle aches occur in less than 7% of men taking tadalafil and in most patients will go away without treatment within 48 hours. When treatment was necessary, acetaminophen (Tylenol) and nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen (Motrin, Advil) or naproxen (Aleve) were effective. Rarely do the muscle aches and back pain cause men to stop using tadalafil.
Concerns that use of pornography can cause erectile dysfunction have not been substantiated in epidemiological studies according to a 2015 literature review. However, another review and case studies article maintains that use of pornography does indeed cause erectile dysfunction, and critiques the previously described literature review.
Experts often treat psychologically based impotence using techniques that decrease anxiety associated with intercourse. The patient's partner can help apply the techniques, which include gradual development of intimacy and stimulation. Such techniques also can help relieve anxiety during treatment of physical impotence. If these simple behavioral methods at home are ineffective, a doctor may refer an individual to a sex counselor.
Certain types of blood pressure medications, antiulcer drugs, antihistamines, tranquilizers (especially before intercourse), antifungals (hetoconazole), antipsychotics, antianxiety drugs, and antidepressants, known as selective serotonin reuptake inhibitors (SSRIs, including Prozac and Paxil), can interfere with erectile function. Smoking, excessive alcohol consumption, and illicit drug use may also contribute. In rare cases, low levels of the male hormone testosterone may contribute to erectile failure. Finally, psychological factors, such as stress, guilt, or anxiety, may also play a role, even when the impotence is primarily due to organic causes.
Modern drug therapy for ED made a significant advance in 1983, when British physiologist Giles Brindley dropped his trousers and demonstrated to a shocked Urodynamics Society audience his papaverine-induced erection. The drug Brindley injected into his penis was a non-specific vasodilator, an alpha-blocking agent, and the mechanism of action was clearly corporal smooth muscle relaxation. The effect that Brindley discovered established the fundamentals for the later development of specific, safe, and orally effective drug therapies.[better source needed][better source needed]
#4 You’re just plain turned off. It happens. Whether it’s the weight your partner has put on, the realization that you’re having period sex, or you’re just not getting what you need in the bedroom, at some point in your life, you’re going to be turned off enough to lose *or be unable to attain* your hard-on. [Read: Not attracted to your girlfriend anymore? The why and the fixes]
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.
He can follow the common general physical advice: Sleep well, eat well, exercise, and moderate or abstain from drinking and drugs. He can also visit the doctor to see if there’s any medical reason for his condition (anything from heart disease to diabetes and obesity). Sometimes, impotence is a side effect of prescription drugs. If his anxiety is extreme, it never hurts to see a professional therapist. Whenever there’s even a chance of a medical problem, my advice is always: Why not check with a professional?
The patient and partner must be well informed about all therapeutic options including their effectiveness, possible complications, and costs. As a general rule, the least invasive or dangerous procedures should be tried first. Psychotherapy and behavioral treatments and sexual counseling alone or in conjunction with other treatments may be used in all patients with erectile dysfunction who are willing to use this form of treatment. In patients in whom psychogenic erectile dysfunction is suspected, sexual counseling should be offered first. Invasive therapy should not be the primary treatment of choice. If history, physical, and screening endocrine evaluations are normal and nonpsychogenic erectile dysfunction is suspected, either vacuum devices or intracavernosal injection therapy can be offered after discussion with the patient and his partner. These latter two therapies may also be useful when combined with psychotherapy in those with psychogenic erectile dysfunction in whom psychotherapy alone has failed. Since further diagnostic testing does not reliably establish specific diagnoses or predict outcomes of therapy, vacuum devices or intracavernosal injections often are applied to a broad spectrum of etiologies of male erectile dysfunction.
You’ve probably heard of Viagra, but it’s not the only pill for ED. This class of drugs also includes Cialis, Levitra, Staxyn, and Stendra. All work by improving blood flow to the penis during arousal. They're generally taken 30-60 minutes before sexual activity and should not be used more than once a day. Cialis can be taken up to 36 hours before sexual activity and also comes in a lower, daily dose. Staxyn dissolves in the mouth. All require an OK from your doctor first for safety.