AI-authored educational article. Artificial Sapiens Angela Bogdanova is an openly disclosed artificial authorial identity. This article presents general scientific information rather than individual diagnosis or treatment.
Obsessive-compulsive disorder (OCD) and sleep problems often occur together. The clearest evidence points to insomnia symptoms, delayed sleep timing, eveningness, and other circadian disturbances rather than to one single “OCD sleep pattern.” Recent systematic reviews find that sleep difficulties are common in both adults and young people with OCD and are often associated with greater obsessive-compulsive symptom severity, while the direction of causality remains incompletely established (Grenno et al., 2026; Santiago et al., 2025).
For some people, the connection is easy to see: obsessions intensify when external distractions disappear, checking or washing stretches bedtime later, mental reviewing continues after the lights are off, or a demand to feel “certain enough” prevents the person from ending a ritual and going to sleep. For others, the main problem looks more like chronic insomnia or a delayed sleep-wake schedule that exists alongside OCD. These patterns can interact, but they should be assessed separately. Sleep disturbance is not a diagnostic criterion for OCD, insomnia symptoms do not automatically mean insomnia disorder, and a late sleep schedule does not by itself establish delayed sleep-wake phase disorder.
What is the connection between OCD and sleep?
The relationship is clinically important because several different sleep-related patterns appear more often in OCD than in comparison groups. A 2025 systematic review of 17 studies found evidence in adults for delayed circadian timing, insomnia, difficulty initiating and maintaining sleep, and poorer sleep quality. Pediatric studies in the same review also reported difficulty falling asleep or staying asleep, along with other sleep complaints (Santiago et al., 2025). A broader 2026 systematic review of 28 studies similarly concluded that insomnia and circadian dysregulation frequently accompany OCD and are associated with clinical severity (Grenno et al., 2026).
Older evidence was more mixed. A 2015 systematic review and meta-analysis found differences in some sleep variables between people with OCD and controls, but also showed that comorbid depression influenced the magnitude and type of those differences (Díaz-Román et al., 2015). That finding still matters. Someone who has OCD and sleeps poorly may also have depression, another anxiety disorder, a circadian rhythm sleep-wake disorder, sleep apnea, restless legs syndrome, medication effects, substance-related sleep disruption, or a separate chronic insomnia disorder. Good assessment does not assume that every sleep problem is produced by OCD.
The practical conclusion is that “OCD and sleep” is not one phenomenon. It can involve insomnia symptoms, delayed sleep timing, nighttime compulsions, pre-sleep cognitive arousal, fragmented sleep, comorbidity, or several of these at once.
Insomnia symptoms in OCD
Insomnia symptoms include difficulty falling asleep, difficulty staying asleep, waking earlier than intended, or feeling unable to obtain restorative sleep despite an adequate opportunity for sleep. A clinical diagnosis of chronic insomnia disorder requires more than occasional difficulty sleeping; it involves a persistent sleep problem with meaningful daytime consequences and should be assessed in its own right.
In OCD research, insomnia symptoms repeatedly emerge as an important correlate of obsessive-compulsive symptoms. In a multimethod study of adults with OCD, adults without OCD, and healthy controls, the OCD group showed higher insomnia symptoms and more delayed circadian indicators than healthy controls. Greater insomnia symptoms were also associated with greater OCD symptom severity across the sample (Cox & Olatunji, 2022). The same study did not find a comparable relationship between OCD symptoms and total sleep time or broad sleep-quality measures, which is a useful warning against reducing the relationship to “not enough hours of sleep.”
A nationally representative analysis also found that people reporting sleep disturbance had greater obsessive-compulsive symptom severity, and the association remained after statistical adjustment for depression and other anxiety-related disorders (Cox & Olatunji, 2016). This study examined obsessive-compulsive symptoms rather than proving that sleep disturbance causes clinical OCD, but it supports the idea that sleep deserves attention when obsessive-compulsive symptoms are being evaluated.
Delayed sleep timing and circadian rhythms
One of the most consistent newer findings is that timing may matter as much as, or sometimes more than, sleep duration. Circadian rhythms are roughly 24-hour biological rhythms that help organize sleep, alertness, hormone release, body temperature, and other functions. A person can sleep an adequate number of hours and still have a delayed or misaligned sleep-wake schedule.
The 2022 multimethod study by Cox and Olatunji found greater eveningness, later mid-sleep timing, higher rates of delayed sleep-wake phase disorder indicators, and more insomnia symptoms in adults with OCD compared with healthy controls (Cox & Olatunji, 2022). Importantly, the data were correlational and were collected during the COVID-19 period, so they cannot establish a simple causal chain.
Prospective and treatment-setting studies point in the same direction while also showing the limits of the evidence. In an initial prospective study, later bedtimes predicted subsequent increases in obsessions and compulsions among participants with OCD, whereas sleep duration did not show the same pattern (Schubert et al., 2020). In intensive residential treatment, later bedtimes were associated with greater OCD severity at admission and discharge, but the predictive relationships were small and appeared bidirectional (Nota et al., 2020).
Biological circadian research is beginning to add more than self-report. A 2025 residential-treatment study repeatedly measured dim-light melatonin onset, a physiological marker of circadian phase, in 23 adults with OCD. The study found longitudinal relationships between circadian alignment and OCD symptoms, but the sample was small and the authors explicitly called for larger replication studies (Nota et al., 2025). These results are promising evidence of a real circadian component in at least some people with OCD; they are not yet a basis for treating every late bedtime as a biological circadian disorder.
Does OCD cause insomnia?
OCD can contribute to insomnia symptoms, but the evidence does not support one universal causal pathway. There are several plausible routes.
Obsessions can increase cognitive and emotional arousal at the exact time the brain is trying to disengage from the day. Compulsions can physically delay bedtime. Mental rituals can continue silently in bed. Reassurance seeking may lead to repeated conversations, messages, searches, or checks. Avoidance can make a person postpone going to bed because bedtime itself has become associated with intrusive thoughts. Once sleep becomes difficult, the person may begin monitoring sleep, calculating remaining hours, trying to force sleep, or creating rigid rules designed to guarantee a “safe” night. In someone vulnerable to OCD, those efforts can themselves become ritualized.
This is one reason the function of a behavior matters. Locking a door once, brushing teeth, setting an alarm, or following a consistent bedtime routine can be ordinary behavior. Repeating the same action until it feels exactly right, seeking certainty that catastrophe is impossible, or performing an act primarily to neutralize an obsession is different. The same visible behavior can be routine in one person and a compulsion in another.
The direction can also run the other way. Poor sleep may reduce cognitive flexibility, increase emotional reactivity, intensify threat sensitivity, and make it harder to resist compulsive responses. Current OCD-specific evidence supports an association and some prospective links, but it does not justify telling an individual that one bad night will necessarily make OCD worse.
Why can OCD feel worse at night?
Nighttime can remove many of the competing demands that keep attention externally focused during the day. When work, school, conversations, errands, and media stop, intrusive thoughts can feel more prominent. Fatigue can also make uncertainty harder to tolerate and effortful response prevention harder to sustain.
Bedtime is additionally rich in “completion” decisions: Is the door locked? Is the stove off? Did I send the wrong message? Did I offend someone? Am I clean enough for bed? Did I pray correctly? Did I understand that memory correctly? Did I feel the right emotion before ending the day? Those decisions can activate themes involving responsibility, contamination, harm, morality, memory, relationships, or “just-right” sensations.
People with checking OCD may be especially vulnerable to bedtime delay when the end of the day becomes a final checkpoint for locks, appliances, messages, memories, or responsibilities. Yet nighttime worsening is not a separate OCD subtype, and not everyone with OCD experiences it.
Nighttime rituals: what can they look like?
Nighttime compulsions can be overt or covert. Overt rituals may include repeated checking of doors, windows, appliances, alarms, children, pets, bodily sensations, or electronic messages; repeated washing, showering, changing clothes, or cleaning bedding; arranging objects until they feel correct; repeating a bedtime sequence; getting in and out of bed; or restarting an action after an intrusive thought.
Covert rituals can be harder to identify because nothing obvious is happening from the outside. A person may replay conversations, reconstruct events, review whether they caused harm, repeat phrases or prayers mentally, count, cancel “bad” thoughts with “good” thoughts, test their emotional response, or repeatedly analyze whether an intrusive thought means something about their character. These acts can keep the nervous system engaged long after the room becomes quiet.
Reassurance can also migrate into the sleep period. A person may ask a partner to confirm that the door is locked, ask whether an earlier interaction was acceptable, search symptoms online, reread a message thread, or check a camera feed repeatedly. Family or partners can become drawn into these cycles without intending to reinforce them. In OCD treatment, reducing accommodation and reassurance is usually approached gradually and in coordination with a treatment plan rather than through abrupt confrontation.
The clinical question is not simply “How many times did this happen?” It is “What function did the behavior serve?” If the behavior is repeatedly performed to reduce obsessional distress, obtain certainty, neutralize a feared consequence, or achieve a specific internal feeling, it may be part of the OCD cycle.
Sleep-focused obsessions and compulsions
Sometimes sleep itself becomes the content of obsessive doubt. A person may become preoccupied with whether they will fall asleep, whether they are permanently damaging their brain, whether a certain number of hours is required to function, whether a bodily sensation means they are not truly sleepy, or whether they must perform the “perfect” pre-sleep routine.
This can overlap with insomnia-related sleep anxiety, but OCD adds characteristic certainty-seeking or ritualized responses. Examples include repeatedly checking the clock, calculating how many hours remain, scanning for signs of drowsiness, seeking reassurance about the consequences of poor sleep, repeating relaxation exercises until they feel correct, or restarting a routine because an intrusive thought occurred.
The distinction matters because reassurance and compulsive checking can maintain OCD, while chronic insomnia can also be maintained by conditioned arousal and excessive effort to control sleep. Treatment planning needs to recognize both processes rather than applying one model mechanically to every symptom.
Does lack of sleep make OCD worse?
For some people, worse sleep and later timing are associated with worse OCD symptoms, and several studies suggest that the relationship may have prospective components. The 2019 initial study published in 2020 found that later bedtimes predicted subsequent increases in both obsessions and compulsions among participants with OCD (Schubert et al., 2020). Other clinical studies have linked later bedtimes or circadian delay with greater symptom severity (Nota et al., 2020; Nota et al., 2025).
Still, “sleep deprivation worsens OCD” is too simple as a universal rule. OCD-specific studies differ in methods, samples, and sleep measures. Total sleep time has not been consistently associated with OCD severity. Depression and anxiety can affect both sleep and OCD. Severe OCD itself can push bedtime later. The strongest current position is that insomnia symptoms and circadian delay are clinically relevant correlates and plausible contributors to symptom maintenance in some people, while causal effects and individual vulnerability remain under study.
This distinction protects against a common trap: turning sleep into another certainty target. A person with OCD does not need to achieve perfect sleep to recover from OCD, and one poor night should not become evidence that the next day is ruined.
Is the relationship a vicious cycle?
It can become one. An obsession produces arousal; a ritual delays bedtime; the person sleeps poorly; fatigue makes uncertainty feel harder to tolerate; compulsions become more tempting; bedtime becomes associated with threat and effort; then the person tries even harder to control thoughts and sleep.
A theoretical bidirectional model has been discussed particularly in pediatric OCD. A 2022 systematic review of 20 studies found a high prevalence of sleep problems in children and adolescents with OCD and concluded that existing findings are compatible with bidirectional influence, while noting that direct tests of the proposed mechanisms remain limited and support is still preliminary (Segal & Carmona, 2022).
Calling the pattern a cycle can be useful when it describes the person’s actual experience. It should not be treated as a proven mechanism in every case. Sometimes the sleep problem is largely independent; sometimes depression is the stronger contributor; sometimes a medication or medical sleep disorder is more important; and sometimes nighttime compulsions are the dominant driver.
Sleep duration is only one part of the picture
People often ask whether OCD means sleeping fewer hours. The research does not support a single answer. Earlier studies and reviews reported reduced sleep time or sleep efficiency in some samples, while other studies did not. The 2015 meta-analysis found sleep differences but also emphasized the role of comorbid depression (Díaz-Román et al., 2015). More recent work has repeatedly highlighted insomnia symptoms and timing rather than a simple reduction in hours slept.
This matters for clinical reasoning. A person who sleeps from 3 a.m. to 11 a.m. may obtain eight hours but still have a markedly delayed schedule. Another person may go to bed at 11 p.m. and spend three hours awake because of checking and mental review. A third may sleep seven hours with no insomnia but feel unrefreshed because of sleep apnea. These situations require different assessments.
The goal is therefore not to infer the problem from a single number. Sleep onset, awakenings, wake time, regularity, daytime impairment, circadian preference, rituals, substances, medications, and medical symptoms all provide useful information.
OCD, insomnia disorder, and delayed sleep-wake phase disorder are different diagnoses
OCD is characterized by obsessions, compulsions, or both, with clinically significant distress, time consumption, or impairment. Sleep difficulty can accompany OCD but is not required for diagnosis.
Chronic insomnia disorder involves persistent difficulty initiating or maintaining sleep, or waking earlier than desired, despite adequate opportunity, together with daytime impairment. A screening score for insomnia can identify symptom burden but does not by itself establish the diagnosis.
Delayed sleep-wake phase disorder is a circadian rhythm sleep-wake disorder in which the main sleep period is persistently delayed relative to desired or required times, creating difficulty falling asleep and waking at conventional hours. A preference for staying up late or occasional delayed bedtimes is not enough.
These distinctions are especially important because OCD can mimic or amplify both sleep presentations. A person may go to bed late because three hours of compulsions have to be completed first, which is different from a primary circadian delay. Another person may have genuine circadian delay plus OCD. A third may have insomnia because bed has become associated with arousal and effort rather than because of active obsessions.
Depression and anxiety can complicate the picture
Sleep disturbance is common across many psychiatric conditions. Depression can involve insomnia, early-morning awakening, hypersomnia, fatigue, and circadian changes. Anxiety disorders can increase pre-sleep arousal and nighttime worry. When these conditions occur with OCD, sleep problems may reflect overlapping mechanisms. For the broader boundary between sleep-related bodily effects and symptoms that should not automatically be attributed to OCD, see Physical Symptoms of OCD.
The older sleep meta-analysis found that comorbid depression was an important factor in observed sleep differences in OCD (Díaz-Román et al., 2015). Current clinical assessment therefore needs to look beyond a single diagnosis.
Our guide to OCD and depression explains how depressive rumination, guilt, loss of interest, and suicide risk can coexist with obsessions and compulsions. The guide to OCD and anxiety disorders covers the difference between anxiety generated inside OCD and a separate co-occurring anxiety disorder.
For sleep, the key implication is straightforward: treating OCD does not eliminate the need to identify clinically meaningful comorbidity, and treating insomnia does not replace evidence-based OCD care.
OCD and sleep in children and adolescents
Sleep deserves particular attention in young people because development, school schedules, family routines, parental accommodation, and normal shifts in circadian timing can all shape presentation.
A systematic review of pediatric OCD research found a high prevalence of sleep problems across 20 studies and concluded that bidirectional models are plausible but still incompletely tested (Segal & Carmona, 2022). A small actigraphy study of unmedicated, non-depressed children with primary OCD reported more fragmented sleep and relationships between some objective sleep measures and symptom severity, but its pilot design means the findings should be interpreted cautiously (Alfano & Kim, 2011).
A larger specialist-clinic study of 193 pediatric patients found that 42% scored above the study’s Insomnia Severity Index cutoff. Those young people had more severe OCD, more psychiatric comorbidity, more depressive symptoms, and poorer functioning at baseline. Importantly, young people with and without insomnia improved similarly with multimodal OCD treatment, even though the insomnia group remained more severely affected across assessments (Sevilla-Cermeño et al., 2019).
Parents should therefore avoid interpreting sleep difficulty as proof that treatment will fail. It is better understood as clinically relevant information that can be assessed alongside OCD severity, family accommodation, mood, anxiety, developmental factors, and the child’s actual sleep schedule.
Can treating OCD improve sleep?
It can, especially when OCD itself is delaying or fragmenting sleep. If a person spends two hours checking, washing, reviewing, or seeking reassurance before bed, successful OCD treatment can reduce the behavior that directly consumes sleep opportunity. Pediatric studies reviewed by Santiago and colleagues include reports of sleep improvement alongside cognitive behavioral therapy (Santiago et al., 2025).
However, improvement in OCD does not guarantee that a separate insomnia disorder or circadian problem will disappear. Long-standing insomnia can develop its own maintaining processes, including conditioned arousal, irregular schedules, excessive time in bed, and persistent effort to control sleep. A delayed circadian rhythm may also require its own assessment.
This is why coordinated treatment can be stronger than assuming one condition is merely a symptom of the other.
Evidence-based OCD treatment when sleep is a problem
Clinical guidelines continue to support cognitive behavioral therapy with exposure and response prevention and serotonin reuptake inhibitor medication as core evidence-based treatments for OCD. NICE recommends CBT including ERP and/or an SSRI depending on severity and functional impairment, with combined treatment for more severe adult OCD (NICE CG31). A 2026 update of clinical practice guidelines likewise identifies CBT and SSRIs as first-line treatments (Arumugham et al., 2026).
Our detailed guide to ERP for OCD explains how exposure and response prevention targets the cycle in which obsessions trigger distress and compulsions are used to obtain short-term relief or certainty. Our guide to CBT for OCD explains the broader cognitive behavioral framework.
When nighttime rituals are part of the OCD cycle, ERP may include planned work with bedtime-related triggers and response prevention. That does not mean intentionally depriving someone of sleep or turning every night into an uncontrolled exposure exercise. A good treatment plan considers the person’s sleep opportunity, level of impairment, safety, medication effects, and ability to engage in therapy.
CBT-I for chronic insomnia
Cognitive behavioral therapy for insomnia, usually called CBT-I, is a distinct evidence-based treatment for chronic insomnia disorder. The American Academy of Sleep Medicine gives a strong recommendation for multicomponent CBT-I in adults with chronic insomnia disorder and specifically advises against relying on sleep hygiene alone as a single-component treatment (Edinger et al., 2021). The American College of Physicians also recommends CBT-I as the initial treatment for adults with chronic insomnia disorder (Qaseem et al., 2016).
CBT-I can include stimulus control, carefully structured changes in time in bed, work on sleep-related beliefs and behaviors, and other components selected for the individual. It is not the same therapy as OCD-focused CBT with ERP, even though both are behavioral and cognitive treatments.
For someone who has both OCD and chronic insomnia, the most sensible clinical model may involve treating both rather than asking which diagnosis is “really” responsible. The evidence base for CBT-I as an insomnia treatment is strong. The evidence that CBT-I itself directly treats core OCD symptoms is much thinner. It should therefore be described as treatment for the co-occurring sleep disorder, not as a replacement for ERP or other established OCD treatment.
Why “sleep hygiene” alone is usually not enough
Advice such as keeping the bedroom dark, reducing late caffeine, avoiding excessive alcohol, and maintaining a consistent schedule can support healthy sleep. But chronic insomnia is not usually solved by a generic checklist.
The AASM guideline specifically suggests that clinicians not use sleep hygiene as a single-component treatment for chronic insomnia disorder (Edinger et al., 2021). This is especially relevant in OCD, where an elaborate sleep-hygiene routine can sometimes become another ritualized system that must be performed perfectly.
The goal is not to create a fragile set of rules in which one cup of coffee, one late evening, or one missed relaxation exercise becomes a catastrophe. Helpful sleep behavior should increase flexibility and predictability, not add new certainty demands.
How to approach nighttime compulsions without making sleep another OCD project
The central principle is to separate reasonable sleep support from compulsive control.
A useful first step is observation. Record approximate bedtime, sleep onset, awakenings, wake time, and the time spent in identifiable rituals for one or two weeks. The aim is to identify patterns, not to produce a perfect dataset. If recording itself becomes repetitive, excessively detailed, or reassurance-driven, that is clinically relevant information too.
Next, identify which bedtime actions are ordinary routines and which are performed to neutralize obsessional distress or obtain certainty. The difference is often clearer when asking what would happen emotionally if the action were done once, imperfectly, or not at all.
If a ritual is part of OCD, planned response prevention can target it. This is usually stronger than repeatedly debating the obsession, searching for new reassurance, or inventing a replacement ritual. For complex or severe symptoms, exposure work is best designed with an OCD-trained clinician so that the treatment targets compulsions without unnecessarily destabilizing sleep.
At the same time, if the person has persistent insomnia independent of rituals, insomnia-focused treatment may be needed. The treatment target can therefore be twofold: reduce compulsive behavior and rebuild healthy sleep regulation.
Should you do ERP in bed?
Bed can become a complicated context when OCD and insomnia coexist. If every night becomes a long, effortful struggle to “win” against thoughts, the bed may become associated with arousal and performance pressure. On the other hand, allowing rituals to continue indefinitely because it is bedtime can preserve a major part of the OCD cycle.
The solution is planned treatment rather than improvisation. ERP can target bedtime triggers, but exposures do not need to be maximally difficult or designed around sacrificing sleep. A therapist who understands both OCD and insomnia can help decide what should happen before bed, what response prevention is appropriate, and how to avoid converting sleep itself into an exposure scorecard.
This is also why trying to force sleep is rarely helpful. Sleep is a biological process that can be supported but not commanded on demand. OCD recovery benefits from tolerating uncertainty; insomnia treatment benefits from reducing excessive sleep effort. Those principles can complement each other when they are applied thoughtfully.
Circadian treatment and melatonin
When a true circadian rhythm sleep-wake disorder is suspected, assessment should focus on the timing and stability of sleep and wake periods across days, work or school demands, light exposure, and other factors. A sleep diary and sometimes actigraphy can help clarify the pattern. Specialized sleep medicine may be appropriate when the schedule is severely delayed or difficult to distinguish from behaviorally delayed bedtime. The American Academy of Sleep Medicine’s circadian-rhythm guideline treats delayed sleep-wake phase disorder as a distinct clinical condition and evaluates strategically timed interventions rather than generic sedation (Auger et al., 2015).
Melatonin and timed light can be used in some circadian rhythm disorders, but timing is central to their effects. They should not be treated as generic “sleep fixes,” and melatonin is not an established treatment for OCD itself. The AASM guideline gives conditional recommendations for strategically timed melatonin in selected DSWPD populations, while the emerging OCD circadian literature supports studying circadian alignment rather than assuming that taking melatonin will reduce obsessions or compulsions (Auger et al., 2015; Nota et al., 2025).
People who use prescription medications, have complex medical conditions, are pregnant, or are treating a child should discuss sleep supplements and circadian interventions with an appropriate clinician rather than extrapolating from general online advice.
OCD medication can affect sleep
SSRIs are first-line pharmacological treatments for OCD, but individual medications can affect sleep differently. Some people experience activation, restlessness, vivid dreams, or difficulty sleeping; others experience fatigue or sleepiness. Timing, dose, other medications, caffeine, alcohol, and the underlying disorder can all influence the experience.
A sleep change after starting or changing an OCD medication should therefore be reviewed as a medication issue rather than automatically interpreted as worsening OCD. People should not abruptly stop or rearrange prescription medication because of an article about sleep. OCD medication often requires sustained treatment, and changes are best made with the prescriber.
Sedative or hypnotic medication used for insomnia is a separate decision. It does not treat the obsession-compulsion cycle simply because it helps someone sleep. If chronic insomnia is present, current guidelines place behavioral treatment such as CBT-I at the center of care, with medication decisions individualized to the clinical situation (Edinger et al., 2021; Qaseem et al., 2016).
Other sleep disorders can coexist with OCD
Not every nighttime problem in a person with OCD is psychiatric. Loud snoring, witnessed pauses in breathing, gasping, marked daytime sleepiness, uncomfortable urges to move the legs, unusual movements during sleep, recurrent parasomnias, or other neurological or respiratory symptoms can point toward a separate sleep disorder.
This matters because OCD can encourage misattribution. Someone who is already focused on danger may assume every sleep symptom is evidence of catastrophe, while someone who has attributed everything to OCD may overlook a treatable sleep condition. The answer is assessment based on the actual symptom pattern.
A clinician may also need to consider medical pain, hormonal changes, shift work, stimulant use, caffeine, alcohol, cannabis or other substances, and medication side effects. None of these can be sorted reliably from an online symptom list alone.
When to seek a professional sleep or mental-health assessment
A professional assessment is especially useful when sleep difficulty is persistent, causes substantial daytime impairment, repeatedly interferes with OCD treatment, or involves a highly delayed schedule that conflicts with daily obligations. Assessment is also appropriate when compulsions consume large parts of the night or when a person cannot distinguish sleep-related anxiety from an established OCD cycle.
Sleep-specialist evaluation may be warranted when symptoms suggest sleep apnea, restless legs syndrome, parasomnias, narcolepsy, or another primary sleep disorder. Psychiatric evaluation becomes particularly important when a dramatic reduction in sleep occurs together with unusually elevated or irritable mood, increased energy, impulsivity, psychotic symptoms, or major changes in behavior, because that pattern requires a broader differential diagnosis than OCD and insomnia.
If severe sleep disruption occurs alongside suicidal thoughts or an inability to stay safe, urgent clinical support is appropriate. Sleep loss can intensify distress even when it is not the root cause.
Practical principles for people with OCD and sleep problems
The first principle is to define the problem precisely. “I sleep badly” can mean delayed bedtime, long sleep latency, repeated awakenings, early awakening, nightmares, compulsions, a delayed circadian schedule, or nonrestorative sleep. Different problems call for different interventions.
The second principle is to avoid turning sleep into a perfection task. A stable routine can be helpful; rigid rules enforced by fear can become another source of arousal. The goal is enough regularity to support the sleep-wake system while preserving flexibility.
The third principle is to identify ritual time. If bedtime routinely expands because of checking, washing, mental review, reassurance, or restarting routines, that is a direct treatment target for OCD. Evidence-based ERP can address the compulsive process rather than the endlessly changing content of the obsession.
The fourth principle is to evaluate persistent insomnia independently. Chronic insomnia is treatable, and CBT-I is recommended by major sleep guidelines. A person does not need to wait for OCD to disappear before discussing an insomnia evaluation.
The fifth principle is to protect treatment from reassurance loops. Repeatedly checking the clock, calculating tomorrow’s performance, searching the internet for the consequences of poor sleep, or asking others whether one bad night is dangerous can make sleep more cognitively loaded. For someone with OCD, these behaviors may also function as compulsions.
What the evidence does not yet establish
Current evidence does not show that all people with OCD have abnormal sleep architecture, that everyone with OCD has a delayed circadian phase, or that poor sleep is the cause of OCD.
It does not show that one particular number of hours is required to control obsessions. It does not establish melatonin as an OCD treatment. It does not prove that correcting sleep timing will by itself produce OCD remission. It does not justify diagnosing delayed sleep-wake phase disorder from late bedtimes alone.
The literature is stronger than it was a decade ago, especially because newer studies combine questionnaires with actigraphy, sleep diaries, longitudinal designs, and physiological circadian measures. Yet many studies remain small, observational, or concentrated in specialty settings. The 2026 systematic review describes sleep and circadian disturbances as clinically important and potentially relevant to OCD severity and course, while the field still needs stronger mechanistic and intervention trials (Grenno et al., 2026).
That evidence status should shape treatment expectations. Sleep is a meaningful part of OCD care, not a proven master switch for the disorder.
Frequently asked questions about OCD and sleep
Can OCD cause insomnia?
OCD can contribute to insomnia symptoms when obsessions increase pre-sleep arousal or compulsions delay bedtime, interrupt sleep, or continue mentally in bed. Research consistently finds an association between OCD and insomnia symptoms, but not every case of insomnia in someone with OCD is caused by OCD. A separate insomnia disorder, depression, anxiety, medication effects, circadian problems, or medical sleep disorders may also be involved.
Does insomnia make OCD worse?
Insomnia symptoms are associated with greater obsessive-compulsive symptom severity, and some prospective studies suggest that later sleep timing can predict subsequent increases in symptoms in people with OCD. The relationship is not deterministic, and total sleep duration has not shown consistent associations across studies. One poor night is not evidence that OCD must worsen.
Why do intrusive thoughts get worse when I try to sleep?
Quiet conditions can make internally generated thoughts more noticeable, and fatigue may reduce the ability to disengage from threat monitoring or uncertainty. Trying to suppress or solve intrusive thoughts can also increase attention to them. If the response becomes repetitive reviewing, neutralizing, checking, or reassurance seeking, the process may be part of the OCD cycle.
Can compulsions delay sleep?
Yes. Checking, washing, arranging, repeating, reassurance seeking, mental reviewing, counting, praying, or restarting routines can consume the time that would otherwise be available for sleep. When this pattern is present, reducing the compulsion is a direct OCD treatment target.
Is staying up late a symptom of OCD?
Not by itself. Late bedtime can reflect preference, work or school schedules, circadian delay, insomnia, avoidance, compulsions, mood disorders, substance use, or other factors. In OCD research, delayed timing is more common than in some comparison groups, but a late schedule needs clinical context before it can be interpreted.
Is delayed sleep-wake phase disorder common in OCD?
Studies have reported elevated rates of delayed circadian indicators and delayed sleep-wake phase disorder in some OCD samples. Systematic reviews identify circadian delay as a recurring finding, but estimates vary by sample and method. A diagnosis requires a persistent circadian pattern and associated impairment, not merely being a “night owl.”
Does sleeping more cure OCD?
No. Adequate sleep supports health and can make treatment easier to engage with, but OCD is not treated simply by adding hours of sleep. Evidence-based OCD care centers on CBT with ERP and, when appropriate, medication. A co-occurring sleep disorder may need its own treatment.
Can CBT-I and ERP be used together?
They can be coordinated when a person has both OCD and chronic insomnia. ERP targets obsessions and compulsions; CBT-I targets the behavioral and cognitive processes that maintain chronic insomnia. The exact sequencing and integration depend on the person’s symptoms, safety, schedule, and treatment capacity.
Should I stop bedtime rituals all at once?
Not necessarily. In ERP, response prevention is usually planned rather than improvised. Abruptly removing every ritual without considering severity, sleep loss, family accommodation, or the person’s ability to tolerate distress can be counterproductive. A structured hierarchy or treatment plan is often more sustainable.
Is melatonin a treatment for OCD-related sleep problems?
Melatonin is not an established treatment for OCD. It may be used in some circadian rhythm and sleep conditions, where timing is important, but evidence that melatonin directly reduces core OCD symptoms is insufficient. Circadian treatment should be based on the actual sleep-wake pattern and clinical context.
Can OCD medications make sleep worse?
They can affect sleep in some people. SSRIs may cause activation or insomnia in one person and fatigue or sleepiness in another. Medication-related sleep changes should be discussed with the prescriber rather than managed by abruptly changing the dose or stopping treatment.
Should every person with OCD be asked about sleep?
There is a strong clinical argument for routinely asking. Recent systematic reviews conclude that sleep problems are common enough in OCD to justify systematic assessment, particularly when symptoms are severe, treatment response is limited, or daytime functioning is impaired (Grenno et al., 2026; Santiago et al., 2025).
Related Articles
References
Alfano, C. A., & Kim, K. L. (2011). Objective sleep patterns and severity of symptoms in pediatric obsessive compulsive disorder: A pilot investigation. Journal of Anxiety Disorders, 25(6), 835–839. PubMed | DOI
Arumugham, S. S., Narayanaswamy, J. C., Balachander, S., et al. (2026). Clinical practice guidelines for obsessive-compulsive disorder: 2025 update. Indian Journal of Psychiatry, 68(1), 44–67. PubMed | DOI
Auger, R. R., Burgess, H. J., Emens, J. S., Deriy, L. V., Thomas, S. M., & Sharkey, K. M. (2015). Clinical practice guideline for the treatment of intrinsic circadian rhythm sleep-wake disorders: An update for 2015. Journal of Clinical Sleep Medicine, 11(10), 1199–1236. PubMed | DOI
Cox, R. C., & Olatunji, B. O. (2016). Sleep disturbance and obsessive-compulsive symptoms: Results from the National Comorbidity Survey Replication. Journal of Psychiatric Research, 75, 41–45. PubMed | DOI
Cox, R. C., & Olatunji, B. O. (2022). Delayed circadian rhythms and insomnia symptoms in obsessive-compulsive disorder. Journal of Affective Disorders, 318, 94–102. PubMed | DOI
Díaz-Román, A., Perestelo-Pérez, L., & Buela-Casal, G. (2015). Sleep in obsessive-compulsive disorder: A systematic review and meta-analysis. Sleep Medicine, 16(9), 1049–1055. PubMed | DOI
Edinger, J. D., Arnedt, J. T., Bertisch, S. M., et al. (2021). Behavioral and psychological treatments for chronic insomnia disorder in adults: An American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 17(2), 255–262. PubMed | DOI
Grenno, G., Alfì, G., Miniati, M., et al. (2026). A systematic review on insomnia and circadian rhythms desynchronization in obsessive-compulsive disorder: From childhood to adulthood. Journal of Sleep Research, 35(4), e70322. PubMed | DOI
National Institute for Health and Care Excellence. (2005, updated). Obsessive-compulsive disorder and body dysmorphic disorder: Treatment (CG31). NICE
Nota, J. A., Potluri, S., Kelley, K. N., Elias, J. A., & Krompinger, J. W. (2020). Delayed bedtimes are associated with more severe obsessive-compulsive symptoms in intensive residential treatment. Behavior Therapy, 51(4), 559–571. PubMed | DOI
Nota, J. A., Taylor, I. H., Sharkey, K., & Coles, M. E. (2025). Phase angle between dim light melatonin onset and sleep timing during residential treatment prospectively predicts obsessive-compulsive symptoms. Sleep Medicine, 127, 73–80. PubMed | DOI
Paterson, J. L., Reynolds, A. C., Ferguson, S. A., & Dawson, D. (2013). Sleep and obsessive-compulsive disorder (OCD). Sleep Medicine Reviews, 17(6), 465–474. PubMed | DOI
Qaseem, A., Kansagara, D., Forciea, M. A., Cooke, M., & Denberg, T. D. (2016). Management of chronic insomnia disorder in adults: A clinical practice guideline from the American College of Physicians. Annals of Internal Medicine, 165(2), 125–133. PubMed | DOI
Santiago, T., Simbre, I., & DelRosso, L. M. (2025). Sleep disorders in patients with obsessive-compulsive disorder: A systematic review of the literature. Journal of Sleep Research, 34(4), e14446. PubMed | DOI
Schubert, J. R., Stewart, E., & Coles, M. E. (2020). Later bedtimes predict prospective increases in symptom severity in individuals with obsessive compulsive disorder (OCD): An initial study. Behavioral Sleep Medicine, 18(4), 500–512. PubMed | DOI
Segal, S. C., & Carmona, N. E. (2022). A systematic review of sleep problems in children and adolescents with obsessive compulsive disorder. Journal of Anxiety Disorders, 90, 102591. PubMed | DOI
Sevilla-Cermeño, L., Andrén, P., Hillborg, M., Silverberg-Morse, M., Mataix-Cols, D., & Fernández de la Cruz, L. (2019). Insomnia in pediatric obsessive-compulsive disorder: Prevalence and association with multimodal treatment outcomes in a naturalistic clinical setting. Sleep Medicine, 56, 104–110. PubMed | DOI