All guides

Function

Erections and sexual function

Why erections vary, when a pattern may be erectile dysfunction, and how to prepare for care.

Evidence checked July 15, 2026 · Editorially reviewed, not clinician-reviewed
Clinical cutaway comparing relaxed and increased blood flow through adult penile erectile tissue.
Educational illustration — not a diagnostic image · Medical illustration: OpenStax, CC BY 4.0
In 20 seconds

An occasional erection difficulty can happen with stress, fatigue, alcohol, relationship context, or distraction. A recurring change can also relate to medicines, blood vessels, nerves, hormones, or other health conditions.

01

What to know

  • Context matters: when the change occurs, whether morning or solo erections changed, and which medicines or substances are involved.
  • Do not stop a prescribed medicine on your own because you suspect it affects erections.
  • Unregulated sexual-performance products may contain hidden ingredients or interact with medicines.
What people often get wrong

A similar-looking photo or one matching symptom cannot confirm a cause. Timing, change, examination, and sometimes testing matter.

02

Useful next steps

  • Track the pattern rather than testing yourself repeatedly.
  • Bring a medication list and mention urinary, hormonal, cardiovascular, sleep, mood, or relationship changes.

When to get care

Do not rely on guesswork when the pattern changes.

  • Arrange routine care for a persistent or recurring change, especially if it is new.
  • An erection lasting four hours is an emergency and needs immediate treatment.
Use the Concern Navigator →

03

What a clinician may ask

  1. When did you first notice it, and is it changing?
  2. Is there pain, discharge, bleeding, fever, urinary change, or loss of function?
  3. Were there recent medicines, illness, injury, sexual contact, products, or procedures?
Build an appointment note →