Stress is another factor that can be a cause or effect of ED. If you're stressed at work, at home, and in your relationships, it's going to take a toll on your sexual function. Your mind is elsewhere, and relaxing when you finally make it between the sheets is a long shot. Now you’re stressed because you can’t get it up (talk about the ultimate catch-22), so you're stuck in this sad, frustrating cycle. “ED really affects the psyche of a guy, regardless of the etiology, Gittens says. “If you have a problem getting an erection one night, you’re probably going to be anxious and worried your partner might see you as less of a man the next time you try to get an erection.” There's a pill that will help with this, and it's not promoted on television with middle-aged men in sports cars. It's a damn chill pill.
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.
The availability of phosphodiesterase-5 (PDE5) inhibitors—sildenafil, vardenafil, tadalafil, and avanafil—has fundamentally altered the medical management of ED. In addition, direct-to-consumer marketing of these agents over the last 15 years has increased the general public’s awareness of ED as a medical condition with underlying causes and effective treatments.
Although not indicated for routine use, nocturnal penile tumescence (NPT) testing may be useful in the patient who reports a complete absence of erections (exclusive of nocturnal "sleep" erections) or when a primary psychogenic etiology is suspected. Such testing should be performed by those with expertise and knowledge of its interpretation, pitfalls, and usefulness. Various methods and devices are available for the evaluation of nocturnal penile tumescence, but their clinical usefulness is restricted by limitations of diagnostic accuracy and availability of normative data. Further study regarding standardization of NPT testing and its general applicability is indicated.
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.
The first line and by far the most common treatment today is with the prescription drug sildenafil citrate, sold under the brand name Viagra. An estimated 20 million prescriptions for the pill have been filled since it was approved by the FDA in March 1998. It is also the most effective treatment with a success rate of more than 60%. The drug boosts levels of a substance called cyclic GMP, which is responsible for widening the blood vessels of the penis. In clinical studies, Viagra produced headaches in 16% of men who took it, and other side effects included flushing, indigestion, and stuffy nose.
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. 
Since no two men are alike, the best ED treatment plan will depend on what’s causing your problem. That’s why you need to put aside your embarrassment and make an appointment to visit with see a qualified doctor who specializes in helping guys get back to enjoying their time with their spouses or partners to the fullest. You’ll be relieved to talk to someone who understands and has solutions.
To reach the largest audience, communications strategies should include informative and accurate newspaper and magazine articles, radio and television programs, as well as special educational programs in senior centers. Resources for accurate information regarding diagnosis and treatment options also should include doctors' offices, unions, fraternal and service groups, voluntary health organizations, State and local health departments, and appropriate advocacy groups. Additionally, since sex education courses in schools uniformly address erectile function, the concept of erectile dysfunction can easily be communicated in these forums as well.
Some men should not take PDE5 inhibitors. They can cause hypotension (abnormally low blood pressure that can lead to fainting and even shock) when given to patients who are taking nitrates (medications taken for heart disease). Therefore, patients taking nitrates daily should not take any of the PDE5 inhibitors. Nitrates relieve angina (chest pain due to insufficient blood supply to the heart muscle because of narrowing of the coronary arteries); these include nitroglycerine tablets, patches, ointments, sprays, and pastes, as well as isosorbide dinitrate and isosorbide mononitrate. Other nitrates such as amyl nitrate and butyl nitrate also are in some recreational drugs called "poppers."
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.