Erectile dysfunction (ED) is trouble getting or keeping an erection of the penis. The penis is not firm enough to have sex.
An erection happens when blood fills the penis. Some blood vessels open wide to let blood flow into the penis. Other blood vessels shrink to keep the blood from leaving the penis. The change in the blood vessels is controlled by nerves.
ED may be caused by:
Blood vessel injury or disease. These can change blood flow.
Harm to nerves that control blood vessels or feeling in the penis.
Stress that change how the nerves work—This is more likely in men with sudden ED.
Hormone problems such as low testosterone or thyroid disease.
Certain medicines such as those that treat high blood pressure, mental health problems, or heart rhythm problems.
Structural problems caused by Peyronie disease, hypospadias, or penile fracture.
ED is more common in men aged 40 years and older. The risk goes higher with age.
Had surgery on their nerves, spinal cord, blood vessels, or prostate
Smoke, drink too much alcohol, use illegal drugs, or lack regular exercise
Take certain medicines
The main symptom of ED is not being able to get or keep an erection long enough to have sex.
The doctor will ask about your symptoms and health past. A physical exam will be done. This will include a genital and rectal exam.
The doctor will ask about the quality of erections. This may include questions about the time of day, how rigid the erection is, and how long it lasts. The doctor may also ask about your mental state, desire, arousal, ejaculation, and orgasms. The answers can help point to the source of the problem.
A nocturnal penile tumescence test will check for erections while you sleep. If you have normal erections during sleep the cause may be psychological. If you have problems with an erection, even while you sleep, the cause may be physical.
Other tests to find a cause may include:
Blood tests—to check for health problems such as diabetes or high cholesterol, or look at testosterone levels
ultrasound—to check blood flow in the penis
ED care may involve one or more of these:
Many lifestyle habits can be changed. These can help blood flow, or how nerves and blood vessels work. General steps are:
Lose excess weight—This can also help balance hormones.
Quit smoking—Your doctor will help you find the best method.
Get regular exercise.
Limit alcohol to 2 drinks or less a day.
Do not use illegal drugs.
Find ways to relax and lower stress.
ED can be treated with medcine to:
Relax muscles and improve blood flow to the penis—Do not take some of these medicines if you take nitrates
Boost testosterone levels—These supplements are only helpful if you have low testosterone
ED medicine can be taken by mouth or as a shot, or be placed on the skin or into the tip of the penis.
Talk to your doctor before taking any over the counter medicine for ED. Some of them may be unsafe.
A vacuum device
pulls blood into the penis. A band is placed around the penis to keep the erection.
Surgery can be used to fix blood vessels or other structural problems.
Implants may be placed in the penis. The implants can be inflated to make an erection when needed.
Erectile dysfunction. National Institute of Diabetes and Digestive and Kidney Diseases website. Available at: https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction. Accessed July 17, 2019.
Erectile dysfunction. Urology Care Foundation website. Available at: http://www.urologyhealth.org/urologic-conditions/erectile-dysfunction. Accessed July 17, 2019.
Shamloul R, Ghanem H. Erectile dysfunction. Lancet. 2013;381(9861):153-165.
Last reviewed June 2019 by EBSCO Medical Review Board Adrienne Carmack, MD
Last Last updated: 10/2/2019
EBSCO Information Services is fully accredited by URAC. URAC is an independent, nonprofit health care accrediting organization dedicated to promoting health care quality through accreditation, certification and commendation.
This content is reviewed regularly and is updated when new and relevant evidence is made available. This information is neither intended nor implied to be a substitute for professional medical advice. Always seek the advice of your physician or other qualified health provider prior to starting any new treatment or with questions regarding a medical condition.
To send comments or feedback to our Editorial Team regarding the content please email us at firstname.lastname@example.org. Our Health Library Support team will respond to your email request within 2 business days.