How erectile dysfunction is diagnosed and treated
Learn how erectile dysfunction is diagnosed, the tests a doctor may order, and the key treatment options available depending on the cause.

Treatment of erectile dysfunction depends on identifying the underlying cause, so it always begins with a careful evaluation and a treatment plan suited to each patient.
A key part of successful treatment is answering the doctor's questions clearly, so they can determine whether the problem involves low sexual desire, erectile function, ejaculation or orgasm.
How is erectile dysfunction diagnosed?
The doctor examines the genitals, including the penis and testicles, as well as the rectum and prostate. They may order tests for testosterone and other male hormones and measure blood sugar. The doctor may also ask questions that help establish an accurate diagnosis, including:
- When did the symptoms appear, and did they start suddenly or gradually?
- Are there physical conditions such as high blood pressure, diabetes, or heart and blood-vessel disease?
- Is penetration difficult?
- Is there sexual desire or arousal?
- Do morning erections occur?
- Is there pain during erection, or a lump or curvature of the penis?
- Does the erection change in different situations, such as with a partner, during oral stimulation, or during masturbation?
- What is your psychological state, including anxiety, depression or work-related stress?
How is erectile dysfunction treated?
Erectile dysfunction can be treated in several ways, including the following:
Oral treatment
These medicines, called phosphodiesterase inhibitors, increase blood flow to the penis and include:
- Viagra® (sildenafil citrate)
- Levitra® (vardenafil)
- Cialis® (tadalafil)
- Stendra® (avanafil)
These medicines are taken before intercourse at an interval that varies according to the medicine, following the doctor's instructions. They should not be used by people taking nitrate-containing medicines.
Common side effects include headache, nasal congestion, muscle aches and indigestion. Viagra may rarely cause temporary blurred vision, and Cialis may cause back pain.
Testosterone therapy
If tests show low testosterone together with related symptoms, a doctor may recommend testosterone replacement therapy. In some cases it may be used alongside oral medicines.
Intracavernosal injection
Alprostadil is an approved treatment for men who do not obtain satisfactory results from oral medicines. It is injected into the side of the penis with a very fine needle and has high success rates among many men who do not respond to oral medicines.
Alprostadil can be combined with other medicines, such as bimix or trimix, for greater effectiveness. A common side effect is a burning sensation in the penis. If the erection lasts more than four hours, seek medical attention immediately.
Conclusion
Early diagnosis helps identify the cause of erectile dysfunction and select the most suitable treatment. Consult a doctor if symptoms persist or recur.
Sources
Ready to take the next step?
Private, practical support for men's health.
