Sleep hygiene

8 min read. Updated .

Sleep hygiene is the name for the everyday habits and surroundings that make sleep a little easier or a little harder. Caffeine, alcohol, light, exercise, food, the last hour before bed, the bedroom. Most people with insomnia have heard this advice before, and many have already tried all of it.

To print. The sleep hygiene handout puts the everyday habits on a single printable sheet, free, in English and Spanish.

What hygiene can and can’t do

On its own, sleep hygiene isn’t a treatment for chronic insomnia. The American Academy of Sleep Medicine recommends against using it by itself for chronic insomnia, and reviews of the research find it does much less than CBT-I.

If you’ve cleaned up every habit and still lie awake, that doesn’t mean you did it wrong. Insomnia that has lasted a while is usually kept going by other things, like too much time in bed, a bed that has become linked with being awake, and worry about sleep. Those are what the sleep window, the stimulus control rules, and “Quiet a busy mind” work on.

Hygiene still matters. Some habits do make sleep lighter, later, or more broken, and they can work against the rest of what you’re doing. An afternoon coffee can make the first weeks of the sleep window harder than they need to be. Bright light late at night can keep nudging your body clock later. Sorting these out keeps them from working against the rest of the plan.

Caffeine

Caffeine left in the body over a day from one cup at 8 a.m. and one at 3 p.m., with a 5-hour half-life. At an 11 p.m. bedtime about 12 percent of the morning cup is left and about a third of the afternoon cup.bedtime50%100%about a third leftabout 12% lefta cup at 8 a.m.a cup at 3 p.m.6 a.m.10 p.m.10 a.m.2 p.m.6 p.m.
Caffeine left in the body from one cup, with a 5-hour half-life as the example. Between people the half-life runs from about 2.5 to 10 hours, the shaded range.

Caffeine works by blocking adenosine, one of the chemicals behind sleep drive. Sleep drive still builds, but its signal gets muffled. When the caffeine wears off, the sleepiness comes back.

It wears off slowly. Caffeine’s half-life, the time it takes the body to clear half of it, is usually between two and a half and five hours in healthy adults, and close to ten in some people. It runs much longer late in pregnancy and in people taking birth control pills, and shorter in people who smoke. A third or more of a mid-afternoon coffee can still be in your system at bedtime.

In one small study of healthy sleepers, a large dose of caffeine, about what’s in four ordinary cups of coffee, taken six hours before bed still cut sleep by more than an hour as measured by a home sleep monitor. By their own reports, people hardly noticed.

Even when it doesn’t keep you from falling asleep, caffeine tends to make sleep shorter and lighter, with less deep sleep.

A 2023 review of 24 studies suggested leaving at least eight to nine hours between a regular cup of coffee and bed, and longer for strong drinks like pre-workout supplements. For someone who goes to bed at 11, that means the last regular cup by about 2 in the afternoon. Older adults may be more sensitive.

Caffeine turns up in coffee, tea, cola and many other sodas, energy drinks, pre-workout powders, chocolate, and some pain relievers and cold medicines. Decaf still has a little. If you cut back, do it over a week or two, since stopping all at once can bring a few days of headaches and tiredness.

Alcohol

A drink in the evening can make it easier to fall asleep, which is why so many people use it that way. The trouble comes later. As the body clears alcohol, sleep in the second half of the night gets lighter and more broken. Alcohol also delays and cuts back REM sleep, and it relaxes the muscles of the throat, which can make snoring and sleep apnea worse.

Several hours between the last drink and bed helps. A nightly drink to fall asleep tends to stop working as well over time, and alcohol combined with sleep medicine is dangerous. If you’ve come to rely on a drink to sleep, that’s worth raising with a doctor.

Nicotine

Nicotine is a stimulant. Smoking or vaping near bedtime can make it harder to fall asleep, and people who smoke tend to sleep more lightly. Cravings can wake people in the night as nicotine levels fall. Quitting can disturb sleep for a few weeks, which is a normal part of withdrawal and usually passes. If you’re quitting, a doctor or pharmacist can help you plan around it.

Exercise

In studies, regular physical activity, even a daily walk, goes along with better sleep, and it’s good for mood and health in its own right.

Many people worry that exercising in the evening will keep them up. A review of studies in healthy adults found that evening exercise generally didn’t harm sleep, and if anything deepened it a little. The exception was hard exercise ending within about an hour of bedtime, which made sleep harder to reach for some people.

So exercise when it fits your day. If evening workouts seem to keep you up, try moving them earlier and see what changes.

Light and screens

Bright light in the morning moves the body clock earlier, and bright light late at night pushes it later. In short, get daylight early, keep lights dim and warm in the last hour or two before bed, and sleep in a dark room. “Your body clock,” in Learn, explains why.

Screens get a lot of blame. In one small lab study, people who read on a tablet for four hours before bed, five nights in a row, took longer to fall asleep, released melatonin later, and were less alert the next morning than when they read printed books. Everyday use is usually less extreme, and turning the brightness down is an easy step. Night-mode color settings have less evidence behind them.

Often the bigger problem is what’s on the screen. Messages, the news, doomscrolling, work email, exciting games, and shows built to keep you watching all hold attention when the mind is meant to be slowing down.

If you use a screen in the evening, choose something easy to stop, put it away for the last hour if you can, and charge the phone outside the bedroom, with a plain alarm clock, turned away, by the bed.

The last hour

Your body can’t switch from busy to asleep all at once. A wind-down routine fills the last 30 to 60 minutes before bed with the same few calm steps, in the same order, on most nights. Do it out of bed, and go to bed when you’re sleepy, not just because the routine is over. In time the routine itself becomes a cue that sleep is coming.

What goes in it is up to you. A small cup of caffeine-free herbal tea, gentle stretching, reading on paper, a breathing or relaxation exercise, or a few lines in a gratitude journal all fit.

Gratitude has some research behind it. In one survey, people who tend to feel grateful reported sleeping better, and went to bed with more pleasant, less negative thoughts. In a review of randomized trials, gratitude exercises improved how people rated their sleep in five of eight studies, though most of the studies had weaknesses. In the app, the gratitude journal and three good things are both in “Quiet a busy mind.” You can also use the gratitude journal and three good things here on the site.

A warm bath or shower an hour or two before bed can help too, and “Your body clock” explains why.

Some things are better kept out of the last hour. Working through problems belongs earlier, in worry time, and so does a hard conversation. Jotting down tomorrow’s list to get it off your mind is fine. Anything bright, exciting, or hard to put down can wait until morning.

In the app, “Wind-down routine,” in “Quiet a busy mind,” lets you build your own and set a reminder for it. On paper, there’s a wind-down routine worksheet.

Food and drink

A large or spicy meal close to bedtime can bring on heartburn and make it harder to get comfortable, and digesting a big meal keeps the body busy when it’s meant to be winding down. Guidelines for reflux suggest finishing meals two to three hours before bedtime, and that’s a sensible gap for most people.

Going to bed hungry can keep you up too, so a light snack is fine if you need one. Drinking a lot in the evening means more trips to the bathroom, so it helps to get most of your fluids earlier in the day.

Naps

Naps spend sleep drive you’d otherwise carry into the night. For someone who sleeps well, a short nap is usually harmless. During CBT-I, most programs ask you to skip them, since the aim is to build drive for the night.

If you need one to stay safe, for example before driving, keep it to 20 or 30 minutes and take it before mid-afternoon. Dozing in front of the TV in the evening counts as a nap too.

The bedroom

A bedroom that’s cool, dark, and quiet suits most people.

Partners, children, and pets affect sleep too. Some couples sleep better with separate blankets, and some people find a pet is better off outside the bedroom for a while.

After a bad night

After a rough night, it’s tempting to make the next day about sleep. Canceling plans, resting all day, napping, and going to bed early to catch up all make sense in the moment, and each tends to make the next night harder. Naps spend sleep drive, a day of resting tends to slide into dozing, and an early bedtime adds time lying awake.

Your usual wake time, your usual day, and your usual bedtime, as far as you can safely manage, give the next night its best chance. Sleep drive will be higher, and the next night’s sleep tends to run deeper, as “Why we sleep” explains. If you’re too sleepy to drive or work safely, safety comes first.

Your own patterns

Habits affect people differently. One person can drink coffee at 4 in the afternoon and sleep fine, while another feels a cup at noon.

The diary’s “About yesterday” section asks about things like naps, caffeine, alcohol, exercise, screens, daylight, and stress, and you can choose more in the diary. After a few weeks, “More detail,” in “Week by week,” shows what tends to come before your longer and shorter nights. A pattern like that is a starting point for trying a change. It doesn’t prove what’s causing what.

References

Helpful links


Everyday Insight’s tools are for education and personal reflection. They are not therapy or medical care, and they are not for emergencies. In an emergency, call 911. If you are in crisis in the United States, call or text 988.

Next readCalming the body What arousal does to sleep, what breathing, muscle relaxation, and meditation exercises ask of you, and what studies have found.