How does Viagra work? How ED medications act, and what they can and cannot do
The short answer
ED medications such as sildenafil (generic Viagra) and tadalafil (generic Cialis) are FDA-approved PDE5 inhibitors. They block an enzyme called PDE5 so a natural signal molecule, cGMP, can build up and relax the smooth muscle in the penis, letting blood flow in during arousal. They do not create desire and do nothing without sexual stimulation, and they must never be combined with nitrate heart medicines, which together can cause a dangerous drop in blood pressure. They manage the symptom rather than curing the condition, so an underlying cause such as heart disease, diabetes, or low testosterone still deserves a clinician's attention.
Key takeaways
- Viagra (sildenafil), Cialis (tadalafil), vardenafil and avanafil are PDE5 inhibitors that share one mechanism.
- They block the PDE5 enzyme so cGMP, released during arousal, builds up and lets blood flow into the penis; without stimulation they do nothing.
- They act on blood flow, not desire, so they do not increase sex drive.
- The four differ mainly in how long they stay in the body and how much a heavy meal affects them; the AUA found similar efficacy for the most-studied three.
- They must never be combined with nitrate heart medicines, and they treat the symptom, not an underlying cause such as heart disease.
Status: FDA-approved prescription medicine for ED (sildenafil, tadalafil, vardenafil and avanafil). Source: FDA-approved prescribing information on DailyMed, checked 2026-10-17.
The short version: the common ED pills all belong to one drug family, PDE5 inhibitors, and they share a single mechanism. They do not force an erection or manufacture desire. Instead they remove a brake on the blood-flow response your body already produces during arousal, so an erection that would have been weak or brief becomes firm enough for sex.
That one idea explains almost everything that follows: why stimulation is still required, why food can matter, why the four drugs differ mainly in how long they stay in the body, and why mixing them with nitrate heart medicines is so dangerous.
This guide walks through the biology in plain language, then covers the differences between the four pills, the most common reasons a pill seems not to work, and the safety rules. It is the starting page for our ED medications section. How much to take and when is not covered here: that is set by the label and your prescriber.
How do ED medications actually work?
ED medications work by blocking an enzyme called PDE5, which lets a natural signal molecule build up and relax the smooth muscle in the penis so blood can flow in.
The chain starts with arousal. The Viagra label describes it this way: during sexual stimulation, nitric oxide is released in the erectile tissue, and nitric oxide switches on an enzyme that raises levels of cyclic guanosine monophosphate, usually shortened to cGMP. That cGMP relaxes the smooth muscle and lets blood flow in. PDE5 is the enzyme that breaks cGMP down, and sildenafil works by blocking it, so when stimulation releases nitric oxide, cGMP levels rise further and more blood flows in (Viagra label, section 12.1).
Clinical references describe the same thing as competitive inhibition: the drug occupies the spot on the enzyme that cGMP would use (StatPearls: Sildenafil).
The American Urological Association (AUA) guideline says the mechanism is similar for all four FDA-approved PDE5 inhibitors, and that the result is “increased erection hardness and duration in men with ED who have sufficient intact vasculature” (AUA Erectile Dysfunction Guideline, Statement 8). That last phrase matters: the pills work on blood vessels, so they need blood vessels that can still respond. For the full chain from nerve signal to erection, see our explainer on how erections work.
| Step | What happens | Where an ED pill acts |
|---|---|---|
| 1. Arousal | Sexual stimulation releases nitric oxide in erectile tissue | Not here: the pill cannot start this step |
| 2. Signal | Nitric oxide raises cGMP | Not here |
| 3. Relaxation | cGMP relaxes smooth muscle and blood flows in | Indirectly: more cGMP means more relaxation |
| 4. Breakdown | PDE5 breaks cGMP down and the erection fades | Here: the pill blocks PDE5 |
Source: Viagra label, section 12.1.
Why do you still need arousal for them to work?
These drugs only amplify a signal your body releases during sexual arousal, so without stimulation there is nothing to amplify. The Viagra label states it directly: sildenafil “has no direct relaxant effect” on isolated erectile tissue, and at recommended doses it “has no effect in the absence of sexual stimulation” (Viagra label, section 12.1). The Stendra and vardenafil labels tell prescribers to explain that sexual stimulation is required for an erection to occur (Stendra label; vardenafil label).
That single fact clears up the most common misunderstanding about ED pills. They are not switches that produce an automatic erection, and they will not work if a man takes one and then waits passively. This is also why performance anxiety can get in the way: worry and self-monitoring work against the arousal the drug depends on. Our guide to ED vs performance anxiety covers that loop.
Do ED pills increase sex drive?
No. ED pills act on blood flow in the penis, not on desire. NIDDK, part of the National Institutes of Health, describes PDE5 inhibitors as oral medicines that “improve blood flow to the penis” and may help you get and keep an erection (NIDDK, Treatment for ED). Because the drug acts after arousal has started, it does not create interest in sex that is not there. Low desire is a separate question with its own causes, covered in our guide to low libido in men. Pills sold to raise desire are a different category altogether, and the one desire drug often mentioned online, bremelanotide (PT-141), is covered in our page on PT-141 for men.
How fast do they act, and how long do they stay in the body?
The four pills reach their peak level in the blood at roughly similar times, but they differ a lot in how long they stay in the body. Each label reports these figures from studies in healthy volunteers (Viagra label; Cialis label; vardenafil label; Stendra label):
- Sildenafil reaches its peak level in 30 to 120 minutes (median 60) when taken on an empty stomach, and has a half-life of about 4 hours.
- Vardenafil reaches its peak in 30 minutes to 2 hours (median 60), with a half-life of about 4 to 5 hours.
- Avanafil reaches its peak at a median of 30 to 45 minutes, with a half-life of about 5 hours. One of its trials measured whether an erection occurred within about 15 minutes of a dose.
- Tadalafil reaches its peak between 30 minutes and 6 hours (median 2 hours), and its mean half-life is 17.5 hours. The Cialis label says it improved erectile function compared with placebo “up to 36 hours” after a dose.
A half-life is the time it takes for the level of a drug in the blood to fall by half. A longer half-life simply keeps PDE5 blocked for longer; it does not make erections stronger or remove the need for arousal.
Tadalafil is also the only one of the four that is FDA-approved for daily use, and the AUA found that daily and as-needed tadalafil appear to produce the same level of efficacy (AUA guideline, Statement 8). Our pages on how long sildenafil lasts, how long tadalafil lasts and daily vs on-demand tadalafil go further.
Sildenafil, tadalafil, vardenafil, and avanafil: how do they compare?
All four are FDA-approved PDE5 inhibitors that work the same basic way, and they differ mainly in how long they stay in the body and how much a heavy meal affects them. The table below uses each drug’s FDA label. It leaves out doses on purpose: the dose is set by the label and the prescriber.
| Medication (brand) | Time to peak level, fasted | Half-life | Effect of a high-fat meal | Also approved for |
|---|---|---|---|---|
| Sildenafil (Viagra) | 30 to 120 min, median 60 | About 4 hours | Peak about 60 min later and 29% lower | No other use in the Viagra label |
| Tadalafil (Cialis) | 30 min to 6 h, median 2 h | 17.5 hours (mean) | Absorption not influenced by food | Enlarged prostate (BPH) symptoms |
| Vardenafil | 30 min to 2 h, median 60 | About 4 to 5 hours | Peak level 18% to 50% lower in food studies | No other use in its label |
| Avanafil (Stendra) | Median 30 to 45 min | About 5 hours | Peak 1.1 to 1.25 h later and 39% lower | No other use in its label |
Sources: Viagra label, Cialis label, vardenafil label, Stendra label, section 12.3 of each.
Each drug has its own page: what sildenafil is, what tadalafil is, what vardenafil is and avanafil (Stendra). For all four side by side, including side effects and the label differences on emergency heart medicines, see the four ED pills compared. The common head-to-heads are tadalafil vs sildenafil and vardenafil vs sildenafil.
Is one ED pill stronger than the others?
Not in any way the research has shown. The AUA guideline says sildenafil, tadalafil and vardenafil “appear to have similar efficacy” in the general ED population, and that the relative efficacy of avanafil is less clear because less has been published on it. It notes that very few trials compared the drugs head to head, but that with nearly a quarter of a million men studied, any large difference between the most-studied drugs would probably be evident (AUA guideline, Statement 8).
The same discussion found that doubling a dose does not double the effect: higher doses produced small average gains while side effects rose more clearly. So the practical differences between the pills are about timing, food and side effects, and which one fits is a decision for you and the prescriber. Our page on the safest ED medication covers what each label says for heart, kidney and liver conditions.
Why do ED pills cause headaches, flushing or a stuffy nose?
Because PDE5 is not only found in the penis. The Viagra label lists PDE5 in platelets, the smooth muscle of blood vessels and organs, skeletal muscle and several other tissues, and says sildenafil’s blood-vessel-widening action caused small, temporary drops in blood pressure in healthy volunteers (Viagra label, sections 5.1 and 12.1).
That widening of blood vessels elsewhere fits the side effects the label lists most often: headache, flushing, indigestion, abnormal vision, nasal congestion, back pain, muscle aches, nausea, dizziness and rash.
The vision changes have their own explanation: sildenafil is only about 10 times more selective for PDE5 than for PDE6, an enzyme in the retina, and the label says this is thought to be the basis for changes in color vision (same source).
For what to expect from each drug, see our rundowns of ED medication side effects, sildenafil side effects and tadalafil side effects. Sudden loss of vision or hearing after an ED pill is a reason to stop and seek care right away, as our page on vision and hearing risks explains.
Do food and alcohol change how ED medications work?
A heavy, high-fat meal can slow sildenafil, vardenafil and avanafil, while tadalafil is not affected by food, according to their labels. With a high-fat meal, sildenafil’s peak level arrived about 60 minutes later on average and was 29% lower, and the Viagra patient information says it “may take a little longer to start working” after a meal like that (Viagra label). The Cialis label says the rate and extent of tadalafil absorption “are not influenced by food” (Cialis label). More detail is in sildenafil and food.
Alcohol works on two fronts. NIDDK lists drinking too much alcohol among the lifestyle behaviors that may contribute to ED in the first place (NIDDK, Symptoms & Causes).
And both alcohol and these pills widen blood vessels. The Cialis label says substantial drinking, about 5 units or more, combined with tadalafil can increase the chance of dizziness, a faster heart rate, a drop in blood pressure on standing, and headache (Cialis label, section 5.9). In a study in healthy volunteers with a blood alcohol level of about 0.08%, sildenafil did not add to alcohol’s blood-pressure-lowering effect (Viagra label, section 7.5). Our page on sildenafil and alcohol covers the rest.
Why might an ED pill seem not to work?
The most common reason in the research is how the pill was used, not the pill itself. The AUA guideline reports that in studies of men who said a PDE5 inhibitor did not work, incorrect use, such as no sexual stimulation or taking it with a large meal, accounted for 56% to 81% of the failures. When men were taught how to use the medicine correctly, between 23.6% and 58.5% then had success (AUA guideline, Statement 9).
The guideline also says men and partners should be told that an initial poor response can often be addressed by adjusting the dose with the prescriber (Statement 10). The European Association of Urology (EAU) guideline makes the same point, naming incorrect use and inadequate information as the main causes of a lack of response (EAU Guidelines, Management of ED).
Other reasons include a counterfeit pill, an underlying condition, or low testosterone. On that last point, the AUA says men with ED and testosterone deficiency should be told that a PDE5 inhibitor “may be more effective if combined with testosterone therapy” (AUA guideline, Statement 12). Our guide to sildenafil not working walks through each of these and what tends to come next.
How are ED pills different from injections and other treatments?
The main difference is whether arousal is needed. Pills amplify a response that arousal starts. NIDDK describes an injectable ED medicine as one that “causes a quick, automatic erection by increasing blood flow to the penis” (NIDDK, Treatment for ED), so it does not depend on the nitric oxide signal the same way.
NIDDK’s list of treatments also includes suppositories placed in the urethra, vacuum erectile devices, and surgery to place an implant (same source). The AUA guideline says men should be informed about all of these options, not only pills (AUA guideline, Statements 8 to 18). Our guides to ED treatment options and injections and suppositories cover how those work.
Are generic and compounded ED pills the same as the brand?
A generic sildenafil or tadalafil tablet and a compounded product are not the same thing. The FDA explains that a generic drug is approved under its own law and must meet requirements that include therapeutic equivalence to the brand, while “compounded drugs are not FDA-approved,” meaning the FDA does not check their safety, effectiveness or quality before they are sold (FDA, Compounding and the FDA: Questions and Answers).
Status: Compounded: not FDA-approved. Source: FDA, Compounding and the FDA: Questions and Answers, checked 2026-10-17.
Generic sildenafil and tadalafil tablets are approved and carry the same label content as the brands. Our pages on whether sildenafil is the same as Viagra and generic Cialis cover how to read the pharmacy label, and chewable and dissolving ED medicines explains which of the newer forms are compounded.
Why are nitrates so dangerous with ED medications?
Combining a PDE5 inhibitor with a nitrate can cause a sudden, severe, and potentially fatal drop in blood pressure, which is why the combination is contraindicated, not merely discouraged. The reason is mechanistic. Nitrate medicines, taken for chest pain or heart disease, release nitric oxide, which raises cGMP.
A PDE5 inhibitor raises cGMP too, by preventing its breakdown. Stack the two and blood vessels throughout the body can widen so much that blood pressure falls sharply. The Viagra label says giving sildenafil with nitric oxide donors such as organic nitrates or nitrites in any form is contraindicated (Viagra label, section 4.1), and clinical references describe the result as a synergistic, life-threatening drop in blood pressure (StatPearls: Sildenafil). The AUA guideline adds that men taking nitrates regularly should not use PDE5 inhibitors (AUA guideline, Statement 8).
This is not limited to daily heart pills. Nitroglycerin tablets and sprays, isosorbide, and the “poppers” sold as inhalants are all nitrates, and the guanylate cyclase stimulator riociguat carries the same contraindication on the label. Our page on nitrates and ED medications covers the full list.
Two other cautions belong in the same conversation. Alpha-blockers, prescribed for blood pressure or an enlarged prostate, also lower blood pressure, so the prescriber has to account for both. And an erection lasting more than 4 hours is a medical emergency called priapism: the Viagra label says to seek immediate medical help, because untreated it can permanently damage penile tissue (Viagra label, section 5.2). For the full interaction list on one drug, see our guide to sildenafil drug interactions.
What ED medications cannot do, and when to see a clinician
ED medications relieve the symptom, but they do not repair the underlying cause, and erectile dysfunction is frequently an early warning sign of something else worth checking. Because an erection depends on healthy arteries and nerves, the same problems that damage blood vessels elsewhere, such as high blood pressure, diabetes, high cholesterol, and smoking, can show up in erections too (Endothelial dysfunction and erectile deficit overview, 2022). A pill that improves blood flow for a few hours does nothing about that background process.
The AUA guideline advises that men be counseled that ED is a risk marker for underlying cardiovascular disease, and that morning testosterone be measured as part of the workup (AUA Erectile Dysfunction Guideline, Statements 3 and 4). Our guide to ED and low testosterone explains how the two connect, and TRT Clarity’s page on low testosterone symptoms covers what a real hormone problem looks like.
The cause is not always physical, either. Performance anxiety, depression, and relationship strain can drive ED on their own or alongside a vascular problem, and NIDDK lists counseling among ED treatments for exactly that reason (NIDDK, Treatment for ED). PeptideAgent’s review of peptides for erectile dysfunction starts from the same standard of care, a cardiovascular and hormone workup with PDE5 inhibitors first line, before grading the peptides sold for ED.
Newer procedures marketed for ED, such as shockwave therapy, PRP and stem cell injections, are not a substitute for that workup either: the AUA guideline classes them as investigational or experimental, as our guide to shockwave, PRP and stem cells for ED explains.
Update, October 28, 2026: HHS filed a draft, non-binding policy saying it does not intend to take enforcement action against licensed compounding of six specific peptides, each on its own and under strict conditions. PT-141 is not one of the six, and the draft does not touch the FDA-approved PDE5 inhibitors described on this page. The hub has the full policy explainer.
The bottom line on how ED medications work
ED medications are FDA-approved PDE5 inhibitors that restore the blood-flow response to arousal; they do not create desire, they are not a cure, and they work only alongside real stimulation and away from nitrates. Once you understand the cGMP mechanism, the rest follows: arousal supplies the signal, the drug keeps that signal from being cleared too fast, and firmer blood flow follows. The four options differ in how long they stay in the body and how food affects them, not in how they act, and the guideline evidence does not show one as stronger.
The safety rules are few but non-negotiable, with the nitrate contraindication at the top. And because erectile dysfunction so often points to a treatable cause underneath, the useful first move is to have a licensed clinician confirm a medicine is right for you and find out why the problem started.
Frequently asked questions
How does Viagra work?
During sexual stimulation, nitric oxide is released in the erectile tissue and raises a signal molecule called cGMP, which relaxes smooth muscle so blood can flow in. PDE5 is the enzyme that breaks cGMP down, and sildenafil, the drug in Viagra, blocks it, so cGMP rises further and the erection is firmer. The Viagra label says it has no effect in the absence of sexual stimulation.
Does Viagra work?
The AUA guideline says sildenafil, tadalafil and vardenafil appear to have similar efficacy in the general ED population, increasing erection hardness and duration in men whose blood vessels can still respond. When a pill seems not to work, incorrect use, such as no sexual stimulation or taking it with a large meal, accounted for 56% to 81% of failures in the studies the guideline reviewed. Our guide to sildenafil not working covers what tends to come next.
How does Cialis work?
Cialis (tadalafil) works the same way as Viagra, by blocking PDE5, but it stays in the body much longer, with a mean half-life of 17.5 hours, and its absorption is not influenced by food. Our guide to what tadalafil is covers it in full.
Sources
Every clinical statement on this page traces to a label, guideline or reference source:
- Viagra (sildenafil) prescribing information, Pfizer, DailyMed: mechanism and “no effect in the absence of sexual stimulation” (12.1), PDE5 in other tissues and PDE6 selectivity (12.1), peak level, half-life and high-fat meal effect (12.3), most common side effects, nitrate and riociguat contraindications (4.1, 4.3), blood pressure (5.1), priapism (5.2), alcohol study (7.5).
- Cialis (tadalafil) prescribing information, Eli Lilly, DailyMed: BPH indication, “up to 36 hours”, peak level, 17.5-hour half-life, absorption not influenced by food, alcohol caution (5.9).
- Vardenafil hydrochloride tablets prescribing information, DailyMed: peak level, half-life, food studies, sexual stimulation required.
- Stendra (avanafil) prescribing information, DailyMed: peak level, half-life, high-fat meal, sexual stimulation required, the 15-minute trial measure.
- Burnett AL, et al. Erectile Dysfunction: AUA Guideline (2018): Statements 3 and 4 (risk marker, morning testosterone), 8 (mechanism, similar efficacy, dose response, daily vs on-demand tadalafil, nitrates), 9 (incorrect use and re-education figures), 10 (dose titration), 12 (testosterone), 13 to 18 (other treatment options).
- European Association of Urology, Guidelines on Sexual and Reproductive Health: Management of Erectile Dysfunction: incorrect use and inadequate information as the main causes of a lack of response.
- NIDDK, Treatment for Erectile Dysfunction and Symptoms & Causes, last reviewed October 2024: PDE5 inhibitors improve blood flow; injectable medicines cause an automatic erection; counseling; alcohol as a contributing behavior.
- FDA, Compounding and the FDA: Questions and Answers: compounded drugs are not FDA-approved; how generics differ.
- StatPearls: Sildenafil (NCBI Bookshelf): competitive inhibition and the nitrate interaction.
- Endothelial dysfunction and erectile deficit overview (2022): shared vascular risk factors.
About the editorial team
Advertising disclosure: links marked "Paid link" go to Bodybuilding Peptides (trybbpeptides.com), an affiliate destination, and The ED Report may earn a commission if you buy there. Our coverage is independent of that relationship, and nothing on this page is medical or legal advice.