Erections are more complicated than you think. Your brain, nerves, heart, blood vessels, and a whole lot of hormones have to work together perfectly or nothing happens. It’s a lot to ask, and sometimes things break down. And while ED happens to most guys at some point in their lives, erectile dysfunction isn’t something you can just ignore and hope it goes away.
Take an ED drug. Such drugs can help men maintain erections for several hours at a time. They work by enhancing the effect of nitric oxide, which the body produces naturally to relax and increase blood flow to the penis. If you're interested in taking a drug specifically geared toward treating ED, talk with your doctor about getting a prescription.
Over a 2-year period, a third of the men randomized to a weight loss program demonstrated resolution of erectile dysfunction.10 A Mediterranean diet and nutritional counseling reported increased erectile quality.18 Little evidence supports that increased physical activity alone improves erectile quality; however, the strong association between physical activity and lower BMI is well described, and therefore recommended for men with erectile dysfunction and without a contraindication to physical activity.
If you have a neurological disorder or spinal cord injury and other erectile dysfunction treatments aren’t effective, two types of surgical implants could offer solutions to your ED. “An implantable pump can be used to manually create an erection by pumping fluid into cylinders placed inside the penis,” explains Feloney. “The other option is a malleable prosthesis that works like a gooseneck lamp to direct the penis into position for intercourse." Risks for these ED treatments include infection and mechanical breakdown.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
Finally, there are NO-releasing polymers that are capable of delivering NO in a pharmacologically useful way. Such compounds include compounds that release NO upon being metabolised and compounds that release NO spontaneously in aqueous solution. Initial animal studies suggest that cavernosal injections of NO polymers can significantly improve erectile function.48
Impotence is the inability to get and keep an erection hard enough to have sex. Many men experience difficulties getting an erection when they are tired or stressed. This is normal and it doesn’t require treatment. However, if you encounter problems that persist, you may be suffering with a degree of impotence. Impotence is a very treatable condition and help is available either when you visit your local GP or an online doctor.
The main surgical treatment of ED involves insertion of a penile implant (also called penile prostheses). Because penile vascular surgery is not recommended for aging males who have failed oral PDE5 inhibitors, ICI or IU therapies, implants are the next step for these patients. Although placement of a penile implant is a surgery which carries risks, they have the highest rates of success and satisfaction among ED treatment options.