Guide

Sleep

The single most important thing to get right in life, and the hardest to stay consistent about. Why you should care far more than you do, then everything you need to start fixing it tonight.

I was seventeen, at the best computer science school in the world, and getting almost no sleep. Five hours a night. The rest went on stressing about homework and watching YouTube in bed until 4am. By my fourth semester the spiral had bottomed out: a 2.5 GPA and a failed course.

The next semester I had a homework due in nine hours that I hadn't started, and for once I went to sleep instead. I woke up, read the notes, and finished in an afternoon what took my smarter friends two days. So I kept sleeping. That semester was the hardest course load I had picked yet, and it ended with a perfect 4.0. The full story is its own essay.

I have spent the years since trying to understand why one night of sleep did that. YouTube first, then a therapist, then a Fitbit and a lot of trial and error, and finally the research papers and Matthew Walker's Why We Sleep, which is where most of the first half of this page comes from. This is the shortest version of what I found. First why sleep matters far more than you think, then exactly what to do about it.

Why it matters more than you think

You know sleep is important. You have been told that your whole life, along with eating well and exercising. What nobody tells you is how much. Schools skip it entirely, and the internet is so full of noise that decades of research done at places like Harvard Medical School never reach the people it would help.

Sleep is the single most important thing to get right in life. That sounds like an exaggeration. It isn't. More than a third of adults in developed countries get less than the seven to nine hours they need. For years scientists asked why the body needs sleep at all. Now they ask whether there is anything in the body that sleep doesn't touch.

Sleeping under six hours a night weakens your immune system enough to substantially raise your risk of several cancers. It is a key factor in Alzheimer's and dementia. One week of moderately short sleep can push your blood sugar into the pre-diabetic range. Short sleep clogs and stiffens your coronary arteries, which is the road to heart disease, stroke, and heart failure. And it feeds every major psychiatric condition there is: depression, anxiety, suicidality.

These stack. The shorter your sleep, the shorter your life, and the worse the years you do get. The idea that running on little sleep shows dedication has it exactly backwards. The CDC calls insufficient sleep a public health epidemic. The countries losing the most sleep are the ones with the fastest-rising rates of physical disease and mental illness, and sleep scientists now argue that doctors should prescribe sleep, as prevention and as cure. Not sleeping pills. Avoid those.

Two facts show how far this goes. There is a rare disease in which the patient stops sleeping, loses basic brain and body function, and dies within a year. And drowsy driving causes hundreds of thousands of crashes a year. In the US, someone dies every hour from a fatigue-related mistake at the wheel.

From an evolutionary standpoint sleep looks like a terrible idea. Asleep, you cannot gather food, socialize, or reproduce. You cannot protect your kids. You are open to predators. Every pressure should have selected against it. Yet every animal species ever studied sleeps. Sleep arrived with life itself, or very soon after, and it survived because whatever it does is worth more than all of those risks combined.

And not being sleep-deprived is not the same as sleeping well, the way not being obese is not the same as being fit. Good sleep buys you a longer life, a better memory, and more creativity. It makes you look better, keeps your weight down, cuts your cravings, protects against cancer and dementia, fends off colds and flu, lowers your risk of heart attack, stroke, and diabetes, and steadies your mood. No single stage of sleep does all of that. Deep sleep, REM, and light sleep each do a different job at a different point in the night, which is why cutting the night short costs you more than the hours you skipped.

What sleep does to learning

When you learn something new it lands in the hippocampus, which works like the RAM in a computer: fast, temporary, and small. When it fills up, you stop being able to take in anything new. During sleep those memories get moved to the cortex, where they become effectively permanent, and the hippocampus is wiped clean for the next day.

That gives you two rules. Sleep before a day of learning empties the RAM so new material has somewhere to land. Sleep after learning writes it to disk. There is a hard cap on how much you can absorb between two sleeps, so an all-nighter of cramming buys you nothing over a normal evening of study and a full night.

Even a one-hour nap improves learning capacity by about 20% over staying awake. Sleep spindles, short bursts of brain activity during sleep, predict how well you'll recall what you learned, and they cluster in the late-morning stretch of sleep. Those are exactly the hours an alarm cuts off. If you wake to an alarm every day, you are throwing away the last step of learning, every day.

Sleep before an exam is one of the strongest predictors of the grade. NBA teams hire sleep consultants because no amount of training pays off without it. The same holds for school, for work, and for being a person other people want to be around.

If you want the citations, I compiled fifteen research-backed claims on sleep with their sources.

The single most effective change you can make is this: set an alarm to go to bed, and stop setting one to wake up. Add a one-to-two-hour wind-down before that alarm, read a book instead of a screen, and go to bed at the same time every day. That alone does more than everything below combined. Everything below is how you make it stick.

Setup: the one-time things

One-time purchases and fixes that pay back for years. This is the easy part.

  • Blackout blinds and an eye mask. A dark room really is that important.
  • Quiet, before and during sleep. Sleep earbuds if you can stand them, sticky foam strips to seal the windows and doors, or best of all an apartment that is quiet to begin with.
  • Cool: 62 to 70°F, 17 to 22°C. Outside that range, sleep quality drops in both directions.
  • A good mattress. They look expensive. The value over the years is not in question. I use a DreamCloud, about $1,000. The general rule is firm with good springs and a soft, memory-foam-ish top layer to take the stress off your joints.
  • A good pillow, for the same reason: comfort now, no neck pain later.
  • Optional: a sleep tracker. A Fitbit, an Apple Watch, a Whoop, an Oura, whichever you'll actually wear. It is not there for the accuracy. Wrist trackers are decent at total sleep and rough at the stages. It is there because a number you see every morning is a number you can't push aside. Sleep is the easiest habit in the world to forget about, and a tracker is what turned mine from a good intention into something I could trial and error on.

Habits: the every-day things

This is the hard part, because it is about building habits and keeping them. Failing at these without knowing why is demoralizing, so read Atomic Habits first and use its tricks to fit them into your day.

  • Sleep at the same time every day, say 10:30pm. Not a minute before, however tired you are, and not a minute after. Soon you'll be falling asleep on your own. The ideal window is somewhere between 11pm and 1am, but the window matters far less than the consistency. If your time is 3am, sleep at 3am every day.
  • Have a night routine. No screens and no conversations for 60 to 120 minutes before bed, and quiet if you can manage it. You'll feel a spike of energy about an hour before your natural bedtime. Ignore it and trust the routine.
  • Never be in your bedroom, and especially not in your bed, for anything but sleep. Not even to lie there trying to sleep.
  • Wake up without an alarm, and get out of bed the moment you do. Your body knows how much sleep it needs. Give it room: if you have to be up at 7:30am, be in bed by 10:30pm so it can take up to nine hours, more if you trained that day. You can cut it closer once your body has settled into its own schedule in a proper sleep environment, which means only after the habits above are solid.
  • At least 7 to 8 hours. For most people that means at least 8, and if you lift regularly, 8 to 10.
  • No caffeine. No tea, no coffee, except to reset jet lag. If you must, take it at least an hour after waking and twelve hours before bed.
  • Exercise in the morning. Any exercise improves mood and sleep, even a ten-minute walk. For your health and your sleep there are three separate buckets, and each needs filling on its own:
    • 150 minutes of brisk walking, or 90 minutes of intense cardio, per week.
    • Weight lifting: at least one progressive exercise per muscle group, at least two hours in the gym a week, three counting warm-up and cool-down, which also matter.
    • 10,000 steps a day. Activity level is its own standard and the two above don't cover it. 10,000 is the floor. 20,000 is better.
  • Morning sunlight: 10 to 30 minutes of direct daylight, not through a window, within the first hour of waking. It sets your body clock. Waking before sunrise is a bad idea for the same reason.
  • Don't lie in bed awake for more than 20 minutes. If you're still awake after 20 minutes, get up and read a book for 20 minutes in dim yellow light, then try again. Repeat until you're asleep. Lying there trying only pushes your sleep later.
  • Evening sunlight helps too. After sunset, avoid white light: yellow bulbs at home, blue-light filters on every screen, dark mode everywhere.
  • Meditate, ideally right before bed. Even three minutes helps. I do fifteen, for the meditation itself and for what it does to the sleep that follows.
  • Set aside an hour a day for unstructured thought. This is the item everyone skips, and the one I now think matters most. Your brain has a backlog of things it wants to think through: half-made decisions, conversations it hasn't digested, plans it got interrupted out of. If you don't give it an hour during the day, it takes that hour the moment your head hits the pillow. That is what the 3am racing head is. The same hour is how you step back from the chaos and look at your life, which is what stops you spiralling down whatever hole you're in. It multitasks fine: a commute, cleaning, a shower, a walk. The only rules are no input and no set topic. No music, no podcast, no problem you're trying to solve. Let the thoughts roam. It is the opposite of meditation: you aren't reining anything in, you're doing what you'd do in the shower anyway if the music were off. I wrote a whole essay on this one: Your brain has a backlog. Read it if you take nothing else from this page.
  • Nothing to eat for at least three hours before bed. Food starts your digestive system up, and that hurts your digestion and your sleep both.

An example routine

For someone who needs nine hours, a good day looks something like this.

  • Before 7:30am: wake up before your alarm, not from it.
  • 7:30am: freshen up, small bite to eat.
  • 8:00am: commute to the gym, getting 20 to 30 minutes of sunlight on the way, and using the time for unstructured thought.
  • 8:30 to 10:00am: train.
  • 10:00am: commute back, another 30 minutes to finish the day's unstructured thinking.
  • 10:30am: breakfast and shower.
  • 11am to 6pm: work, away from your bedroom.
  • 6pm: dinner, then a few hours with friends and hobbies. Creative or problem-solving hobbies are a bonus: drawing, video games, board games. For your brain and your sleep both, spend at least a few evenings a week with friends or making new ones. They don't have to share your hobbies. You can find people to draw with too.
  • 9pm: brush, floss, wash your face.
  • 9:15pm: read a book for an hour, in a relaxed way.
  • 10:15pm: meditate for fifteen minutes on your breath.
  • 10:30pm: bed. If you've done everything above, you fall asleep almost at once.
  • 10:30pm to 7:30am: nine hours. I need all of them, especially on training days.

Two things I'd add now

  • Total noise under 40 dB. If earbuds are uncomfortable, quiet pink noise in the room does the same job of masking the sounds that would otherwise wake you.
  • Ventilation. A closed bedroom fills with CO₂ overnight, and sleep quality drops with it. Crack a window or a door, or run a fan that pulls air in from outside.

There are more factors, and it can take years to dial them all in. Start honest: write down how you sleep now, pick the one habit above you're worst at, and fix only that one this month. The returns compound from there.

Keep going Your brain has a backlog · Why the best schools taught me to forget · What I eat