Quick Answer: Counting sheep doesn't reliably work for most people. A study from Oxford University found it was no better than doing nothing at all. Mental imagery, picturing a calming scene in vivid detail, worked significantly faster. The problem with counting is it's too monotonous to hold attention, so anxious thoughts return. Better alternatives include guided imagery, the cognitive shuffle, and body scans.
In This Guide
Reading Time: 10 minutes
Of all the sleep advice that has survived through generations of parents putting children to bed, counting sheep is probably the most enduring. And also, according to the research, one of the least effective.
There's an appealing logic to it: keep the mind busy with something dull, and sleep will arrive. The problem is that sheep counting is so dull that it doesn't actually hold your attention. The sheep blur by, the mind wanders back to the thing you were worried about, and you're right back where you started, except now you're also faintly aware that your sleep solution isn't working.
Here's where counting sheep came from, why it fails, and what sleep research suggests actually works better.
Where Counting Sheep Came From
The origin of counting sheep isn't precisely documented, which is appropriate for a bedtime tradition. The general theory is that it emerged in medieval Britain among shepherds, who would count their flocks at nightfall to ensure none had strayed. The act of counting, repetitive, low-stakes, requiring just enough attention to continue, translated naturally into a pre-sleep ritual.
The first documented literary reference appears to be from Miguel de Cervantes' Don Quixote, published in 1605, in which a character is instructed to count goats jumping across a river as a sleep aid. The specific choice of sheep came later, likely reflecting the pastoral context of British and Irish folk culture.
By the nineteenth century, the advice was widespread enough to be unremarkable. By the twentieth, it was simply assumed to be true. It wasn't until researchers actually tested it that the evidence began to fall apart.
Why Counting Sheep Doesn't Work
The Oxford University Finding
A 2002 study by researchers Allison Harvey and Suzanna Payne at Oxford University recruited adults with insomnia and instructed them to use different mental strategies while trying to fall asleep. One group was told to picture a calming, engaging scene, a beach, a peaceful walk through the countryside, a canoe on a still lake. Another group was given no instruction but could think about whatever they wanted. A third group was instructed to use a distraction technique, which effectively amounted to counting. The imagery group fell asleep an average of 20 minutes faster than on baseline nights. The counting group showed no significant improvement over the control condition, no better than doing nothing. The conclusion: cognitive distraction needs to be engaging enough to hold attention, or the brain defaults back to anxious pre-sleep thoughts.
The failure mechanism makes psychological sense. Sleep onset is disrupted most reliably by what cognitive sleep researchers call hyperarousal, an elevated state of mental activation characterised by intrusive thoughts, worry, and a heightened awareness of the fact that you're not sleeping. To interrupt hyperarousal, you need a mental task that genuinely occupies the mind.
Counting is too simple. The number 87 generates no imagery, no emotional engagement, no sensory detail. The brain processes it in a fraction of a second and has enormous spare capacity to run the worry thread simultaneously. You can count and catastrophise at the same time. Counting sheep doesn't solve the problem, it just gives you something to do while the problem continues.
Imagining a specific, detailed, emotionally neutral scene is different. Building that scene requires sustained creative engagement. What's the texture of the sand? Is the light afternoon or evening? Can you hear the water? That kind of active construction genuinely competes with intrusive thought and creates the perceptual narrowing that precedes sleep onset.
What the Research Says Actually Works
Guided Mental Imagery
The Harvey and Payne finding pointed toward imagery as the more effective technique. The mechanism is understood through what sleep researchers call "cognitive decoupling", reducing the brain's tendency to self-reference and monitor its own wakefulness. Building a rich imagined environment shifts the brain into a more passive, associative mode that is closer to the drowsy, hypnagogic state that precedes sleep.
Effective imagery for sleep is:
- Calm and familiar without being boring (a favourite place rather than a blank field)
- Rich in sensory detail, sound, texture, temperature, light
- Free of narrative tension (a peaceful walk, not a story with a problem to solve)
- Emotionally neutral to mildly positive
The scene doesn't need to be elaborate. Many people use a specific memory of a peaceful place, a childhood bedroom, a favourite lake, a particular view from a holiday. Others construct an imaginary environment that they return to repeatedly. The consistency of returning to the same place can itself become a sleep cue.
A Simple Imagery Exercise
Choose a calm, familiar place. Close your eyes and stand (or sit) at the entrance to it in your mind. Look around slowly: what can you see closest to you? What's in the distance? Identify three things you can "hear" in this place. Then notice the temperature on your skin. Stay with each detail for a moment before moving. There's no destination, just the environment. Let the mind wander through it without direction.
8 min read
The Cognitive Shuffle
Canadian cognitive scientist Luc Beaudoin developed a technique called cognitive shuffling, based on the observation that the brain's transition into sleep is associated with disconnected, random mental images, what researchers call "sleep-onset mentation" or hypnagogia. The idea is to intentionally simulate that randomness, signalling to the brain that it's safe to let coherent thought go.
The basic technique: think of a random, emotionally neutral word. Then visualise a series of unconnected images that begin with each letter of that word. The images should be simple and vivid but completely unrelated to each other, a horse, a trumpet, a cloud, a fishing rod. No narrative, no connections, no logical sequence. Just images floating past.
The disconnectedness is the point. Unlike counting, which generates no imagery, and unlike imagining a scene, which requires sustained construction, cognitive shuffling mimics the pre-sleep mental state rather than competing with it. Some users find it works within minutes.
Progressive Muscle Relaxation
Progressive muscle relaxation (PMR) takes a body-centred rather than mind-centred approach. The technique involves systematically tensing and releasing muscle groups from the feet upward, drawing attention through the body and releasing held physical tension alongside the mental focus it requires.
PMR was developed by Edmund Jacobson in the 1930s and has accumulated substantial research support for insomnia. A meta-analysis of relaxation techniques for insomnia found PMR consistently reduces subjective sleep latency (how long people feel it takes to fall asleep) and improves overall sleep quality ratings. It works partly through direct physical relaxation and partly through the same cognitive engagement mechanism as imagery: the task requires enough attention to interrupt the worry loop.
Dorothy, Sleep Specialist: "Progressive muscle relaxation is one of the most underused sleep tools. People think of it as old-fashioned, but the research holds up extremely well. The body tension release is real, you discover how much you were holding without realising it. And the mental task of working through each body part gives the mind enough to do that it stops generating its own content."
Other Evidence-Supported Techniques
- 4-7-8 breathing: Inhale for 4 counts, hold for 7, exhale for 8. The extended exhale activates the parasympathetic nervous system and reduces physiological arousal. Limited research but widely reported anecdotally as helpful for sleep-onset anxiety.
- Body scan meditation: A mindfulness practice that moves attention through the body progressively, noticing sensations without judgement. Similar mechanism to PMR with a less active muscular component.
- Stimulus control: A formal CBT-I technique that restricts bed use to sleep and sex only, rebuilding the association between the bed and sleep onset. Over time, the bedroom itself becomes a sleep cue. This is a longer-term intervention rather than a night-by-night technique.
When the Problem Is Your Sleep Surface
Mental techniques for sleep onset work best when the physical sleep environment is also supporting the process. If you're trying to visualise a peaceful beach while lying on a mattress that creates a pressure point in your hip, part of your brain is running a background process monitoring the discomfort. That's another source of arousal competing with your mental imagery.
Brad, our owner, has heard it many times: "I try everything and I still can't get comfortable." Often the problem isn't the technique, it's the mattress. A genuinely comfortable, appropriately supportive sleep surface reduces the physical component of sleep-onset arousal, leaving only the mental component to manage.
If you fall asleep quickly in hotels, on holiday, or in other people's beds, but struggle in your own bed, that's a meaningful signal. It suggests your own sleep surface may be part of the problem.
Our Restonic ComfortCare Queen at $1,619 uses 1,222 individually wrapped coils across three comfort zones. The perimeter zones provide shoulder and hip pressure relief that reduces unconscious tension, the kind of low-level physical discomfort that keeps the brain in a monitoring state rather than releasing into sleep. Customers regularly tell us that they fall asleep faster than they expected after switching mattresses.
We're at 441½ West Street in Brantford and open every day of the week. If mental techniques aren't getting you to sleep, we're happy to talk through whether the sleep surface might be part of what's in the way.
Sleep Clinics and Mental Health Support in Brantford
If persistent insomnia is significantly affecting your daily life, Brantford General Hospital and Grand River Community Health Centre both connect patients with sleep health resources. CBT-I delivered by a trained therapist is the most effective long-term intervention for chronic insomnia. The mental techniques in this article are useful starting points, but they're not a substitute for clinical support when insomnia is severe or long-standing.
Find Your Perfect Mattress at Mattress Miracle
We are a family-owned mattress store in Brantford, helping our community sleep better since 1997. Come try mattresses in person and get honest, no-pressure advice.
441 1/2 West Street, Brantford, Ontario
Call 519-770-0001Frequently Asked Questions
Why do people count sheep to fall asleep?
The tradition likely originated with medieval shepherds counting their flocks at night as a routine check. The repetitive, low-stakes nature of counting translated into a pre-sleep ritual. The idea is that a boring mental task would prevent anxious thoughts and allow sleep to arrive. However, research has shown that counting is too simple to hold attention reliably, and people's minds return to anxious thoughts while they count.
Does counting sheep work for insomnia?
Research suggests it doesn't work meaningfully for most people with insomnia. A 2002 Oxford University study found that participants who counted experienced no faster sleep onset than those who did nothing. Participants who visualised a calming scene fell asleep about 20 minutes faster than on baseline nights. More engaging mental tasks outperform simple counting.
What is better than counting sheep?
Mental imagery (visualising a detailed, peaceful scene), cognitive shuffling (imagining random, unconnected images), progressive muscle relaxation, and body scan meditation have all shown better results than counting in research settings. 4-7-8 breathing and stimulus control therapy are also well-supported by evidence for sleep onset difficulties.
What is the cognitive shuffle method for sleep?
Cognitive shuffling involves thinking of a random word and then visualising a series of disconnected images, one for each letter of the word. The images should be vivid but unrelated to each other. The technique mimics the random, associative mental state that naturally precedes sleep onset, potentially signalling to the brain that it's safe to release coherent thought.
Can a mattress affect how quickly I fall asleep?
Yes. Physical discomfort, pressure points, misaligned spinal support, heat retention, keeps the nervous system in a low-level monitoring state that competes with sleep onset. A mattress that provides appropriate pressure relief and temperature regulation removes part of the physiological arousal that delays sleep. Many people find they fall asleep significantly faster after switching to a more appropriate mattress, without changing any mental techniques at all.
Sources
- Harvey, A.G., & Payne, S. (2002). The management of unwanted pre-sleep cognition in insomnia: a controlled trial of cognitive distraction. Behaviour Research and Therapy, 40(3), 267–277. doi.org/10.1016/S0005-7967(01)00012-2
- Harvey, A.G. (2002). A cognitive model of insomnia. Behaviour Research and Therapy, 40(8), 869–893. doi.org/10.1016/S0005-7967(01)00061-4
- Manzoni, G.M., et al. (2008). Relaxation training for anxiety: a ten-year systematic review with meta-analysis. BMC Psychiatry, 8, 41. doi.org/10.1186/1471-244X-8-41
- Ong, J.C., et al. (2014). A randomized controlled trial of mindfulness meditation for chronic insomnia. Sleep, 37(9), 1553–1563. doi.org/10.5665/sleep.4010
- Baglioni, C., et al. (2010). Sleep and emotions: a focus on insomnia. Sleep Medicine Reviews, 14(4), 227–238. doi.org/10.1016/j.smrv.2009.10.007
Visit Our Brantford Showroom
We are located at 441½ West Street in downtown Brantford. Free parking available. Our team does not work on commission, so you get honest advice based on your needs.
Mattress Miracle, 441½ West Street, Brantford, ON, (519) 770-0001
Hours: Monday–Wednesday 10am–6pm, Thursday–Friday 10am–7pm, Saturday 10am–5pm, Sunday 12pm–4pm.
If getting to sleep is harder than it should be, start with your sleep environment. Come in and we'll help you figure out whether your mattress is part of the problem.
Shop This Topic at Mattress Miracle
Popular picks at Mattress Miracle:
- Restonic ComfortCare Dalton & Albany pocketed-coil mattress
- Whitney double-sided mattress
- Somnia 3.0 posture support pillow
Or shop the full mattress lineup in our Brantford showroom.
Related Reading
- Can You Cry in Your Sleep?
- BetterSleep App Review: Sleep Sounds and CBT-I
- Is Sleeping on the Couch Bad for You?
- The Chemical in Turkey That Makes You Sleepy
- Restonic Mattresses at Mattress Miracle
Stop Counting Sheep. Start Sleeping.
The right mattress does more for falling asleep than any mental trick. Come try our Restonic and Restonit mattresses in person at Mattress Miracle, 441 1/2 West St, Brantford. Call Talia at (519) 753-9344 or reach us on the chat box almost any hour.