By the Medsmingle Team · Updated 18 November 2026
There’s no single test for erectile dysfunction (ED). Doctors usually diagnose it from your medical and sexual history and a physical exam, then use blood and urine tests to look for causes such as diabetes, heart disease or low testosterone. Some men also need an ultrasound, a nighttime erection test or an injection test. Most tests are simple, and many men need only the basics.
Step 1: Your history
Your doctor will ask about your health, any medicines, vitamins and supplements you take, and your sex life, including erections, desire, ejaculation and climax. According to the US National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK), they may also ask about your mood and your relationship, and may talk with your partner.
Some doctors use a short questionnaire to rate how severe your ED is. Answer honestly: it helps choose the right treatment. Our guide to talking to your doctor about ED can help you prepare.
Step 2: Physical exam
The exam may include a check of your penis and testicles and of your nerves. Your doctor will look for signs of blood vessel or nerve problems, hormone problems, or physical changes in the penis such as Peyronie’s disease. They will usually check your blood pressure too.
Step 3: Lab tests
- Blood tests look for signs of heart disease, diabetes, low testosterone and other conditions. NIDDK notes that thyroid and prostate tests may be included.
- Urine tests can also show signs of diabetes and other health problems.
These tests matter because ED can be an early sign of other conditions. See heart disease and ED, diabetes and ED and low testosterone and ED.
Step 4: Other tests, if needed
- Ultrasound. A wand-like device uses sound waves to show blood flow in the penis. It is sometimes done after a medicine is injected to cause an erection.
- Nighttime erection test. Men normally have erections during sleep. This test checks for them, at home or in a sleep lab. If they happen, a physical cause is less likely.
- Injection test. A medicine is injected into the penis in the doctor’s office to see how full the erection gets and how long it lasts.
- Mental health check. Questions to screen for depression, anxiety and stress. See stress and ED.
Who you might see
Many men start with their regular doctor. You may be referred to a urologist, a specialist in the urinary tract and male reproductive system.
Frequently asked questions
How do doctors test for erectile dysfunction?
Mostly through your history and a physical exam, plus blood and urine tests to look for causes. Further tests are only needed in some cases.
Is there a home test for ED?
A nighttime erection test can sometimes be done at home, but it is arranged by a doctor. There’s no reliable do-it-yourself test.
What blood tests are done for ED?
Typically tests for blood sugar, cholesterol and testosterone, and sometimes thyroid and prostate tests.
Are ED tests painful?
Most aren’t. The injection test involves a small needle and is done by a professional.
Once the cause is clear, see our guide to ED causes and treatment.
Sources
- Diagnosis of Erectile Dysfunction, National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
- Erectile dysfunction: Diagnosis and treatment, Mayo Clinic
About Medsmingle
Medsmingle (medsmingle.com) shares clear, plain-English information on medicines and everyday health. Explore more health guides and the latest articles, read about us, or contact our team with a question.
This article is for general information only and isn’t a substitute for advice from a doctor or pharmacist. Don’t start, stop or change a medicine without talking to a qualified healthcare professional.