Painful erections that strike only during sleep are a recognized medical condition called sleep-related painful erections, or SRPE. They occur exclusively during the rapid eye movement (REM) stage of sleep and, in a defining twist, leave daytime erections completely painless. The condition is rare but genuinely disruptive, fragmenting sleep night after night and spilling over into daytime fatigue, mood, and sexual health in ways that go well beyond the pain itself.
What Happens During Normal Nocturnal Erections
Every healthy male experiences erections during REM sleep, regardless of age. These episodes are a normal part of sleep physiology, typically cycling three to five times per night in rhythm with REM periods. They are not driven by sexual arousal or dreams; they are an automatic function of the nervous system during a particular sleep stage. Most people never notice them because they are painless and resolve on their own before waking.
In SRPE, that ordinary process goes wrong. The erection itself appears mechanically normal, but it arrives with significant penile pain that forces the person awake. Once awake, the erection and the pain both subside within minutes. The person falls back asleep, re-enters REM, and the cycle repeats. Over weeks and months, this pattern creates severe sleep deprivation.
Why the Pain Happens
The honest answer is that researchers still do not fully understand why SRPE causes pain. The leading theory points to the autonomic nervous system behaving differently during sleep than it does during waking hours. Studies comparing SRPE patients to healthy controls have found reduced vagal (parasympathetic) activity during sleep in people with the condition, along with signs of heightened sympathetic tone. That imbalance could explain why beta-blockers like propranolol have helped some patients: by dampening the overactive sympathetic response during sleep.
A related hypothesis involves excessive release of neurotransmitters that relax the smooth muscle inside the penis. The idea is that hypersensitivity leads to too much relaxation of the cavernous tissue, or excessive activity in the pelvic floor muscles, producing erections that are more rigid or prolonged than normal REM erections. That could account for the painful pressure sensation. But the mechanism still does not fully explain the pain component itself, which remains somewhat mysterious.
How Doctors Distinguish SRPE from Other Painful Erections
Not every painful nighttime erection is SRPE. Several other conditions cause penile pain and need to be ruled out, because their treatments are completely different.
- Peyronie’s disease: Causes pain with erections both awake and asleep, during intercourse and masturbation. It involves a fibrous plaque inside the penis that creates a visible curvature. On physical exam or ultrasound, the plaque and bend are detectable. SRPE produces no structural changes and no pain during waking erections.
- Ischemic priapism: A persistent erection lasting more than four hours, unrelated to sexual stimulation, where blood is trapped in the penis. It has well-defined risk factors and requires urgent intervention, usually injections or aspiration of blood from the corpora cavernosa. SRPE erections resolve within minutes of waking.
- Stuttering priapism: Recurring brief episodes of painful erection that can also occur during sleep, making it the closest mimic of SRPE. However, key differences emerge on testing. Men with stuttering priapism tend to have significantly longer total erection time during the night and take much longer to lose their erection after waking, compared to men with SRPE. In one study, erection duration averaged about 60 minutes for stuttering priapism versus about 18.5 minutes for SRPE, and detumescence after waking took roughly 26 minutes versus just over 5 minutes. Doppler ultrasound also shows different blood flow patterns: men with stuttering priapism show abnormally low vascular resistance at rest, while men with SRPE have normal resting blood flow.
- Phimosis or urethritis: These cause penile pain that is not specifically tied to erections and present with different physical signs entirely.
The distinction between SRPE and stuttering priapism matters because stuttering priapism carries a real risk of progressing to a full ischemic episode. About 30 percent of stuttering priapism patients eventually develop a major ischemic event, which is a urological emergency.
Getting a Diagnosis
Because the pain occurs only during sleep, diagnosing SRPE usually requires an overnight sleep study. Polysomnography combined with nocturnal penile tumescence and rigidity monitoring can confirm that painful awakenings are happening during REM-associated erections, with no evidence of organic erectile dysfunction. This combination rules out structural problems with the penis and confirms the sleep-specific pattern that defines the condition.
The timing of painful episodes within the night also provides diagnostic clues. SRPE patients tend to wake very shortly after an erection begins during REM, and the painful events are spread fairly evenly across the whole night rather than clustering in the second half. That is a different pattern from stuttering priapism, where episodes tend to occur later in the night.
SRPE is rare. As of one published review, fewer than 35 cases had been reported worldwide, though the true number of affected individuals is almost certainly higher since many may not seek medical attention or may be misdiagnosed. The condition was formally defined as a REM parasomnia by the American Academy of Sleep Medicine in 1990 but was dropped from later editions of the International Classification of Sleep Disorders, which has complicated clinical recognition.
The Connection to Sleep Apnea
A small number of reported SRPE cases have occurred alongside obstructive sleep apnea. This overlap is interesting because sleep apnea disrupts normal sleep architecture, including the cycling of REM periods. In at least two documented cases, treating the apnea with a CPAP machine lessened the painful erection symptoms. The implication is that in some patients, the disordered breathing is destabilizing REM sleep in a way that triggers or worsens the painful erections. For anyone experiencing painful nighttime erections who also snores heavily or has other signs of sleep apnea, getting a full sleep evaluation could uncover a treatable contributing factor.
Drug-Induced Painful Erections at Night
Certain medications can cause prolonged or painful nocturnal erections, and these need to be considered before jumping to a diagnosis of SRPE. Antipsychotic medications are among the more commonly reported culprits. Risperidone, for example, has been linked to prolonged erections, particularly when combined with lithium. Other drugs that affect the autonomic nervous system or smooth-muscle tone can also play a role. If painful nighttime erections begin shortly after starting or changing a medication, that temporal connection is worth discussing with a prescriber.
Impact on Mental Health and Relationships
The consequences of SRPE extend well beyond the nighttime episodes. Chronic sleep disruption alone causes fatigue, irritability, and difficulty concentrating during the day. But research has found that men with SRPE also show significantly lower erectile function and greater psychological distress compared to men without the condition. Anxiety, sleep-related distress symptoms, and general psychological burden were all measurably elevated in SRPE patients in one study, with serum prolactin levels correlating with both worse erectile function and higher distress scores.
The sexual and relational consequences are equally real. Because the condition creates an association between erections and pain, some men develop anxiety around sexual arousal in general, even though their waking erections are technically painless. Partners may not fully understand a condition where erections during sex are fine but erections during sleep are agonizing, which can create confusion and strain. Published case reports describe patients reducing the frequency of intercourse as a result of the condition, leading directly to relationship problems.
Treatment Options
There is no single treatment that works reliably for every SRPE patient, and the evidence base is small, built largely from case reports and small case series rather than large trials. That said, several approaches have shown benefit.
Baclofen
Baclofen, a muscle relaxant that acts on the central nervous system, is the most studied drug for SRPE. In the largest published case series, 14 patients were treated with baclofen at doses ranging from 10 to 75 milligrams. Eleven of them experienced complete remission of their pain within a few weeks. However, the long-term picture is less encouraging: after an average follow-up of four and a half years, only about 42 percent of patients who had used baclofen were still satisfied with their symptom control. The main problem was relapse after stopping the medication. A multimodal approach combining baclofen with pelvic floor physiotherapy has been explored at one center, reflecting the difficulty of managing the condition with medication alone.
Other Medications
Most other drugs that have been tried for SRPE have been ineffective, or effective only briefly. The few that have shown some lasting benefit in published cases include clozapine, an atypical antipsychotic, and clonazepam, a benzodiazepine commonly used for other sleep disorders. Propranolol, the beta-blocker mentioned earlier, has also been used based on the finding of sympathetic overactivity during sleep in SRPE patients. Because the evidence for all of these is limited to individual case reports or very small series, treatment often involves trial and error.
CPAP for Co-Existing Sleep Apnea
When SRPE occurs alongside obstructive sleep apnea, treating the apnea with a CPAP device has reduced the painful erection symptoms in published reports. This is one of the more straightforward interventions when both conditions are present, because it addresses a clear physiological contributor to disrupted REM sleep.
The Role of the Pelvic Floor and Nerve Pathways
Some researchers have explored whether pelvic nerve dysfunction could contribute to nocturnal penile pain. The pudendal nerve, which supplies sensation to the genitals and controls pelvic floor muscles, is a plausible player. Injury or compression of the dorsal branch of the pudendal nerve has been linked to both penile pain and erectile dysfunction. In a small surgical series, patients with dorsal branch injuries underwent nerve decompression, and two out of three patients with erectile dysfunction regained normal erections after the procedure. While this specific scenario involves nerve injury rather than the idiopathic pattern of SRPE, it highlights that pelvic nerve function is relevant to both penile pain and erectile health, and pelvic floor assessment may be a useful part of the workup for men whose symptoms do not neatly fit the classic SRPE pattern.
What to Do If You Experience Painful Nighttime Erections
If you are being woken by painful erections, the first practical step is paying attention to the pattern. Note whether the pain happens only during sleep, whether daytime erections are completely painless, roughly how long the erection and pain last after waking, and whether there is any curvature or visible change to the penis during an episode. This information helps a doctor quickly narrow the possibilities.
A visit to a urologist is the appropriate starting point. They will examine for structural issues like Peyronie’s plaques or phimosis and take a medication history to check for drug-related causes. If SRPE is suspected, referral to a sleep medicine specialist for polysomnography with penile monitoring is the gold-standard diagnostic step. A sleep study also screens for apnea, which is worth identifying on its own merits.
Be prepared for the possibility that treatment involves some experimentation. Baclofen is the most common first-line medication, and while it often works initially, maintaining long-term relief may require ongoing therapy or combining approaches. If you are already using a medication known to affect erections or autonomic function, adjusting that medication in consultation with your prescriber could resolve the problem entirely.
Nocturnal Erections After Prostate Surgery and in Other Medical Contexts
Men who have had prostate surgery, particularly radical prostatectomy, sometimes ask about painful nighttime erections as part of their recovery. This is a different situation from SRPE. Nerve-sparing prostatectomy aims to preserve the nerves responsible for erections, and during recovery those nerves may fire unpredictably, producing erections that can feel unusual or uncomfortable. This is generally considered a positive sign of nerve recovery rather than a disorder, and it typically resolves as healing progresses.
Similarly, men with spinal cord injuries or neurological conditions affecting the sacral nerve pathways may experience erections that behave differently from normal, including episodes of pain or involuntary erection during sleep. These situations are managed within the broader context of the neurological condition rather than as standalone SRPE. The distinction matters because the treatment strategies differ significantly: nerve recovery protocols, neuropathic pain management, and rehabilitation approaches take precedence over the SRPE-specific medications discussed above.
Why the Condition Remains Poorly Understood
SRPE sits at an awkward intersection of urology and sleep medicine, two specialties that do not always communicate well. Urologists may not be familiar with parasomnias, and sleep specialists may not think to monitor penile tumescence during a routine sleep study. The condition’s removal from the International Classification of Sleep Disorders after its first edition did not help matters; without a formal classification, clinicians have less guidance and researchers have less incentive to study it. The fewer than 35 cases reported worldwide almost certainly represents severe underdiagnosis rather than true rarity. Men experiencing the problem may be embarrassed to bring it up, may assume it is normal, or may be told by a general practitioner that nothing can be done. Greater awareness among both clinicians and patients is probably the single biggest factor that would improve outcomes.