It is normal for a man to have five to six erections during sleep, especially during rapid eye movement (REM). Their absence may indicate a problem with nerve function or blood supply in the penis. There are two methods for measuring changes in penile rigidity and circumference during nocturnal erection: snap gauge and strain gauge. A significant proportion of men who have no sexual dysfunction nonetheless do not have regular nocturnal erections.
2 inability of the adult male to achieve or sustain a penile erection or, less commonly, to ejaculate after achieving an erection. Several forms are recognized. Functional impotence has a psychological basis. Organic impotence includes vasculogenic, neurogenic, endocrinic, and anatomical factors. Anatomical impotence results from physically defective genitalia. Atonic impotence involves disturbed neuromuscular function. Poor health, old or advancing age, drugs, smoking, trauma, and fatigue can induce impotence. Also called erectile dysfunction, impotency. impotent, adj.
Diabetes is a well-recognized risk factor for ED. A systematic review and meta-analysis found that the prevalence of ED was 37.5% in type 1 diabetes, 66.3% in type 2 diabetes, and 52.5% in diabetes overall—a rate approximately 3.5 times higher than that in controls.  The etiology of ED in diabetic men probably involves both vascular and neurogenic mechanisms. Evidence indicates that establishing good glycemic control can minimize this risk.
Look, ED can have many causes. Most of the time, it’s physiological. But there are also lots of psychological reasons why someone may experience ED. Treating ED isn’t all about medication. Dealing with some of these psychological issues can help you battle ED, too. I’m talking about depression, anxiety, loss of desire, sense of inadequacy, guilt, fatigue, anger, relationship dysfunction. Working through these types of psychological challenges can help you achieve the happy, healthy manhood you deserve.
I’m going to share a secret with you. I understand that for men it’s a big (well, perhaps flaccid and at least momentarily small) deal when you can’t get hard. However, in most instances, women don’t give a fuck. We’re understanding creatures who (ahem) know a thing or two about not being able to get off every time. To ease the awkwardness, here are a few go-to phrases to drop when you just can’t get it up.
Yohimbine: The main component of an African tree bark, yohimbine is probably one of the most problematic of all natural remedies for ED. Some research suggests that yohimbine can improve a type of sexual dysfunction that is linked with a drug used to treat depression. However, studies have linked yohimbine to a number of side effects, which can include anxiety, increased blood pressure, and a fast, irregular heartbeat. Like all natural remedies, yohimbine should only be used after advice and under supervision from a doctor.
A good indicator that "everything is in working order" and that it is probably a psychological cause is if a “morning erection” is still experienced. Feelings like fear, anger, distress and anxiety cause part of the nervous system to come into play which directly blocks the action of another part of the system involved in creating an erection. This is a natural reaction – our ancestors would find it more difficult to run from a predator with an erection in the way!
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. 
In men, erectile dysfunction can be defined as being a persistent inability to get or keep an erection that is firm enough to attain sexual satisfaction. It should not be confused with the occasional incident when this occurs, which is an experience common to the vast majority of men for various reasons. These can include having had too much alcohol to drink, being overly-anxious about a new sexual partner, or being worried about current events in your life. The issue would only be classed as Erectile Dysfunction if it keeps happening again and again. Again, an erection once attained should be hard enough and last long enough to be satisfactory. Other conditions, like premature ejaculation, may interfere in this process but these are different problems, and would be treated differently.
A system for inserting a pellet of alprostadil into the urethra is marketed as MUSE. The system uses a pre-filled applicator to deliver the pellet about an inch deep into the urethra at the tip of the penis. An erection will begin within 8 to 10 minutes and may last 30 to 60 minutes. The most common side effects of the preparation are aching in the penis, testicles, and area between the penis and rectum; warmth or burning sensation in the urethra; redness of the penis due to increased blood flow; and minor urethral bleeding or spotting.
In other words, there are dozens of reasons he might not be getting it up, which have absolutely nothing to do with your relationship. Honestly, there's just no way for me to give you specific advice here. If it's a serious problem, you should encourage him to check in with his primary care physician first, and then, perhaps, a therapist, in the nicest way possible.
Three forms of penile prostheses are available for patients who fail with or refuse other forms of therapy: semirigid, malleable, and inflatable. The effectiveness, complications, and acceptability vary among the three types of prostheses, with the main problems being mechanical failure, infection, and erosions. Silicone particle shedding has been reported, including migration to regional lymph nodes; however, no clinically identifiable problems have been reported as a result of the silicone particles. There is a risk of the need for reoperation with all devices. Although the inflatable prostheses may yield a more physiologically natural appearance, they have had a higher rate of failure requiring reoperation. Men with diabetes mellitus, spinal cord injuries, or urinary tract infections have an increased risk of prosthesis-associated infection. This form of treatment may not be appropriate in patients with severe penile corporal fibrosis, or severe medical illness. Circumcision may be required for patients with phimosis and balanitis.
Psychotherapy and/or behavioral therapy may be useful for some patients with erectile dysfunction without obvious organic cause, and for their partners. These may also be used as an adjunct to other therapies directed at the treatment of organic erectile dysfunction. Outcome data from such therapy, however, have not been well-documented or quantified, and additional studies along these lines are indicated.
Causes contributing to erectile dysfunction can be broadly classified into two categories: organic and psychologic. In reality, while the majority of patients with erectile dysfunction are thought to demonstrate an organic component, psychological aspects of self-confidence, anxiety, and partner communication and conflict are often important contributing factors.
For example, many men with diabetes mellitus may develop erectile dysfunction during their young and middle adult years. Physicians, diabetes educators, and patients and their families are sometimes unaware of this potential complication. Whatever the causal factors, discomfort of patients and health care providers in discussing sexual issues becomes a barrier to pursuing treatment.
The primary nerve fibers to the penis are from the dorsal nerve of the penis, a branch of the pudendal nerve. The cavernosal nerves are a part of the autonomic nervous system and incorporate both sympathetic and parasympathetic fibers. They travel posterolaterally along the prostate and enter the corpora cavernosa and corpus spongiosum to regulate blood flow during erection and detumescence. The dorsal somatic nerves are also branches of the pudendal nerves. They are primarily responsible for penile sensation. 
Aging: There are two reasons why older men are more likely to experience erectile dysfunction than younger men. First, older men are more likely to develop diseases (such as heart attacks, angina, cardiovascular disease, strokes, diabetes mellitus, and high blood pressure) that are associated with erectile dysfunction. Second, the aging process alone can cause erectile dysfunction in some men by causing changes in the muscle and tissue within the penis.
3. An intact, anatomically correct penis; 25% of impotence may be psychologic or 'partner-specific', 25% has an organic component and 50% of impotence is organic in nature; in organic impotence, nocturnal penile tumescence is absent Management-surgical Microvascular surgery to bypass occluded vessels–most effective in younger ♂, penile prosthesis Management-medical Combined therapy with phentolamine and papaverine–self-injected by the Pt, wielding an erection of 1 hr's duration is useful for arterial, neurologic, psychogenic impotence; other therapies–zinc, bromocriptine–Parlodel, isoxsuprine-Vasodilan, Voxsuprine, nitroglycerine, yohimbine–Yocon, Yohimex Etiology Smoking, CAD, HTN, DM, medications–hypoglycemic agents, vasodilators, cardiac drugs, antihypertensives, anger and depression; it is inversely correlated to dehydroepiandrosterone, HDL-C, and an index of dominant personality Primary impotence Complete absence of successful sexual coupling Secondary impotence Priapism, penile plaques, Peyronie's disease; drugs linked to impotence: antihypertensives–eg, methyldopa, guanethidine, reserpine, clonidine, due to ↓ BP, antidepressants–eg, phenelzine, isocarboxazide, amitriptyline–causing altered moods and decreased libido, tranquilizers–eg, chlordiazepoxide and lorazepam, and the muscle-relaxing diazepam, cimetidine, which ↑ prolactin, and is associated with impotence and loss of libido. Cf Infertility, Orgasmic dysfunction.
Impotence, also called erectile dysfunction, in general, the inability of a man to achieve or maintain penile erection and hence the inability to participate fully in sexual intercourse. In its broadest sense the term impotence refers to the inability to become sexually aroused; in this sense it can apply to women as well as to men. In common practice, however, the term has traditionally been used to describe only male sexual dysfunctions. Professional sex therapists, while they identify two distinct dysfunctions as forms of impotence, prefer not to use the term impotence per se. Thus, because of its pejorative connotation in lay usage and because of confusion about its definition, the word impotence has been eliminated from the technical vocabulary in favour of the term “erectile dysfunction.”
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.
Penile implants: This treatment involves permanent implantation of flexible rods or similar devices into the penis. Simple versions have the disadvantage of giving the user a permanent erection. The latest (and most expensive) device consists of inflatable rods activated by a tiny pump and switch in the scrotum. Squeezing the scrotum stiffens the penis, whether the person is aroused or not. The penis itself remains flaccid, however, so the diameter and length are usually less than a natural erection, and hardness is lacking, although it's sufficient for intercourse.
Physical examination should include the assessment of male secondary sex characteristics, femoral and lower extremity pulses, and a focused neurologic examination including perianal sensation, anal sphincter tone, and bulbocavernosus reflex. More extensive neurologic tests, including dorsal nerve conduction latencies, evoked potential measurements, and corpora cavernosal electromyography lack normative (control) data and appear at this time to be of limited clinical value. Examination of the genitalia includes evaluation of testis size and consistency, palpation of the shaft of the penis to determine the presence of Peyronie's plaques, and a digital rectal examination of the prostate with assessment of anal sphincter tone.
Vascular: Anything that affects the flow of blood to the penis can result in erectile dysfunction. The main culprit tends to be atherosclerosis, the condition that narrows arteries and which can result in poor blood circulation, high blood pressure, heart disease and stroke. Atherosclerosis causes about half the cases of erectile dysfunction in men over 50. Also, the veins through which the blood leaves the penis may not be working properly, allowing the blood to leave too soon.
In this study, ED proceeded CVD in almost 70% of cases. Similarly, many men with ED have been found to have pre-existing CVD. A study by Vlachopoulos et al evaluated the incidence of asymptomatic CVD in 50 men with ED.22 These authors found that 19% of men with ED had asymptomatic CVD. Similarly, Mulhall and colleagues found that 20% of men presenting with ED and vascular insufficiency on penile duplex had asymptomatic CVD.23
Alteration of NO levels is the focus of several approaches to the treatment of ED. Inhibitors of phosphodiesterase, which primarily hydrolyze cGMP type 5, provided the basis for the development of the PDE5 inhibitors. Chen et al administered oral L-arginine and reported subjective improvement in 50 men with ED.  These supplements are readily available commercially. Reported adverse effects include nausea, diarrhea, headache, flushing, numbness, and hypotension.
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.
Impotence is a common problem among men and is characterized by the consistent inability to sustain an erection sufficient for sexual intercourse or the inability to achieve ejaculation, or both. Erectile dysfunction can vary. It can involve a total inability to achieve an erection or ejaculation, an inconsistent ability to do so, or a tendency to sustain only very brief erections.
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
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.