"Data shows the longer you ride, the higher your chance of developing ED in terms of distance per week," Gittens says. If you cycle for exercise or socialization, you don't have to necessarily give it up, just make some modifications. Gittens suggests riding for shorter distances, giving yourself a rest every once in a while, finding a comfortable seat, and getting a bike that’s sized appropriately.
Treatments include psychotherapy, adopting a healthy lifestyle, oral phosphodiesterase type V (PDE5) inhibitors (Viagra, Levitra, Cialis, Stendra, and Staxyn), intraurethral prostaglandin E1 (MUSE), intracavernosal injections (prostaglandin E1 [Caverject, Edex], Bimix and Trimix), vacuum devices, penile prosthesis and vascular surgery, and (in some cases) changes in medications when appropriate.
Relationship problems can make it difficult for you to get or stay hard when you’re attempting to have sex with the person you’re in a relationship with. However, if you have this problem and you’re in a relationship that doesn’t mean your relationship is necessarily the reason. There are lots of other reasons you might not be able to get or stay hard (see above).
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.
Although not proven, it is likely that erectile dysfunction can be prevented by good general health, paying particular attention to body weight, exercise, and cigarette smoking. For example, heart disease and diabetes are problems that can cause erectile dysfunction, and both are preventable through lifestyle changes such as sensible eating and regular exercise. Furthermore, early diagnosis and treatment of associated conditions like diabetes, hypertension and high cholesterol may prevent or delay erectile dysfunction, or stop the erectile dysfunction from getting more serious.
The Latin term impotentia coeundi describes simple inability to insert the penis into the vagina; it is now mostly replaced by more precise terms, such as erectile dysfunction (ED). The study of erectile dysfunction within medicine is covered by andrology, a sub-field within urology. Research indicates that erectile dysfunction is common, and it is suggested that approximately 40% of males with erectile dysfunction or impotence, at least occasionally. The condition is also on occasion called phallic impotence. Its antonym or opposite condition is priapism.
Penile erection is managed by two mechanisms: the reflex erection, which is achieved by directly touching the penile shaft, and the psychogenic erection, which is achieved by erotic or emotional stimuli. The former uses the peripheral nerves and the lower parts of the spinal cord, whereas the latter uses the limbic system of the brain. In both cases, an intact neural system is required for a successful and complete erection. Stimulation of the penile shaft by the nervous system leads to the secretion of nitric oxide (NO), which causes the relaxation of smooth muscles of corpora cavernosa (the main erectile tissue of penis), and subsequently penile erection. Additionally, adequate levels of testosterone (produced by the testes) and an intact pituitary gland are required for the development of a healthy erectile system. As can be understood from the mechanisms of a normal erection, impotence may develop due to hormonal deficiency, disorders of the neural system, lack of adequate penile blood supply or psychological problems. Spinal cord injury causes sexual dysfunction including ED. Restriction of blood flow can arise from impaired endothelial function due to the usual causes associated with coronary artery disease, but can also be caused by prolonged exposure to bright light.
The nerves and endothelium of sinusoids and vessels in the penis produce and release transmitters and modulators that control the contractile state of corporal smooth muscles. Although the membrane receptors play an important role, downstream signaling pathways are also important. The RhoA–Rho kinase pathway is involved in the regulation of cavernosal smooth muscle contraction. 
Just as certain meds can make it difficult for men to have an orgasm, some can keep the flagpole from even getting raised in the first place. Anti-depressant medications like Prozac and Zoloft, anti-anxiety pills like Valium, high blood pressure medicine like Diuril, and even over-the-counter cold medicines like Sudafed and anti-heartburn pills like Zantac can inhibit erections.
Infection is a concern after placement of a prosthesis and is a reported complication in 8%-20% of men undergoing placement of a penile prosthesis. If a prosthesis becomes infected (redness, pain, and swelling of the penis and sometimes purulent drainage are signs of infection), the prosthesis must be removed. Depending on the timing and severity of the infection and your surgeon's preference, the area can be irrigated extensively with antibiotic solutions and a new prosthesis placed at the same time or removal of the infected prosthesis and an attempt to place a new prosthesis made at a later time when the infection is totally cleared.
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.
Picture the scene. You get home from the bar with your date. You both decided to leave a little early, after only two drinks, because the chemistry was really there and both of you wanted to cut to the chase and get intimate. To discover each other's bodies. To eat of the fruits of passion. In short, to have sex. You stick the key in the lock, swing the door open, and invite her into your beautiful place. OK, well it might not be exactly beautiful. It might be a bit of a mess, frankly. But you don't let that ruin the moment. You turn around and passionately kiss her. How the two of you make it to your bedroom with some clothing still on is anybody's guess. You jump on the bed and hurriedly strip. God — can't this go any faster, you wonder?
Implantable penile prostheses are usually considered a last resort for treating impotence. They are implanted in the corpora cavernosa to make the penis rigid without the need for blood flow. The semirigid type of prosthesis consists of a pair of flexible silicone rods that can be bent up or down. This type of device has a low failure rate but, unfortunately, it causes the penis to always be erect, which can be difficult to conceal under clothing.
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.