Your primary care doctor is the best first stop for erectile dysfunction. They can diagnose most cases, run the necessary blood work, prescribe first-line medications, and refer you to a specialist if needed. You don’t need to go straight to a urologist or any other specialist unless your doctor recommends it.
That said, ED sometimes involves hormonal, cardiovascular, or psychological factors that benefit from a specific type of expert. Here’s what each provider does and when you’d see them.
Start With Your Primary Care Doctor
Most cases of ED are diagnosed clinically, meaning your doctor can figure out what’s going on through a conversation and a basic exam without fancy testing. The appointment will cover your medical history, sexual history, and any medications you take. Your doctor will want to know whether the problem is recent or long-standing, whether it happens in all situations or only with a partner, and whether you still get erections during sleep or in the morning. That last detail matters because nocturnal erections that still occur suggest a psychological rather than physical cause.
The physical exam typically includes blood pressure, heart rate, and a check of your weight or waist circumference. Your doctor may examine the penis for scar tissue (a sign of Peyronie’s disease) and the testicles for size and other signs of low hormone levels.
Blood work rounds out the picture. The standard panel includes morning testosterone (levels peak around 8 a.m., so the draw should happen early), fasting blood sugar or A1c to screen for diabetes, and a lipid panel to check cholesterol. A urine test may also be ordered. These results help your doctor identify treatable conditions that are driving the ED, not just treat the symptom itself.
If the cause is straightforward, your primary care doctor can prescribe oral medications and monitor your response. Many men never need to see anyone else.
When a Urologist Gets Involved
A urologist is a specialist in the urinary and reproductive systems, and they handle ED cases that are more complex or haven’t responded to initial treatment. Your primary care doctor will typically refer you if oral medications aren’t working, if there’s a structural issue with the penis, or if more advanced testing is needed.
Urologists have access to diagnostic tools most primary care offices don’t. A penile ultrasound, for instance, uses sound waves to evaluate blood flow into and out of the penis, which can pinpoint whether the problem is vascular. They also perform nerve function assessments when nerve damage from diabetes or surgery is suspected.
On the treatment side, urologists offer options beyond oral medications: injectable therapies delivered directly to the penis, vacuum devices, and surgical implants. The American Urological Association notes that treatment doesn’t have to follow a rigid ladder from least to most invasive. Any option can be a valid starting point depending on your situation and preferences, so a urologist will walk you through the choices rather than forcing you to “fail” one before trying the next.
The Hormone Specialist: Endocrinologists
Hormonal problems are actually among the rarest causes of ED, but when they’re present, they need targeted attention. The most common hormonal culprit is hypogonadism, meaning the body isn’t producing enough testosterone. Signs that point in this direction include low sex drive, fatigue, weight gain, loss of body hair, or breast tissue development.
If your initial testosterone level comes back low, your doctor will repeat the test to confirm. A second low result triggers additional blood work to measure other hormones that regulate testosterone production, plus a check of prolactin levels. Elevated prolactin can signal a benign pituitary growth, which would require an MRI to evaluate. Conditions like chronic liver disease, untreated diabetes, obesity, and certain medications can also suppress testosterone.
An endocrinologist manages these more complex hormonal scenarios. Interestingly, research suggests that once testosterone reaches a certain threshold, adding more doesn’t improve erections further. So hormone therapy helps men who are genuinely deficient, but it’s not a universal fix for ED.
Why Your Doctor May Mention Your Heart
ED and cardiovascular disease share the same underlying mechanism: damaged or narrowed blood vessels. The arteries supplying the penis are smaller than those feeding the heart, so they tend to show problems first. Epidemiological data consistently shows that ED is associated with a higher risk of heart disease, independent of age, weight, or other risk factors. Symptoms of ED can precede a cardiac event by several years.
The American College of Cardiology and the Princeton IV Consensus Guidelines both treat ED as a risk-enhancing factor for cardiovascular disease. In practical terms, this means your doctor should evaluate your heart health as part of an ED workup, not just your sexual function. If you can exercise at moderate intensity (brisk walking, climbing stairs) without chest pain or shortness of breath, you’re generally considered fit for sexual activity. If there’s any uncertainty about your exercise tolerance, or if you have an unstable heart condition, a referral to a cardiologist comes before any ED treatment.
This cardiovascular connection is actually one of the most important reasons not to skip the doctor and just order pills online. ED can be an early warning system for your heart.
When the Cause Is Psychological
Performance anxiety, relationship conflict, depression, and stress are common contributors to ED, either as the primary cause or as a layer on top of a physical one. Clues that psychology is playing a role include ED that started suddenly, works fine during masturbation but not with a partner, or comes and goes depending on the situation.
The American Urological Association recommends that men being treated for ED consider working with a mental health professional to reduce performance anxiety, improve treatment adherence, and help integrate treatment into the sexual relationship. A sex therapist is often the most targeted option. Research on help-seeking behavior found that when sex therapists were available, people favored them over general practitioners or psychologists for sexual concerns.
A sex therapist isn’t a replacement for medical treatment when there’s a physical cause, but the two approaches work well together. Psychological distress and sexual dysfunction feed each other in both directions, so addressing only one side often leaves the problem only half-solved.
What About Online ED Platforms?
Direct-to-consumer telehealth platforms that ship ED medication to your door have grown rapidly, and they do offer convenience and privacy. But they come with real trade-offs worth understanding before you skip an in-person visit.
A review of these platforms found that over half did not guarantee direct contact with a prescriber through video or audio. Many rely entirely on online questionnaires, which means a patient could fill out the form incorrectly and receive a prescription they shouldn’t have. Self-reported blood pressure and health history, without verification, can miss someone who should be evaluated by a cardiologist. Some platforms also aren’t bound by the same privacy regulations that protect your health information at a doctor’s office.
These services can be reasonable for men who have already been evaluated by a doctor, know their diagnosis, and simply need a convenient refill. They’re a poor substitute for a first evaluation, especially given that ED can signal undiagnosed diabetes, heart disease, or hormonal disorders that no online questionnaire will catch.
Putting It All Together
For most men, the path looks like this: you see your primary care doctor, who takes a history, does a physical exam, and orders blood work. If the cause is identifiable and straightforward, treatment starts there. If medications don’t work, there’s a structural concern, or advanced testing is needed, you get referred to a urologist. If blood work reveals a hormonal problem, an endocrinologist steps in. If heart disease risk is unclear, a cardiologist weighs in. And if anxiety, depression, or relationship issues are part of the picture, a sex therapist or mental health professional rounds out the team.
You can also use a validated self-assessment tool before your appointment to help frame the conversation. The IIEF-5 questionnaire is a five-question survey scored from 1 to 25, with scores below 21 suggesting ED. It’s widely used by clinicians and easy to find online. Filling it out beforehand gives your doctor a concrete starting point and helps track whether treatment is working over time.

