If you can't get back to sleep at 3am, the most useful things to do are also the least dramatic: leave the clock alone, keep the light low, give your mind something easy to follow, and get up for a while if you're getting more awake instead of less. Waking in the night is a normal part of sleep. What turns it into an hour of lying there is usually what happens in the first few minutes afterwards.

This guide is for that moment in the dark: a sequence for the first 20 minutes, when to get up, a quick "if this, try that" table, and the signs worth taking to a doctor.

  • Brief awakenings between sleep cycles are normal, and they become more common with age.
  • Checking the clock tends to make you more worried and slower to fall asleep.
  • If you're still awake after about 20 minutes, or getting more alert, get up and do something quiet in dim light until you feel sleepy.
  • See a doctor if night waking lasts for months, affects your days, or comes with gasping, loud snoring or low mood.

Why do I wake up at 3am?

Most people wake up briefly several times a night, and 3am falls in the second half of the night, when there's less deep sleep. You move through cycles of non-REM and REM sleep about every 80 to 100 minutes, usually four to six times a night, and you may wake briefly between cycles. Deep sleep is concentrated early in the night, while later cycles have more REM sleep (NHLBI). By the small hours, a noise, a full bladder or a passing thought is more likely to wake you fully.

Brief arousals are a built-in part of sleep. In a sleep-lab study of 76 healthy adults aged 18 to 70, all screened for sleep apnea, the researchers described them as "an integral component of the sleep process" and found they became more frequent with age (Bonnet & Arand, 2007). A large review of 65 studies found that time awake after first falling asleep also tends to increase through adulthood (Ohayon et al., 2004).

Other common triggers for waking up in the middle of the night include stress, noise, a room that's too hot or cold, an uncomfortable bed, and alcohol, caffeine or nicotine (NHS). If your mood drops sharply at that hour, that has its own explanation, which we cover in why everything feels worse at 2 a.m.

What to do when you can't get back to sleep at 3am: the first 20 minutes

Follow these steps in order, without thinking too hard about them.

  1. Don't check the time. Turn the clock to face the wall before bed if you need to. In one study, people told to watch a clock while trying to sleep worried more and took longer to fall asleep than people who didn't, and this held for good and poor sleepers alike. In a second experiment with 38 people with insomnia, clock-watchers also overestimated how long it took them to fall asleep (Tang, Schmidt & Harvey, 2007).
  2. Keep the light low and the phone down. If you need the bathroom, use the dimmest light that lets you walk safely. A phone screen brings light and something new to read, and both make it easier to wake up properly.
  3. Settle your body. Shift into a comfortable position, loosen your jaw and shoulders, and let your breathing slow down on its own. The aim is to get comfortable and let sleep take care of itself.
  4. Park any worry that turns up. If a thought keeps circling, write two or three words on a notepad by the bed and add "tomorrow." This is the night-time half of worry postponement.
  5. Give your mind something calm to follow. A detailed, low-stakes scene works better than trying to empty your head: walk slowly through a house you know, or picture a place in close detail. Our guide on how to stop racing thoughts at night has more ideas.
  6. Notice which way you're heading. After a while, ask yourself one question: am I getting drowsier, or more awake? If you're drifting, stay where you are. If you're getting more alert, frustrated or wide-eyed, it's time to get up.

Throughout, go easy on yourself: effort to fall asleep is one of the things that keeps people awake, as we explain in why trying harder to sleep keeps you awake.

When should you get out of bed if you can't sleep?

Get up when you've been awake for about 20 minutes or you notice you're getting more alert, whichever comes first. The American Academy of Sleep Medicine's advice is that if you don't fall asleep after 20 minutes, you get out of bed and do a quiet activity without much light, and in particular stay off electronics (AASM, Sleep Education). Judge the 20 minutes by feel, since looking at the clock to check defeats step 1.

This comes from stimulus control, a technique the AASM's clinical guideline suggests for chronic insomnia in adults (Edinger et al., 2021). The idea is to keep your bed linked with sleep, so it doesn't become the place where you lie awake and frustrated every night.

What should you do in the other room?

Do something quiet, dull and pleasant in dim light, and go back to bed when you feel sleepy again. Some options that work for a lot of people:

  • Read a paper book or magazine you've read before, under a small lamp.
  • Fold laundry, sort a drawer or do a jigsaw puzzle.
  • Listen to a calm audiobook, podcast or sleep story at low volume, with the screen off.
  • Sit with a warm caffeine-free drink.

Avoid email, news, social media and anything you'd struggle to stop, including work you've been putting off. If you go back to bed and find yourself wide awake again, repeat the process; on a hard night that can take a few rounds.

If this is happening, try this

If this is happening Try this
You woke up and feel fairly drowsy Stay in bed, eyes closed, and don't check the time
You're replaying a worry or a to-do item Write a few words on a bedside notepad, then picture a calm scene
You've been awake about 20 minutes, or you're getting more alert Get up, go somewhere dim and do something quiet until you feel sleepy
You keep calculating how many hours are left Turn the clock away, and leave the phone in another room tomorrow night
Everything suddenly feels hopeless or huge Remind yourself this is the middle of the night talking, and decide nothing until morning
It happens most nights, for weeks Keep notes for two weeks and talk to a doctor

Where Nightjar fits. Nightjar is a sleep stories app for iPhone. You write down what's keeping you up in a private note that stays sealed until morning, and an original sleep story with a near-black screen gives your mind something calm to follow.

When should you talk to a doctor about waking up at night?

Talk to a doctor if night waking has gone on for months, if changing your habits hasn't helped, or if it's making it hard to cope with daily life (NHS). For chronic insomnia, the AASM strongly recommends cognitive behavioral therapy for insomnia (CBT-I), a structured program guided by a clinician (Edinger et al., 2021).

Some patterns are worth mentioning to a doctor sooner:

  • Loud snoring, gasping or choking. Breathing that stops and starts, gasping or choking noises in sleep, waking up a lot and feeling very tired during the day can be signs of sleep apnea. If someone has noticed these while you sleep, bring them along to the appointment (NHS).
  • Waking very early with low mood. Waking up very early in the morning is listed among the symptoms of depression, especially when it comes with low mood or loss of interest that lasts for weeks (NHS).
  • Pain, frequent trips to the bathroom, restless legs or hot flashes that keep waking you. These have causes a doctor can look into.

If you're thinking about harming yourself, at night or any time, reach out now. In the US you can call or text 988. Elsewhere, contact your local emergency number or a crisis line.

Frequently asked questions

Why do I wake up at 3am every night?

Brief wakings between sleep cycles are normal, and the second half of the night has less deep sleep, so that's when they're most likely to turn into being properly awake. Stress, alcohol, a warm room or needing the bathroom can turn a brief waking into a full one. If it happens most nights for weeks and you feel tired during the day, talk to a doctor.

How do I fall back asleep after waking up?

Keep the light low, don't check the time, and give your mind a calm, detailed scene to follow instead of trying to force sleep. If you're still awake after about 20 minutes, or getting more alert, get up and do something quiet in dim light until you feel sleepy, then go back to bed.

Should I stay in bed and rest if I can't sleep?

If you feel drowsy and comfortable, staying put is fine. If you're getting more awake or frustrated, it's better to get up for a while, because lying awake in bed night after night can teach your brain to link the bed with being awake.

Nightjar is a relaxation aid, not medical care. If sleep problems last for weeks or affect your days, talk to a doctor.