Wide Awake at 3 AM? How to Fall Back Asleep When Overthinking
Woke at 3 a.m. and your brain won't stop? A step-by-step plan to settle your body, quiet the spiral and get back to sleep, plus what makes it worse.
Medical Disclaimer
This article is for educational purposes only and does not constitute medical advice. If you are experiencing mental health issues, please consult a qualified healthcare professional.
You turn off the light, settle into the pillow, and your brain chooses this exact moment to replay an awkward email, draft tomorrow's to-do list and wonder whether that mole has changed. The harder you try to switch it off, the louder it gets.
Cognitive shuffling for racing thoughts is a bedtime technique that works by giving your mind a job that is too busy for worry but too boring to keep you awake. You pick a random word, then slowly picture a series of unrelated objects that start with each of its letters. Early research is small but encouraging, it costs nothing, and most people can learn it in one night.
Below you will find where the technique comes from, why it seems to work, a step-by-step walkthrough, variations for people who do not think in pictures, and what to do when it does not help.
Cognitive shuffling (sometimes called the cognitive shuffle) is a structured way of thinking about neutral, unconnected things one after another, spending a few seconds on each. A cat. A bicycle. A bowl of rice. A lighthouse. Nothing links them, and that is the point.
The idea was developed by cognitive scientist Luc Beaudoin, whose research is linked to Simon Fraser University in Canada. He called his research version the serial diverse imagining task. "Serial" because the images come one at a time, "diverse" because they are unrelated, and "imagining" because you picture them rather than just list them.
Beaudoin's theory is that the mind naturally drifts into disjointed, dreamlike imagery as we fall asleep. When your thoughts are logical and connected ("If I miss that deadline, then my manager will..."), your brain reads the situation as one that needs attention and stays alert. Shuffling random, harmless images imitates the scrambled thinking of the sleep-onset period, which may nudge the brain toward treating it as safe to let go. That explanation is a theory rather than something that has been proven, but it fits with what we know about why worry keeps people awake.
Racing thoughts at night usually have a particular shape. They are sticky (the same worry loops back), sequential (one thought leads logically to the next) and emotionally charged. Cognitive shuffling for racing thoughts targets all three at once.
Your working memory, the mental notepad that holds what you are thinking about right now, has limited room. A task that asks you to generate a word and then build a picture of it takes up much of that room. In a 2002 study by Harvey and Payne, 41 people with insomnia were given different instructions for one night. Those told to distract themselves with an engaging but pleasant imagery task reported falling asleep faster and less distress about unwanted thoughts than people given no instructions. The researchers suggested the imagery occupied enough "cognitive space" to stop people re-engaging with their worries.
Worry is a problem-solving process that has lost its off switch. Each thought hands the baton to the next. A random word list gives your mind nothing to solve and no thread to follow, so the chain keeps getting cut.
Counting sheep is repetitive enough to let worries slip back in, while planning your dream holiday can be exciting enough to wake you up. Cognitive shuffling aims for the middle: mildly engaging, emotionally neutral, and never finished.
A note of honesty here, because this technique went viral and the online claims got bigger than the science. The main direct evidence is a 2016 study presented at the SLEEP conference. It randomly assigned 154 university students who complained of a busy mind at bedtime to the serial diverse imagining task, to a standard technique called structured problem-solving done earlier in the evening, or to both. Pre-sleep arousal, sleep effort and sleep quality improved in all groups, and shuffling did as well as the established technique. However, there was no group that received nothing, so we cannot fully separate the effect of the technique from time passing or from people expecting to sleep better. Combined with the Harvey and Payne imagery work, the evidence is promising but small. Treat it as a low-risk tool worth trying, not a proven cure for insomnia.
Here is the most common version of cognitive shuffling for racing thoughts, which you can try tonight with no equipment.
If you get through the whole word and you are still awake, pick a new seed word and begin again. In practice, most people never reach the last letter.
| Easy to picture, neutral | Better to avoid |
|---|---|
| Concrete objects: teapot, feather, ladder | Abstract ideas: freedom, trouble, future |
| Everyday animals: rabbit, pelican, snail | People you know, or their names |
| Simple foods: pear, pancake, olive | Work tasks, deadlines, bills |
| Places with no personal history: lighthouse, meadow | Places tied to strong memories, good or bad |
| Plain household items: sponge, button, lamp | Anything medical, alarming or exciting |
There is no single correct form of cognitive shuffling for racing thoughts. The ingredients that matter are that the items are random, neutral and briefly held in mind. Beyond that, adapt it.
Instead of letters, move through categories: one animal, one kitchen object, one tree, one vehicle, one piece of clothing, then back to a different animal. This suits people who find the letter version feels too much like a spelling test.
Picture a single empty room, then add one unrelated object at a time: a blue umbrella, a pineapple, a rocking chair, a snow globe. Keep it absurd rather than meaningful. Some people find it calming to "place" each object somewhere in the room.
Not everyone can picture things. Some people have aphantasia, meaning little or no mental imagery. If that is you, you can still shuffle. Say each word silently and focus on another quality instead: how it would sound (a kettle whistling), how it would feel in your hand (a smooth pebble), or simply the shape of the word itself. The randomness and the gentle mental effort seem to matter more than a vivid picture.
In Beaudoin's research, an app read out random words at roughly eight-second intervals, and participants pictured each until the next one arrived. You can recreate this with any recording of random, neutral words, or ask someone to record a list for you. This is helpful if generating words yourself feels effortful or starts to wake you up.
Expect this, especially in your first week. Each time you notice and return, you are practicing the exact skill that helps: redirecting attention without fighting the thought. If the same worry keeps coming back, it may need a few minutes of daytime attention, or a note on a pad by the bed that says "deal with this tomorrow". If your racing thoughts tend to be replays of social situations, our guide on how to stop overthinking after a conversation tackles that pattern directly.
You may be working too hard. Choose an easier letter, slow down, accept fuzzy or incomplete images, and stop aiming for clever words. If the letter version feels like a puzzle, switch to the category or listening version.
Techniques often feel powerful at first partly because they are new. If shuffling stops working, the underlying sleep problem may need more than a mental trick: a regular wake time, less time lying awake in bed, and a look at caffeine, alcohol and evening screen use. Late nights spent scrolling to get "me time" are a common culprit, which we cover in our article on revenge bedtime procrastination and ADHD.
If you have been awake for what feels like 20 minutes or more and are getting frustrated, get up, go somewhere dim and do something quiet until you feel sleepy, then return to bed and shuffle again. Lying in bed battling your brain teaches your body that bed is a place for wakefulness. Our broader guide on how to fall back asleep when overthinking walks through this and other middle-of-the-night steps.
Cognitive shuffling for racing thoughts is a self-help tool for ordinary bedtime busyness. It is not a treatment for a sleep disorder or an anxiety condition. Consider speaking to a doctor if:
If your night-time thoughts turn toward harming yourself, please do not wait until morning. In the US or Canada, call or text 988. In the UK and Ireland, Samaritans are available on 116 123. In Australia, Lifeline is on 13 11 14.
There is no fixed time, and checking the clock tends to backfire. Many people report drifting off within one or two seed words, while others need several nights of practice before it feels natural. If you are still wide awake and frustrated after roughly 20 minutes, get up briefly rather than forcing it.
Not fully. The direct research is limited to a small number of studies, mainly in university students, with encouraging but not conclusive results. Related research on imagery distraction supports the general idea. It is best described as a low-risk technique with early evidence, rather than an established treatment like CBT for insomnia.
The key difference is attention. Counting is monotonous but leaves plenty of spare mental space, so worries can run alongside it. Cognitive shuffling asks you to generate and picture varied items, which occupies more attention. There are no head-to-head trials comparing the two, but the imagery research suggests engaging, neutral imagery is more effective than no strategy at all.
Yes. Shuffling works the same way at 3 a.m. as at bedtime. Keep your eyes closed, avoid checking your phone, and begin with a fresh seed word. If you tend to wake with a jolt of anxiety, a few slow breaths first can make it easier to settle into the exercise.
You can still use the technique. Think of the word and focus on its sound, its texture or simply the word itself, and move on after a few seconds. The key ingredients are randomness, neutrality and gentle effort, not vivid pictures.
Many older children can manage the category version, such as naming and picturing animals or foods, and it can be a calm bedtime game. The research has been done in adults, so treat it as a gentle experiment, and speak to your child's doctor if sleep problems are persistent.
Racing thoughts feel urgent at night because a tired brain is poor at telling real problems from imagined ones. Cognitive shuffling for racing thoughts does not argue with those thoughts. It simply gives your attention somewhere else to go, one harmless picture at a time, until sleep takes over.
It will not fix every sleep problem, and the science is still young. But it is free, gentle and easy to try. Tonight, before you turn off the light, choose your seed word so you do not have to think of one in the dark. When the thoughts start, begin with its first letter and give the first image a full five seconds.
MSc Psychology
Amarha Fatimah holds an MSc in Psychology and has three years of experience in the field. At RegulatedSelf, Amarha writes about anxiety, stress and emotional regulation, turning psychological research into clear, practical guidance readers can use in everyday life.
Comments are reviewed before publication. See our privacy policy.
Previous
Why You Apologize for Everything (and How to Stop)
Next
Why Do I Feel Numb Instead of Angry? What It Means
Subscribe to get more evidence-based mental health insights weekly.
Woke at 3 a.m. and your brain won't stop? A step-by-step plan to settle your body, quiet the spiral and get back to sleep, plus what makes it worse.
Two inhales through the nose, one long exhale. How to do the physiological sigh, why it calms your body, and what the Stanford research actually found.
Hands trembling in an interview or presentation? Five discreet body-based fixes that calm anxious shaking fast, plus a playbook for common situations.