Can't fall asleep after waking up in the middle of the night
If you can't fall asleep after waking up in the middle of the night, do this: keep the lights off, don't check the time, and slow your breathing for a few minutes. If you are still wide awake after about 20 minutes, get out of bed, sit in dim light and do something dull until you feel sleepy, then go back. That, plus a steady wake time in the day, is what treatment for insomnia is built on.
Not sure how long you really lie awake? Our free 2-minute sleep quiz estimates it and gives you a starting sleep window. Below: why you can't get back to sleep, a step-by-step order for the night itself, what to do by cause, and how to stop it happening.
Why waking in the night turns into being awake
Waking briefly in the night is normal. Sleep comes in cycles of about 90 minutes, and you surface between them. Most of the time you drift straight back down and forget it. You stay awake when something keeps your alert system switched on. Usually it is one of these:
- Worry or a busy mind. The night is quiet, nothing distracts you, and the brain picks up the day's loose ends.
- Clock-watching. Seeing 3:20 starts the sum of hours left, which raises your heart rate.
- Trying to sleep. Sleep is something that happens when you stop trying. Effort is alert.
- Too much time in bed. If you spend more hours in bed than you can sleep, the surplus shows up as awake time, often in the middle of the night.
- A body trigger. Heat, thirst, a full bladder, alcohol wearing off, hunger or pain.
- Learned wakefulness. After weeks of lying awake in bed, the bed itself becomes a cue for being awake. This is the habit that behavioural treatment targets.
The point: the wake-up isn't the problem. How you respond in the next 20 minutes is.
What to do, in order
Minute 0 to 5: stay calm and low
- Don't look at the time. Turn the clock away tonight so you can't.
- Keep the room dark. If you need the bathroom, use a dim night light and keep your eyes half closed.
- Breathe out longer than in. In for 4, out for 6 to 8, ten rounds. Let your shoulders and jaw drop on each out-breath.
- Tell yourself the truth: "Resting in the dark is still rest. I don't need to sleep right now." Dropping the demand takes the pressure off.
Minute 5 to 20: give your mind a dull job
- A cognitive shuffle: pick a word like "garden", then think of a word for each letter (g: goat, gold, grape...), picturing each one for a moment.
- A slow body scan from your toes to your scalp, relaxing each part.
- If worry is the loud thing, write one line on a notepad you keep by the bed and say "handled until morning".
After about 20 minutes: get up
If you are still wide awake, or getting more wound up, leave the bedroom. Sit in a chair in dim light. Read a dull paper book, fold laundry, or listen to quiet audio. No phone, no news, no bright kitchen light, no email. Go back to bed only when your eyes feel heavy. If you're awake again 20 minutes later, repeat. This is the rule from stimulus control therapy, and it works by re-teaching your brain that bed means sleep.
You don't need to time it precisely. The feel test: if you're calm and drifting, stay. If you're frustrated, hot or alert, get up.
What to do by cause
| When you wake... | Try |
|---|---|
| With a busy mind or a list of worries | Cognitive shuffle, notepad, then get up if it lasts. Daytime: a 10-minute worry time at 6 p.m. See waking at night with anxiety |
| Hot, sweaty or kicking off the covers | Cool the room to about 65 to 68°F, a fan, lighter layers, a change of pyjamas kept by the bed. See night sweats and can't sleep |
| Hungry or shaky | A small snack (a banana, a slice of toast with peanut butter), and look at dinner timing. See waking up at night hungry |
| After an evening of drinking | Water, no more alcohol, and expect the second half of the night to be rough. See why you wake at 3 a.m. after drinking |
| Needing the toilet | Go, in dim light, and straight back. Fewer fluids in the last 2 hours |
| At the same time every night | It may be a learned pattern. See waking at the same time every night |
| Gasping, choking or short of breath | Don't treat it as insomnia. See waking up choking and talk to a doctor |
Things that make it worse
- Phone in bed. The light is only part of it. News, messages and videos wake your attention. See screens before bed.
- Lying there "trying". More than 20 to 30 minutes of effort teaches the bed to mean struggle.
- A big meal or sugar at 3 a.m. It keeps the night's awake habit going.
- Sleeping in or napping the next day to catch up. It lowers the sleep pressure that makes the next night's sleep deep. Keep your wake time, and if you nap, make it under 20 to 30 minutes before mid-afternoon.
- More alcohol "to help". It makes you drowsy but breaks up the second half of the night.
- A sleeping pill or melatonin at 3 a.m. It's too late to work, and you risk a groggy morning. Talk to a doctor or pharmacist about medicines, and see melatonin stopped working.
Stopping it: what to change in the day
- One wake time, every day. Within about an hour, weekends included. This builds sleep pressure and sets your clock.
- Morning light. 10 to 30 minutes outdoors in the first hour after waking.
- Caffeine before noon, or at least 8 hours before bed.
- A wind-down. 30 to 60 minutes with dim lights and no work. See a bedtime routine for adults.
- A worry time earlier in the evening. Ten minutes, on paper, writing the problem and the next step.
- Match time in bed to your sleep. If you are in bed 8.5 hours but asleep 6.5, go to bed 15 to 30 minutes later (keep the wake time) for a week. Our guide to sleep restriction for insomnia covers how, and the limits. Don't cut below 5.5 hours in bed alone.
- Only sleep and sex in bed. Take the laptop, the worrying and the TV out.
A 2-week plan
| Days | What to do |
|---|---|
| 1 to 3 | Log: bedtime, rough number of times you wake, rough minutes awake, wake time, how you feel at 10 a.m. (1 to 5). Change nothing. |
| 4 to 7 | Fixed wake time. Morning light. Caffeine before noon. Clock turned away. Notepad by the bed. Use the 20-minute rule every time. |
| 8 to 10 | Add a 30-minute wind-down and a worry time. Cool the bedroom. |
| 11 to 14 | If you still spend 30+ minutes awake on most nights, trim time in bed by 15 minutes. Compare with days 1 to 3. |
A few nights will still be bad. Judge it by the week: are the awake minutes shrinking? If they aren't, the free sleep quiz can set a more exact window for you.
When to see a doctor
Talk to a doctor if you've struggled to go back to sleep three nights a week or more for over a month, or sooner if you notice:
- Loud snoring, gasping or choking at night, or a partner noticing pauses in your breathing.
- Low mood, loss of interest, or hopelessness.
- Pain, heartburn, a racing heart or breathlessness that wakes you.
- Strong urges to move your legs.
- Heavy daytime sleepiness, or nearly falling asleep while driving. Don't drive when drowsy.
CBT for insomnia is the recommended first treatment for long-lasting insomnia in guidelines from the American College of Physicians and the American Academy of Sleep Medicine.
Frequently asked questions
How long should I lie awake before getting up?
About 20 minutes is the usual guidance, but it's a guide. If you're frustrated or more awake, get up sooner. If you're calm and drowsy, stay.
Is it bad to wake up in the middle of the night?
No. Brief waking is normal. It matters when you are awake for long stretches most nights and tired in the day.
What should I do if I wake at 3 a.m. and can't sleep?
Follow the same steps: no clock, slow breathing, a dull mental task, and up after 20 minutes. We cover the time in waking up at 3 a.m. and waking up at 2 a.m.
Should I stay in bed with my eyes closed or get up?
Stay for the first 15 to 20 minutes if you're calm. If your mind is racing or you're frustrated, get up.
Can I use my phone to fall back asleep?
It's better not to. Screens add light and content that keep the brain engaged. Use audio at low volume, or a paper book, if you need something.
Will this stop on its own?
Sometimes, if it was triggered by a short-lived stress. If it has lasted weeks, a routine change usually helps faster than waiting.
Start tonight
Put a notepad by the bed, turn the clock to the wall, and decide on tomorrow's wake time. If you wake, breathe, shuffle words, and get up after 20 minutes if you're still wide awake. For a plan matched to your own sleep, take the free sleep quiz. More on all sleep guides.
Sources: Edinger JD et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an AASM clinical practice guideline. Journal of Clinical Sleep Medicine, 2021. Qaseem A et al. Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Annals of Internal Medicine, 2016. Bootzin RR. Stimulus control treatment for insomnia. Proceedings of the American Psychological Association, 1972. American Academy of Sleep Medicine, Sleep Education: insomnia (sleepeducation.org).