Currently, there are no therapies that cure erectile dysfunction. However, a number of effective therapies are available that allow an individual to have an erection when desired. Depending on the cause of the erectile dysfunction, certain therapies may be more effective than others. Although there is limited data on lifestyle modification, intuitively, decreasing risk factors for erectile dysfunction may help prevent progression of disease.
The causes of erectile dysfunction include aging, high blood pressure, diabetes mellitus, cigarette smoking, atherosclerosis (hardening of the arteries), depression, nerve or spinal cord damage, medication side effects, alcoholism or other substance (drug) abuse, pelvic surgery including radical prostatectomy, pelvic radiation, penile/perineal/pelvic trauma such as pelvic fracture, Peyronie's disease (a disorder that causes curvature of the penis and sometimes painful erections), and low testosterone levels.
Tests such as the bulbocavernosus reflex test are used to determine if there is sufficient nerve sensation in the penis. The physician squeezes the glans (head) of the penis, which immediately causes the anus to contract if nerve function is normal. A physician measures the latency between squeeze and contraction by observing the anal sphincter or by feeling it with a gloved finger inserted past the anus.
The recommended starting dose of tadalafil for use as needed for most patients is 10 mg taken orally approximately one hour before sexual activity. A doctor may adjust the dose higher to 20 mg or lower to 5 mg depending on efficacy and side effects. Doctors recommended that patients take tadalafil no more frequently than once per day. Some patients can take tadalafil less frequently since the improvement in erectile function may last 36 hours. Patients may take tadalafil with or without food. Tadalafil is currently the only PDE5 inhibitor that is FDA-approved for daily use for erectile dysfunction and is available in 2.5 mg or 5 mg dosages for daily use.
Erectile dysfunction (ED) is the inability to get and keep an erection firm enough for sexual intercourse. Estimates suggest that one of every 10 men will suffer from ED at some point during his lifetime. It is important to understand that in most cases, ED is a symptom of another, underlying problem. ED is not considered normal at any age, and may be associated with other problems that interfere with sexual intercourse, such as lack of desire and problems with orgasm and ejaculation.
When a man becomes sexually excited, muscles in their penis relax. This relaxation allows for increased blood flow through the penile arteries. This blood fills two chambers inside the penis called the corpora cavernosa. As the chambers fill with blood, the penis grows rigid. Erection ends when the muscles contract and the accumulated blood can flow out through the penile veins.
If you bike a lot and have a very narrow saddle on your bicycle, consider switching to a "no-nose seat" which is wider at the back than a conventional saddle, allowing more of your weight to be distributed to the sitting bones. Make sure the seat is level or angled slightly downward and at a height that allows your knee to be just slightly bent at the bottom of the pedal cycle. Raising the handlebars on your bike so that you're sitting upright may also help.
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. 
Phosphodiesterase type V inhibitors (PDE-5 inhibitors) are the most commonly used therapy for erectile dysfunction. These medications work by preventing the breakdown of chemicals that stimulate increased blood flow into the penis. Several different PDE-5 inhibitors are available, which differ slightly in how to use them and their side effects. They appear to be equally effective in the treatment of erectile dysfunction in general, but some individuals may respond to one of these medications more effectively than another.
Treatment depends on the underlying cause. In general, exercise, particularly of the aerobic type, is effective for preventing ED during midlife. Exercise as a treatment is under investigation.:6, 18–19 For tobacco smokers, cessation often results in a significant improvement. Oral pharmacotherapy and vacuum erection devices are first-line treatments,:20, 24 followed by injections of drugs into the penis, as well as penile implants.:25–26 Vascular reconstructive surgeries are beneficial in certain groups.
One study examined the role of testosterone supplementation in hypogonadal men with ED. These men were considered nonresponders to sildenafil, and their erections were monitored by assessing nocturnal penile tumescence (NPT). After these men were given testosterone transdermally for 6 months, the number of NPTs increased, as did the maximum rigidity with sildenafil.  This study suggests that a certain level of testosterone may be necessary for PDE5 inhibitors to function properly.