Why your brain gets loud at bedtime
All day, your attention is busy with other things. At night those distractions disappear, and whatever you didn't have time to think about gets its turn. If you're stressed, your body may also still be on alert when you lie down.
Then a second problem joins in: worrying about sleep itself. "If I fall asleep now I'll get five hours" is one more thought keeping you awake. Much of what helps works by breaking this loop, not by forcing your mind to go blank.
6 ways to quiet racing thoughts
1. Slow your breathing
Breathing exercises are one of the relaxation techniques used in insomnia treatment to ease the racing thoughts and tension of lying awake. Breathe in for 4 and out for 6, or try 4-7-8 breathing. Counting also gives your mind a small job to do.
2. Ground yourself in the room
Your thoughts are mostly in tomorrow or years ago. The 5-4-3-2-1 grounding technique brings you back to now: the weight of the blanket, the hum of a fan, the feel of the pillow. It works lying down, and you can adapt the steps if your eyes are closed.
3. Relax your body, one part at a time
Progressive muscle relaxation is another standard technique. Tense a muscle group for a few seconds, then let go, working up from your toes to your face. It's hard to follow that sequence and rehearse an argument at the same time.
4. Write it down
Keep paper by the bed. Write down the thought, or the one next step you need to take, and tell yourself it's safe on the page until morning. It's easier to let go of something you don't have to remember.
5. Give your worries a daytime slot
Set aside 10 or 15 minutes earlier in the evening to go through what's on your mind and plan what you can. When a worry shows up at midnight, you can say, "That's for tomorrow's slot." This "constructive worry time" is a common suggestion in insomnia programmes, although there's less evidence for it than for CBT-I overall.
6. Get up if it isn't working
This one feels backwards, but it's a core part of cognitive behavioural therapy for insomnia (CBT-I). If you've been lying awake for a while, get up and do something quiet in low light, like reading a paper book. Go back when you feel sleepy. Over time, this helps your brain link your bed with sleep instead of with lying awake thinking.
Avoid checking the time. An estimate is fine, and clock-watching only feeds the worry.
What to try during the day
- Keep a steady wake-up time, even after a bad night.
- Cut back on caffeine later in the day.
- Save your bed for sleep and sex, not work or long scrolling sessions.
- Practise your breathing while calm, so it's familiar at 2am.
If it's a different feeling keeping you up, like anger, guilt or feeling stuck, here's what to do when you feel anxious, angry, sad or stuck.
If it turns into panic
Sometimes racing thoughts tip over into a pounding heart and a wave of fear. Here's how to get through a panic attack, and what to do if you're waking up with a panic attack.
When to get help
If you've been sleeping badly for weeks, or it's affecting your days, talk to a doctor. CBT-I is a well-established treatment for long-term insomnia, and many people improve with it. A doctor can also check for causes such as sleep apnea, anxiety or depression.
Seek help promptly if your racing thoughts come with feeling you barely need sleep, unusually high energy or very low mood. If you're thinking about harming yourself and you're in the US, call or text 988. Elsewhere, contact your local emergency number or crisis line.

