Can't turn your brain off at night?

7 min read

You get into bed, turn off the light, and that’s when your brain decides to replay the day: the meeting, the text you never answered, the thing you should have said. Then it moves on to tomorrow: the to-do list, the appointment you can’t forget. It’s incredibly common, and it doesn’t mean something is wrong with you. Often it’s simply the first quiet moment of your day, arriving with no transition after work or screens right up until bedtime, with stress piled up and a last scroll that got everything going again. And there’s one cause almost nobody suspects: caffeine, which keeps your brain in alert mode long after your last cup. Here’s how to sort it out and get calmer bedtimes back.

Why does your brain start racing at bedtime?

During the day, your attention goes to whatever you’re doing. Anything you didn’t get to goes into a queue: the email to send, the conversation to pick back up, the worry about someone you love. Lying in the dark, nothing competes with that queue anymore. So it comes up.

To fall asleep, your brain needs two things: enough tiredness built up since you woke up, and a signal that the day is over. When either one is missing, your thoughts have the floor. And the loop sets in fast: you notice you’re not sleeping, you check the time, you count the hours left, and that math becomes one more thought. Researchers see it too: worrying at bedtime, especially about unfinished tasks, is one of the things that make falling asleep hard.

What keeps your mind going at night?

  • No wind-down. Email, work, one more episode right up until lights out: your brain never got the chance to downshift.
  • No breaks all day. If nothing gave you a moment to think, it all shows up in bed.
  • Stress and mental load. A deadline, a packed week, a decision you keep putting off: a brain that’s planning ahead has a hard time switching off. The Sunday scaries are the classic version, see why Sunday nights are so hard.
  • Your phone in bed. A work email, a doomscroll through the news, one more video: plenty to rev things back up right before lights out.
  • Lying awake in bed too long. The longer you fight it, the more your bed becomes the place where you overthink.
  • Caffeine, covered right below.

If worry is taking up more and more room, if you feel anxious most days, or if you’ve been sleeping badly most nights for weeks, talk to your doctor. And if the tension follows you through the day too, read why you can feel on edge for no reason.

What if caffeine is keeping your brain switched on?

It’s the cause people think of least: at bedtime you don’t necessarily feel wired, just unable to turn your brain off.

How caffeine keeps your brain on alert

All day long, while you’re awake, your brain builds up adenosine. It’s the signal that nudges it toward rest: in the evening, it’s what makes your eyelids heavy and your thoughts go fuzzy. Caffeine takes its spot on the receptors. The signal is still there, but it doesn’t get through, and your brain stays in alert mode.

The effect doesn’t stop when you put the mug down. Caffeine’s half-life is about 5 hours, often anywhere from 3 to 7 depending on the person, and longer on the pill, during pregnancy, or for slow metabolizers. One example: a regular cup of drip coffee, about 100 mg, five hours before bed still leaves roughly 50 mg in your system when you turn out the light, not far from a shot of espresso. And a grande drip at Starbucks is about 310 mg to begin with. The more cups you have, and the bigger or later they are, the more is left right when you want your mind to settle.

What that does at bedtime

The result is sleepiness that shows up weaker. And sleepiness is often what finally drowns out the noise: without enough of it, the replay has more room to run. At higher doses, caffeine also adds a jittery edge that feels a lot like worry, and gives your overthinking more to chew on.

Studies measure it. Pooling 24 studies, one meta-analysis found that caffeine added about 9 minutes to the time it takes to fall asleep and cut about 45 minutes of sleep on average (Gardiner et al., 2023). And in an at-home study, 400 mg taken even six hours before bed, about what’s in a venti brewed coffee at Starbucks, clearly cut sleep, without the volunteers noticing (Drake et al., 2013). Habit, for its part, dulls the buzz you feel, not the effect on your night: your coffee may seem to do nothing anymore and still keep your brain switched on at bedtime. More in caffeine and sleep.

It’s not true for everyone: if you clear caffeine fast and your coffee stays in the first part of the day, it’s probably not your lead. And if your mind switches back on in the middle of the night instead, see why you wake up at night.

How do you quiet a racing mind at bedtime?

  • Give yourself a wind-down. Thirty minutes to an hour before lights out: dimmer lights, screens put away, something calm like reading, music, or a shower.
  • Do a brain dump. In a study of 57 young adults, spending five minutes before lights out writing a specific to-do list for the next few days helped them fall asleep faster than writing about what they had already done. The more specific the list, the faster they fell asleep (Scullin et al., 2018).
  • Keep your phone out of reach, ideally charging outside the bedroom.
  • If sleep doesn’t come after about 20 minutes, get up. Go to another room, keep the light low, do something calm without a screen, and only go back to bed when you feel sleepy. Don’t check the clock.
  • Slow your breathing. A few long, slow exhales help your body step out of alert mode.

The one-week test

To find out whether caffeine plays a part, change one thing at a time, and start with caffeine: it’s the easiest to test.

  1. Rate two or three normal nights: how much your mind was racing at bedtime, from 1 to 5, and roughly how long it took to fall asleep.
  2. For seven days, finish your coffee before your caffeine cutoff. The last cup moves earlier or becomes decaf, and if you drink a lot, scale back the biggest one too.
  3. Change nothing else, not your evenings, not your bedtime.
  4. Keep rating each morning, then compare.

If your evenings calm down, caffeine was part of the story. If not, look at your wind-down, your phone, or stress. If you drink a lot of coffee, cut back gradually rather than all at once, so a missed-coffee headache doesn’t muddy the results.

Calmer nights ahead

CaffIQ helps you see where you stand and take back control of your sleep. Based on what you drink and your profile, it estimates how much caffeine will be left at bedtime and gives you a personal cutoff, so your next cup doesn’t cost you your evening. And if your watch saves your nights to the Health app, the Sleep Lab in CaffIQ Pro puts them side by side with your caffeine at bedtime, so you can see whether the link exists for you.

You don’t have to give up coffee to get calmer bedtimes. Often, moving the last cup earlier or scaling back the biggest one is enough, along with giving your mind time to slow down before lights out.

CaffIQ provides general estimates, not medical advice. For any health question, consult a qualified professional.

Want this worked out for your body, in real time?

Download on the App Store