How Erections Work, and Why ED Happens
By the Medsmingle Team · Updated 25 November 2026
An erection happens when sexual arousal triggers nerves to release chemicals that relax the blood vessels in the penis. Blood flows into two spongy chambers (the corpora cavernosa), and the veins that drain them are squeezed shut, so the penis fills and stays firm. ED medicines work by boosting this natural process.
Step by step
- Arousal: touch, sight or thoughts send signals from the brain and nerves.
- Chemical signal: nerves release nitric oxide, which raises a messenger called cGMP.
- Blood vessels relax: cGMP relaxes the smooth muscle in the penis’s arteries.
- Blood flows in: the spongy chambers fill with blood.
- Blood is trapped: the swelling presses on the veins, keeping blood in.
- Erection ends: an enzyme called PDE5 breaks down cGMP, and blood flows out.
What can go wrong
- Blood flow: narrowed arteries from heart disease, diabetes, smoking or high cholesterol. See high cholesterol and ED and smoking and ED.
- Nerves: diabetes or surgery can damage them. See diabetes and ED.
- Hormones: low testosterone. See low testosterone and ED.
- Mind: stress and anxiety. See stress and ED.
How ED medicines help
Sildenafil, tadalafil, vardenafil and avanafil block PDE5, so cGMP lasts longer and blood flow improves. That’s why they need arousal to work: they boost the natural signal rather than create one. See fastest-acting ED pills.
Shop ED treatments in our Christmas Sale
Up to 45% off ED treatments, with free US shipping on orders over $100. Shop the Christmas Sale.
Frequently asked questions
Why are morning erections normal?
They happen during sleep and are a sign that blood flow and nerves are working. See morning erections and ED.
Do ED pills work without arousal?
No.
Sources
- Symptoms and Causes of Erectile Dysfunction, National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
- Viagra (sildenafil citrate) prescribing information, Pfizer
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.


