Why Are My Erections Painful at Night and What Can I Do?

Painful erections during sleep usually point to one of a handful of identifiable conditions, and the most common among them is a recognized sleep disorder called sleep-related painful erections, or SRPE. Nighttime erections themselves are completely normal and happen during every sleep cycle, but they should not hurt. When they do, the pain typically wakes you up repeatedly, fragments your sleep, and spills over into daytime fatigue and anxiety. The good news is that once a doctor identifies the cause, several treatments can help, though the path to relief is not always straightforward.

Why You Get Erections During Sleep in the First Place

Every healthy male experiences erections during sleep, regardless of age. These erections are tied to rapid eye movement (REM) sleep, the phase associated with dreaming, and occur three to five times per night in most men. They are driven by changes in neural activity during REM and are not caused by sexual arousal or dream content. The phenomenon is so consistent that clinicians sometimes use it as a diagnostic tool: if a man has erections during sleep but not while awake, the issue is more likely psychological than physical.

Normally, these erections come and go without you ever noticing. You might wake up with one in the morning simply because your last REM period happened to coincide with your alarm. Pain during these erections, however, is not part of the normal picture. When it appears, it signals that something else is going on.

Sleep-Related Painful Erections as a Distinct Condition

SRPE is classified as a parasomnia, a disorder of abnormal events during sleep. Men with SRPE wake up repeatedly from deep penile pain during nocturnal erections, and the pain typically resolves once the erection subsides. In a study tracking 18 patients over six years, the average age when symptoms first appeared was about 40, and the average duration of the condition before diagnosis was over five years. Roughly 60% of patients had a severe form of the disorder, and most reported excessive daytime sleepiness as a direct consequence of their disrupted sleep.

Sleep studies on these patients consistently show a fragmented pattern: frequent awakenings (often more than five per night), reduced overall sleep time, and lower-than-normal amounts of REM sleep. The erections themselves tend to be short, sometimes incomplete, and more numerous than typical nocturnal erections, sometimes seven to ten per night. They begin mostly during REM sleep and persist for a while after the person wakes up. Physical examination, blood work, hormone levels, and penile ultrasound are characteristically normal, which is part of what makes SRPE so frustrating for the people living with it.

Because reported cases are relatively few, understanding of what actually causes SRPE remains limited. The condition can persist for years, and the toll on quality of life is substantial. One published case described a man who had dealt with painful nighttime erections for 13 years, attending outpatient clinics nearly 300 times and being hospitalized three times before the underlying condition was properly managed.

How SRPE Differs from Stuttering Priapism

If you search online for painful nighttime erections, you will also encounter references to stuttering priapism. The two conditions look similar on the surface: both involve bothersome erections that wake you from sleep and leave you tired during the day. But they require different treatment approaches, so distinguishing between them matters.

Stuttering priapism involves prolonged, unwanted erections that are caused by blood becoming trapped in the erectile tissue. The erections in stuttering priapism tend to last longer and may not resolve on their own without specific intervention. SRPE erections, by contrast, are typically shorter and resolve once the person is fully awake or the REM period ends. A sleep study with simultaneous monitoring of erection firmness can help tell the two apart, since the patterns of erection timing, duration, and blood flow look different on the recordings.

This distinction has real consequences for treatment. Penile prosthesis implantation, for example, has been shown to resolve symptoms in men with stuttering priapism who failed other treatments, but surgical approaches including prosthesis implantation and embolization did not improve symptoms in men with SRPE.

Other Conditions That Can Cause Painful Nighttime Erections

SRPE is not the only reason erections might hurt at night. Peyronie’s disease, a condition where scar tissue (plaque) forms inside the penis, can cause pain during any erection, including nocturnal ones. The pain from Peyronie’s disease tends to be localized to the area of the plaque and often comes with a noticeable curve in the penis. Unlike SRPE, where physical examination is normal, Peyronie’s disease usually produces a palpable lump or band of hardened tissue that a doctor can feel. Peyronie’s pain often improves on its own over 12 to 18 months as the plaque matures, though the curvature may persist.

Spinal and nerve issues are another possibility. Lumbosacral annular tears, which are small injuries in the discs of the lower spine, can irritate the sacral nerve roots that control genital sensation and blood flow. This type of nerve irritation has been linked to several distressing sexual dysfunctions, including SRPE and a condition called hard flaccid syndrome. If your painful erections coincide with lower back pain, leg numbness, or pelvic discomfort, a spinal issue is worth investigating.

Less commonly, infections of the urethra or prostate, tight foreskin (phimosis), or allergic reactions to condoms or lubricants can make erections uncomfortable. These causes tend to produce pain during daytime erections too, not exclusively at night, and are usually easier to diagnose.

What Drives the Pain in SRPE

Researchers have proposed several overlapping mechanisms for why nocturnal erections become painful in SRPE, though no single explanation covers every case.

One line of thinking focuses on testosterone. Testosterone levels naturally rise during sleep, peaking in the early morning hours. Testosterone regulates the release of nitric oxide in the erectile tissue, the molecule that triggers the smooth muscle relaxation needed for an erection. The theory is that elevated nocturnal testosterone may drive stronger or more frequent erections, potentially contributing to SRPE through this hormonal pathway. But this alone does not explain the pain, since most men experience these testosterone surges without any discomfort.

A more compelling piece of the puzzle involves the pelvic floor muscles. Some clinical observations suggest SRPE may be linked to excessive tension in the pelvic floor. Patients with SRPE frequently report that their penile pain radiates to nearby areas, and many have concurrent lower urinary tract symptoms like urgency or frequency. During REM sleep, pelvic floor muscle tone can fluctuate, and in susceptible individuals, this increased tension may compress or irritate the structures involved in erection. Psychological stress, which is known to increase pelvic floor tension, also appears to correlate with symptom severity.

The role of the central nervous system is another area of interest. Normal nocturnal erections are controlled by a circuit involving brainstem nuclei that become active during REM sleep. In SRPE, something appears to go wrong in the signaling that should make these erections painless. Whether this is a problem with pain-suppression pathways during REM, abnormal arousal thresholds, or some other neural mechanism remains unclear.

Getting a Diagnosis

If you are regularly waking up from painful erections, the first step is a visit to a urologist or a sleep medicine specialist. The clinical evaluation typically starts with a thorough history: when the pain started, how often it happens, whether you notice any curvature or lumps, and whether the pain occurs during daytime erections as well.

A physical exam rules out structural causes like Peyronie’s disease or phimosis. Blood tests check hormone levels and metabolic markers. A penile Doppler ultrasound assesses blood flow. In SRPE, all of these tests typically come back normal, which is itself a diagnostic clue.

The gold-standard test is an overnight sleep study (polysomnography) combined with nocturnal penile tumescence monitoring. This setup records your sleep stages while simultaneously tracking erection frequency, firmness, and duration. In SRPE, the study shows sleep fragmentation, frequent REM-related erections, and awakenings that correspond to periods of penile rigidity. This combination rules out stuttering priapism (where the blood flow pattern differs) and confirms that the pain is specifically tied to the normal REM erection cycle.

Because SRPE is rare and not widely known among general practitioners, diagnosis is often delayed. If you feel your concerns are being dismissed, asking specifically about SRPE and requesting a referral to a center with experience in sleep-related sexual disorders can help move things along.

Medication Options

There is no single FDA-approved drug for SRPE, and treatment often involves trial and error with medications used off-label. The evidence base is limited to case series and small cohort studies rather than large randomized trials, so the strength of the evidence behind each option is modest. Still, several drugs have shown benefit.

Baclofen, a muscle relaxant that acts on the central nervous system, is among the most studied options. In a cohort of 17 patients started on baclofen at 10 mg nightly (with doses adjusted up to 80 mg as needed), about 70% experienced improvement. Roughly a third managed on baclofen alone, while about half needed the addition of a sleep medication to get adequate relief. In the small number who did not respond, baclofen was replaced with etilefrine, a sympathomimetic drug that constricts blood vessels in the erectile tissue.

Other medications that have been tried in published cases include clozapine (an antipsychotic that suppresses REM sleep), various beta-blockers, and antiandrogens. For stuttering priapism specifically, dutasteride has shown promise: in a 12-year review of 13 men treated with this drug, 85% had some degree of improvement, with about 38% achieving complete resolution of their episodes. Dutasteride works by reducing the conversion of testosterone to its more potent form. This approach, however, is specific to stuttering priapism and has not been established for SRPE.

One case report described success with sodium oxybate, a medication typically used for narcolepsy, in a 39-year-old man with a two-year history of SRPE who had not responded to other treatments. Sodium oxybate consolidates deep sleep and may reduce the frequency of REM-related arousals. Given the drug’s controlled-substance status and potential for misuse, this is reserved for refractory cases and requires careful counseling.

Pelvic Floor Therapy and Non-Drug Approaches

Pelvic floor physiotherapy is emerging as a useful component of SRPE management, especially for men whose symptoms seem related to pelvic floor tension. In one case series of 24 patients, three out of five men who completed a course of pelvic floor physiotherapy reported positive long-term outcomes. The therapy typically involves exercises and manual techniques to release excessive tension in the pelvic floor muscles, rather than the strengthening exercises (Kegels) that many people associate with pelvic floor work.

A multimodal approach that combines baclofen, sleep study-guided sleep optimization, and pelvic floor physiotherapy has shown the most consistent results in the published literature. The sleep study component is useful not just for diagnosis but for identifying coexisting sleep disorders. If obstructive sleep apnea is present, treating it with a CPAP machine can improve overall sleep architecture and may reduce the frequency of painful awakenings.

Simpler strategies have occasionally helped individual patients. One published case involved a young man whose painful nighttime erections were specifically triggered by sexual intercourse earlier in the day. He found that shifting the timing of intercourse eliminated his symptoms entirely. While this is unlikely to be the answer for most people, it illustrates that lifestyle triggers are worth paying attention to. Stress management, sleep hygiene improvements, and avoiding stimulants close to bedtime are reasonable general measures, though none have been formally studied in SRPE.

When Peyronie’s Disease Is the Culprit

If your painful nighttime erections come with a curve in the penis that was not always there, Peyronie’s disease is likely the explanation rather than SRPE. The pain of Peyronie’s usually appears during the acute phase, when the scar tissue is actively forming, and it tends to diminish over time even without treatment. The curvature itself, however, may worsen or stabilize.

The only FDA-approved treatment specifically for Peyronie’s disease is collagenase clostridium histolyticum, an injectable enzyme that breaks down the collagen in the scar tissue. It is indicated for men with curvature between 30 and 90 degrees. In clinical trials, men treated with the enzyme saw about a 30% improvement in penile curvature compared to roughly 11% with placebo, along with improvements in symptom bother scores. The treatment involves a series of injections given in a urologist’s office, often combined with penile modeling (gentle stretching).

Other nonsurgical options for Peyronie’s include traction therapy (wearing a device that gently stretches the penis over weeks to months) and various oral medications, though evidence for pills alone is generally weak. Surgery is reserved for men with stable disease who have significant curvature that interferes with sexual function.

The Psychological Weight of the Condition

Chronic sleep deprivation alone is enough to affect mood, concentration, and relationships, and SRPE adds an additional layer of distress. In one patient series, about 23% of men with SRPE developed psychogenic erectile dysfunction, meaning they began having trouble with erections during waking hours not because of any physical problem but because of the anxiety and negative associations they had developed around erections in general. The sleep loss itself contributed to depression in many patients.

This creates a frustrating cycle: the condition disrupts sleep, poor sleep worsens anxiety, and anxiety amplifies the perception of pain and may increase pelvic floor tension, which could further aggravate symptoms. Personality disorders and psychiatric conditions are not characteristic of SRPE patients, but the secondary psychological effects of living with the condition can be significant. If your doctor is managing the urological or sleep aspects of the problem but you are struggling emotionally, working with a therapist who understands chronic pain or sexual health issues is a reasonable addition to your care.

What Does Not Work for SRPE

One of the more important findings in the literature is that surgical interventions, which can be effective for stuttering priapism, do not appear to help SRPE. In a cohort study that compared the two conditions, penile prosthesis implantation resolved symptoms completely in men with stuttering priapism but failed to improve symptoms in the SRPE group. Embolization, a procedure that deliberately blocks some of the blood supply to the erectile tissue, was equally ineffective for SRPE.

This is worth knowing because a man desperate for relief after years of fragmented sleep might be tempted by a surgical fix. For SRPE specifically, the evidence points toward medical and behavioral management rather than the operating room. If a surgeon recommends a prosthesis for what has been diagnosed as SRPE rather than stuttering priapism, seeking a second opinion is reasonable.

When to Seek Urgent Care

Painful nighttime erections should be evaluated, but they rarely constitute a medical emergency unless the erection itself will not go down. An erection that lasts more than four hours is a urological emergency called priapism, and it requires treatment within hours to prevent permanent damage to the erectile tissue. If you are waking up with a painful erection that resolves within 30 to 60 minutes after you get up and move around, that is consistent with SRPE or stuttering priapism and warrants a clinic appointment rather than an emergency room visit. But if the erection persists for hours, do not wait until morning.

Other red flags that warrant prompt medical attention include a sudden onset of penile curvature, blood in the urine, fever, or pain that continues even after the erection has fully subsided. These suggest infections, trauma, or acute Peyronie’s changes that need timely evaluation.

Navigating a Rare Diagnosis

Part of the challenge with SRPE is simply getting anyone to take it seriously. The condition is uncommon enough that many urologists and sleep specialists have never seen a case. Published treatment data come from small case series at specialized centers, not from the large trials that drive treatment guidelines in more common conditions. This means your doctor may need to look up the literature or consult with colleagues who have experience with the disorder.

If you suspect SRPE, keeping a sleep diary that records when you wake up, how long the pain lasts, and what helps it resolve can provide useful information at your first appointment. Noting whether daytime erections are painless (they usually are in SRPE) and whether you have any lower back symptoms or urinary issues helps narrow the differential. The more specific the information you bring, the faster a clinician can decide whether a formal sleep study is warranted. Given the average delay of over five years between symptom onset and diagnosis in published series, being your own advocate matters here more than in most medical situations.