Blog

Laying in Bed for Hours, Can't Sleep? Here's What to Do

Night sky with a full moon and the words Laying in Bed for Hours Can't Sleep on a deep blue background

1:17 a.m. You've been laying in bed for hours and can't sleep. The ceiling is very familiar by now. You check the clock (just for the time, you tell yourself) and feel your chest tighten when you see how late it is. The harder you try to fall asleep, the further away sleep feels.

If you've been laying in bed for hours and can't sleep, there's a reason this loop is so hard to break. It's not a willpower problem. It's a brain-training problem. This guide walks through what's actually happening, when to get out of bed, and what tends to help at different stages of the night.

Key takeaways

  • Lying awake in bed for long stretches teaches your brain to associate the bed with wakefulness, making future nights harder.
  • If you've been awake more than about 20 minutes, getting out of bed is often more effective than staying put and trying harder.
  • A consistent wind-down before you get into bed is the single most useful long-term prevention.

Why staying in bed often makes it worse

There's a painful irony at the center of insomnia: the bed, the place that is supposed to feel safe and restful, starts to feel like the place where you lie awake and think too hard.

This happens through conditioned arousal. When your brain repeatedly pairs the bedroom with wakefulness, frustration, and clock-watching, it starts treating your bed as a signal to stay alert rather than to settle down. A 2019 study published in Sleep Medicine found that people with high nighttime cognitive arousal took 37 minutes longer to fall asleep than those with low cognitive arousal, and showed more sleep disruption even compared to people with a formally diagnosed insomnia disorder.

In other words, the anxious loop of "why can't I just fall asleep" is not only unpleasant. It is physiologically keeping you awake.

Clock-watching is its own trap. Every time you check the time and calculate "if I fall asleep right now I'll still get five hours," you give your nervous system another reason to stay switched on. If you can manage it, turn the clock face away before you lie down.

The 20-minute rule: when to actually get up

One of the best-studied approaches to insomnia is stimulus control therapy. The American Academy of Sleep Medicine describes it as the most validated behavioral treatment for insomnia, with the strongest body of supporting evidence.

The core rule: if you've been lying awake for around 20 minutes, get up.

This feels counterproductive when you're exhausted. But staying in bed while wide awake is exactly what reinforces the association between your bed and wakefulness. Getting up breaks the cycle. Over several nights, your bed becomes again a place your brain connects with actual sleep.

You don't need a precise timer. "Around 20 minutes" in practice means when you notice you're spinning, restless, or starting to feel frustrated. That's the signal.

What to do when you get out of bed

The goal is gentle boredom, not productivity.

Keep the lights very dim. Bright light suppresses melatonin and signals your brain that it's daytime. A small lamp in another room is enough. Your phone screen is not dim enough, even on night mode.

Things that tend to work:

  • Read something light (a novel you've read before, a magazine, nothing urgent)
  • Do slow stretching on the floor
  • Listen to something calm (a familiar podcast, ambient sound, quiet music)
  • Make a cup of herbal tea and sit without a screen

Don't start a task. Don't open your laptop. Don't check messages. The goal is to let your sleep drive rebuild. Sleep drive is your body's natural pressure to sleep after being awake long enough, and it accumulates the longer you're up. When your eyes start to feel heavy, go back to bed.

If you lie down and find yourself wide awake again after another 20 minutes, get up again. This is the protocol. It's frustrating the first few nights and then it starts to work.

Two techniques worth trying if you stay in bed

Sometimes getting up isn't practical. A partner sleeping nearby, a young child who might hear you, a particularly cold apartment. Here are two approaches that work from bed.

4-7-8 breathing. Inhale quietly through your nose for 4 counts, hold for 7, exhale slowly through your mouth for 8. The long exhale activates the parasympathetic nervous system and turns down the physiological alarm. Three or four cycles is usually enough to feel a shift. It won't knock you out, but it does quiet the buzz.

Paradoxical intention. Lie still with your eyes open and try to stay awake. Don't try to fall asleep. Attempt to keep your eyes open without staring. This sounds strange, but it removes the performance pressure that often keeps anxious sleepers wired. A lot of people find their eyes start closing almost immediately.

The bedtime routine that prevents hours of lying awake

The best fix for being awake at 2 a.m. is what you do at 10 p.m.

A consistent wind-down gives your nervous system a signal that the day is closing. It doesn't need to be a long ritual. Thirty minutes of lower light, no work emails, no conversations that require emotional labor, no screens demanding a response. That's the structure. The content is up to you.

One thing that helps a lot of people: actually offloading the day before you try to sleep. When your mind is still carrying unfinished thoughts, tomorrow's concerns, and things that didn't get resolved, lying down with all of that is like trying to rest in a room full of people talking at once.

Journaling before bed is one way to close those open tabs. Even two or three minutes of writing (or just speaking out loud, when you're too tired to type) can drain the mental residue that would otherwise follow you into the dark. meow note is built for exactly this: a quiet voice or text journal at bedtime, with mood check-ins and ambient sound to ease the transition. Download it free here.

For more on building journaling into a real sleep habit, see journaling for sleep.

One other thing that matters more than most people realize: wake time. Getting up at the same time every day, even after a rough night, stabilizes your circadian rhythm faster than almost anything else. It's not comfortable after a 4-hour night. It does work.

When overthinking is the main thing keeping you up

If you can identify a specific thought loop, a worry you can't release, a conversation replaying in your head, the situation is a little different. You're not just awake; you're stuck.

The post on how to stop overthinking at night goes into this more directly: how to interrupt the loop early, what to do with a worry instead of suppressing it, and why telling yourself to just relax almost never works.

If the pattern is specifically "exhausted all day but then wired the moment you get into bed," see can't sleep but exhausted for what's behind that specific combination.

When to talk to someone

Lying awake occasionally, especially before a stressful event or a busy week, is normal. It doesn't mean anything is wrong.

But if you've had trouble sleeping at least three nights per week for three months or more, and it's affecting how you function during the day (concentration, mood, energy), that meets the definition of chronic insomnia and it's worth professional attention.

The first-line treatment is Cognitive Behavioral Therapy for Insomnia (CBT-I). A 2022 review found CBT-I produces around a 50% reduction in insomnia symptoms on average, with gains maintained for up to 24 months after treatment. It outperforms sleep medication in the long run and does not carry dependency risk. Your GP can refer you, or you can find a CBT-I therapist through the Society of Behavioral Sleep Medicine.

If you're also experiencing panic, persistent daytime anxiety, or any thoughts of self-harm, please reach out to a doctor or mental health professional directly, without waiting.

Frequently asked questions

Why am I laying in bed for hours and can't sleep?

The most common causes are cognitive arousal (an active, anxious mind that won't quiet down), conditioned wakefulness (your brain has learned to associate the bed with being alert), stress hormones keeping your nervous system switched on, and irregular sleep timing. These often compound each other. The approaches in this guide address all of them, and the section on rush of anxiety when falling asleep covers the anxiety component specifically.

Is it okay to stay in bed if I can't sleep?

After about 20 minutes of being awake and alert, staying in bed tends to reinforce insomnia over time. Getting up, doing something calm in dim light, and returning when you feel sleepy is the approach recommended by sleep researchers. It feels counterintuitive, but it works by retraining your brain's association between the bed and actual sleep.

Why do I feel wide awake the moment I lie down?

This is conditioned arousal: your brain has learned, through repeated nights of lying awake in bed, to become alert when you get horizontal. It's not a character flaw and it's not permanent. The 20-minute rule and a consistent wind-down routine gradually reverse it.

Should I take a sleep aid if I've been lying in bed for hours?

Over-the-counter sleep aids can help occasionally, but they don't address why you're awake and often leave you groggy the next day. If you find yourself reaching for them regularly, it's worth discussing CBT-I with your doctor, which addresses the root patterns rather than the symptoms.

How many hours in bed is too many?

Sleep specialists generally recommend keeping your time in bed close to your actual sleep time. Spending 9 or 10 hours in bed while only sleeping 5 or 6 weakens your sleep drive and fragments your sleep further. If this sounds familiar, a structured reduction in time in bed (done gradually, ideally with a therapist's guidance) often improves sleep quality significantly.

What if I wake up in the middle of the night and can't get back to sleep?

The same approach applies. If you wake at 3 a.m. and find yourself alert after about 20 minutes, get up, keep lights low, do something quiet, and return when sleepy. Middle-of-the-night waking is part of how insomnia builds its patterns, and the same behavioral approach that works at bedtime also works at 3 a.m.

Keep reading