Your primary care doctor is the best first stop for erectile dysfunction. A general practitioner or family physician can run the initial workup, identify common underlying causes, and start treatment for the majority of cases. From there, you may be referred to a urologist, endocrinologist, cardiologist, or sex therapist depending on what the evaluation reveals.
Start With Your Primary Care Doctor
Most men can get a diagnosis and begin treatment without ever seeing a specialist. A primary care physician will start by clarifying the problem, since complaints about low desire, trouble with ejaculation, or difficulty with penetration sometimes get lumped together as “ED” when they’re actually separate issues requiring different approaches.
The visit typically involves a structured set of questions about when the problem started, whether it came on suddenly or gradually, and whether it happens in all situations or only with a partner. Your doctor will also ask about stress, relationship issues, mood, and mental health history, since psychological factors play a significant role in many cases. A standardized five-question screening tool called the IIEF-5 helps gauge severity on a scored scale, where anything below 21 out of 25 points suggests some degree of erectile dysfunction.
The physical exam focuses on cardiovascular, neurological, and genital health. Expect a blood pressure check, waist circumference or BMI measurement, and a basic physical. Your doctor will order blood work that typically includes fasting blood sugar (or a long-term blood sugar marker), a cholesterol panel, and a morning testosterone level. These tests aren’t just about ED. They screen for diabetes, heart disease risk, thyroid problems, and hormonal imbalances that could be driving the issue. Many men discover an undiagnosed condition through this process.
If the cause is straightforward, like mildly low testosterone or a medication side effect, your primary care doctor can often manage treatment directly. Oral medications for ED are commonly prescribed at this level without needing a specialist referral.
When You Need a Urologist
A urologist is the specialist most closely associated with erectile dysfunction. Your primary care doctor will typically refer you if initial treatments aren’t working, if the cause isn’t clear from basic testing, or if there’s a suspected structural or vascular problem in the penis itself.
Urologists have access to diagnostic tools that go well beyond blood work. A penile color flow Doppler evaluation uses ultrasound to assess blood flow into and out of the penis, which can pinpoint whether the problem is arterial (not enough blood flowing in) or venous (blood leaking out too quickly). Nocturnal penile tumescence testing measures erections during sleep to help distinguish physical causes from psychological ones. If you’re getting normal erections overnight but not during sex, the issue is more likely psychological. More specialized tests like cavernosography and arteriography can map blood flow and pressure in detail when surgery is being considered.
Urologists also play a critical screening role. The American Urological Association guidelines emphasize shared decision-making, meaning your urologist should walk you through all available treatment options, from the least to most invasive, so you and your partner can make an informed choice together. This includes oral medications, injection therapy, vacuum devices, and surgical implants.
When Hormones Are the Problem
If blood work reveals low testosterone, your primary care doctor or urologist will often manage initial treatment. But certain hormonal findings warrant a referral to an endocrinologist, a doctor who specializes in hormone-producing glands.
According to American Urological Association guidelines, you should see an endocrinologist if your estrogen levels are persistently elevated above 40 pg/mL, if prolactin levels are high without an obvious explanation, or if testosterone is low alongside abnormal signals from the pituitary gland (which could indicate a pituitary tumor or other gland disorder). Men with osteoporosis linked to testosterone deficiency should also be referred. An endocrinologist can investigate whether the problem originates in the testes, the pituitary gland, or the hypothalamus, and tailor hormone therapy accordingly.
ED as an Early Warning for Heart Disease
Erectile dysfunction 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. This means ED can appear three to five years before a heart attack or stroke in some men.
The Princeton III Consensus panel considers all men with ED over age 30 to be at increased cardiovascular risk, recommending thorough evaluation that may include stress tests and other cardiac screening. The referral to a cardiologist is especially important for younger men with moderate to severe ED who don’t have diabetes or other obvious cardiovascular risk factors. In these cases, ED itself may be the earliest sign of hidden heart disease. Your urologist or primary care doctor should flag this and coordinate a cardiology referral when appropriate.
When the Cause Is Psychological
If your erections are normal during sleep or masturbation but disappear with a partner, the cause is likely psychological rather than physical. Performance anxiety, relationship conflict, depression, stress, and past trauma are all common contributors. A few simple questions can help sort this out early: Do you wake up with erections? Can you get an erection on your own? Does the problem only happen in certain situations? If the answer points toward a mental or emotional cause, a sex therapist is the right next step.
Sex therapists are licensed mental health professionals (social workers, psychologists, or physicians) with specialized training in sexual health. They use talk therapy to work through the emotional and relational patterns behind sexual dysfunction. This isn’t couples counseling in the general sense. It’s targeted work on the specific thoughts, anxieties, and behaviors interfering with sexual function. You can see a sex therapist individually or with your partner. Cleveland Clinic recommends ruling out physical causes with a doctor first, then adding a sex therapist for the psychological component. In many cases, the best outcomes come from treating both sides simultaneously.
How to Prepare for Your First Visit
Bringing up erectile dysfunction feels awkward for most men, and doctors know this. Good clinicians use what’s called a “permission-giving” approach, framing the topic as routine. Something like: “Since sexual health is connected to overall health, I’d like to ask how things are going for you.” If your doctor doesn’t bring it up, you can. A simple “I’ve been having trouble with erections” is all it takes to start the conversation.
Before your appointment, think through a few specifics that will help your doctor move quickly toward the right diagnosis. Know roughly when the problem started and whether it came on suddenly or built up over time. Be ready to describe whether erections are completely absent or just weaker than they used to be, and whether the problem is occasional or constant. Make a list of all medications you take, including supplements and recreational drugs, since many common prescriptions can contribute to ED. If you smoke, be prepared to discuss that too.
Write down your questions ahead of time. Useful ones include: What do you think is causing this? Are any of my current medications contributing? What tests do I need? What are my treatment options, and what are the tradeoffs of each? Should I see a specialist? Having these ready keeps the visit focused and makes sure you leave with a clear plan rather than more uncertainty.

