Most unwanted erections go away on their own within a few minutes, but there are several things you can do to speed the process along. The key is activating your body’s sympathetic nervous system, the same “fight or flight” response that kicks in during stress or physical exertion, which triggers the smooth muscle contractions that drain blood from the penis and restore it to a flaccid state.
Why Erections Happen Without Warning
Erections fall into a few broad categories, and not all of them are triggered by arousal. Reflexive erections happen from direct physical contact or pressure, including something as simple as clothing shifting against your body. Psychogenic erections come from visual stimuli, sounds, or even stray thoughts and memories. Nocturnal erections happen during sleep as part of normal hormonal cycling and have nothing to do with dreams or arousal at all.
Understanding which type you’re dealing with helps explain why it showed up and what will work best to resolve it. An erection caused by fabric friction, for example, responds well to simply repositioning. One caused by a passing thought responds better to mental distraction. In all cases, the goal is the same: get your nervous system to shift gears so blood flows back out of the penile tissue.
Mental Distraction
Your brain plays a larger role in maintaining an erection than most people realize. Research on erectile response has found that cognitive interference, essentially occupying your mind with something unrelated, is one of the more reliable ways to reduce physiological arousal. This works because erections depend on a feedback loop between your brain and body. Interrupt the mental side, and the physical side follows.
The most effective distractions are tasks that require active concentration:
- Mental math: Try counting backward from a large number by sevens (e.g., 1,000, 993, 986). The harder the task, the better it works.
- Recitation: Mentally recite song lyrics, a poem, or a list you’ve memorized.
- Problem solving: Think through a work task, a puzzle, or something logistical like planning your grocery list in detail.
The key is genuinely engaging with the task rather than half-heartedly trying while still focusing on the erection. Actively thinking “I need this to go away” keeps your attention on exactly the wrong thing.
Controlled Breathing
Slow, deep breathing activates your parasympathetic nervous system in a way that helps regulate involuntary reflexes. Diaphragmatic breathing (breathing into your belly rather than your chest) is particularly effective because it slows your heart rate and shifts your nervous system away from the state that sustains an erection.
To do this, breathe in slowly through your nose for about four seconds, letting your stomach expand. Hold for a second or two, then exhale slowly through your mouth for six seconds. Repeat this five to ten times. It’s subtle enough to do anywhere without drawing attention, and the physiological shift typically begins within a minute or two.
Physical Movement
Light exercise redirects blood flow away from the pelvic area and toward your large muscle groups. Even brief movement can make a noticeable difference. Running in place, doing a few squats, or walking briskly for a minute or two all work. This also activates your sympathetic nervous system, which triggers the smooth muscle contractions that open venous drainage and allow the erection to subside.
If you’re stuck in a situation where getting up and exercising would be conspicuous, try flexing your thigh muscles repeatedly while seated. Tensing large muscle groups diverts blood flow and can speed things along without anyone noticing.
Repositioning and Concealment
Sometimes an erection is being sustained by direct physical stimulation you’re barely aware of, like the way you’re sitting or clothing pressing against you. Simply shifting your position, crossing your legs differently, or adjusting how you’re seated can remove that stimulus and let the erection resolve naturally.
While waiting for it to pass, practical concealment options include draping a jacket or bag across your lap, untucking a longer shirt, or holding something like a book or laptop in front of you. Sitting down is almost always better than standing if you’re trying to be discreet. Staying calm matters more than most people think. Anxiety and self-consciousness can paradoxically keep your attention focused on the erection, which delays the very thing you’re trying to achieve.
Cold Temperature
Applying something cold to your body (not necessarily directly to the groin) causes blood vessels to constrict throughout your body. Holding a cold drink, splashing cold water on your wrists, or pressing something cool against your neck can all help. If you have access to a bathroom, running cold water over your hands and forearms for 30 seconds or so provides a quick temperature shift that promotes the vascular constriction needed for detumescence.
Medications That Can Cause Persistent Erections
If you’re experiencing frequent or unusually long-lasting erections, certain medications may be contributing. Several common drug classes are known to cause prolonged erections as a side effect. These include some antidepressants (particularly trazodone), antipsychotic medications, anti-anxiety medications, blood thinners, testosterone therapy, and blood pressure medications that block alpha receptors. Recreational substances like cocaine and alcohol can also play a role.
If you’ve recently started a new medication and noticed erections that are harder to resolve or last significantly longer than usual, that connection is worth bringing up with your prescriber.
When an Erection Becomes a Medical Emergency
An erection lasting more than four hours requires emergency medical care. This condition, called priapism, can permanently damage penile tissue if blood remains trapped too long. It’s different from a normal erection that simply feels like it’s lasting a while. Priapism is typically painful, and the erection persists regardless of whether arousal is present.
If you’re past the two-hour mark with no signs of the erection subsiding, and especially if there’s pain involved, don’t wait for the four-hour threshold. Getting evaluated sooner gives you more treatment options and better outcomes.

