Why Writing Before Bed Helps You Sleep Better
Racing thoughts at night are among the most common complaints of people with sleep difficulties. The mind runs over unfinished tasks, tomorrow's concerns, half formed plans, and problems without clear solutions. Journaling before bed is one of the most thoroughly research supported interventions for this specific problem. The mechanism is more specific than simply venting or relaxing.
The Cognitive Science Behind It
The brain maintains an active buffer of open items, tasks not yet completed, intentions not yet acted on, and concerns not yet resolved. This open loop processing is a feature, not a bug: the brain keeps important unfinished business in working memory so it does not get lost.
The problem is that this active buffer does not close down at bedtime. The brain continues monitoring these open items during the period when it should be transitioning to sleep. The intrusive thoughts that characterise difficulty falling asleep are partly this cognitive monitoring system running in the wrong context.
Writing these items down serves as a cognitive offloading mechanism. When something is recorded in a reliable external system, the brain can release it from active monitoring. The act of writing constitutes a completed action on each open item, even if the item itself is not resolved. The monitoring system can treat it as handled.
The Task List Study
A 2018 study by Michael Scullin and colleagues at Baylor University tested this mechanism directly. Participants either wrote a task list for the next few days before bed or wrote about recently completed activities. Those who wrote a task list fell asleep significantly faster. The more detailed and specific the task list, the faster they fell asleep.
This is the opposite of what most people assume about journaling before bed. Common advice favours gratitude journaling or reflection on the day. The Scullin research suggests that writing about future tasks and plans is more effective than writing about the past for the specific problem of sleep onset difficulty.
The mechanism is prospective memory offloading. The brain is satisfied that tomorrow's demands have been captured and can reduce its active monitoring of them.
Worry Journaling
For people whose thoughts before sleep are anxious rather than focused on tasks, worry journaling follows a different approach. Writing down the specific worries and then writing what action, if any, is possible and when the individual will take that action creates a similar offloading effect for thoughts driven by anxiety.
The research on worry journaling for anxiety and sleep is consistent in showing that externalising worry in written form reduces its intrusive quality during the sleep onset period. The act of writing transforms a diffuse, circulating concern into a specific, contained statement that has been acknowledged and addressed.
For more on the broader problem of racing thoughts at night and the techniques that address it, see our article on racing thoughts at night.
Gratitude Journaling
Gratitude journaling has a different mechanism. Rather than offloading open cognitive loops, it shifts the emotional valence of the mental content before sleep. Thoughts in the period before sleep influence the content of early sleep stages. Going to sleep with a mental state oriented toward positive content rather than problems and concerns is associated with faster sleep onset and less anxious sleep.
The evidence for gratitude journaling specifically on sleep is more mixed than the evidence for task list writing. It appears to be more effective for people whose primary difficulty is emotional or related to mood rather than cognitive.
How to Do It
A journaling practice for sleep does not need to be elaborate. Five to ten minutes is sufficient. Using paper rather than a screen is preferable because it avoids the blue light problem and keeps the activity in the same calm, low stimulation category as other effective activities before sleep.
The content should reflect the specific problem. For intrusive thoughts about tasks, write a specific, detailed task list for tomorrow and the next few days. For worry, write down the concern and what you will do about it. For a general winding down practice, write briefly about what happened today and what you are looking forward to.
The practice is most effective as part of a consistent evening routine. Its value compounds as the brain learns that writing at this time precedes sleep, adding conditioned relaxation to the cognitive offloading effect. For more on building an effective routine around journaling and other pre sleep activities, see our article on bedtime routine for adults.
What This Means for Your Sleep
If racing thoughts or task related intrusion keep you awake, journaling before bed addresses the specific cognitive mechanism responsible. A five minute task list has the strongest direct research support for sleep onset difficulty specifically. It is free, requires minimal effort, and the research shows an effect size comparable to many pharmaceutical interventions for sleep onset, without side effects.
Sources
- Scullin MK, et al. (2018). The effects of bedtime writing on difficulty falling asleep. https://pubmed.ncbi.nlm.nih.gov/29058942/
- Borkovec TD, et al. (1983). Preliminary exploration of worry: some characteristics and processes. https://pubmed.ncbi.nlm.nih.gov/6830571/
- Wood AM, et al. (2010). Gratitude and well-being: a review. https://pubmed.ncbi.nlm.nih.gov/20451092/
Related reading: Why You Lie Awake with Racing Thoughts (and How to Stop) | How to Build a Bedtime Routine That Actually Works
About the Author

Nima Koucheki
Founder, Sleep Improvers
Nima Koucheki is the founder of Sleep Improvers. He hosts a podcast and YouTube channel dedicated to sleep science, translating peer-reviewed research into protocols anyone can apply tonight.