Transparent Meds
A clinician reviewing a medical checklist with a middle-aged man during a private consultation

Sexual Health

What Causes Erectile Dysfunction? The Honest List

Blood flow, nerves, hormones, medications, sleep, and stress all shape erections. Here is what commonly causes ED and when to get a medical review.

Written by Transparent Meds Clinical Team · Updated September 7, 2025 · 6 min read

An erection is not a single switch. It depends on blood vessels, nerves, hormones, mood, and timing all working together. When one part of that chain is off, the result shows up in the bedroom even though the cause may be somewhere else entirely.

That is the useful part of erectile dysfunction, or ED. It is information about your body, not a verdict about you.

This article walks through the causes clinicians see most often, how to tell them apart, and when a change deserves an in-person visit. For the wider picture, read the ED treatment guide or browse the sexual health section.

What actually causes erectile dysfunction?

Most ED falls into a few overlapping buckets: circulation, nerve signaling, hormones, medications, and psychological factors. Plenty of people have two or three at once.

That overlap matters because a single explanation is usually too simple. Someone with high blood pressure who also sleeps five hours a night and drinks most evenings has three plausible contributors. Fixing one may help partially. Understanding all three helps more.

Age raises the odds, but age alone is a weak explanation. A 30-year-old with undiagnosed sleep apnea can have more difficulty than a 60-year-old who exercises and has well-managed blood pressure.

How does blood flow affect erections?

An erection requires blood to flow in quickly and stay there. That depends on the lining of your blood vessels responding correctly and relaxing on cue.

Conditions that stiffen or narrow vessels interfere with that response. High blood pressure, high cholesterol, diabetes, obesity, and smoking are the usual suspects. Nicotine in any form, including vapes and pouches, constricts vessels.

Because the vessels involved in erections are small, they can show strain earlier than the larger ones feeding your heart. That is why a new erection problem is sometimes the first noticeable signal of a broader circulation issue, and why providers take it seriously rather than waving it off.

Can anxiety, stress, and depression cause ED?

Yes, and the effect is physical, not imaginary. Stress hormones shift your body toward alertness, which works against the relaxed state an erection needs.

Performance anxiety builds its own loop. One difficult night creates worry, worry raises adrenaline, adrenaline makes the next attempt harder. The loop can persist long after the original trigger is gone.

Depression affects desire and arousal directly, and some antidepressants add sexual side effects of their own. Relationship conflict, grief, financial strain, and burnout all belong on this list too.

A useful clue: if morning erections are still reliable and things work during solo activity, psychological factors are more likely to be leading. If erections are fading across every situation, a physical contributor is more likely.

Which medications can contribute to ED?

Many common prescriptions list sexual side effects. Some blood pressure medications, particularly older beta blockers and thiazide diuretics, are frequent contributors. Certain antidepressants, antipsychotics, opioid pain medications, and prostate medications can also play a role.

Alcohol is worth naming plainly. A drink or two may relax you; more than that depresses the nervous system and makes arousal harder. Recreational stimulants and cannabis affect some people as well.

Do not stop a prescription on your own because you suspect it is the cause. Stopping blood pressure or mood medication abruptly carries real risk. Bring the concern to the clinician who manages that prescription and ask whether an alternative exists.

Can low testosterone cause ED?

Low testosterone more often reduces desire than blocks erections outright. When libido has dropped alongside fatigue, low mood, and loss of muscle, a hormone panel makes sense.

Thyroid problems, elevated prolactin, and poorly controlled blood sugar can also affect sexual function. Testing is straightforward and gives you something concrete to work with instead of guesswork.

Hormones are only one thread. If you want to go deeper on that side of things, the hormone health section covers prescription peptide care and related topics.

Why did my ED start suddenly?

Timing is one of the most useful things you can tell a provider. A gradual decline over years suggests circulation or metabolic changes. A sudden change tied to a specific event points elsewhere.

Sudden onset often has a traceable trigger: a new prescription, a stressful period, a breakup, heavy drinking, a new sleep problem, or an illness. Nerve injury from pelvic surgery, radiation, or trauma can also produce an abrupt change.

Write down when it started and what else changed that month. That single detail narrows the list faster than any lab test.

Does age explain it on its own?

ED becomes more common with each decade, but age is a weak explanation by itself. What actually accumulates with age is exposure: years of blood pressure, cholesterol, blood sugar, nicotine, medications, and sleep debt.

In your 20s and 30s, the usual drivers are anxiety, alcohol, poor sleep, recreational substances, and occasionally a medication side effect. In your 40s and 50s, metabolic and vascular factors move up the list while the psychological ones stay relevant. Later, medications and nerve-related causes become more prominent.

The practical point is that "I'm just getting older" is not a diagnosis. A 55-year-old with well-managed blood pressure and a real exercise habit often has fewer difficulties than a 32-year-old with undiagnosed sleep apnea. The modifiable factors are the ones worth your attention at any age.

What does a provider check for?

Expect questions about how long the change has lasted, whether it happens every time, whether morning erections continue, your libido, your full medication list, alcohol and nicotine use, sleep quality, and your cardiovascular history.

Providers commonly check blood pressure and may order labs for blood sugar, cholesterol, and testosterone. They will also ask whether you can handle moderate exertion without chest symptoms, since that question affects which medications are appropriate.

If a prescription is a reasonable next step, your provider may discuss PDE5 options such as sildenafil or tadalafil. Transparent Meds may offer these compounded by a state-licensed 503A pharmacy. Compounded medications are not FDA-approved, which means the FDA has not reviewed them for safety, effectiveness, or quality. Prescription required. Our guides on ED medication side effects and online ED care cover what to expect next.

When should ED be checked in person?

Some situations call for an office visit rather than an online intake. See a clinician in person if you have chest pain or shortness of breath with exertion, known heart disease, a history of stroke, a curved or painful erection, numbness in the genital area, or symptoms that began after pelvic surgery or injury.

Also get in-person care if erections have disappeared entirely and quickly, or if you have uncontrolled blood pressure or blood sugar. A responsible telehealth service will tell you the same thing and decline to prescribe until you have been evaluated.

What can you actually do about the cause?

Start with the inputs you control. Sleep, movement, nicotine, alcohol, blood pressure, and blood sugar all influence vascular health, and the lifestyle and ED guide goes through the realistic version of each.

Then get the medical picture. Labs and a blood pressure reading turn vague worry into a plan. If anxiety or relationship strain is driving things, a therapist who works in sexual health is a legitimate step, not a fallback.

Medication can be part of the plan while you work on the underlying causes. The two are not in competition. You can review the Hard Rx program and pricing to see what a prescription path costs, and start from the Learn hub if you want the rest of the series.

Prescription required.

Frequently asked questions

What is the most common cause of erectile dysfunction?

Blood-vessel health is one of the most common contributors, especially when blood pressure, cholesterol, blood sugar, or smoking are involved. Many people have more than one cause at the same time.

Why can't I get hard with my partner but everything works alone?

That pattern often points toward anxiety, stress, or relationship factors rather than blood flow. It is worth discussing with a provider or a therapist who works with sexual health.

Can ED be a sign of heart problems?

It can be. New erection changes sometimes show up before other cardiovascular symptoms, which is why a provider may recommend a blood pressure check, labs, or a primary-care visit.

Is ED normal in your 30s?

Occasional difficulty happens at any age. A repeated change in your 30s is still worth a medical review, because sleep, alcohol, mood, medications, and metabolic health are often involved.

Does watching porn cause ED?

Research here is mixed and still developing. Some people notice that expectations or conditioned arousal patterns affect them, and that is a reasonable topic to raise with a clinician.

Transparent care

Talk to a licensed provider

See whether the sexual health program may fit your goals, then review pricing before you decide. Prescription required.

View program details