Counting sheep is the classic advice for a mind that won’t switch off at bedtime. The idea is that a dull, repetitive task will bore you to sleep. The research tells a different story. Counting is too easy to hold your attention, so your worries slip right back in between the numbers. A detailed, calming mental scene does a better job of keeping those thoughts out.
That does not mean you are doing something wrong if counting has worked for you. Any calm, steady bedtime habit can help. But if you have been lying there counting to 500 while your brain replays tomorrow’s meeting, there are better tools.
No one knows exactly where this myth came from. The most common explanation is that shepherds counted their flocks at night to make sure none were missing, and the repetitive routine became linked with drifting off. Over time it turned into folk advice, then a cartoon cliché. It has stuck around because it is simple, free, and sounds sensible.
What Did the Famous Oxford Study Actually Test?
Most articles about counting sheep point to a 2002 study from Oxford University by researchers Allison Harvey and Suzanna Payne. The researchers worked with 41 people with insomnia and split them into three groups for one night. One group was trained to use a detailed, engaging mental image, such as a relaxing scene, to distract themselves at bedtime. A second group was simply told to distract themselves however they liked. A third group got no instructions at all.
The imagery group fell asleep faster and reported fewer unwanted thoughts than the group with no instructions. The general distraction group did not do better than doing nothing. The authors explained that a rich mental image takes up enough “mental space” to keep you from slipping back into worry.
Here is the part most articles get wrong. The study did not have a group that was told to count sheep. Counting sheep came into the story through press coverage, because it is the best-known example of a simple, general distraction. The study supports imagery over vague distraction. It does not directly test counting sheep. It was also a small, one-night study, so treat it as a useful early finding, not the final word.
Why Does a Calm Mental Scene Work Better?
A calm scene holds your attention without winding you up. When you focus on the sound of waves or the feel of a forest path under your feet, there is enough detail to keep your mind busy, but nothing exciting or stressful enough to keep you alert.
The balance matters. Too boring, and your mind drifts back to worries. Too stimulating, and the scene itself keeps you awake. A good bedtime scene sits in the middle, like background music that is pleasant but not catchy.
How well this works may depend on how easily you can picture things. A 2024 study in adults over 60 with insomnia tested an eight-session relaxation and meditation program. Most people benefited, but those who could form vivid mental pictures improved faster and more than those who could not. If you are someone who doesn’t “see” images in your head, that is normal, and other tools below may suit you better.
What Else Helps a Busy Mind at Bedtime?
Try the cognitive shuffle. This technique, also called serial diverse imagining, was developed by cognitive scientist Luc Beaudoin. Pick a random word, such as “bedtime.” For each letter, think of as many unrelated words as you can and briefly picture each one. For “B,” you might picture a banana, a bicycle, a bridge. When you run out, move to “E.” The random, jumbled pictures resemble the loose thinking your brain does as it drifts toward sleep. In a study of 154 university students presented at a major sleep conference in 2016, it worked about as well as a standard problem-solving exercise for reducing bedtime mental arousal. The catch is that this work was presented as a conference abstract and has not been followed by large published trials. It is promising, low-risk, and free, but the evidence is early.
When Should You See a Sleep Doctor?
If you struggle to fall or stay asleep at least three nights a week for three months or more, a mental trick at bedtime is unlikely to fix it on its own. That pattern points to chronic insomnia. The recommended first-line treatment is cognitive behavioral therapy for insomnia, or CBT-I, a short, structured program that retrains your sleep habits and the thoughts that keep you awake. It is available in person and through digital programs. A sleep doctor can help you find the right option.
DrSnoozz Says
Counting sheep is too simple to keep worries out, so your mind tends to wander back to whatever is bothering you. The Oxford study behind this myth actually showed that a detailed, calming mental scene beat general distraction, though it never tested sheep directly. A calm scene full of sensory detail, the cognitive shuffle, mindfulness, and handling worries earlier in the evening are all better options for a busy mind. If you can’t picture images easily, try mindfulness or the shuffle instead. And if sleepless nights have become a pattern, CBT-I is the treatment with the strongest evidence. Your brain doesn’t need to be bored to sleep. It needs to be gently occupied.
Disclaimer: This article is for general education only and is not a substitute for professional medical advice, diagnosis, or treatment. Always talk to your doctor or a qualified healthcare provider about any questions you have regarding a sleep problem or a change to your sleep routine.
References
- Betz, L. T., Göder, R., Jacob, G. A., & Riemann, D. (2026). Targeting hyperarousal to improve sleep: A network intervention analysis of a digital intervention for insomnia. Behaviour Research and Therapy, 203, 105075. https://doi.org/10.1016/j.brat.2026.105075
- Furukawa, Y., Sakata, M., Yamamoto, R., Nakajima, S., Kikuchi, S., Inoue, M., Ito, M., Noma, H., Takashina, H. N., Funada, S., Ostinelli, E. G., Furukawa, T. A., Efthimiou, O., & Perlis, M. (2024). Components and delivery formats of cognitive behavioral therapy for chronic insomnia in adults: A systematic review and component network meta-analysis. JAMA Psychiatry, 81(4), 357–365. https://doi.org/10.1001/jamapsychiatry.2023.5060
- Han, F. Y., Shao, Y. J., Liang, Y., Zhang, M. Y., & Lu, N. J. (2024). Vividness of visual imagery is associated with the effect of relaxation response meditation training in elderly people with nonorganic insomnia: A randomized, double-blind, multi-center clinical trial. Experimental Gerontology, 194, 112486. https://doi.org/10.1016/j.exger.2024.112486
- Harvey, A. G., & Payne, S. (2002). The management of unwanted pre-sleep thoughts in insomnia: Distraction with imagery versus general distraction. Behaviour Research and Therapy, 40(3), 267–277. https://doi.org/10.1016/s0005-7967(01)00012-2
- Perez, C. (2016, June 10). Need better sleep? Consider the cognitive shuffle. Sleep Review. https://sleepreviewmag.com/sleep-health/parameters/quality/need-better-sleep-consider-cognitive-shuffle/
- Tong, Z., Ye, G., Fan, S., Li, Y., Zhang, J., Zhang, H., Chen, Q., Wang, H., Li, H., & Wang, J. (2026). The effectiveness of digital therapeutics in improving sleep quality: A systematic review and network meta-analysis. BMC Medicine, 24(1). https://doi.org/10.1186/s12916-026-05129-8
