No reliable technique exists that lets you produce an erection purely through willpower, because erections are not under voluntary control. They depend on a chain of events involving nerve signals, blood vessel relaxation, and smooth-muscle chemistry that the conscious mind cannot directly command. That said, a growing body of research points to several interventions, ranging from targeted exercises and medications to psychological training and lifestyle changes, that can make erections more reliable when you want them. The question is less “how do I flip a switch” and more “how do I set the conditions so the switch flips easily.”
Why Erections Are Not Voluntary
The core event in an erection is the relaxation of smooth muscle inside the penis, which allows blood to rush in and fill the tissue. The key chemical driver of that relaxation is nitric oxide, a signaling molecule released by nerve endings and the lining of blood vessels in the erectile tissue. Once released, nitric oxide triggers a cascade that ultimately relaxes the smooth muscle and opens arterial blood flow.1PubMed Central. The role of nitric oxide in erectile dysfunction: implications for medical therapy Multiple cell types contribute to this process, and the balance of signals that maintain or end an erection is influenced by hormones, neurotransmitters, and vascular health.2The Journal of Urology. Nitric Oxide in the Penis: Physiology and Pathology
This is important for one reason: you cannot consciously tell smooth muscle to relax, the way you can flex your bicep. Erections happen through the autonomic nervous system, the branch of your nervous system that also controls heart rate and digestion. You can set the stage, and you can remove obstacles, but you cannot force the process through sheer focus. Everything that follows is about creating the right conditions.
The Anxiety Problem
Of all the things that interfere with erections in otherwise healthy men, anxiety is probably the most common and least understood. Performance anxiety does not just make you feel nervous; it actively suppresses the physical mechanism. When you are anxious, your sympathetic nervous system ramps up, which counteracts the parasympathetic signals needed to relax smooth muscle and allow blood flow. Research in animal models has demonstrated that even subtle increases in sympathetic activity, the kind that would not change blood pressure or heart rate, are enough to block erections entirely.3International Journal of Impotence Research. Development of a rat model of sexual performance anxiety: effect of behavioural and pharmacological hyperadrenergic stimulation on APO-induced erections
In human studies, heightened sympathetic nervous system activity appears to facilitate the loss of an erection, particularly after arousal has already started.4PubMed. Effects of demand for performance, self-monitoring of arousal, and increased sympathetic nervous system activity on male erectile response The worry does not even have to be specifically about erections. Anxiety from any source, whether it is body image, pain, relationship stress, or fear of judgment, can spill over and inhibit genital response because all of it raises sympathetic tone.5Sexual Medicine Reviews. A theoretical model for sexual performance anxiety (SPA) and a clinical approach for its remediation (SPA-R) This creates a vicious feedback loop: you worry about losing an erection, which triggers the exact nervous system state that causes you to lose it, which gives you more to worry about next time.
Pelvic Floor Exercises
If there is one physical intervention that comes closest to giving you more direct control, it is pelvic floor muscle training, sometimes called Kegels for men. The muscles of the pelvic floor play a direct mechanical role in erections: they help trap blood inside the erectile tissue once it fills, keeping the penis rigid. Strengthening these muscles gives you a measurable advantage.
A randomized controlled trial assigned men with erectile dysfunction to either pelvic floor exercises with biofeedback or a control group. After three months, men in the exercise group showed a clinically meaningful improvement in erectile function scores, and the control group, once crossed over to the same exercises, improved as well. By six months, about 40% of the men had regained normal erectile function, roughly 35% had improved, and about 25% did not respond.6PubMed Central. Randomised controlled trial of pelvic floor muscle exercises and manometric biofeedback for erectile dysfunction A systematic review looking across multiple trials confirmed that pelvic floor training consistently improved both erectile function and, as a bonus, premature ejaculation.7Physiotherapy. Pelvic floor muscle training improves erectile dysfunction and premature ejaculation: a systematic review
These are not the kind of exercises that produce overnight results. Most studies show meaningful change at around the three-month mark, with further gains at six months. The routine itself is simple: repeatedly contract and relax the muscles you use to stop urination midstream, holding each contraction for several seconds, several times a day. Some men benefit from biofeedback (a sensor that shows whether you are squeezing the right muscles), but most can learn the technique on their own.
Aerobic Exercise
Cardio has a surprisingly strong evidence base for erectile function, and the reason is straightforward: erections are a vascular event, and anything that improves blood vessel health improves the raw plumbing involved. A meta-analysis of eleven randomized controlled trials found that aerobic exercise improved erectile function scores by an average of about 3 points on a standard scale, with larger gains in men who started with more severe problems.8PubMed. Effect of aerobic exercise on erectile function: systematic review and meta-analysis of randomized controlled trials Three months of regular aerobic activity was enough to produce measurable improvements in blood flow to the penis in middle-aged men, alongside improvements in the health of the blood vessel lining itself.9PubMed. Aerobic physical activity improves endothelial function in the middle-aged patients with erectile dysfunction
The dose does not need to be extreme. Most studies used moderate-intensity exercise, like brisk walking or cycling, done regularly for several sessions a week. The benefits are systemic: the same vascular improvements that help erections also reduce cardiovascular risk, which is worth noting because erectile dysfunction and heart disease share many of the same underlying causes.
Medications and Their Timing
For many men, prescription PDE5 inhibitors are the fastest and most reliable way to ensure an erection is available when needed. These drugs work by blocking an enzyme that breaks down the chemical signal (cyclic GMP) that keeps smooth muscle relaxed during an erection. They do not cause erections on their own; they amplify your body’s natural response to arousal, making it easier to get hard and stay hard once you are stimulated.
The practical question most men have is how quickly these drugs kick in. In a clinical study, the median time to erection onset after taking sildenafil (Viagra) was about 27 minutes, with roughly 70% of men responding within half an hour and over 80% within 45 minutes.10PubMed Central. Onset and duration of action of sildenafil for the treatment of erectile dysfunction Vardenafil (Levitra) showed a response as early as 10 to 11 minutes in some men, with about half achieving an erection sufficient for intercourse within 25 minutes.11PubMed. Earliest time to onset of action leading to successful intercourse with vardenafil determined in an at-home setting: a randomized, double-blind, placebo-controlled trial
Tadalafil (Cialis) works differently in that it can be taken daily at a low dose rather than on demand. A head-to-head trial found that daily tadalafil was superior to on-demand sildenafil or tadalafil for improving erectile function, particularly in the ability to achieve penetration.12PubMed Central. Comparative efficacy of on-demand Sildenafil, Tadalafil and daily Tadalafil for treatment of erectile dysfunction: A 12-week randomized controlled study The daily approach removes the need to plan around a pill, which for some men also reduces the psychological pressure of a timed dose. All of these medications require a prescription and carry side effects worth discussing with a doctor, including headaches, flushing, and in rare cases changes in vision or hearing.
Cognitive Behavioral Therapy and Mindfulness
Because the anxiety feedback loop plays such a large role, psychological interventions have real physiological payoff. Cognitive behavioral sex therapy addresses the thought patterns and avoidance behaviors that keep performance anxiety alive. In a pilot study comparing cognitive behavioral sex therapy to sildenafil for men with non-organic erectile dysfunction, the two approaches produced comparable improvements in erectile function scores. The therapy group actually outperformed the medication group on anxiety reduction.13PubMed Central. Cognitive Behavioral Sex Therapy: An Emerging Treatment Option for Nonorganic Erectile Dysfunction in Young Men: A Feasibility Pilot Study That is a striking finding: structured talk therapy rivaled the most widely prescribed erectile dysfunction drug.
Mindfulness-based approaches take a related but different angle, training you to stay present during sexual activity rather than mentally monitoring your erection or spiraling into worry. A pilot study of mindfulness-based group therapy for men with situational erectile dysfunction found medium to large improvements in erectile functioning and overall sexual satisfaction.14The Journal of Sexual Medicine. Mindfulness-Based Group Therapy for Men With Situational Erectile Dysfunction: A Mixed-Methods Feasibility Analysis and Pilot Study A broader scoping review concluded that mindfulness practice favorably influenced several aspects of male sexual function, including satisfaction and genital self-image.15PubMed Central. A Scoping Review of the Influence of Mindfulness on Men’s Sexual Activity The evidence base is still relatively small, with one systematic review noting that solid data for mindfulness treating male erectile dysfunction specifically rested on limited studies.16The Journal of Sexual Medicine. A Systematic Review on Mindfulness Meditation–Based Interventions for Sexual Dysfunctions But the direction of results is consistently encouraging, especially for younger men whose difficulties are rooted in anxiety rather than vascular disease.
Sleep, Alcohol, and Cortisol
Two lifestyle factors deserve separate attention because they undermine erections through mechanisms most men do not think about.
Short sleep raises cortisol levels, and elevated cortisol promotes the contraction of smooth muscle in blood vessels, directly opposing the relaxation needed for an erection. Research has linked chronic short sleep and sleep disturbances with disrupted cortisol rhythms, and higher cortisol levels correlate with worse erectile function scores.17PubMed Central. Short Sleep Duration and Erectile Dysfunction: A Review of the Literature Men with erectile dysfunction also show differences in the balance between their sympathetic and parasympathetic nervous systems during the night, with more sympathetic dominance and less of the parasympathetic activity that supports nighttime erections.18PubMed. Comparison of the differences in circadian autonomic function in hyperlipidemic men with and without erectile dysfunction Getting enough sleep is not a cure, but chronically cutting it short is quietly working against you.
Alcohol tells a more complicated story. At a blood alcohol level around the legal driving limit, men in a controlled study showed weaker genital responses to sexual stimuli compared to sober conditions.19PubMed. The effects of acute ethanol consumption on sexual response and sexual risk-taking intent Chronic heavy drinking is well established as a risk factor for erectile dysfunction. But the picture with moderate drinking is muddier: some research has found no effect, and some has even suggested a slight benefit. The historical assumption that any alcohol harms erections is an oversimplification.20Academic Press. Alcohol and Men’s Health The practical takeaway is that a drink or two probably will not sabotage you, but relying on alcohol to calm performance anxiety while simultaneously impairing your physiology is a bad bargain.
The Testosterone Question
Many men assume that low testosterone is the reason for erectile difficulties, and that boosting it will fix everything. The reality is more specific. Testosterone therapy improves erectile function in men whose levels are genuinely low, and the improvement is larger in men with the lowest levels. A meta-analysis found that men with testosterone below about 230 ng/dL saw roughly twice the improvement in erectile function scores compared to men whose levels were below 346 ng/dL but not as severely depressed.21PubMed Central. Testosterone Therapy Improves Erectile Function and Libido in Hypogonadal Men Once testosterone reaches a normal threshold, adding more does not keep improving erections. This means testosterone replacement is a real solution for men with confirmed low levels, and a waste of money and risk for men whose levels are already adequate.
L-Citrulline
Among the sea of supplements marketed for sexual performance, L-citrulline stands out as one with actual clinical data. The body converts L-citrulline into L-arginine, which is a building block for nitric oxide. In a small trial of men with mild erectile dysfunction, half of those taking L-citrulline improved from a mild dysfunction score to a normal score, compared to about 8% on placebo. Monthly intercourse frequency also roughly doubled during the supplement phase.22PubMed. Oral L-citrulline supplementation improves erection hardness in men with mild erectile dysfunction A follow-up pilot study combining L-citrulline with transresveratrol in men already using PDE5 inhibitors found additional benefit, suggesting it can complement medication.23PubMed Central. Oral L-citrulline and Transresveratrol Supplementation Improves Erectile Function in Men With Phosphodiesterase 5 Inhibitors: A Randomized, Double-Blind, Placebo-Controlled Crossover Pilot Study
The caveats are important. These are small studies, and the effect appears most relevant for mild cases. L-citrulline is not going to substitute for medical treatment in men with moderate or severe erectile dysfunction. But for someone with mild difficulties looking for a low-risk supplement with at least some evidence behind it, it is one of the few that is not pure marketing.
Shockwave Therapy
Low-intensity extracorporeal shockwave therapy is a newer approach that has gained traction in urology clinics. It uses acoustic waves applied to the penis to stimulate blood vessel growth and improve tissue health. A meta-analysis of randomized controlled trials found that shockwave therapy significantly improved erectile function scores, and men in treatment groups were over four times as likely to achieve adequate erection hardness compared to placebo groups.24International Journal of Impotence Research. Clinical studies on low intensity extracorporeal shockwave therapy for erectile dysfunction: a systematic review and meta-analysis of randomised controlled trials An umbrella review found that improvements tend to be greater at six to twelve months of follow-up compared to three months, suggesting the therapy promotes gradual tissue remodeling rather than an immediate fix.25PubMed Central. Effectiveness of Low-Intensity Extracorporeal Shock Wave Therapy in Erectile Dysfunction: An Analysis of Sexual Function and Penile Hardness at Erection: An Umbrella Review
In one of the earlier pilot studies, men showed large improvements in erectile function scores after treatment, and those gains persisted at six months. Ten of the participants were able to stop using PDE5 inhibitors entirely.26European Urology. Can Low-Intensity Extracorporeal Shockwave Therapy Improve Erectile Function? A 6-Month Follow-up Pilot Study in Patients with Organic Erectile Dysfunction The therapy appears most effective for vascular-origin erectile dysfunction and is not painful, but it typically requires multiple sessions over several weeks and is not yet universally covered by insurance. It is also not the right tool for anxiety-driven difficulties.
Penile Injections
For men who do not respond to oral medications, intracavernous injection therapy is a second-line option that produces erections with high reliability. The most commonly used drug is alprostadil, a synthetic version of prostaglandin E1, which relaxes the smooth muscle of the erectile tissue and dilates the arteries feeding it.27PubMed. Intracavernous alprostadil. A review of its pharmacodynamic and pharmacokinetic properties and therapeutic potential in erectile dysfunction The injection is self-administered using a fine needle into the side of the penis, and erections typically develop within five to fifteen minutes regardless of arousal state. This is the closest thing to an “on command” erection in a medical context. The idea of a penile injection alarms most men initially, but those who use the technique regularly report that it is less painful than expected. Risks include prolonged erections requiring medical intervention and, with repeated use, scarring at the injection site.
Can Sexual Arousal Be Trained?
A more unusual line of research has investigated whether the erectile response can be classically conditioned, essentially trained to respond to a specific stimulus through repeated pairing. Laboratory experiments have shown that men can develop measurable increases in arousal toward a previously neutral stimulus after it has been paired with an arousing one, in the same way Pavlov’s dogs learned to salivate at a bell.28PubMed. The respondent conditioning of male sexual arousal Another study found that men exposed to a conditioning procedure showed about a 10% relative increase in arousal to the conditioned stimulus, while a control group showed an 11% decrease due to habituation.29PubMed. Pavlovian conditioning of sexual interests in human males An attempt to replicate these effects outside the lab, in men’s own homes, did produce conditioned genital responses, though the effects were not much stronger than those obtained in the laboratory.30PubMed Central. Field conditioning of sexual arousal in humans
This research is interesting more for what it tells us about the plasticity of sexual response than as a practical tool. Nobody is running conditioning protocols as a clinical treatment for erectile dysfunction. But the findings do suggest that your arousal patterns are not fixed, and that consistent, relaxed sexual experiences over time genuinely can reshape how readily your body responds in a particular context. In a related vein, heart rate variability biofeedback, a technique for increasing parasympathetic nervous system activity, has shown promise for improving sexual arousal, though the randomized evidence so far comes from studies in women rather than men.31PubMed. Heart rate variability biofeedback increases sexual arousal among women with female sexual arousal disorder: Results from a randomized-controlled trial
Why Humans Have This Problem at All
Most male mammals do not experience erectile dysfunction the way humans do, and the reason is anatomical. Many mammals have a baculum, a bone inside the penis that provides rigidity without requiring the complex hydraulic system humans depend on. Humans lost this bone at some point during evolution, leaving erections entirely dependent on blood flow and nerve signaling. Evolutionary theorists have proposed that the vulnerability this creates may function as a signal of overall health: a man’s ability to get an erection reflects cardiovascular fitness, hormonal balance, and psychological well-being, all of which are relevant to mate quality.32PubMed. Back to Stir It Up: Erectile Dysfunction in an Evolutionary, Developmental, and Clinical Perspective Whether or not that interpretation holds up, it does explain why erectile function is so sensitive to so many different inputs: it sits at the intersection of vascular health, hormonal status, neurological function, and emotional state. There is no single lever to pull because the system was never designed around a single lever. Getting reliably hard is not about finding one trick; it is about keeping multiple systems in reasonable working order and, when one falters, having the right intervention for that specific weak link.