How to Stop Getting Hard: Causes and Quick Fixes

Unwanted erections are normal and extremely common, especially during puberty and young adulthood, but they can happen at any age. The good news is that a combination of physical techniques, clothing choices, and understanding what triggers them can make a real difference. Most unwanted erections resolve on their own within a few minutes, but there are ways to speed that process up and reduce how often they happen in the first place.

Why Erections Happen Without Arousal

Erections aren’t always about sexual thoughts or stimulation. Your nervous system has two competing branches: one that relaxes blood vessels and allows blood to flow into the penis (causing an erection), and one that reverses the process by constricting those vessels and restoring normal blood drainage. Physical contact, vibration, a full bladder, warmth, hormonal fluctuations, and even stress can all tip the balance toward the first system without any sexual intent on your part.

During puberty and into your early twenties, testosterone levels are high and your body is still calibrating these signals, which is why random erections are so frequent during those years. But even in adulthood, factors like sitting in a certain position, fabric rubbing against you, or simply being relaxed (like during a morning commute) can trigger one. Understanding that your sympathetic nervous system, the same system behind your fight-or-flight response, is what ends an erection gives you a practical tool: anything that activates that system can help.

Physical Techniques That Work Quickly

The fastest way to lose an unwanted erection is to activate your body’s sympathetic nervous system. Research on how erections resolve shows that sympathetic stimulation causes almost immediate restoration of venous drainage from the penis, essentially opening the exit valves for blood flow. You can trigger this response in several ways.

Flexing large muscle groups, particularly your thighs, glutes, or calves, redirects blood flow to those muscles and away from your groin. Hold a strong contraction for 30 to 60 seconds, release, and repeat. This works especially well if you can do it discreetly, like pressing your feet hard into the floor while seated.

Cold exposure also helps. Placing something cold against your wrist, holding a cold drink, or splashing cold water on your face triggers a mild stress response that shifts your nervous system toward the sympathetic side. Mental distraction works on a similar principle: doing mental math, counting backward from a large number, or focusing intensely on an unrelated problem occupies your brain enough to dampen the arousal signal. The key is genuine cognitive effort, not just trying to “think about something else.”

If you’re standing, shifting your weight, walking, or changing your posture can also help by reducing the physical contact or pressure that may have started the erection in the first place.

Clothing Choices That Reduce Triggers

What you wear plays a bigger role than most people realize. Tight pants and thin fabrics create friction against the groin, and that repeated low-level stimulation is enough to trigger an erection in many men. Pants that are too snug can actually make the problem worse by rubbing and stimulating throughout the day.

A few practical adjustments help on two fronts: reducing physical triggers and making any erection that does happen less visible.

  • Underwear: Compression shorts or snug boxer briefs hold everything in place, reduce movement-related friction, and smooth out any visible bulge. Avoid loose boxers if friction from your outer layer is a trigger.
  • Pants: Relaxed-fit or straight-leg styles with thicker fabrics like denim or wool conceal more than thin, stretchy materials. Pleated pants offer extra front fabric that hides changes. Dark colors like navy or black are far more forgiving than lighter shades.
  • Layering: A longer shirt, untucked button-down, or jacket that falls past your waistline provides reliable coverage when you need it most.

Look for pants with a small amount of stretch in the fabric. This gives you room to shift and adjust without the tightness that causes stimulation.

Medications That Can Cause Frequent Erections

If you’ve noticed a sudden increase in unwanted erections after starting a new medication, the drug itself may be the cause. Several common medication classes are known to trigger frequent or prolonged erections. Certain antidepressants, particularly trazodone, bupropion, and fluoxetine, are well-documented culprits. Antipsychotic medications, anti-anxiety drugs, blood thinners, and testosterone therapy can also contribute.

Recreational substances matter too. Both cocaine and alcohol are associated with erection-related complications. If you suspect a medication is behind the problem, that’s worth a conversation with whoever prescribed it. Switching to a different drug in the same class often resolves the issue without losing the therapeutic benefit.

Lifestyle Factors Worth Adjusting

Beyond clothing and in-the-moment techniques, a few daily habits influence how often random erections occur. Regular ejaculation, whether through sex or masturbation, lowers the baseline level of arousal your body carries. If you’ve gone a longer stretch than usual without ejaculating, you’re more likely to experience spontaneous erections.

Exercise helps in two ways. It burns off excess energy and tension that can manifest as physical arousal, and it improves your body’s overall regulation of blood flow. Stress management matters too, though the relationship is less straightforward. Chronic stress keeps your nervous system in a heightened state of reactivity, and for some men that translates into more frequent erections rather than fewer. Regular sleep, physical activity, and basic stress reduction can stabilize the system over time.

Reducing direct genital stimulation during the day also helps. Adjusting how you sit, avoiding positions where your thighs press tightly together, and being mindful of seating surfaces (bus vibrations, for example) can eliminate triggers you didn’t realize were there.

When Frequent Erections Signal Something Else

For most men, unwanted erections are a nuisance, not a medical problem. But two conditions are worth knowing about.

Persistent genital arousal disorder (PGAD) involves constant, unwanted sensations of genital arousal without any sexual desire. Unlike a normal erection, the sensations are distressing, uncontrollable, and often aren’t relieved by orgasm. PGAD is rare and not well understood, but it’s a recognized medical condition that can significantly affect daily life. Diagnosis typically involves a detailed history, physical exam, and tests to rule out other causes.

Priapism is a prolonged erection that won’t go away, usually lasting well beyond the normal few minutes. An erection lasting more than four hours is a medical emergency. At around six hours, the smooth muscle tissue inside the penis begins to swell and deteriorate from lack of oxygen. Research from the American Urological Association shows that erections persisting beyond 36 hours result in permanent erectile dysfunction, with no men in studied groups recovering function afterward. If you experience a painful erection that has lasted more than two or three hours and shows no sign of resolving, that requires urgent medical attention. The earlier it’s treated, the better the outcome.

Priapism can occur on its own, but it’s more commonly linked to medications, sickle cell disease, or recreational drug use. If you’ve had even one episode, it’s important to identify the underlying cause to prevent recurrence.