Most unwanted erections go away on their own within a few minutes, but there are several reliable ways to speed up the process. The key is redirecting blood flow away from the penis, either through mental techniques, physical adjustments, or simple temperature changes.
Why Erections Happen (and Stop)
An erection occurs when blood flows into the spongy tissue of the penis faster than it drains out. This is controlled by your nervous system. Sexual arousal triggers it, but so can random nerve signals, friction from clothing, a full bladder, or even just sitting in a certain position. The reverse process, called detumescence, happens when blood vessels constrict and allow blood to drain back into general circulation. Everything below is designed to kick-start that process.
Mental Distraction
Your brain is the most effective tool here. Research on cognitive distraction and sexual arousal has shown that the more mentally demanding the task you perform, the faster an erection subsides. In one study, men who were given increasingly complex mental math problems showed a direct, dose-dependent reduction in penile tumescence: harder problems meant faster loss of erection.
Simple distraction, like thinking about something else, helps a little. But genuinely taxing your brain works much better. Try counting backward from a large number by 7s (so 493, 486, 479…), mentally listing countries in alphabetical order, or working through a real problem from your day. The goal is to force your brain into a mode that competes with arousal signals. Passive distraction, like just trying to “think about something boring,” is less effective because it doesn’t occupy enough mental bandwidth.
Cold Temperature
Cold causes blood vessels to constrict rapidly, which is exactly what you need. Applying something cold to your inner thighs, lower abdomen, or groin area will reduce blood flow to the penis. A cold washcloth, a splash of cold water, or briefly holding a cold drink can against your leg all work. Cold water immersion causes vasoconstriction that makes maintaining an erection significantly harder in the short term.
You don’t need an ice bath. Even running cold water over your wrists or forearms can trigger a mild systemic cooling response that helps. If you’re somewhere private, a quick cold shower is one of the fastest physical methods available.
Physical Repositioning
Sometimes an erection is being maintained by pressure or friction. Shifting your sitting position, standing up and walking, or flexing large muscle groups (like your thighs or calves) can redirect blood flow to those muscles and away from the penis. Flexing both thighs hard for 30 to 60 seconds is a well-known trick because those large muscles demand a lot of blood when contracted.
Light exercise works on the same principle. Walking briskly, climbing stairs, or doing a few squats diverts blood to your legs and core. This also activates the part of your nervous system responsible for the “fight or flight” response, which naturally suppresses erections since your body prioritizes blood flow to skeletal muscles when it thinks physical effort is needed.
Urination
A full bladder can press on nerves that contribute to an erection. If you have the urge to urinate, doing so can resolve the erection quickly. Morning erections in particular are often connected to bladder fullness. Urinating may not work instantly since it can be difficult to start a stream with an erection, but standing and waiting usually allows things to settle enough within a minute or two.
Medication-Related Erections
If you’ve taken an erectile dysfunction medication, the timeline for your erection depends on which one. Sildenafil and vardenafil have a half-life of about 4 to 5 hours, meaning their effects taper off within that window. Tadalafil lasts much longer, with a half-life of roughly 17.5 hours, so its effects can persist well into the next day. During that active window, erections may come more easily and take longer to subside, but the techniques above still help.
The important threshold to know: an erection lasting longer than 4 hours, regardless of cause, is a medical emergency. This condition, called priapism, involves blood becoming trapped in the erectile tissue without circulating. Left untreated, it can cause permanent damage to the tissue and lead to long-term erectile dysfunction. If none of the methods above work and you’ve been erect for more than 3 hours, especially if there’s pain, go to an emergency room. This is particularly relevant if you’ve taken ED medication, used injection therapy, or have sickle cell disease.
What Works Fastest
For a typical unwanted erection, the combination approach is your best bet: flex your thigh muscles while doing mental math, or apply something cold while walking around. Layering two or three of these methods simultaneously addresses both the mental and physical sides of arousal. Most unwanted erections resolve within 5 to 10 minutes with active effort, and often sooner.
Random erections unrelated to arousal, which are especially common in teenagers and young adults, tend to resolve faster than arousal-driven ones because there’s no ongoing mental stimulation maintaining them. Simply standing up and moving is often enough. For arousal-driven erections, the mental distraction component matters more, since your brain is actively sending signals that keep blood flowing in.

