To calm racing thoughts before sleep, give them somewhere to go that isn't your head: write them down, slow your breathing, and let your body relax one part at a time. If you still can't sleep after a while, get up and do something quiet until you feel sleepy. These steps won't work every single night, but together they make it easier for your mind to power down.
Why do thoughts race at night?
During the day, your attention is pulled in a hundred directions. At night, the room goes quiet and there's nothing left to distract you. Everything unfinished comes forward: the email you didn't send, the thing someone said, tomorrow's to-do list. Your mind keeps these open like tabs in a browser.
A few everyday things can turn the volume up:
- stress or a big change you haven't fully processed;
- caffeine in the afternoon or evening;
- alcohol or nicotine in the evening;
- bright screens and busy content right before bed;
- going to bed and waking up at very different times.
There's also a trap many people fall into. The harder you try to sleep, the more alert you become. Sleep tends to arrive when you stop chasing it.
What can you do an hour before bed?
Make a 10-minute worry list
Do this earlier in the evening, not in bed. Take a piece of paper and write down each thing on your mind. Next to each one, write one small next step, or simply "nothing to do tonight." Then close the notebook. You've put the worries somewhere safe, so your mind doesn't have to keep holding them. In one small sleep-lab study, young adults who spent five minutes at bedtime writing a specific to-do list for the next days fell asleep faster than those who wrote about what they had already done.
Dim the evening
Lower the lights in your home. If you can, put screens away for the last half hour, or at least switch to something slow and familiar rather than news or endless scrolling. Our guide to screens before bed has ways to make a phone calmer at night.
Give yourself a wind-down cue
Do the same few things in the same order each night: a warm shower, a caffeine-free drink, a few pages of a paper book. Over time, the routine itself starts to tell your body that sleep is coming.
What can you do in bed when your mind won't stop?
Breathe slowly, with a longer exhale
Breathe in gently through your nose for a count of four or five, then out for a count of five or six. Keep it soft and easy, not forced. Our guides to 4-6 breathing for sleep and breathing at 6 breaths a minute explain the rhythm step by step.
Relax your body from the toes up
Gently tense your feet for a few seconds, then let go completely. Move to your calves, thighs, belly, hands, shoulders, and face. Notice the difference between tight and loose. Many people drift off before they reach the top.
Give your mind a boring job
Racing thoughts need fuel. Give your mind something calm and dull instead. Pick a simple word, like "garden," and for each letter think of random, unrelated things that start with it. Or count backward slowly from 300 by threes. Or walk through a familiar place in your mind in great detail.
Let thoughts float past
You don't have to argue with every worry. When one shows up, notice it: "That's a worry. I'll look at it tomorrow." Then picture setting it on a leaf and watching it drift away down a slow stream. It may come back. That's fine. Set it on another leaf.
What if you still can't fall asleep?
If you've been lying awake for what feels like about 20 minutes, don't stay and struggle. Try not to check the clock, since watching the minutes can add pressure.
- Get up and go to another room if you can.
- Keep the light dim and do something quiet and a little dull: fold laundry, read something easy, listen to calm audio.
- Go back to bed when you feel sleepy again.
- Keep your wake-up time the same the next morning, even after a rough night. It helps your body find its rhythm.
If the same worries keep coming back night after night, it can help to talk them through during the day. Our guide on how to vent when there's no one around has some gentle ideas, and how to fall asleep with anxiety goes deeper into worry at bedtime.
When should you see a doctor about insomnia?
Occasional bad nights are part of life. But it's a good idea to talk to a doctor if:
- trouble falling or staying asleep happens three or more nights a week, for several weeks;
- tiredness is affecting your work, mood, relationships, or driving;
- you snore loudly, gasp, or seem to stop breathing in your sleep (a partner may notice this first);
- you have an urge to move your legs at night that keeps you awake;
- racing thoughts come with constant worry, panic, or low mood during the day.
A doctor can look for causes, including other health conditions, and talk you through options. There are well-studied approaches for long-term sleep problems that don't rely on sleeping pills, such as cognitive behavioral therapy for insomnia (CBT-I), which sleep medicine guidelines recommend as a first-line treatment for long-term insomnia. A doctor can tell you more about it. If low mood is part of the picture, read when to talk to a professional.
If you are in crisis or thinking about harming yourself, call or text 988 (US), call 111 or text SHOUT to 85258 (UK), or your local emergency number. More resources are on our safety page.
What if you use your phone in bed anyway?
Then make it slow and dim. Stillfy, a free iPhone app with no ads and no sign-in, has a Sleep mode: a dark, slow, endless flight with no flashes that gently fades out over 10 minutes, and you can hold the screen to breathe 4 seconds in, 6 seconds out. It's a calm ritual, not a sleep treatment.
Sources
- Edinger JD, Arnedt JT, Bertisch SM, et al. (2021). Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine. doi.org/10.5664/jcsm.8986
- Scullin MK, Krueger ML, Ballard HK, Pruett N, Bliwise DL (2018). The effects of bedtime writing on difficulty falling asleep: A polysomnographic study comparing to-do lists and completed activity lists. Journal of Experimental Psychology: General. doi.org/10.1037/xge0000374
- Drake C, Roehrs T, Shambroom J, Roth T (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine. pmc.ncbi.nlm.nih.gov/articles/PMC3805807
- NHS. Insomnia. nhs.uk/conditions/insomnia
- Zaccaro A, Piarulli A, Laurino M, et al. (2018). How Breath-Control Can Change Your Life: A Systematic Review on Psycho-Physiological Correlates of Slow Breathing. Frontiers in Human Neuroscience. doi.org/10.3389/fnhum.2018.00353
Questions and answers
Why do my thoughts race when I try to sleep?
At night there are fewer distractions, so worries that waited all day finally get your full attention. Stress, caffeine late in the day, bright screens, and irregular sleep times can make it worse. Trying hard to fall asleep can also keep your mind switched on.
Does writing down worries before bed help?
Many people find it does. Spending a few minutes in the evening writing each worry and one possible next step tells your mind it doesn't have to hold everything overnight.
Should I stay in bed if I can't fall asleep?
If you've been awake for what feels like about 20 minutes, a common suggestion is to get up, do something quiet in dim light, and go back to bed when you feel sleepy. This helps your bed stay linked with sleep instead of struggle.
When should I see a doctor about insomnia?
Talk to a doctor if trouble sleeping happens three or more nights a week for several weeks, affects your days, or comes with loud snoring, gasping in your sleep, or ongoing low mood or worry. A doctor can look for causes and talk you through well-studied options.
This article is for general information and isn't medical advice. If you are in danger or thinking about harming yourself, see our Safety page for helplines.

