Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
…have traditionally been classified as impotence (inability of a man to achieve or maintain penile erection) and frigidity (inability of a woman to achieve arousal or orgasm during sexual intercourse). Because these terms—impotence and frigidity—have developed pejorative and misleading connotations, they are no longer used as scientific classifications, having been…
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. 
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.
Alprostadil should not be used in men with urethral stricture (scarring and narrowing of the tube that urine and the ejaculate pass through), balanitis (inflammation/infection of the glans [tip] of the penis, severe hypospadias (a condition where the opening of the urethra is not at the tip of the penis, rather on the underside of the penis), penile curvature (abnormal bend to the penis), and urethritis (inflammation/infection of the urethra).
PDE 5 inhibitors are broken down primarily by enzyme, cytochrome P450enzyme CYP3A4. Medications that decrease or increase the activity of CYP3A4 may affect levels and effectiveness of PDE 5 inhibitors. Such drugs include medications for the treatment of HIV (protease inhibitors) and the antifungal medications ketoconazole and itraconazole. Thus caution is recommended.
Since endothelial dysfunction, CVD and ED are closely associated in epidemiological studies, the question for clinicians is whether to recommend the man presenting with ED undergo a cardiovascular (CV) evaluation. Clearly, based on numerous studies, ED can be considered at least a ‘marker’ for possible further vascular disease or CVD.15 In their report, Vlachopoulos and coworkers make the point that the man presenting with ED, the clinician, is offered an opportunity to attempt to improve the health of the man by addressing lifestyle modification, and consider further vascular evaluation owing to the clear relationship between endothelial dysfunction, ED and CVD.19
Traditionally, erectile impotence (the classical definition of impotence) is the failure to achieve penile erection during intercourse. It may have either physical or psychological causes. Alcoholism, endocrine disease, and neurological disorders are typical physical causes. Psychological causes include anxiety over performance, hostility or other negative feelings toward the sexual partner, and stress, anxiety, depression, or other emotional conflicts outside of the relationship. Erectile impotence occasionally occurs with age and, although attributed by the individual to the aging process itself, it is usually secondary to disorders of aging, such as faulty blood circulation or prostate disease. In cases of impotence caused by blood vessel dysfunction, an insufficient supply of blood flows into the penis, or the blood diffuses out into adjacent tissues.
So not only are erectile problems common, they're nothing for you or your special friend to be freaked out about. Check out the nine most common reasons that dudes sometimes can't get it up, and get ready to become the soothing voice of reason the next time the guy you're with has a hard time pitching his tent in your happy valley. Everything (and every penis) is gonna be fine!
Conditions associated with reduced nerve and endothelium function (eg, aging, hypertension, smoking, hypercholesterolemia, and diabetes) alter the balance between contraction and relaxation factors (see Pathophysiology). These conditions cause circulatory and structural changes in penile tissues, resulting in arterial insufficiency and defective smooth muscle relaxation. In some patients, sexual dysfunction may be the presenting symptom of these disorders.
So what can you do to help things along a little? Well, chances are it may sort itself out as you settle in to your relationship. But if it keeps happening and you see a future in the relationship, you need to talk about it, or it will soon become the elephant in the bedroom. Pick a time with no distractions and where nobody can overhear you. Tell them that you care about them and that you don’t need to rush things sexually. This can take the pressure off the need to perform.
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.
The physical examination can reveal clues for physical causes of erectile dysfunction. A doctor will perform an assessment of BMI and waist circumference to evaluate for abdominal obesity. A genital examination is part of the evaluation of erectile dysfunction. The examination will focus on the penis and testes. The doctor will ask you about penile curvature and will examine the penis to see if there are any plaques (hard areas) palpable. The doctor will examine the testes to make sure they are in the proper location in the scrotum and are normal in size. Small testicles, lack of facial hair, and enlarged breasts (gynecomastia) can point to hormonal problems such as hypogonadism with low testosterone levels. A health care provider may check pulses in your groin and feet to determine if there is a suggestion of hardening of the arteries that could also affect the arteries to the penis.
Men are very susceptible to visual stimulation, particularly as children and teenagers. Seeing anything appealing (say, a person or image) activates pathways in the brain that tell nerves in your lower spinal cord to trigger a release of nitric oxide, which relaxes blood vessel walls and floods your penis with blood, making it hard. Nitric oxide is the key chemical here, as you need a mix released from your nerves AND from your blood vessels to get an erection. If the blood vessels, nerves, or both are damaged, it's difficult to get a hard erection. That's why your doctor may well be interested if you're struggling with erections, as it could be a sign of early heart disease or diabetes.
Psychotherapy, marital counseling, or sex therapy may be helpful in treating cases of impotence that have psychological or emotional causes. A range of other treatments exists for cases of impotence that arise from purely physiological causes. These treatments include vacuum devices, penile injections, and penile implants. These mechanical or physically invasive approaches have largely been superseded, however, by the drug sildenafil citrate (trade name Viagra), which is taken in pill form. This drug works by enhancing the effects of nitric oxide, a chemical that, upon sexual stimulation, is normally released to widen the blood vessels supplying the penis. The increased flow of blood through those vessels into certain tissues in the penis causes an erection. See also sexual dysfunction.
While we may think the penis has a mind of it’s own, it’s actually heavily dependent to the brain, and too much stress can interfere with a man’s ability to obtain and hold an erection. According to Healthline, stress can interrupt how your brain sends messages to the penis to allow extra blood flow. Even though a man may want to have sex, too much stress can make this impossible.
With sex therapy, your counselor looks at the sexual problems you and your partner are having. Sex therapy works with problems such as performance anxiety, which means that you worry so much about whether you will be able to have sex that you are not able to. It also helps when you have erection problems that are not due to physical or drug problems, or premature ejaculation (you come too quickly). It may help you to reach orgasm or to learn to relax enough to avoid pain during sex. Counseling can help you to adjust to the treatment you and your doctor choose.
Maybe your performance issues stem from feelings of discomfort relating to something you've done. Are you having trouble performing because you're feeling uncertain about whether you really love your partner? Or because you feel like you crossed a line in terms of infidelity and now the guilt is tearing you up inside? Maybe your conscience is what's wreaking havoc with your sex.
Uncooperative boners might be related to low testosterone, which could be caused by anything from being overweight or stressed to having a chronic health condition, says Paduch. And in men who have taken anabolic steroids, it's not uncommon for them to end up suppressing their natural testosterone production. If you abuse it over a long period of time, you can really mess with your natural testosterone levels, as well as your fertility and erectile function, he says.
Another study compared the response of surgically and medically castrated rabbits to vardenafil with that of control rabbits.  Castrated rabbits did not respond to vardenafil, whereas noncastrated rabbits did respond appropriately. This result suggests that a minimum amount of testosterone is necessary for PDE5 inhibitors to produce an erection.
If you have symptoms of ED, it’s important to check with your doctor before trying any treatments on your own. This is because ED can be a sign of other health problems. For instance, heart disease or high cholesterol could cause ED symptoms. With a diagnosis, your doctor could recommend a number of steps that would likely improve both your heart health and your ED. These steps include lowering your cholesterol, reducing your weight, or taking medications to unclog your blood vessels.