- Published on
How to Get Rid of a Boner: What Actually Works
- Authors
- Name
- Defy Editorial Team
- Role
- Men's Health & Pelvic Floor Editorial • Defy

An unwanted erection arrives at the worst possible moment and ignores every instruction you give it. That is not a discipline problem. It is a reflex running on a branch of the nervous system you do not consciously control.
Understanding that changes what you do about it — because most of the tricks men try either do nothing or actively make it last longer. Here is what is happening and what genuinely helps.
Why It Happens Without Your Permission
An erection is a vascular event switched on by the parasympathetic nervous system — the same branch that runs digestion and rest. Signals cause the smooth muscle in the penile arteries to relax, blood flows into the corpora cavernosa, and the surrounding tissue compresses the veins so blood stays in.
Three different pathways can trigger it:
- Reflexogenic: direct physical contact or friction — clothing, a seatbelt, a vibrating seat — signalling through the spinal cord without involving the brain at all
- Psychogenic: arousal originating in the brain
- Nocturnal: automatic cycles during REM sleep
That last category surprises men. Healthy adult males experience three to five erections per night, each typically lasting between 15 and 50 minutes, beginning near the onset of REM sleep and fading as REM ends. They are unrelated to dreams or arousal. They exist to oxygenate penile tissue, which is why their absence is used clinically as a marker of vascular erectile dysfunction.
The practical takeaway: a spontaneous erection is a sign the plumbing works. It is inconvenient, not abnormal. Our explainer on what an erection actually is covers the mechanism in more detail.
What Actually Makes It Fade
Detumescence happens when sympathetic nervous system activity rises and the smooth muscle in the arteries contracts again, cutting inflow. Everything below is aimed at that switch.
Wait. Most unwanted erections resolve on their own within a few minutes. Panic raises attention on the very thing you want to ignore, which prolongs it. This is the single most effective option and the one men skip.
Change position or move. Stand up, walk, shift your weight. Movement raises sympathetic tone and redistributes blood. Walking is more effective than sitting still and hoping.
Load your brain with a real task. Not vague distraction — a task with a correct answer. Count backwards from 300 in sevens. Recite something you know cold. Work a problem. Cognitive effort recruits sympathetic activity and takes attention off sensory input.
Breathe slowly through your nose. Four seconds in, six seconds out, for a minute. It sounds counterintuitive since slow breathing is calming, but it breaks the anxiety loop that keeps your focus locked on the erection.
Relax your pelvic floor deliberately. Most men clench when they want an erection to go away. That is backwards — a strong pelvic floor contraction compresses the veins and helps maintain rigidity. Let the muscles between your sit bones go soft. Our guide on how to relax pelvic floor muscles covers the technique properly.
Cool down if you can. Cold triggers a sympathetic response. A cold drink held in your hands, a splash of cold water, or stepping outside in cool air all nudge things along.
Adjust discreetly, do not fight it. Tucking upward under a waistband, crossing your legs, holding a bag or jacket in front of you — these buy time while the reflex resolves.
Building the Habit That Reduces Frequency
If unwanted erections are frequent enough to be a daily problem, the useful work is upstream of the moment itself.
Reduce the anxiety loop. Anticipating an unwanted erection focuses attention on the pelvis, which increases sensory awareness and the likelihood of one. Men who stop treating it as a catastrophe report it happening less, because the vigilance itself was part of the trigger.
Check your pelvic floor tension. Chronically tight pelvic floor muscles produce a range of odd sensations — aching, urgency, altered erectile behaviour, and in some men the pattern described as hard flaccid syndrome. Tension is not the same as strength. A pelvic floor that cannot fully relax is a dysfunctional one.
Train the muscles properly. Pelvic floor training is about control in both directions: contracting fully and releasing fully. Men who train only the squeeze half often end up with a pelvic floor that never lets go.
Train Control, Not Just Strength
Defy guides you through progressive kegel sessions built for male anatomy, with structured contraction and full release phases so you build control in both directions. Sessions from 3 minutes a day.
Download Defy on iOSCommon Mistakes
Forcing it down physically. Bending or pressing an erect penis risks rupturing the tunica albuginea — a penile fracture, which requires surgery. There is no manual shortcut. Do not try one.
Ejaculating to end it. Not usually available in the situations where this is a problem, and it reinforces a habit loop that makes spontaneous erections more attention-grabbing over time.
Clenching everything. Squeezing the pelvic floor and glutes hard is what many men instinctively do. It works against you by improving venous compression, which is exactly what sustains an erection.
Assuming it means something. Reflexogenic erections carry no message about attraction, arousal, or what you were thinking. Reading meaning into them is where the anxiety spiral starts.
When It Needs a Doctor
Most unwanted erections need nothing but time. These do not:
An erection lasting four hours or more is priapism, and it is a medical emergency. The StatPearls clinical reference on priapism describes any unwanted erection lasting four hours or longer, not relieved by ejaculation, as priapism — with microscopic tissue damage typically beginning around six hours and permanent structural change to the corporal smooth muscle after roughly 14 hours. Go to an emergency department. Do not sleep on it.
Painful erections, particularly ones waking you from sleep repeatedly, warrant a urology assessment. Sleep-related painful erections and stuttering priapism are recognised conditions with real treatments.
Erections triggered by medication. Some drugs used for ED, and certain antipsychotics and antidepressants, can cause prolonged erections. If you started a new medication and this began, tell the prescriber.
A sudden change in pattern — spontaneous erections that stop entirely, or morning erections that disappear — is worth investigating from the opposite direction, since absent nocturnal erections often signal vascular or hormonal issues. The NHS guide to erection problems covers when to see a GP.
Common Questions
Do unwanted erections stop as you get older?
Frequency generally declines with age as testosterone and nocturnal erection cycles change. Most men find spontaneous daytime erections drop off substantially after their twenties. Whether that is a relief or a concern depends on the year of life you are in.
Can exercise cause them?
Yes. Friction from clothing, pressure from a bicycle saddle, increased blood flow, and elevated testosterone during training all contribute. Gym erections are common, harmless, and usually resolve within minutes of changing activity.
Why do I get one when my bladder is full?
A full bladder presses on nerves and blood vessels near the base of the penis and can trigger a reflex erection. It is one reason morning erections are so consistent. Emptying the bladder often resolves it directly.
Is it linked to how fast I get an erection generally?
Sometimes. Men with a very quick, easily triggered erectile response often have high pelvic floor and sympathetic reactivity, which also relates to ejaculatory control. Our article on what causes a man to erect fast covers that connection.
The Bottom Line
An unwanted erection is a reflex, not a decision, and the fastest route through it is the least dramatic one: move, load your brain with a real task, relax the pelvic floor rather than clenching it, and let the reflex run its course.
Never force it physically. And if one lasts four hours, treat it as the emergency it is.
Build Real Pelvic Floor Control
Defy trains contraction and release as separate skills, so you build the control that underpins erection quality, ejaculatory timing, and a pelvic floor that can actually let go.
Download Defy on iOSFrequently Asked Questions
How do you get rid of an unwanted erection fast?
Shift your nervous system out of the parasympathetic state that sustains an erection. Stand up or walk, breathe slowly through your nose, deliberately relax your pelvic floor and glutes rather than clenching, and give your attention a demanding task — mental arithmetic, a work problem, anything that requires effort. Most unwanted erections fade within a few minutes without any intervention at all.
Why do I get random erections?
Spontaneous erections are reflexive, not a response to arousal. They are driven by the parasympathetic nervous system and can be triggered by physical contact, a full bladder, temperature change, or nothing identifiable. Healthy men also have three to five erections per night during REM sleep, each lasting roughly 15-50 minutes, which is a normal part of penile tissue health.
Does thinking about something boring actually work?
Redirecting attention works, but the mechanism is not boredom — it is cognitive load. A demanding mental task engages the sympathetic nervous system and pulls attention away from the sensory input sustaining the erection. Vague distraction is weak; a task with a right answer, like counting backwards from 300 in sevens, is far more effective.
Is it bad to force an erection down?
Yes, avoid it. Bending or pushing down on an erect penis risks tearing the tunica albuginea — a penile fracture — which is a surgical emergency. There is no manual technique that safely speeds up detumescence. Waiting, moving, and relaxing are the only approaches that carry no risk.
When is an erection a medical emergency?
An erection lasting four hours or more, especially if painful and unrelated to arousal, is priapism and needs emergency care immediately. Ischemic priapism can cause permanent tissue damage within about six hours. Do not wait it out overnight — go to an emergency department.