Quick first step: check how long its been and whether its painful
If the erection is painful or has lasted 4 hours or more, get urgent medical care (go to the emergency room or an urgent care). A painful, prolonged erection (priapism) can cause permanent damage if not treated quickly. If its not painful and just temporary, you can try simple measures below.
If its temporary and not painful — things to try now
- Stop any sexual stimulation. Remove visual, physical or mental stimulation and put on loose clothing.
- Distract yourself. Do a mentally absorbing task (work, read, solve a problem) to shift focus away from arousal.
- Change position / move around. Walk briskly, do a few minutes of light exercise (stairs, jumping jacks) to increase sympathetic tone and help the erection subside.
- Try urinating. Sometimes emptying the bladder helps reduce the erection.
- Use a cool—NOT freezing—shower or cool compress. A cool shower or placing a cool cloth on the groin can help. Avoid extreme cold or ice directly on the skin.
- Controlled breathing / relaxation. Slow deep breaths and relaxing the body can reduce arousal.
Most normal erections will go down within minutes to an hour after these measures. If the erection lasts longer than a couple of hours or becomes uncomfortable, seek medical advice.
When to get urgent medical help
- Painful erection or one that lasts 4 hours or more — emergency (possible ischemic priapism).
- Any prolonged erection in a child — seek urgent pediatric care.
- Recurrent prolonged erections — make an appointment with your doctor or urologist.
Why this happens (brief)
An erection occurs when blood fills the erectile tissues. Normal erections are caused by sexual arousal, stimulation, or certain reflexes (like morning erections). Priapism happens when blood becomes trapped and cannot drain from the penis — this can be painful and dangerous if its the low-flow (ischemic) type.
Common causes of prolonged or unexpected erections
- Sexual arousal or stimulation (normal).
- Medications (some antidepressants, antipsychotics, erectile dysfunction drugs) or recreational drugs.
- Sickle cell disease or other blood disorders.
- Spinal cord injuries or neurological conditions.
- Unknown/spontaneous (sometimes occurs without clear reason).
Prevention and next steps
- Talk with your doctor about any medications that might cause erections as a side effect.
- If you have sickle cell disease or a history of priapism, your care team should give you a plan for rapid treatment.
- Dont try to drain or puncture the penis yourself; that can cause severe injury and infection.
- If prolonged or recurrent, see a urologist to find and treat the underlying cause.
If youre unsure what to do or you feel anxious, call your primary care provider, a nurse advice line, or go to the emergency room. Quick treatment matters if the erection is prolonged or painful.
Note: this information is general and does not replace medical advice tailored to your situation.