The JournalMental Health

OCD at Bedtime: When Checking and Rituals Delay Sleep

Bedtime checking and mental rituals can keep OCD active after lights out. Learn how to recognise the cycle and seek sleep support without feeding compulsions.

Daniel, Somnia Editor 6 min
OCD at Bedtime: When Checking and Rituals Delay Sleep

The door is locked. You remember locking it. Yet as you turn towards bed, a doubt arrives: what if you only imagined doing it? One more check brings relief, until another question follows. By the time you finally lie down, you are exhausted but still mentally reviewing whether everything is safe.

For some people living with obsessive-compulsive disorder (OCD), bedtime becomes a demanding sequence of checks, reassurance requests or invisible mental rituals. This is different from simply preferring a tidy room or a familiar evening routine. Understanding that difference can help you seek support without making sleep another task that must be performed perfectly.

1. When a bedtime routine becomes a compulsion

OCD involves obsessions, compulsions or both. Obsessions are unwanted, intrusive thoughts, images or urges that cause distress. Compulsions are repetitive behaviours or mental acts performed in response to an obsession or according to rigid rules, often to reduce distress or prevent a feared outcome. The relief can be brief, leaving the person pulled back into repetition.

At night, this might involve checking locks, appliances or alarms repeatedly. It can also look much less visible: replaying a conversation to establish that you did nothing wrong, repeating a phrase until it feels right, or asking a partner the same question in slightly different ways.

  • The routine feels compulsory rather than comforting: you feel unable to stop despite wanting to.
  • Its endpoint keeps moving: one check becomes several, or you restart because something felt imperfect.
  • It takes time, delays bed or causes distress when interrupted.
  • You seek certainty that ordinary checking cannot realistically provide.

These signs are reasons to discuss what is happening, not a self-diagnosis. Enjoying a consistent routine, practising faith or carrying out ordinary household safety tasks does not by itself indicate OCD. What matters is the behaviour’s function, flexibility and impact on your life.

2. Why the cycle can become harder at night

Bedtime removes many daytime distractions. With fewer outside demands, intrusive thoughts may feel more noticeable. Tiredness can also make it harder to step back from distress. If you believe you must resolve every doubt before sleeping, the night offers an apparently urgent deadline: settle this now, or tomorrow will be ruined.

Research links OCD with sleep difficulties, although the relationship varies between people and does not establish a single cause. Time spent on compulsions can directly shorten the opportunity for sleep. Anxiety, low mood, medication effects and a separate sleep disorder may also contribute.

The key learning loop is straightforward: doubt brings discomfort; a ritual reduces it temporarily; the brain learns to reach for the ritual again. Repeated reassurance can serve the same function. Even a relaxation exercise may become part of the loop if it must be repeated until all uncertainty disappears.

"A helpful bedtime routine supports rest. A compulsion makes rest conditional on feeling completely certain."
— Daniel, Somnia Editor

That distinction matters because the goal is not to construct an even more elaborate routine. It is to loosen the rule that you must feel perfectly safe, settled or certain before you are allowed to stop.

3. Treating OCD and treating insomnia are related, but different

A recommended psychological treatment for OCD is cognitive behavioural therapy that includes exposure and response prevention, usually called ERP. NICE guidance includes this approach among recommended treatments, with treatment intensity and medication options considered according to need. ERP involves gradually approaching triggers while learning not to perform the compulsions that usually follow.

For bedtime difficulties, a therapist might help someone work with the uncertainty that remains after an ordinary safety check, rather than returning repeatedly. This is not about neglecting real hazards or proving that nothing bad could ever happen. It is planned, collaborative work on the demand for excessive certainty.

Cognitive behavioural therapy for insomnia (CBT-I) addresses persistent sleep difficulties through changes in sleep scheduling, habits and beliefs. It does not replace OCD treatment. When both conditions are present, coordinated care can help prevent a sleep strategy from becoming another rigid rule or reassurance ritual.

Tell your clinician exactly what happens between deciding to go to bed and falling asleep. Include mental reviewing and reassurance seeking, not just visible checking. Ask whether they have experience treating OCD and whether insomnia needs its own assessment.

4. Support sleep without creating new rules

You do not need a flawless evening to support sleep. Aim for a flexible transition out of the day: lower the lighting, finish ordinary tasks and choose something undemanding. Reading, gentle stretching or listening to quiet audio can be options, rather than requirements that must happen in an exact order.

If you already have an ERP plan, follow the response your therapist has agreed with you when bedtime doubt appears. Avoid adding a new technique whose purpose is to make the thought disappear. A grounding exercise can help you remain present, but it need not deliver calm before you move on.

Keep sleep observations simple. A brief daytime note about approximate sleep timing and how rituals affected bedtime may help a clinician. Stop expanding the record if documenting every detail becomes another checking task. Sleep data should inform care, not become evidence you must gather to prove that the night went correctly.

Partners can offer warmth without repeatedly answering the same certainty-seeking question. Agree on an approach during the day, ideally with the treating clinician. Abruptly withholding reassurance without discussion can feel punitive; the aim is compassionate support for treatment, not a nightly confrontation.

5. When to get help, and where to start

Seek professional support if rituals regularly delay sleep, cause significant distress, disrupt relationships or affect daytime functioning. You do not need to wait until the pattern becomes severe. A GP, psychiatrist or appropriately qualified psychologist can assess OCD symptoms alongside other possible contributors to poor sleep.

Medical-safety note: this article is educational, not a diagnosis or an individual treatment plan. Do not change prescribed medication without your prescriber. Discuss intensive sleep-scheduling changes and exposure exercises with a clinician, particularly if you have other mental or physical health conditions.

  1. Name the pattern briefly: identify one bedtime behaviour that feels driven by doubt rather than practical need.
  2. Arrange an assessment and ask specifically about CBT with ERP; mention ongoing insomnia as a separate concern.
  3. If you are already in treatment, bring one concrete bedtime example to your next appointment and agree on a manageable response.
  4. Tonight, keep your wind-down flexible. Choose a restful activity without requiring it to remove every uncomfortable feeling or guarantee sleep.
The Somnia Letter

One quiet email. Better nights, delivered.

New essays on sleep science, evening ritual and calmer nights — sent occasionally, never noisily.

No spam. Unsubscribe any time.