You lie down tired and within minutes your brain is replaying the day and rehearsing tomorrow. Cognitive behavioral therapy for insomnia (CBT-I) treats this directly: it reshapes the thoughts and habits around sleep so the bedroom becomes a cue for rest, not for problem-solving.

Offload the day before bed

Based on cognitive behavioral therapy frameworks, a brief evening journal externalizes the looping thoughts. Once they're on the page, the bedroom can return to being a place to sleep. According to 2026 psychological research, CBT-I is as effective as medication for chronic insomnia and lasts longer after treatment ends.

  • Set the same wind-down time and close screens.
  • Write the single thought looping in your head.
  • Note one thing that went okay today.
  • State tomorrow's first small step so the brain can stop planning.

Two minutes is enough. The point is the association, not the length — bed starts to mean sleep again because the mental offloading already happened on the page. How to keep a sleep diary for insomnia

This piece covers sleep hygiene broadly — the wind-down routine, the bedroom-as-cue association, the habits that support rest in general. If the specific problem you're facing is lying awake with your mind actively looping on the same few thoughts, our guide on how to stop overthinking at night goes deeper on that exact mechanism and what to do in the moment it's happening. How to stop overthinking at night

If what you're dealing with is a diagnosable pattern of chronic insomnia rather than occasional bad nights, it's worth seeing how a few dedicated CBT-I apps implement this same wind-down technique as a structured, guided program. CBT-I apps for insomnia, compared