I can't sleep: what to do when you're lying awake

If you can't sleep, stop trying so hard. Lying there willing yourself to drift off is one of the things keeping you awake. Get up once it's clear sleep isn't coming, do something dull in dim light, and go back to bed when your eyelids get heavy. Then deal with whatever is actually keeping you up, whether that's a worry on loop or a coffee you had at 4 p.m. When "I can't sleep" turns into most nights, there's usually a reason you can find and fix.
Why you can't sleep
Why can't I sleep? Most bad nights trace back to a short list of causes. Read through it and notice which ones fit tonight:
- Your mind is busy. Stress, an argument you're replaying, a deadline. This is the most common one, and it gets its own section below.
- Something is still in your system. Caffeine late in the day, nicotine, or a drink close to bedtime. Alcohol is the sneaky one. It can help you fall asleep, but the National Heart, Lung, and Blood Institute notes that it tends to make sleep lighter, so you're more likely to wake up during the night.
- Your schedule drifted. A late Saturday, a long nap, a different bedtime every night. Your body clock runs on routine, and mixed signals make it harder to feel sleepy at the right time.
- Your screen came to bed with you. Light from a phone or TV can disrupt your sleep-wake cycle, and what's on the screen can wake your brain right back up.
- Your room is working against you. Too warm, too bright, or too loud. A snoring partner counts.
- You've started to dread bedtime. After a run of rough nights, the bed itself can turn into a cue for being awake and frustrated. This is the one people miss, and it's why the next two sections matter.
If you can't sleep at night and nothing on that list jumps out, keep a one-line note each morning for a week: bedtime, last caffeine, what was on your mind. Patterns are much easier to spot on paper than at 2 a.m.
What to do when you can't sleep
Here's what to do if you can't sleep tonight, in this order:
- Turn the clock around. Checking the time starts the math ("if I fall asleep right now I'll get four and a half hours"), and the math keeps you up.
- Swap "sleep" for "rest" as the goal. Lie still, let your body get heavy, breathe slowly. Resting is still useful, and taking the pressure off is often when sleep sneaks in.
- Give your breathing a pattern. Try 4-7-8 breathing: in through your nose for 4 counts, hold for 7, out through your mouth for 8. Do four rounds. Counting gives your mind something to hold besides your worries.
- Get the thoughts onto paper. Keep a notepad and pen by the bed. Two or three words per thought, then put the pen down.
- Still awake and getting annoyed? Get up. This step does the most, so it has its own section next.
What not to do: scroll, check work messages, or plan how you'll survive tomorrow on no sleep. Each one gives your brain a reason to stay on.
Lying in bed for hours? Get up and reset
If you lay in bed for hours last night and couldn't sleep, the lying there was part of the problem. The harder people try to sleep, the more frustrated and upset they get, and the harder sleep becomes. MedlinePlus, the NIH's health library, gives a simple rule: if you can't fall asleep within 30 minutes, get up, move to another room and do a quiet activity until you feel sleepy.
That rule is the core of a technique called stimulus control. Hours spent awake in bed, tossing and worrying and checking your phone, teach your brain that bed is a place for being awake. Stimulus control rebuilds the link the other way: go to bed only when you're sleepy, get out of bed when you can't sleep, and use the bed only for sleep and sex. It's one of the standard parts of cognitive behavioral therapy for insomnia (CBT-I).
How to do it in the middle of the night:
- Go by how you feel, not the clock. Wide awake and getting irritated? That's your cue.
- Go somewhere dim and a little boring. The couch with one lamp on works. The kitchen under bright overhead lights doesn't.
- Do something quiet you can put down. A paper book you've read before, folding laundry, a crossword, a few lines in a notebook. Skip anything with a cliffhanger.
- Go back only when you're sleepy. Heavy eyelids, yawning, reading the same line twice. If you're wide awake again after a while, get up again.
- Get up at your usual time tomorrow. Even after a terrible night. Sleeping in or a long afternoon nap takes the edge off tomorrow night's sleepiness, and you want that sleepiness working for you.
The first few nights can feel worse, since you're out of bed more. Give it a couple of weeks before you judge it.
When your mind won't shut off
This is the most familiar version of "I can't sleep." The lights are off, and your brain picks that moment to replay something you said at lunch. Bedtime is often the first quiet moment of the day, so anything unfinished comes back.
Arguing with the thoughts rarely works. Giving them somewhere to go does.
- Write tomorrow's to-do list before bed. Make it specific: "email Sam about the deposit at 9" beats "Sam stuff." Unfinished tasks are some of the loudest bedtime thoughts, and a short, specific list is one of the better-tested fixes. Here's the 5-minute bedtime list from sleep research and why it works.
- Do a worry dump in the early evening. Set a timer for ten minutes after dinner and write every worry down with a next step beside it. "Car's making a noise" gets "call the garage Thursday at lunch." MedlinePlus recommends writing your worries in a journal before bed for the same reason: it moves them from your head to the page.
- File the thought, don't solve it. When a worry pops up at 1 a.m., tell yourself "that's on the list" or "that's a daytime problem." You aren't fixing it tonight. You're putting it somewhere.
- Give your attention a job. A slow body scan from your toes up, or picturing a walk you know well in as much detail as you can. If your thoughts keep pulling you off, here's how to meditate when your mind won't stop thinking.
Tired but can't sleep
Being exhausted and wide awake at once is maddening, and very common. It usually comes down to the gap between tired and sleepy. Tired is drained: heavy legs, foggy head, nothing left. Sleepy is your body actually ready to drop off. After a long, stressful day you can be completely spent while your mind is still running at full speed. People call it "tired but wired."
The usual culprits:
- Going to bed early to catch up. It feels sensible after a bad night, but it means more time awake in bed. MedlinePlus suggests going to bed no more than 8 hours before you expect to start your day.
- The rescue nap. A 6 p.m. doze on the couch borrows from tonight. The NHLBI suggests avoiding naps, especially in the afternoon, so you sleep longer at night.
- The extra coffee. When you're running on empty, a third cup at 3 p.m. feels necessary. It's closer to bedtime than it seems.
- No buffer. Laptop closed at 11:15, lights off at 11:20. Give yourself 30 to 60 minutes of lower lights and calmer things first.
Fix one at a time. For the full set of daytime and bedroom habits, see these sleep hygiene tips that help you sleep better.
Can't sleep through the night
Maybe falling asleep is fine and the trouble starts at 2 or 3 a.m. You surface, and suddenly your brain is fully awake and in a bad mood. Waking for a minute isn't the problem. Staying awake is.
There's a reason the middle of the night feels so bleak. Researchers from the University of Arizona, Penn and Harvard reviewed the evidence and proposed what they call the Mind after Midnight hypothesis: when you're awake during your biological night, attention gets more biased, negative feelings run stronger, and the brain's brakes in the prefrontal cortex loosen. It's still a hypothesis. But it fits what most people notice: the 3 a.m. version of a problem is almost always worse than the 9 a.m. version.
Common triggers are an evening drink (alcohol makes sleep lighter), a warm room, early light through thin curtains, and worry. The NHLBI also suggests drinking less close to bedtime so a bathroom trip doesn't wake you.
When you wake up at 3 a.m.:
- Don't check the time or your phone. One glance at your notifications and you're fully up.
- Stay still and breathe slowly for a few minutes. Often that's enough.
- If a worry has grabbed you, write two or three words on the notepad and tell it you'll deal with it in daylight.
- If you're still awake and wound up after a while, use the same reset as above: dim room, dull activity, back to bed when sleepy.
- Get up at your normal time anyway.
If you've been waking up most nights for months, the first treatment usually recommended for long-term insomnia is CBT-I, a short program that combines stimulus control, adjusting your time in bed, relaxation and working with the thoughts that keep you up. A 2015 review of 20 trials with 1,162 adults found that after CBT-I, people spent about 26 fewer minutes awake during the night and fell asleep about 19 minutes faster than comparison groups, and the gains seemed to last. The NHLBI describes it as a 6- to 8-week plan you can do in person, by phone or online. If poor sleep has been most nights for three months or more, tell your doctor and ask about it. It's common and very treatable.
Quick answers
What can you do if you can't sleep?
Get out of bed if you've been awake for about half an hour, do something quiet in dim light, and go back once you're sleepy. Keep the clock turned away and the phone out of reach. Write down whatever is on your mind so it stops circling, and get up at your usual time tomorrow.
Why can't I sleep at night even though I'm exhausted?
Usually because your mind is still switched on. Tired and sleepy aren't the same thing, and stress, late caffeine, an evening nap or an early bedtime can leave you drained but alert. Bring the lights and activity down for an hour before bed, and lie down only once you're actually sleepy.
Is it bad to lie in bed for hours when you can't sleep?
Yes, if it happens a lot. Hours awake in bed teach your brain that bed is where you lie awake and worry. Getting up and coming back when you're sleepy rebuilds the link between bed and sleep, which is exactly what stimulus control does.
Talk it out instead of lying there
A lot of sleepless nights are really unsaid things. The conversation that ended badly. The decision you keep circling. In the dark, the same few sentences go round and round. Saying them out loud, or typing them, breaks the loop. In a brain-imaging study at UCLA, putting feelings into words dampened the response of the amygdala, a part of the brain involved in emotional reactions, to upsetting images. Once a worry is in words, it has edges. You can answer it, or decide it can wait until morning.
Talking to an AI fits the middle of the night, when nobody you know is awake. It doesn't mind hearing the same worry three times, and it asks the follow-up question that gets you unstuck. If that idea feels strange, here's whether it's weird to talk to AI about your feelings.
Moodu has a guided conversation for rough nights called Sleep Serenity. It opens with: "Rough nights lately? Tell me what bedtime usually looks like for you and we'll find a calmer routine." From there it helps you get the late-night thoughts out of your head, then look at your evenings and build a wind-down you'll actually keep. You can type, or tap the mic and talk quietly. Your words become text and the audio isn't kept.
At 2 a.m., use it the way you'd use the reset: out of bed, screen dimmed, a few minutes of getting it all out, then the phone goes down. Moodu's 4-7-8 breathing exercise runs on an on-screen timer, so you can finish with four slow rounds before you head back to bed.
Chats are encrypted before they're saved and never used for ads. Moodu is $39.99 a year after a 3-day free trial, or $4.99 a week.
Talk it through with Moodu
Moodu is a kind AI companion you can talk to any time, with mood check-ins, guides and breathing exercises.
3 days free, then $39.99 a year. Or $4.99 a week.
This article is general information, not medical advice. Moodu is an AI companion, not a therapist, and not for emergencies. If you're in crisis, call or text 988 (US) or your local emergency number.