An erection might last indefinitely if it weren’t for chemicals in the body called phosphodiesterases. They work at reversing the process trying to return the penis to being soft (i.e., flaccid). Usually there is a balance between the chemicals that result in an erection lasting for as long as it is needed, which allows the phosphodiesterases to do their job when they should and no sooner. You wouldn’t want an erection forever so it is a good thing that phosphodiesterases exist.
A lot of guys don’t want to admit it, but not being able to get or keep an erection happens more often than you’d think. Guys usually have trouble getting or keeping an erection when they’re nervous, scared or worried about something. They might be worried about how they’ll “perform,” or they could be feeling guilty about having sex. They might be afraid of getting a sexually transmitted disease (STD), or, if they are with a girl, getting their partner pregnant. Drugs (including some anti-depressants) and alcohol can also prevent you from getting and/or maintaining an erection.
Radical prostatectomy for the treatment of prostate cancer poses a significant risk of ED. A number of factors are associated with the chance of preserving erectile function. If both nerves that course on the lateral edges of the prostate can be saved, the chance of maintaining erectile function is reasonable. The odds depend on the age of the patient. Men younger than 60 years have a 75-80% chance of preserving potency, but men older than 70 years have only a 10-15% chance.
The drugs are worth trying, but don’t expect miracles. Everyone has heard of Viagra, but Cialis is actually more popular because it’s effective longer—24 to 36 hours instead of three to five. Erection drugs improve erections in around two-thirds of men. They don’t work for about one-third. When they work, they do not produce porn-star erections. Over time, many men need larger doses. But as dosage increases, side effects become more likely, notably, headache and nasal congestion. Finally, the drugs have no effect on arousal, so men may raise erections but don't feel particularly interested in sex. Many men feel disappointed with the drugs. Fewer than half refill their prescriptions.
The key to this line is to act chill. An occasional soft dick ain’t no thang. But if you get angry, throw off the sheets, and stomp around the apartment while your partner sits in bed watching a grown man throw a temper tantrum, it becomes a thang. Throw out an apology to cover your bases, and then let it go. Once again for the guys in the back: Women understand about not always being able to get wet. And we really understand about not being able to get off every time. One in three women has trouble reaching orgasm during sex. I get that it’s not the exact same thing, but we’re empathetic. A good rule of thumb for almost all insecurities is the less of a big deal you make about something, the less others will.
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
The laboratory results should be discussed with the patient and, if possible, with his sexual partner. This educational process allows a review of the basic aspects of the anatomy and physiology of the sexual response and an explanation of the possible etiology and associated risk factors (eg, smoking and the use of various medications). Treatment options and their benefits and risks should be discussed. This type of dialogue allows the patient and physician to cooperate in developing an optimal management strategy.
Half of all men between the ages of 40 and 70 will experience erectile dysfunction. While the problem doesn't cause heart disease, the two often occur together – study after study has shown that men with ED are dramatically more likely to develop heart disease and have a heart attack or stroke. One German study from 2010 found men with erectile dysfunction are twice as likely to die within the next two years as those without, prompting some experts to call the phenomenon "the canary in the trousers".
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.
Total testosterone levels: Health care professionals should obtain a patient's blood samples for total testosterone levels in the early morning (before 8 a.m.) because the testosterone levels go up and down throughout the day. If you have a low testosterone level, a health care professional should check it again to confirm that it is truly low. In some men, a specialized test measuring the active form of testosterone (free or bioavailable testosterone) may be recommended.
The main medical causes of erectile dysfunction are based around poor blood flow (due to furring of the arteries thanks to raised cholesterol or high blood pressure), poor nerve supply caused by diabetes-related nerve damage, or low testosterone as a result of obesity, old age or failing gonads. We doctors get just as concerned with men who have variable erections as well as those that can't get an erection at all. Failing to get an erection occasionally is pretty normal as you get older. But if you have unreliable erections for a prolonged period of time – more than six months – this could suggest an early sign of physical problems such as cardiovascular disease or diabetes which could develop further so get yourself checked out.