Erections occur primarily in response to sexual triggers, but sometimes even without any, like “morning wood”. Such random erections, not requiring sexual stimuli, can come and go at any time. However, due to hormonal changes, they are more frequent during adolescence and puberty.
Whatever the reason or age, they can make you feel awkward and embarrassed. If you are beginning to wonder why you get erections so randomly or how to stop getting erect so easily, you have landed at the right place. We have curated a list of short-term techniques to hide and subside an erection when it happens unexpectedly.
This guide also provides long-term strategies for males or Assigned Males at Birth (AMABs) to control arousal naturally and prevent these occurrences.
Method 1: Excuse yourself and calm down

Excuse yourself from the situation to give your body time to calm down without the fear of added stress or embarrassment. Some men use an object to hide their arousal, while several others tuck their erect penis into the waistband of their boxers or trousers to make it less noticeable.
If that is not possible, try to
- Shift your body position: For example, cross your legs, sit differently, or turn slightly the other way until the erection passes.
- Take slow, deep breaths: Breathe in through the nose and out through the mouth to calm your nervous system.
Method 2: Distract yourself with non-sexual thoughts

Sexual urges start in the brain; several men even report getting an erection during a massage. Thus, redirecting your focus is a powerful way to manage them and stop getting erect so easily.
- Think about neutral or mildly stressful topics: What about a work deadline, unpaid bills, or your to-do list?
- Imagine calming scenes: Imagery unrelated to sexual thoughts will help you shift your focus and reduce erection triggers.
Method 3: Practice the 4-7-8 breathing technique

The 4-7-8 breathing method helps relax both mind and body. By slowing down the breathing cycle, you can control sexual arousal as well as prevent Premature Ejaculation.
- Inhale slowly through your nose for a count of 4.
- Hold your breath for a count of 7.
- Exhale smoothly through pursed lips for a count of 8.
- Repeat this cycle 4-5 times or until random erection or sexual urges subside naturally.
Method 4: Try to urinate or ejaculate privately

To return your body to a relaxed state by managing a lingering semi-erection, try the following options:
- If you are semi-erect, try urinating: It can help end an erection by stimulating different nerves in the pelvic region and resetting the reflex pathways.
- If that doesn’t work, try to ejaculate: Though it should only be done in private, appropriate settings. It provides a release of sexual tension and built-up pressure.
Method 5: Go for a walk, jog, or bike ride

Go for a brisk walk, short jog, or bike ride as physical activity diverts blood flow from the penis to the working muscles, thereby stopping random erections. Exercise also increases endorphins (feel-good hormones), which help calm the mind and reduce sexual tension.
In fact, research by Harvard Health shows that men who maintain active lifestyles (150 minutes of physical exercise per week) are less likely to develop sexual issues like Erectile Dysfunction (ED) and Premature Ejaculation (PE).
Method 6: Shower or bathe in cold water

Taking a cold shower is one of the most popular and effective tips to manage erections. If that’s not possible, you can apply a cold towel to the groin area to redirect circulation elsewhere.
Cold water not only constricts blood vessels, reducing the blood supply that maintains penile rigidity, but also distracts the mind to shift focus away from arousal.
Method 7: Flex any muscle, literally

Flex your thigh or buttocks repeatedly until your erection subsides. This physical trick to reduce arousal can be done subtly, even while sitting.
This exercise to reduce sexual tension engages large muscle groups, forcing blood away from the penis and toward the legs. It also helps shift your focus to physical exertion instead. So, you can also flex your legs or even biceps, literally any muscle, to get rid of an unwanted erection.
Method 8: Exercise regularly

Beyond short-term tricks to reduce arousal, consistent physical exercise is one of the best long-term strategies for reducing erection frequency and preventing ED. To stop getting erect so easily, you can begin with:
- Cardio exercises for 30 minutes daily: Jogging, running, cycling, or swimming can help improve circulation and balance hormone levels.
- Strength or weight training: To regulate testosterone levels, practice 30 minutes daily, 3 days a week.
- Kegel and stretching exercises: Kegels for 5-10 minutes 3 times daily help achieve better control over sexual arousal.
Method 9: Maintain a consistent sleep cycle

Irregular sleep patterns can lead to testosterone fluctuations and more frequent erections. So to regulate your body’s internal clock or circadian rhythm, you must:
- Go to bed and wake up at the same time every day consistently.
- Get 7-8 hours of undisturbed restful sleep.
- Maintain a no-screens bedroom environment.
- Keep no-caffeine, no-alcohol evenings.
Method 10: Practice mental relaxation techniques

Relaxation techniques (meditation or yoga) can help control sexual urges naturally, especially when triggered by anxiety.
- Do mindfulness meditation. Focus on the present moment without judgment. Note sensations and thoughts without reacting to them.
- Try progressive muscle relaxation. Tense and then relax different muscle groups progressively from head to toe to help release physical tension.
- Use sensory awareness techniques: Notice five things you see, four you can touch, three you hear, two you smell, and one you taste, to ground yourself.
Method 11: Stay away from erotic content

Overexposure to pornography and other erotic material overstimulates the brain’s reward pathways, making you more prone to random erections. This hypersensitivity can cause frequent, unwanted erections throughout the day.
Allow your brain and body to reset by setting specific time limits on how often you view erotic content each week. Try to replace porn with other activities like exercise, hobbies, or socializing.
Method 12: Wear loose clothing to minimize stimulation

Sometimes, an erection can happen unexpectedly from simple things like movement, pressure from clothes, or sitting in a warm bath, even without sexual intent.
To avoid such arousal, switch to looser pants and breathable cotton underwear instead of tight jeans and synthetic fabrics. This tiny adjustment will minimize stimulation, keep the groin cooler and reduce spontaneous erections.
Method 13: Eat a balanced diet

What you eat directly influences your hormones and blood circulation, both of which impact erection quality and frequency. Thus, it is important to:
- Eat plenty of leafy greens, whole foods and lean proteins to maintain healthy hormone levels, blood flow and energy.
- Incorporate healthy fats from sources such as avocados, fatty fish, and nuts to improve circulation and balance hormones.
- Limit processed foods, fried items, and sugary snacks to prevent hormonal spikes and overstimulation.
- Include zinc to increase testosterone.
Method 14: Reduce smoking, alcohol and drug use

Lifestyle habits strongly affect sexual health. So to stabilize your sexual responses, try cutting back or quitting alcohol, drugs, and smoking.
While an occasional drink may not matter, heavy or frequent use can disrupt your hormonal balance, circulation, and the nervous system. This can lead to temporary as well as long-term erectile difficulties.
Method 15: Consider anti-erection medication (only if prescribed)

Short-term tips like flexing muscles or cold showers can only help you manage erections, but if they begin to interfere with your daily life, consult a doctor. The doctor might prescribe testosterone-lowering medication. However, take these only under medical supervision, as they may carry risks of interactions and serious side effects.
While there are no “anti-erection pills” as such, there are medicines that can make erections less probable or difficult to achieve as a side effect. Such options include Selective Serotonin Reuptake Inhibitors (SSRIs) and H2-blockers. Additionally, doctors prescribe Cyproterone, Dexmedetomidine and Ketoconazole to prevent postoperative erections in surgical patients.
Frequently Asked Questions
Can hypersensitivity of the penis cause frequent erections?
Yes, highly sensitive penile nerves may trigger erections from light friction, such as tight clothing or certain physical movements. This is normal but can be managed with looser clothes and mindfulness mental techniques to stop erections.
Is it healthy to be erect a lot?
Yes, spontaneous or involuntary erections, especially nocturnal ones, are generally signs of healthy circulation. However, you should consult a doctor if they cause pain, occur too frequently or interfere with daily life.
Am I getting too many erections?
There is no fixed number applicable to everyone, as factors like age, men’s sexual health, and daily habits make a big difference. On average, men get around 11 erections a day, including 3-5 in their REM (Rapid Eye Movement) phase of sleep. But having more or fewer than that doesn’t necessarily mean a sexual dysfunction.
Can men control when they get hard?
The answer is both yes and no. Since erections are partly reflexive and influenced by involuntary factors, they can’t always be controlled. Having said that, men can learn short-term tricks and adopt lifestyle changes to control when they get hard.
How to stop getting hard when hugging my girlfriend?
To stop getting hard while hugging your girlfriend, shift focus to non-sexual thoughts, try mindful breathing and/or flex your thigh muscles. Some Quora users suggest masturbating before meeting her. Over time, your body will adapt to sexual urges naturally, and getting hard when you don’t want to won’t be a problem.
I get erections randomly, but not during sex. Why?
If you get erections otherwise but not during partnered sex, it can be due to stress or performance anxiety. So, make sure to discuss your concerns with your partner openly. Frequent inability to achieve or maintain arousal may signal Psychological Erectile Dysfunction, which requires stress management, therapy and medication.
When referencing outside resources, GoodrxMedicine always provides full citations. To learn more about the measures we use to maintain the quality of our content, please review our Content Information Policy.


