Obsessive-compulsive disorder (OCD) is a mental health condition that involves intrusive thoughts and repetitive behaviors. While OCD primarily affects daily functioning, it can often extend to sleep quality and duration.

OCD symptoms can affect individuals differently but generally include obsessions and compulsions. These symptoms can significantly affect all aspects of a person’s quality of life and well-being, including sleep, work, education, and relationships.

Understanding how OCD can affect sleep patterns is crucial for effective management and improvement of overall well-being.

In this article, we explore how OCD affects sleep, symptoms of reduced sleep due to OCD, overcoming sleep issues, treatment for OCD, outlook, and support.

person sleepingShare on Pinterest
Maskot/Getty Images

Sleep plays a crucial role in brain function and is important for maintaining cognitive and emotional processes as well as physical and mental health. Cognitive processes refer to a person’s thinking ability.

OCD can significantly disrupt sleep, leading to various sleep-related issues such as insomnia, fragmented sleep, and poor sleep quality. Individuals with OCD often experience an increase in anxiety and distress, particularly during nighttime hours, which can interfere with the ability to fall asleep and stay asleep.

A 2021 study suggests that there is an association between specific sleep behaviors, the severity of obsessive-compulsive symptoms, and treatment resistance. The study also concludes that sleep disturbances may not only relate to OCD but are instead due to co-existing conditions such as depression and anxiety.

Learn more about OCD.

The effects of OCD on sleep can present through several symptoms, including:

  1. Difficulty falling asleep: Persistent worries and intrusive thoughts may make relaxing and initiating sleep challenging.
  2. Frequent awakenings: Individuals with OCD may experience frequent awakenings throughout the night, disrupting the natural sleep cycle.
  3. Daytime fatigue: Sleep disturbances can result in daytime fatigue, impairing cognitive function and productivity.
  4. Increase in anxiety: Sleep quality issues can worsen anxiety symptoms, creating a vicious cycle of higher levels of stress and sleep disturbances.

Intrusive thoughts and sleep

Intrusive thoughts are a common feature of OCD and can often feel scary, shameful, or offensive. These distressing thoughts often intensify during quiet moments, such as when trying to fall asleep, which can significantly affect sleep patterns. This can lead to heightened anxiety and difficulty in achieving restful sleep.

The inability to quiet the mind can prolong the time it takes to fall asleep and contribute to nighttime awakenings.

Compulsions and sleep

Compulsions are repetitive behaviors or mental actions that an individual may feel they have to do to reduce the distress or uncertainty due to obsessions. These compulsive behaviors can also interfere with sleep.

Certain rituals, such as checking, counting, or repeating actions, may increase before bedtime, often prolonging a bedtime routine and delaying sleep. Additionally, the urge to perform compulsions throughout the night can disrupt sleep continuity, resulting in fragmented and non-restorative sleep.

Managing sleep disturbances due to OCD requires a multifaceted approach that addresses both the underlying OCD symptoms and sleep hygiene practices. Some strategies to consider include:

  1. Relaxation techniques: Incorporating relaxation techniques, such as deep breathing exercises, progressive muscle relaxation, or mindfulness meditation, can promote relaxation and improve sleep quality.
  2. Establishing a bedtime routine: Creating a consistent bedtime routine can signal to the body that it is time to wind down and prepare for sleep. Activities such as reading, warm baths, or calming music can help promote relaxation before bedtime.
  3. Limiting stimulants: Avoiding stimulants such as caffeine and nicotine close to bedtime can help mitigate sleep disturbances and promote better sleep quality.

There are a variety of treatment options available for individuals with OCD, depending on their symptoms and the extent they affect the person’s life. Seeking help from a mental health specialist is essential for effectively managing OCD symptoms and improving sleep quality.

Treatment options for OCD may include:


Many medications can help treat OCD, including selective serotonin reuptake inhibitors (SSRIs). These are a type of antidepressant that can help ease symptoms of OCD, including intrusive thoughts and compulsive behaviors.


Cognitive behavioral therapy (CBT) is a type of psychotherapy that can help individuals with OCD manage intrusive thoughts and reduce compulsive behaviors that interfere with sleep through coping strategies for managing symptoms.

There are different types of CBT treatment: exposure and response prevention and cognitive therapy.

Maintaining good sleep hygiene practices is vital for individuals with OCD to optimize sleep quality. The Centers for Disease Control and Prevention recommends:

  1. Maintaining a consistent sleep schedule: Going to bed and waking up at the same time every day, even on weekends, can help regulate the body’s internal clock and improve sleep quality.
  2. Creating a relaxing sleep environment: Ensure the bedroom is conducive to sleep by keeping it dark, quiet, and cool. Investing in a comfortable mattress and pillows can also enhance sleep comfort.
  3. Limiting screen time before bed: Exposure to screens, such as smartphones, tablets, and computers, before bedtime can disrupt melatonin production, a hormone that regulates sleep-wake cycles. Limit screen time before bed.
  4. Avoiding food: Refrain from consuming large meals, caffeine, and alcohol before bedtime.
  5. Getting exercise: Being physically active during the day can help with falling asleep more easily at night.

While OCD can significantly affect sleep quality and duration, effective treatment strategies and proper sleep hygiene practices can help individuals manage symptoms and improve overall well-being.

Treatment is an ongoing process, but by addressing both the underlying OCD symptoms and sleep disturbances, individuals can experience better sleep quality and enhanced quality of life.

Anyone having issues with OCD and sleep disturbances needs to seek support from mental health professionals, such as therapists or psychiatrists. They can provide valuable guidance and resources for managing symptoms and improving sleep quality. Some individuals may also find support groups beneficial, as they can help with:

  • providing reassurance and coping advice
  • reducing feelings of isolation
  • offering a chance to socialize with others
  • providing information and advice for family members and friends

Obsessive-compulsive disorder (OCD) can have profound effects on sleep quality and duration, leading to various sleep disturbances such as insomnia, fragmented sleep, and sleep quality issues. The intrusive thoughts and compulsive behaviors characteristic of OCD can heighten anxiety and disrupt the natural sleep cycle.

Individuals can effectively manage symptoms and improve sleep quality with proper treatment strategies, including cognitive behavioral therapy, medication, and healthy sleep hygiene practices. Seeking support from mental health professionals is essential for developing personalized treatment plans and enhancing overall well-being.