Before taking any medication for erectile dysfunction, including over-the-counter supplements and herbal remedies, get your doctor's OK. Medications for erectile dysfunction do not work in all men and might be less effective in certain conditions, such as after prostate surgery or if you have diabetes. Some medications might also be dangerous if you:
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
Physical causes may include the narrowing of the blood vessels caused by hypertension (high blood pressure), nutritional deficiencies, certain prescription treatments and medications for enlarged prostate or prostate cancer, excess drinking, obesity, heavy smoking, kidney issues, thyroid problems, hormonal changes due to aging, injury, or surgery, diabetes, and high cholesterol levels.
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
It is important to understand that ED is frequently, if not usually, directly related to endothelial dysfunction, and that the release of NO by the vasculature of the penile arteries is directly related to the function of intact, healthy endothelium. In the face of endothelial dysfunction, the process of erection fails to occur in a normal fashion.16
However, a review of a United Kingdom medical record database found no evidence that the use of 5-alpha reductase inhibitors independently increase the risk for ED. In 71,849 men with benign prostatic hyperplasia (BPH), the risk of ED was not increased with the use of finasteride or dutasteride only (odds ratio [OR] 0.94), or a 5-alpha reductase inhibitor plus an alpha blocker (OR 0.92) compared with an alpha blocker only. In addition, the risk of ED was not increase in 12 346 men prescribed finasteride 1 mg for alopecia, compared with unexposed men with alopecia (OR 0.95). The risk of ED did increase with longer duration of BPH, regardless of drug exposure. 
Exercise regularly. Make it a priority to get outside or go to the gym to walk, run, swim, bike, or do strength training at least 4 times a week. According to a study conducted by Harvard, walking 30 minutes a day caused a 41% drop in risk for ED. Getting regular exercise aids circulation, getting your blood pumping through your entire body. When it's time to sustain an erection, better circulation is key.
There are relatively few contraindications to the use of vacuum devices. Some conditions can predispose to priapism or perhaps bleeding with constriction, such as sickle cell disease, polycythemia, and other blood dyscrasias. Patients taking anticoagulants can safely use vacuum constriction devices but need to accept a higher risk of bleeding (ecchymosis). Good manual dexterity is also needed to use the device; if manual dexterity is impaired, a willing sexual partner can learn to apply the device.
Erectile dysfunction (ED) is commonly called impotence. It’s a condition in which a man can’t achieve or maintain an erection during sexual performance. Symptoms may also include reduced sexual desire or libido. Your doctor is likely to diagnose you with ED if the condition lasts for more than a few weeks or months. ED affects as many as 30 million men in the United States.
This inflatable penile prosthesis has 3 major components. The 2 cylinders are placed within the corpora cavernosa, a reservoir is placed beneath the rectus muscle, and the pump is placed in the scrotum. When the pump is squeezed, fluid from the reservoir is transferred into the 2 cylinders, producing a firm erection. The deflation mechanism is also located on the pump and differs by manufacturer.
If a trial of oral ED therapy and withdrawal of offending medications prove to be ineffective in restoring erectile function, it is appropriate for most primary care practitioners to consider referral to a specialist for additional evaluation and discussion of alternative treatment options. These include intracavernous injection therapy, vacuum constriction devices, intraurethral therapy, and possible surgery.
Alprostadil self-injection. With this method, you use a fine needle to inject alprostadil (Caverject Impulse, Edex) into the base or side of your penis. In some cases, medications generally used for other conditions are used for penile injections on their own or in combination. Examples include papaverine, alprostadil and phentolamine. Often these combination medications are known as bimix (if two medications are included) or trimix (if three are included).
A variety of personal habits and lifestyle choices have been linked to ED. In some ways, this is a good thing, since habits can be broken and choices reconsidered. What's more, many of the lifestyle factors that contribute to sexual problems are ones that affect overall health and well-being, both physical and mental. Addressing these factors, therefore, can have benefits beyond improving erectile dysfunction.
Sexual functioning involves a complex interaction among biologic, sociocultural, and psychological factors, and the complexity of this interaction makes it difficult to ascertain the clinical etiology of sexual dysfunction. Before any diagnosis of sexual dysfunction is made, problems that are explained by a nonsexual mental disorder or other stressors must first be addressed. Thus, in addition to the criteria for erectile disorder, the following must be considered:
Think of erectile dysfunction as your body’s “check engine light.” The blood vessels in the penis are smaller than other parts of the body, so underlying conditions like blocked arteries, heart disease, or high blood pressure usually show up as ED before something more serious like a heart attack or stroke. ED is your body’s way of saying, “Something is wrong.” And the list of things that cause erectile dysfunction can include:
Additionally, the physiologic processes involving erections begin at the genetic level. Certain genes become activated at critical times to produce proteins vital to sustaining this pathway. Some researchers have focused on identifying particular genes that place men at risk for ED. At present, these studies are limited to animal models, and little success has been reported to date.  Nevertheless, this research has given rise to many new treatment targets and a better understanding of the entire process.
Experiencing ED can also be a reason to try not penetrative sex. Try planning a sex session with your partner hat isn't focused on your erection at all. Things like kissing, licking, sucking, foreplay and teasing all are super stimulating and don't focus on penetration. Feel free to bring each other to orgasm using these ideas and see if you are able to relax and enjoy the experience. Many men feel like failures when their erections become unreliable. Having a few successful sexual sessions that lead to orgasm without penetration can put the fun back into having sex. Many couples find success using this technique and begin to reengage sexually instead of avoiding being sexual for fear of failure.
Alprostadil is an FDA-approved erectile dysfunction drug that can be injected directly into the penis to trigger an automatic erection. "Penile injection is the most effective type of ED treatment for men who can't take oral treatment," says Nelson Bennett, MD, a urologist at the Lahey Clinic in Burlington, Mass. In fact, it has an 85 percent success rate. Possible side effects include a burning sensation and priapism, an erection that lasts more than four hours and requires medical treatment.
The Food and Drug Administration (FDA) does not recommend alternative therapies to treat sexual dysfunction. Many products are advertised as "herbal viagra" or "natural" sexual enhancement products, but no clinical trials or scientific studies support the effectiveness of these products for the treatment of ED, and synthetic chemical compounds similar to sildenafil have been found as adulterants in many of these products. The FDA has warned consumers that any sexual enhancement product that claims to work as well as prescription products is likely to contain such a contaminant.
It is important for clinicians prescribing these drugs to make the patient aware of the action of the drugs especially the fact that they do not result in an immediate erection, and that they do not cause an erection without sexual stimulation. There is frequently a great expectation when men begin using these drugs and it is wise to temper their enthusiasm and explain they do not work immediately, and may not work every time, but also let the patient know that if these drugs do not work, there are other options.
Erectile dysfunction (ED) related to compromise of the nervous system is an increasingly common occurrence. This may be due to the multifactorial nature of ED, the myriad of disorders affecting the neurotransmission of erectogenic signals, and improved awareness and diagnosis of ED. Nevertheless, neurogenic ED remains poorly understood and characterized. Disease related factors such as depression, decreased physical and mental function, the burden of chronic illness, and loss of independence may preclude sexual intimacy and lead to ED as well. The amount of data regarding treatment options in subpopulations of differing neurologic disorders remains scarce except for men with spinal cord injury. The treatment options including phosphodiesterase inhibitors, intracavernosal or intraurethral vasoactive agents, vacuum erection devices (VED) and penile prosthetic implantation remain constant. This review discusses the options in specific neurologic conditions, and briefly provides insight into new and future developments that may reshape the management of neurogenic ED.
Surgery: If neither drugs nor the vacuum pump works, your doctor may suggest surgery. With surgery, the doctor can place a device in your penis that will cause enough hardness for intercourse. In a few cases, infections may develop after the operation, and the doctor may have to remove the device. Another operation that may help you is rebuilding the blood vessels in the penis to increase blood flow into the penis or decrease blood flow out of the penis. These procedures can help you to get and maintain an erection.