Alprostadil should not be used in men at higher risk for priapism (erection lasting longer than six hours) including men with sickle cell anemia, thrombocytopenia (low platelet count), polycythemia (increased red blood cell count), multiple myeloma (a cancer of the white blood cells), and is contraindicated in men prone to venous thrombosis (blood clots in the veins) or hyperviscosity syndrome who are at increased risk for priapism.
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:
Medical conditions, such as hypertension, diabetes mellitus, and cardiovascular disease (CVD), and psychological conditions, such as depression and anxiety, also contribute to sexual dysfunction in middle-aged or elderly men. CVD and hypertension cause a narrowing and hardening of the arteries, leading to reduced blood flow to the corporal bodies, which is essential for achieving an erection. Diabetes is a common aetiology of sexual dysfunction, because it can affect both the blood vessels and the nerves that supply the penis. Men with diabetes are four times more likely to experience ED, and on average, experience ED 15 years earlier than men without diabetes.7 Obesity is also correlated to the development of several types of dysfunction, including a decrease in sex drive and an increase in episodes of ED.8
In some cases, nocturnal penile tumescence testing is performed to find out whether the man has erections while asleep. Healthy men usually have about four or five erections throughout the night. The man applies a device to the penis called a Rigiscan before going to bed at night, and the device can determine whether he has had erections. (If a man is able to have normal erections at night, this suggests a psychological cause for his impotence.)
The phrase “use it before you lose it” can be applied when it comes to helping men with ED regain normal erectile function. Pelvic exercises, more commonly known as kegel exercises, are used to promote urinary continence and sexual health. They help to strengthen the bulbocavernosus muscle, which does three things: allows the penis to engorge with blood during erection, it pumps during ejaculation, and it helps empty the urethra after urination, according to Healthline.
In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile dysfunction.
Fortunately, impotence is usually treatable. A thorough evaluation starting with a history and physical exam is needed to help diagnose the underlying cause. Once the cause of impotence is determined, treatment can be tailored to target that cause and any other contributing factors. Treatments used for impotence may include medications, vacuum devices, surgery, and psychotherapy.
Organic Impotence. Diabetes mellitus, thyroid disease, and dysfunction of the pituitary gland or testes can cause impotence, as can certain medications. Other organic causes include arterial ischemia associated with atherosclerosis of the aorta and common iliac arteries, extensive pelvic surgery such as radical prostatectomy, spinal cord injury and other neurologic disorders, and a history of cigarette smoking. Because certain medications can cause impotence, it is recommended that in cases of recent impotence it be determined whether the patient has started on a new drug. The most common offenders are diuretics, antihypertensives, and vasodilators. Alcohol, which sometimes is ignored as a drug, is often a contributor to the problem of impotence.
In a prospective, multicenter, single-armed study of ED patients who exhibited a suboptimal response to PDE5 inhibitors, the investigators found that percutaneous implantation of zotarolimus-eluting stents in focal atherosclerotic lesions was both safe and feasible and was associated with clinically meaningful improvement on subjective and objective measures of erectile function. 
As men age they require more stimulation up front to get and maintain an erection firm enough for sex. Engaging in some foreplay either on you or on your partner is a great way to get your arousal levels up and get an erection that is firm enough for sex. Many men begin to rush the process of sex once they experience ED. They worry that they will lose their erection so they rush rather than go slow understanding that rushing will only make the problem worse.
There are risks to prosthetic surgery and patients are counselled before the procedure. If there is a post-operative infection, the implant will likely be removed. The devices are reliable, but in the case of mechanical malfunction, the device or a part of the device will need to be replaced surgically. If a penile prosthesis is removed, other non-surgical treatments may no longer work.