Much of how the night goes is decided earlier, during the day and in the evening: what time you get up, whether you nap in the afternoon, when you have your last cup of coffee, and how much light you see before bed. That’s why the advice below is organized by time of day: first the sleepless night, then the morning, day, and evening that set the stage for the next one.
After a bad night, the fixes suggest themselves: go to bed earlier, stay in bed longer in the morning, take a nap during the day, so sleep gets a better chance. But more time in bed, naps included, can make falling asleep take longer, break up your sleep, and throw off the times you go to bed and get up. And after a night like that, you want to give sleep an even better chance.
Insomnia is usually set off by stressful events, and after that, it can be kept going by the habits a person relied on to make up for lost sleep. The stress passes, but the habits stay, and now they’re what keeps sleep from getting back on track. With insomnia, it’s also very common to try hard to fall asleep, and that effort only gets in the way.
The advice below is for insomnia, meaning trouble sleeping when there’s enough time for sleep and the place you sleep is safe, dark, and quiet. If too few hours are left for sleep, spending less time in bed means sleeping even less, and then the first step is to make time for sleep. You can tell the two apart with a sleep diary.
At night, when you can’t fall asleep
When you can’t fall asleep, you want to at least lie there and rest. That wish makes sense, and cognitive behavioral therapy for insomnia (CBT-I) examines it as one of the common beliefs about sleep. But after long hours of lying awake in bed, wakefulness, frustration, and worry often become linked with the bed itself. That’s why everything at night is aimed at making the bed a cue for sleep again.
This leads to the first rule: the bed is for sleep and sex and nothing else — no phone, no TV, no food. The next rule asks you to get out of bed at night, so safety comes first: if getting up at night puts you at risk of falling, or you can’t get out of bed without help, adapt the rule together with a professional.
The rule itself applies both at the start of the night and after you wake up in the middle of it. If it feels like you’ve been lying there for twenty minutes or so and sleep isn’t getting any closer, get up and go somewhere else, even just to an armchair. There, do something calming until you feel drowsy, like reading a paper book under a dim lamp. Go back to bed when you can barely keep your eyes open. If sleep still doesn’t come, get up again: you do this as many times as it takes.
You also get up when thoughts won’t let you sleep: it’s common for them to come in the first twenty minutes in bed, and the bed shouldn’t become linked with worrying and planning.
Getting out of a warm bed in the middle of the night is hard, because it feels like giving up on sleep. But it’s the struggle you’re giving up, not sleep. Getting up instead of lying there trying to sleep strengthens the link between bed and sleep.
In the middle of the night, the get-up rule is for when sleep doesn’t come back after you wake up. Waking briefly and then falling back asleep is part of an ordinary night: each night, sleep usually goes through four to six cycles of 80–100 minutes, and you may wake up briefly between them. Waking up in sudden fear with a pounding heart is covered in a separate article.
It’s best not to look at the clock at night: worrying about whether you’ll get enough sleep, and watching the clock, can worsen insomnia. That’s also why you estimate the twenty minutes rather than time them.
The get-up rule
- Lying awakeabout twenty minutesWaking upand falling back asleep
- Get upeven just to an armchair
- Something calminguntil you feel drowsy
- Go back to bedwhen you can barely keep your eyes open
Getting up strengthens the link between bed and sleep
How the next day goes doesn’t depend only on how many hours you slept. You can experience the same amount of sleep differently, depending on what you spent the night doing: after a night of studying for an exam, the day is hard and anxious, and after a late-night talk with an old friend, it’s a happy one. On top of that, anxiety about sleep can make you overestimate how much sleep you’ve lost and how much your day will suffer for it. So you can replace the nighttime thought “Without eight hours, I won’t be able to function tomorrow” with a more accurate one: “I may be sluggish tomorrow, but I’ll survive.”
At night, there’s sometimes no one to talk to: the people close to you are asleep, and it feels awkward to wake them. But if, in the sleepless hours, your thoughts get to the point of not wanting to live, or of wanting to hurt yourself, get up and call 0 800 210 160. It’s the People in Need psychological support line in Ukraine, and they answer even at 3 a.m. And once a thought has turned into a plan, call an ambulance on the emergency number of the country you’re in; in Ukraine, it’s 112.
In the morning after a bad night
The alarm clock presents a choice: sleep in, or get up as usual. Sleeping in gets you a little sleep right away. But sleep drive builds with every hour you’re awake and peaks in the evening, so getting up late leaves fewer hours before evening for it to build, and it’s harder to fall asleep. After another sleepless night, you want to sleep in again, and so it goes, morning after morning.
Sleeping in, morning after morning
- Sleep ina little sleep right awaySleepless night
- Less sleep driveit builds with every waking hour
- Hard to fall asleep
- Another sleepless nightyou want to sleep in again
Getting up late leaves fewer hours for sleep drive to build
If you get up as usual instead, the day will be harder, but by evening, sleep drive will have had time to build, and a bad night is often followed by a better one precisely because of this buildup.
On weekends, you face this choice twice. On those days, it’s better to set the alarm no more than about an hour later than on weekdays: staying up late and sleeping in late on weekends can throw off your body clock’s rhythm.
During the day
Sleepiness in the evening doesn’t come from sleep drive alone. Working alongside it is your body clock: it spreads alertness and sleepiness across the hours of the day, and light sets its time. To fall asleep easily, you need both: a strong sleep drive and night on your body clock. During the day, you can do something about both.
Sleep drive and the body clock
Falling asleep easily takes both
A nap uses up sleep drive that the night would otherwise have taken: after a nap, deep sleep that night is weaker. That’s why CBT for insomnia cuts out naps altogether, while general advice lets adults nap for no more than 20 minutes, and not late in the afternoon. When it’s hard to keep from dozing off in the afternoon, moving helps: going for a short walk, doing a chore around the house, or walking the dog.
Naps aren’t always off the table. If you feel sleepy before driving, operating machinery, or doing anything else where someone’s safety is at stake, it’s worth taking a nap.
Moving during the day also matters in its own right: too little physical activity during the day is one of the risk factors for insomnia, and it’s best to exercise at least 5–6 hours before bed. For the body clock, the main thing is light at the right time: plenty of it during the day, and little bright light in the evening. To give your body clock daylight, spend time outside every day when you can.
It’s best to leave at least 8.8 hours between a cup of coffee and sleep, and 13.2 after a serving of a pre-workout drink, because in studies of healthy adults aged 18–65, caffeine shortened sleep by 45 minutes on average. Caffeine is also in tea, caffeinated soda, and chocolate.
In the evening
If you tend to worry, sort through your worries ahead of time, so your thoughts have a chance to slow down before bed: 15–20 minutes a day, always at the same time, and at least two hours before sleep. One rule helps with sorting through worries: you can’t control the weather, but you can prepare for it. You can’t call off the rain, but you can take an umbrella, and in the same way, with each worry it becomes clear what you can do about it tomorrow and what’s out of your hands.
Alcohol before bed can make sleep lighter, and you’re more likely to wake up during the night. It takes only about two standard drinks (each containing 10 g of alcohol) for REM sleep to start later, and about three for it to get shorter; the bigger the dose, the bigger the shift. That’s the phase when you usually dream. Falling asleep, on the other hand, got faster only after about five such drinks. These findings come from healthy adults aged 18–70.
Food is simpler: it’s better to have a big dinner early, a few hours before bed, and a light snack before sleep won’t hurt. Nicotine is a stimulant, just like caffeine. And it’s better to drink less liquid before bed so you don’t wake up at night to use the bathroom.
Closer to night, light matters. When it gets dark, your body releases melatonin, which gets you ready for sleep, and its levels peak late in the evening. Light from TV and computer screens, or from an overly bright alarm clock, can disrupt this and make it hard to fall asleep. So in the evening, keep the light low: dim lamps, your phone put away, an alarm clock with a dim display.
You can fill the evening with things that calm you: reading, listening to soft music, soaking in a hot bath. When insomnia has gone on for a long time, you may notice your body tensing up right when you’re trying to fall asleep. CBT for insomnia eases this tension with a calming bedtime routine and relaxation: slow breathing (in Ukrainian), a body scan, or grounding exercises. And the bedroom should be dark, quiet, and cool, though a dim night light is fine.
The last decision of the evening is when to go to bed. The rule of thumb is the same as at night: go to bed when you’re sleepy, meaning when you can barely keep your eyes open. Being tired at the end of the day is something else: you can barely stay on your feet and still not want to sleep. If you go to bed then, you’ll have to wait for sleep in bed, and that kind of waiting is exactly what getting out of bed saves you from at night.
What a sleep diary will show
A sleep diary shows what you can’t see from a single night. It can help to keep one for a week or two before seeing a doctor. You fill it in each morning, within an hour of getting up if possible, and every number in it is your own estimate, without checking the clock.
If the table doesn’t fit on your screen, scroll it sideways.
| What to write down | What it will show |
|---|---|
| What time you get into bed and what time you turn off the light | How much time in bed passes before you even try to fall asleep |
| How long it feels like it takes you to fall asleep | Whether falling asleep itself is hard |
| How many times you wake up, and how long you’re awake after waking | Whether your sleep is broken up |
| What time you wake up for the last time and what time you get up | Whether you wake up earlier than you need to, and how long you stay in bed after that |
| Naps, coffee, alcohol, medicines, and physical activity, and when exactly | Which daytime habits line up with worse nights |
| How you feel in the morning and during the day | How your nights affect your days |
These entries add up to two numbers: how much time you spend in bed, and how much of that time you sleep. When the second is much smaller than the first, that’s the picture of insomnia, and the advice above is meant for it. But when the two numbers are almost equal and both small, you’re short on sleep because there’s no time left for it, and then lying in bed less is harmful advice.
Sleep trackers are often inaccurate, so they’re generally not recommended for people with insomnia until their accuracy has been checked against polysomnography, a sleep study done in a lab.
Shift workers who sleep during the day have their own rules that help. On shift, you need bright light, and coffee only in the first part of your shift. After a night shift, make the bedroom dark and quiet, for example, with light-blocking curtains. Make up for missed sleep with naps, and choose a schedule where shifts change as rarely as possible, so your body clock has time to adjust. If you still can’t get enough sleep during the day, talk to your doctor about other options.
What to see a doctor about
See a doctor as soon as sleep starts to affect your daily activities, and it’s worth bringing your diary. From it, the doctor will see what time you go to bed and get up on weekdays and weekends, how long it takes you to fall asleep, and how often you wake up. They’ll also ask about things that aren’t in the diary: whether you snore loudly and whether you wake up gasping for air, what health problems you have and what medicines you take, whether you’re pregnant or going through menopause, and how much caffeine, nicotine, and alcohol you use. The doctor will also listen to your heart and lungs and look for risk factors for sleep apnea, and if needed, order a sleep study or blood tests, for example, to check for thyroid problems.
Sleep problems can be linked to other conditions: heart disease, lung disease, nerve disorders, pain, depression, or anxiety. Then those conditions are treated along with the insomnia, because insomnia isn’t just a symptom of another condition. Some medicines can also disrupt sleep, such as certain cold or allergy medicines, so it’s best to ask your doctor which ones to choose.
Some signs point to a different sleep disorder, and you mention them to your doctor separately:
- In the evening, when you’re sitting or lying down, there’s an unpleasant feeling in your legs, you have a strong urge to move them, and moving brings relief. This happens with restless legs syndrome.
- At night, you snore loudly, wake up feeling like you’re choking, or someone next to you notices that you stop breathing. These are signs of sleep apnea, and it may affect 30–40% of people with insomnia.
- In the morning, it’s hard to wake up on time because you can only fall asleep late, and you work best late in the evening. This happens when your body clock is shifted later.
- During the day, you’re very sleepy: this is a reason to see a doctor and check whether, besides insomnia, you might also have another sleep disorder, such as sleep apnea.
Over-the-counter sleep products are also worth running by your doctor first. Products that contain antihistamines are sold as sleep aids, but they can be unsafe for some people, and melatonin hasn’t been proven to be an effective treatment for insomnia. Antihistamines, fast-release melatonin, and herbal remedies are not recommended for treating insomnia. Some prescription medicines are meant for short-term use and others for longer-term use. Their rare side effects can include walking, eating, or even driving while asleep, and benzodiazepines can be dangerous in combination with other medicines. In the short run, sleep medicines help less than behavioral therapy, and in the long run, they seem to help less as well.
What CBT for insomnia offers
In CBT for insomnia, you limit your time in bed together with a professional. At first, you spend only as much time in bed as you actually sleep, so sleep drive has time to build, and then that time is extended step by step. This restriction may be central to how the therapy works. The first weeks are hard: tiredness and sleepiness increase, and alertness drops.
That’s why the therapy is delayed, or adapted to the person, if:
- you have bipolar disorder: sleep restriction can trigger mania;
- your seizures aren’t under control, because some evidence suggests sleep restriction may trigger a new one;
- you’re having thoughts of suicide: the therapy is then delayed, and what to do about these thoughts tonight is covered in the section about the night;
- you’re currently dependent on alcohol or drugs;
- you’re extremely sleepy during the day;
- at night, you could easily fall, or you can’t get out of bed without help;
- you’re pregnant or postpartum;
- you have acute mental health symptoms right now, or your physical health is unstable;
- you’re in PTSD treatment that works with memories of the trauma.
So you need a professional alongside you who’s trained specifically in this therapy and makes sure the restriction does no harm. Together with them, you work out a plan that fits your sleep, because for most people with chronic insomnia, changing habits alone isn’t enough. Chronic insomnia is when, at least three nights a week for three months, it’s hard to fall asleep or stay asleep, and your days suffer for it, even though you have both the time and the right conditions for sleep. In that case, CBT for insomnia is the first-line treatment for adults of any age, including those with other health conditions, either in person or digitally.
The therapy requires considerable changes in your habits and lasts 6–8 weeks: usually 4–8 sessions with a trained professional, and its shortened versions take 1–4 sessions. You can do it in person, online, or even through an app.
In the studies where the therapy was given face-to-face and compared with no active treatment, the participants were adults without other health conditions, mostly women, 56 years old on average. Compared with people who didn’t have the therapy, those who did fell asleep 19 minutes faster on average and lay awake 26 minutes less after waking up at night, and these changes seemed to last later on too, though the estimates for that period are less certain. Total sleep time grew by only a few minutes, and even that difference hasn’t been proven. The share of time in bed that people spent asleep rose by almost 10 percentage points, which means each hour in bed gave about six more minutes of sleep.
