Lying in Bed for Hours, Can’t Sleep? Why + What to Do

Key takeaways

  • If you lay in bed for hours and can’t sleep, the problem is usually an over-alert brain, not a lack of tiredness. Being exhausted and being able to fall asleep run on different systems.
  • After enough rough nights, the bed itself can turn into a signal for being awake. Sleep scientists call this conditioned arousal, and it is learned, so it can be unlearned.
  • The single best-evidenced move tonight is the opposite of what you’d expect. Once you have been awake and frustrated for about 20 minutes, get out of bed and do something quiet in dim light until you feel sleepy.
  • Most people take about 10 to 20 minutes to fall asleep. Trouble at least three nights a week for three months, with daytime problems, is chronic insomnia and worth an evaluation.

Lying awake for hours: what’s actually going on

If you have been lying in bed for hours and can’t sleep, the usual reason is that your brain is too keyed up to let sleep through. You may be physically tired while stress or mental alertness keeps you awake. Unfortunately, trying harder to fall asleep often increases frustration and makes it more difficult.

This is a common problem. The longer you remain awake, the more frustrated and alert you may become. This doesn’t mean anything is wrong with you. Below, we explain why it happens and what to do about it tonight, then when a rough night has crossed into insomnia. If sleep trouble keeps showing up alongside stress or low mood, it may point to something we can help with; here is how we treat sleep problems.

Why am I tired but can’t sleep?

You can feel wiped out and still lie wide awake because being tired and being able to sleep are run by two different systems. Hours awake build sleep pressure, the body’s drive to sleep, but a switched-on stress system can override that pressure and keep you alert. Do this enough nights, and the bed itself starts to cue alertness.

Two things are usually happening at once. The first is sleep pressure, which climbs the longer you are awake, working alongside your circadian clock, the roughly 24-hour timer that sets when your body expects to be alert or drowsy. The second is alertness. Stress can keep you alert even when your body needs sleep.

For some people, especially teens and young adults, the main driver is a body clock that runs late, a pattern called delayed sleep phase. The tell is that you fall asleep late and wake late, and you sleep fine when you can keep your own hours. That is a timing problem, and it responds to different tools, like carefully timed morning light.

Sleep researchers describe insomnia as a state of hyperarousal, meaning the brain and body stay revved up, mentally and physically, when they should be powering down. On top of that, conditioned arousal keeps the brain alert in bed: after a run of nights spent tossing and turning, your brain quietly learns that the bed is where you lie awake and worry. Conditioned arousal simply means your bed has become a cue for being awake. It is the same loop that explains why you can nod off on the couch during a show, then snap awake the moment you get into bed. None of this is a character flaw or a sign you are broken. It is a learned pattern, which is exactly why the steps below can retrain it. When the wakefulness rides on anxiety, the arousal runs higher still, and the harder you push for sleep, the further it slips away.

What to do tonight when you can’t sleep

The best first step when you can’t fall asleep is to stop trying and get out of bed. After about 20 minutes awake and frustrated, leave the bedroom, keep the lights low, and do something quiet and dull until you feel sleepy again. This breaks the link between your bed and being wide awake.

This technique is called stimulus control. It helps you associate your bed with sleeping instead of lying awake.. The point of getting out of bed when sleep won’t come is not punishment. Spending long periods awake in bed can strengthen the association between bed and wakefulness. Getting up helps break that association.

A few things make it work:

  • Treat 20 minutes as a rough signal. What matters is frustration: if you are lying there stewing, that is your sign to get up, whether it has been fifteen minutes or forty.
  • Keep the lights dim and skip the phone. Bright light and doomscrolling both feed the alertness you are trying to lower.
  • Do something boring on purpose. Read a dull book under a low lamp, fold laundry, sit quietly. Go back to bed only when your eyes are actually heavy.
  • Don’t reach for a drink to speed things up. Alcohol may feel calming, but it breaks up sleep later in the night and keeps the loop going.

One caveat: if that late-clock pattern above sounds like you, morning light on a steady schedule helps more than the get-up rule, and it is worth an evaluation.

A quick word on supplements like magnesium: they are a separate conversation, and they will not retrain the bed-sleep connection on their own.

How long does it take to fall asleep?

For most people, falling asleep takes roughly 10 to 20 minutes. Dropping off in under five minutes most nights can be a sign you are not getting enough sleep. Regularly needing 30 to 45 minutes or more is worth paying attention to. This gap between lights-out and sleep is called sleep-onset latency.

If you wear a sleep tracker, it can turn a normal 18-minute latency into a nightly grade you are failing. Clinicians have a name for the version of this that backfires: orthosomnia, when chasing perfect sleep-tracker numbers (orthosomnia) feeds sleep anxiety and makes sleep worse. A reasonable rule of thumb is to trust how you feel in the morning over what the app scored you overnight. If your nights routinely blow past these numbers, the sections below are for you.

When your heart races the moment you try to sleep

A pounding heart the second your head hits the pillow is usually your arousal system, not a heart problem. You may notice your heartbeat more in bed because the room is quiet and there are fewer distractions. Caffeine, an evening stimulant wearing off, and alcohol rebound can all push it higher.

There is often a loop involved. You notice your heartbeat, that sensation reads as alarming, the alarm nudges the heart faster, and now you are tracking it. One way to interrupt the loop is slow breathing with a longer exhale than inhale, which nudges the nervous system toward calm. If it will not settle, get up and use the same rule from earlier; lying there watching your pulse only feeds the loop. And if you take a stimulant for ADHD and your heart races in the evenings, the timing of your dose can matter, so raise it with your prescriber before changing anything on your own.

A few symptoms call for a medical check. Get evaluated promptly if you have any of these:

  • Chest pain or pressure
  • Palpitations that come with dizziness or fainting
  • Shortness of breath or trouble breathing

When a bad night becomes insomnia

Everybody has the occasional wakeful night, and one bad stretch is not a diagnosis. It’s worth knowing that trouble falling asleep at least three nights a week for three months, with daytime problems, meets the definition of chronic insomnia. That is a treatable condition, more common than most people realize.

An evaluation can help identify why you are not sleeping. Common causes include anxiety, depression, ADHD, medications, caffeine, substance use, and an inconsistent sleep schedule. If you fall asleep fine but keep waking at 2 or 3 a.m., that is a different problem called sleep-maintenance insomnia, and it has its own answers; for now, the insomnia resources above are the place to start.

What treatment for chronic insomnia looks like

If the ceiling-staring has become a pattern, there is a clear first step, and it begins with a skills-based therapy. CBT-I is the recommended first-line treatment for chronic insomnia, ahead of sleeping pills, and its benefits tend to hold up after the sessions end, which is where medication alone often falls short.

CBT-I stands for cognitive behavioral therapy for insomnia. It is a structured, skills-based program that goes well beyond sleep-hygiene tips, and it packages the stimulus-control idea from earlier with other techniques that reset your sleep drive over a few weeks. Medication still has a legitimate place when a prescriber matches it to the person and the fuller picture. Several classes can help sleep, including options like quetiapine (Seroquel) for sleep and clonidine for sleep, which we cover in depth elsewhere. Talk with a clinician before choosing a medication or supplement. For Pennsylvania residents, that evaluation can happen over telehealth.

Frequently asked questions

What is the 3-3-3 rule for sleep?

The 3-3-3 rule is a grounding technique, not a sleep treatment: you name three things you can see, notice three sounds you can hear, and move three parts of your body. It comes from anxiety management and has no sleep-science evidence base behind it. It can still help because it lowers arousal, which is what keeps you awake.

Does lying in bed with your eyes closed count as rest?

Lying quietly with your eyes closed has some restorative value, but it is not sleep and it does not replace it. Staying in bed awake for hours also has a cost: it strengthens the learned link between your bed and being awake. That is the whole reason the get-out-of-bed step exists.

When should I see someone about not being able to fall asleep?

See a clinician if the trouble runs at least three nights a week for three months, per the standard definition of chronic insomnia. Reach out sooner if your daytime functioning is suffering, or if the sleep problem travels with mood, anxiety, or questions about a medication you take.

Take the next step

If lying awake for hours has become your normal, a telehealth evaluation can help identify what’s driving it; a sleep-tips article can only go so far. Good care looks at the whole picture: your sleep, mood, anxiety, and any medications. See how we treat sleep problems, or book a telehealth evaluation, available statewide across Pennsylvania.

This information is general and not individualized medical advice. For guidance about your own health or medications, talk with your prescriber or clinician.