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.
Lifestyle choices that impair blood circulation can contribute to ED. Smoking, excessive drinking, and drug abuse may damage the blood vessels and reduce blood flow to the penis. Smoking makes men with atherosclerosis particularly vulnerable to ED. Being overweight and getting too little exercise also contribute to ED. Studies indicate that men who exercise regularly have a lower risk of ED.
Vascular damage may result from radiation therapy to the pelvis and prostate in the treatment of prostate cancer.  Both the blood vessels and the nerves to the penis may be affected. Radiation damage to the crura of the penis, which are highly susceptible to radiation damage, can induce ED. Data indicate that 50% of men undergoing radiation therapy lose erectile function within 5 years after completing therapy; fortunately, some respond to one of the PDE5 inhibitors.
The link between chronic disease and ED is most striking for diabetes. Men who have diabetes are two to three times more likely to have erectile dysfunction than men who do not have diabetes. Among men with erectile dysfunction, those with diabetes may experience the problem as much as 10 to 15 years earlier than men without diabetes. Yet evidence shows that good blood sugar control can minimize this risk. Other conditions that may cause ED include cardiovascular disease, atherosclerosis (hardening of the arteries), kidney disease, and multiple sclerosis. These illnesses can impair blood flow or nerve impulses throughout the body.
Several medications can interfere with the chemical processing of PDE5i medications by the liver. These can include ketoconazole (an antifungal medication known by the brand name Nizoral), erythromycin (an antibiotic), and cimetidine (also known as Tagamet, for reducing stomach acid). A lower dose of PDE5i medications should be used if one is taking any of these medications.
The dose of PDE5 inhibitor that you start with may vary with underlying medical conditions and medications that you are taking. Thus, it is important to review all medications (even over the counter medications) with your physician. Typically, one starts with a lower dose and increases as needed. Some medical conditions prevent going up to higher doses. You can review the drug prescribing information or consult with your doctor regarding the dose(s) that are appropriate for you.
And surgery comes with its own serious risks, such as developing incontinence or impotence, while radiation can result in urinary problems. — Peter Loftus, WSJ, "Surgery Adds Three Years to Lives of Prostate-Cancer Patients, Study Finds," 12 Dec. 2018 Male-impotence pill Viagra began facing generic competition late last year, while the Lyrica pain treatment is expected to confront generics at the end of this year. — Jonathan D. Rockoff, WSJ, "Pfizer Narrows Guidance on Tougher Pricing, Generic Competition," 30 Oct. 2018 Arkham Horror Third Edition is a classic struggle of agency versus impotence, set in the uncanny world of H.P. Lovecraft’s Cthulhu mythos. — Charlie Theel, Ars Technica, "Arkham Horror Third Edition: The classic Lovecraft adventure returns," 24 Nov. 2018 There’s obviously a lot of anger and frustration here toward the US government at the moment—along with side effects like bottled rage and sometimes a creeping sense of ineptitude or impotence about our ability to do anything about it. — Corey Seymour, Vogue, "Pussy Riot's Nadya Tolokonnikova On Her New Guide To Activism, Raising The Next President Of Russia, And Her "Holy War" On Fairy Tales," 12 Oct. 2018 In exchange for political impotence, they would be mostly left alone and allowed to get rich. — Paul Mozur, New York Times, "Inside China’s Dystopian Dreams: A.I., Shame and Lots of Cameras," 8 July 2018 Their suspicion is compounded by rumors that the polio vaccine causes impotence, death and, ironically, paralysis. — Meher Ahmad, New York Times, "Pakistan Has Just One New Polio Case, but Isn’t Declaring Victory Yet," 20 May 2018 Fighting back, even as an exercise in impotence, did a lot for McCain. — Alex Horton, Washington Post, "John McCain rebelled at the Naval Academy — and as a POW — long before he was a Senate maverick," 3 May 2018 Feelings of desperation and impotence are being felt throughout Central America, where the lawlessness, endemic poverty and levels of gang violence akin to war zones that have driven so many families from their homes show little signs of abating. — Washington Post, "Violence keeps Central Americans coming to US despite Trump," 21 June 2018
Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
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.
Low-intensity extracorporeal shock wave therapy has been proposed as a new non-invasive treatment for erectile dysfunction caused by problems with blood vessels. Shock wave therapy machines are now available in some medical practices in Australia. Although there is some evidence that it may help a proportion of men with erectile dysfunction, more research is needed before clear recommendations on its use can be made.
Now, there are lots of ways that you can reduce stress and anxiety in your life. One of those things you can do is exercising daily. Now, it doesn’t mean getting into a gym all the time, but it can just be doing sit-ups at home, long walks at the grocery store, bicycling, and if you can afford the gym, getting there maybe two to three days a week. But don’t forget, a healthy body equals a healthy mind. Meditation, yoga, breathing exercises– now, here’s where you can take a few moments to be centered and communicate with your inner self, peace. Healthy eating– now, taking control of the intake of what goes into your body makes you to start feeling better and looking better. That wellness is the opposite of anxiety. And treating issues and tackling things that are weighing you down, taking that very first step is liberating.
ED is often the result of atherosclerosis, and as a result, men with ED frequently have cardiovascular disease. Sexual activity is associated with increased physical exertion, which in some men may increase the risk of having a heart attack (myocardial infarction or MI). The major risk factors associated with cardiovascular disease are age, hypertension, diabetes mellitus, obesity, smoking, abnormal lipid/cholesterol levels in the blood, and lack of exercise. Individuals with three or more of these risk factors are at increased risk for a heart attack during sexual activity. The Princeton Consensus Panel developed guidelines for treating ED in men with cardiovascular disease. Thus, if you have ED and cardiovascular disease (for example, angina or prior heart attack), you should discuss whether or not treatment of ED and sexual activity are appropriate for you.
Other form of sexual dysfunction, such as premature ejaculation and loss of libido (decreased sexual desire), are also very common. The NHSLS found that 28.5% of men 18-59 years of age reported premature ejaculation, and 15.8% lacked interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% indicated a lack of pleasure from sexual activity.
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.
Patients receiving penile prostheses should be instructed in the operation of the prosthesis before surgery and again in the postoperative period. The prosthesis usually is not activated until approximately 6 weeks after surgery, so as to allow the edema and pain to subside. The prosthesis is checked in the office before the patient begins to use it.
This is similar to magnetic resonance imaging. Magnetic resonance angiography uses magnetic fields and radio waves to provide detailed images of the blood vessels. Doctors may inject a "contrast agent" into the person's bloodstream that causes vascular tissues to stand out against other tissues. The contrast agent provides for enhanced information regarding blood supply and vascular anomalies.
Having your current medication checked – if you are taking medication already, it could be that your erection problems are a side effect. Have a doctor check whether this is the cause of your problems and if it is, you might be able to switch medications and then find that your erectile dysfunction goes away completely – or at least improves. Medications that can cause erection problems include:
NO is produced by the enzyme NO synthase (NOS).  NOS plays many roles, ranging from homeostasis to immune system regulation. To date, 3 subtypes have been identified: nNOS, iNOS, and eNOS, which are produced by the genes NOS1, NOS2, and NOS3, respectively. This nomenclature is derived from the sources of the original isolates: neuronal tissue (nNOS), immunoactivated macrophage cell lines (iNOS), and vascular endothelium (eNOS). The subtypes are not, however, limited to the tissues from which they were first isolated.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
The idea of using low-energy shock waves to treat erectile dysfunction comes from studies that show that these types of shocks help heart blood vessels regrow, a process called revascularization. Shock wave therapy may also work on the penis, and there have been some promising results, but it’s not currently an approved ED treatment. "It’s similar to the type of shock waves used to break up kidney stones, and it may cause revascularization,” says Bennett. “However, there are not yet any good controlled studies to recommend it to patients."
Suppositories “were developed so men wouldn’t have to use needles,” Bivalacqua says. They contain the drug alprostadil (also known as prostaglandin E1) and are sold under the brand name Muse. If they are going to work, it takes about five to 10 minutes. However, Muse produces erections in only 30 to 40 percent of patients, usually those with mild ED, because some of the drug is absorbed systemically and diverted from its function of opening penile arteries to allow more blood to flow in. The out-of-pocket cost is around $20 to $30 per suppository.
ICI therapy often produces a reliable erection, which comes down after 20-30 minutes or with climax. Since the ICI erection is not regulated by your penile nerves, you should not be surprised if the erection lasts after orgasm. The most common side effect of ICI therapy is a prolonged erection. Prolonged erections (>1 hour) can be reversed by a second injection (antidote) in the office.