This detailed self-help article is humbly offered to people suffering from severe insomnia, in the hopes that my expertise and personal experience can be of some use to you. Before you place your hopes in any of my recommendations, however, please ensure that there is no medical cause for your insomnia first. That said, many severe cases of insomnia are basically bad habits, and will respond to behavioural conditioning123 — and even if there is a medical cause for your insomnia, behavioural conditioning may still be your best defense.
I slept poorly from the age of twelve on, and I suffered through three major episodes of extreme insomnia as an adult. In 2005, I feel as though I nearly died from insomnia so savage that I slept as little as an hour a night for days at a time, over a period of many months. I was basically immune to pharmaceutical sleep aids that could have put a horse in a coma, and I had given every imaginable popular remedy a fair try.
If you have insomnia, you know all too well that people like to suggest insomnia cures even more than they like cold and flu remedies! I certainly believed that I had “tried everything.”
Fortunately, I hadn’t actually tried everything.
It’s amazing how much I was willing to suffer before I really took the challenge seriously. After a long struggle and an exhaustive personal investigation into the science of sleep and insomnia, I finally treated myself successfully. It was quite challenging, and my sleep is still not perfect. However, I have now gone seven years without any more severe insomnia — by far the longest period since I was a child.
Sleep isn’t an escape, it’s an act of rest.
Jock McKeen & Bennet Wong, founders of Haven
Serious insomnia is nothing to mess around with. At my worst, I felt like I was made of glass, everything hurt, and I was seeing everything through a haze of mental distortions, exaggerated mental tangents, and minor hallucinations. From XKCD, a popular geeky webcomic, here’s a strip about sleep deprivation that exactly describes how I felt in the summer of ‘05, and how any sleep-deprived person feels when they start to sink down to less than 3–5 hours per night. (Be sure to let your mouse cursor hover over the comic for an extra caption.)

Comic from xckd, by Randall Munroe, used with permission.
Comic from xckd, by Randall Munroe, used with permission.
Hallucinations are just the beginning: sleep deprivation can actually kill. Laboratory animals subjected to extreme sleep deprivation die relatively swiftly of unknown causes — exactly what goes wrong is not clear, but their body temperatures start to drop and then they suffer rapid and widespread physiological failure.4 This is a very curious thing about biology, that sleep is actually required for life, and in fact required for all life — virtually every living thing sleeps, if it has any kind of a brain of any kind at all.5
There is even a rare genetic disease, fatal familial insomnia (FFI), that causes such severe insomnia that victims die:
The main symptom of FFI … is the inability to sleep. First the ability to nap disappears, then the ability to get a full night's sleep, until the patient cannot sleep at all. The syndrome usually strikes when the sufferer is in his or her 50s, ordinarily lasts about a year, and, as the name indicates, always ends in death.
“The Secrets of Sleep,” National Geographic Magazine, May 2010
Insomnia is not commonly fatal, of course, because there are all kinds of self-preservation mechanisms that kick in — as long as you don’t have a disease like FFI that absolutely eliminates sleep, you will never come anywhere close to losing enough of the stuff to kill you. But the fact that sleep is so basic strongly suggests that sleep-deprivation is a dangerous problem, even when it falls short of being actually lethal.6 And in fact there is a considerable amount of science confirming exactly this. Here in Vancouver, University of British Columbia psychologist Stanley Coren7 describes sleep deprivation studies in humans showing a number of ominous effects, and his book Sleep Thieves: An eye-opening exploration into the science and mysteries of sleep generally comes to the conclusion that everyone needs to take sleep deprivation much more seriously than we generally do. Here are several examples:
This is just a sampling. For a complete discussion of how insomnia probably increases body pain of all kinds (and muscle pain in particular), see Insomnia Until it Hurts.
Sleep deprivation is serious. Take it seriously.
Some insomnia is caused by sleep disorders such as sleep apnea. Or sleep loss may be caused by the pain of another medical condition, such as rheumatoid arthritis. But most insomnia is basically just a bad habit — a learned behaviour, which is usually aggravated into a crisis by emotional stresses15 or by other medical problems. This kind of insomnia is called “behavioural insomnia.”
I resisted this idea at first. Actually, I strongly resented it for a long time. It sounded like an dismissive “all in your head” diagnosis to me. I certainly did not feel like I had a bad habit. I felt like a victim of some terrible malfunction of my central nervous system.
I thought I had a “real” problem.
But it turns out I was just a guy with a bad habit, and the proof was in the results. Granted, it was a really bad habit — or several of them — but it really did come down to just learning how to sleep again. The cure was ultimately simple, and consisted of a simple 2-point plan:16
The magic is in the behavioural conditioning, and it’s what most of the rest of this article is about. Step one just paves the way, and is mainly a determined application of common sense…
All the behavioural condition in the world will be useless if you sleep in bright, noisy, stuffy bedroom with a snoring spouse and a pesky cat. It is absolutely vital to have a sleep environment that is reasonably conducive to sleep, and it’s amazing how many things most insomniacs can do to improve their sleep environment.
Cover your windows with blackout curtains. Install sound-proofing eggshell foam. Find more comfortable earplugs. Get an air conditioner or a dehumidifier. Kick the dog out of bed. Get a squirt bottle and wage war on the cat until she learns that waking you up at 4:00 AM is going to get her nothing but soaking wet. Use a white noise machine or a fan. Buy the best mattress money can buy, get a deluxe pillow, and 900 thread count sheets. Fix the leaky tap. If your husband snores, get rid of him: separate bedrooms, separate lives, whatever it takes, even if it’s only until you learn to sleep again. Get rid of the phone too: permanently eliminate the possibility of it ever waking you up at 2:00 AM again.
If your husband snores, get rid of him.Getting the idea?
Everyone’s circumstances are different, and the solutions will be unique, but stop at nothing to make your bedroom as sleep-friendly as humanly possible. And if you can’t do it — if there is something intrinsically sleep-hostile about your living space … move. Seriously. Why not? Remember what’s at stake here. People have transplanted themselves across oceans and continents for much less: jobs, boyfriends, and better scenery.
Sleep is a complex human behaviour, and insomnia is a dysfunctional sleep behaviour — sleep behaviour that results in sleep that is at odds with what we want, usually not enough of it and at the wrong times. Either we start sleeping at the wrong time, and/or we can’t continue sleeping as long as we’d like, and/or we can’t sleep as deeply as we need to.
The sum of our sleep behaviours is called our “sleep hygiene.” Insomniacs usually have lousy sleep hygiene.
Sleep anthropologists — yes, that’s an actual field of sleep research, though admittedly a pretty small one — have taught us that “anything goes” with sleep. Sleep behaviour is quite variable and adaptable across cultures and situations, and we can learn and unlearn nearly any kind of sleep habit. And yet of course not all sleep hygiene actually works well. Just because we can learn to sleep in surprisingly sleep-hostile conditions doesn’t mean that it’s a good idea. That adaptability can work for or against us: it is easy to inadvertently teach ourselves sleeping habits with unpleasant long term consequences. It is less easy to deliberately teach ourselves better ones.
Without a doubt, my readers mostly suffer from civilization-induced insomnia. That is, they have learned bad sleeping habits that are strongly associated with an electrical world. It’s easy to stay up. There’s stuff to do at night.
We can learn nearly any kind of sleep habit — and unlearn it.Many insomniacs will start protesting at this point: “But I try to go to sleep and I can’t!” Sure. But there are a thousand sneaky ways in which you teach your brain not to go to sleep. There are several common themes, but let’s start with one of the worst and most common ways of training to become a champion insomniac …
Most insomniacs, when they have trouble falling sleep, get frustrated, get up, and do something. This is dangerous. Depending on the activity, this is a message to your brain. The message is, “1:00 AM is for checking my email. Reading a book. Watching a bit of boring telly. Having a snack.” Your ancestors didn’t have those options. Through most of our biological history, they literally couldn’t even put on a light!
It’s this simple: whatever you repeatedly do at 1:00 AM, that is exactly what your brain will think 1:00 AM is about! You are teaching your nervous system not to sleep, and like the miraculously adaptable thing that it is … it learns.
Learning to sleep again is something like training a dog: endless repetition, and positive reinforcement. Only instead of doggy biscuit rewards … your reward is sleep.
Sounds good, doesn’t it?
Behavioural conditioning is most familiar to us in the context of animal training. Unfortunately, this does not mean that we can easily “get it.” As any dog trainer will tell you, people really suck at training animals, and generally need far more training than the animals.17
People are no better at training themselves, probably even worse. We’re biased, emotionally messy, full of appetites and neuroses, a soup of stress hormones and a lifetime of habits already so well-established that they seem like a permanent part of the fabric of our lives. Saying that behavioural insomnia is just a bad habit is like saying that cancer is just a few bad cells. Habits are the most powerful forces in our lives. Learned adaptation is one of the basic organizing principles of our nervous systems. Going up against that is never going to be easy. But it can be done, just like professional animal trainers can get results that seem almost impossible to amateurs.
But behavioural conditioning itself is a skill that has be learned. It isn’t intuitive.
Most insomniacs spread their sleep too thin: for instance, maybe you go to bed early because you’re exhausted, wake up a lot during the night because you’re an insomniac, and then of course you sleep in as much as possible to try to recover from the fragmented sleep. Your total time in bed may be 9, 10, even 11 or 12 hours sometimes.
The problem is that it is not actually possible for anyone — except cats — to consistently sleep solidly through such a long period. If you go to bed at ten and don’t get out of bed until nine the next morning, gaps in your sleep are inevitable!
This “total time in bed” is such a crucial concept that it should be acronymized: TTIB! Basically, as long as you have a high TTIB, good luck sleeping through the night.
An insomniac reader provided this good description of his experience of the TTIB problem:
I have often slept in a little to recover from a rough night, but going to bed at 10:00pm is actually not a good plan if I actually want to sleep past five or six … which I usually try to do. I have actually been going to sleep too early because I am anticipating trouble with sleep … I know I’ll have trouble, so I want more time to recover before the next day starts, so I start trying to sleep sooner. You can see how that might lead to sleep getting stretched thinner and thinner, where I’m actually causing the same problem I’m trying to solve.
Although there may be many things that wreck your sleep, TTIB is one of the most controllable and significant aggravating behavioral factors. And TTIB is usually most obviously aggravated by an inconsistent waking time. Many insomniacs get the idea of focussing on getting to bed at a consistent time, but rarely worry about wake time and semi-regularly stay in bed as long as possible trying to recover from the bad night of sleep. Unfortunately, this simply stretches out your TTIB and strongly reinforces the tendency to wake up in the night.
To have any hope of sleeping through the night, you have to have a consistent bedtime and a consistent waking time. Which brings us to sleep compression therapy.
Training for recovery from behavioural insomnia is usually most easily cured by restricting sleep to an inadequate, fixed period each night, and then gradually increasing it. It’ll be unpleasant at first … but you’ve got nothing to lose.
The idea of sleep compression therapy is pretty much identical to the logic behind the method used to train cat not to be a fussy eater, which works like this:
Put a small dish of food out … for ten minutes only. If the cat doesn’t eat the food in that period of time, you take it away until the next meal time, by which time the cat is starting to feel a lot less choosy. After a few missed meals, even the fussiest of all possible cats is going to get hungry enough to eat whatever is in the bowl.
By compressing your TTIB into just a few hours, the message to the body is "this is all you're getting, so make the best of it."
Instructions:
The sleep “pressure” will accumulate enough so that you can hardly imagine not sleeping in the time available.
Sleep compression therapy is the beating heart of this article. The remaining sections are basically about how to make it better, how to troubleshoot it.
One of the most common objections I’ve heard to sleep compression therapy is that it doesn’t matter if your insomnia has a medical or psychiatric cause, such as pain, or severe anxiety.
This is not true. It matters more.
It may not work as well … but the need is actually greater. The more difficulty you have sleeping for any reason, the more important it is to have good sleep hygiene.
Consider pain, for example. There is no question that it can wreck sleep! And no amount of improvement in sleep hygiene is going to magically make that pain go away — obviously. But there is only one thing worse than sleep-destroying chronic pain, and that is chronic pain plus crappy sleeping habits. The chronic pain patient who makes every effort to maximize their chances of sleeping is going to be better off, every time, than the chronic pain patient who does not.
No matter what is wrong with you, no matter what is disturbing your sleep, it is important to have sleep behaviour that is as good as possible under the circumstances.
This is particularly important for insomniacs who have trouble falling asleep.
Spend some time and create a carefully planned and scheduled bedtime ritual of at least half an hour to repeat every night until you are cured, and frequently for the rest of your life.
The purpose of the ritual is to (a) wind down, and (b) learn to associate your bedtime with a series of predictable steps. It actually makes a difference whether you wash your face and then brush your teeth, or brush your teeth and then wash your face — it doesn’t matter which order you do it in, but it does matter that you always do it in the same order. The more consistent the ritual, the more quickly your brain can learn that face washing followed by teeth brushing equals bedtime.
The timing should be really consistent, too. The ritual should start at exactly the same time every time.
Morning rituals also work well for insomniac’s who wake up too early, although not as well, for the obvious reason that the part we control — the ritual — comes after the part we wish we could control — the sleeping. Nevertheless, it’s just as important to teach your brain that waking time is well-defined.
People who honestly stick to a basic sleep compression regimen rarely fail. When they fail, it is usually because they aren’t actually doing it — they are finding ways to “cheat.” However, some people have insomnia so severe that even a compressed sleep schedule does not work. I know this because I was one of those people! To make my sleep compression work, I had to up the ante. I needed to make myself even more exhausted.
If you need to up the ante, simply do whatever you have to do to be so exhausted that sleep is the only option. Just feeling tired doesn’t necessarily mean that you are exhausted enough to sleep, so don’t judge your sleep readyness only by how “tired” you are. Most insomniacs feel very tired, of course, but still can’t get to sleep. I have never been so tired in my life as I was during those long sleepless nights in 2005. A subjective feeling of tiredness is a poor measure. What you need is not just to "feel tired," but to actually "be exhausted." So you need to go to greater efforts to ensure that you are well and truly worn out: more fresh air, more exercise, a shorter sleep cycle, no naps, etc ... anything you can think of to make yourself more truly exhausted at bedtime.
And remember that this is behavioural conditioning. Simply keeping upping the deprivation ante until you reach the level where you can teach your body that your bedtime is the time when you fall asleep. Trust me, as long as there is no medical reason for your insomnia, there is a level of exhaustion at which even you will konk out!
Inevitably, there are going to be times when you find yourself awake when you don’t want to be. Even the most effective sleep compression regimen takes time to work. One of the stickiest issues in insomnia management is what to do with those times until the happy day when they stop happening.
One of the worst pieces of amateur advice about insomnia goes like this: “Do something relaxing when you’re awake in the middle of the night. Avoid stimulating activities like video games or going for a walk. Instead, take a hot bath or read a pleasant novel.” While I couldn’t agree more than late-night video games are a bad idea, replacing them with something pleasant is foolhardy. (And hot baths are actually stimulating, not relaxing.19)
Do not “reward” your nervous system for being awake. Do not do anything pleasant. Do not make it good, or even especially tolerable.
So … what should you do?
Nothing. Well, almost nothing. This is the procedure:
Repeat as necessary.
It is a very unusual person who can go through more than three of these cycles without finally falling asleep!
More importantly, the goal of this procedure is not precisely to put you to sleep, but rather to avoid dysfunctional conditioning. The goal is to prevent bed from becoming a place where you toss and turn endlessly and just get frustrated … and to prevent getting up from becoming a comforting escape from that frustration. It neutralizes. This procedure helps sleep compression therapy work.
Some improvements in sleep hygiene combined with sleep compression therapy alone will resolve behavioural insomnia for most people within 4-6 weeks. I had such a severe case that I took three times that long, and progress in the first month was sketchy — but it still worked. Eventually I removed the sleep compression restrictions and stopped using the rigid bedtime ritual, but I still return to these tactics regularly, whenever I suspect there’s a need to shore up my defenses — and now they always work quite quickly. In fact, it’s amazing how I start getting sleepy as soon I start to go through the steps of the bedtime ritual. Like a well-trained dog!
Wednesday, May 4, 2011 — Added a small but imortant point about the trouble with hot baths.
Thursday, September 16, 2010 — Added this quote: “Sleep isn’t an escape, it’s an act of rest.” (McKeen)
Monday, August 9, 2010 — Finally started logging updates for this document, although it’s been around since 2006. Today I added two interesting references and the XKCD comic strip about sleep deprivation.
BACK TO TEXTDr. Allan Pack, a “rabid biologist,” has been looking at sleep at the cellular level, and one of the things he’s found over and over and over — shown in mice, shown in rats, shown in fruit fly — is that certain cells in all those different types of animals, when they are sleep-deprived … what happens is that you don’t get proteins properly folded.
Excuse me? Proteins properly folded? This is a phenomenon called the unfolded protein response. But what on earth does that mean? Why do you need proteins to “properly fold”? Well, you’re made of proteins. Proteins are the essence of you. If your proteins are misshapen, if they’re not folded properly, if they don’t have the right three-dimensional structure, and as a result they start accumulating inside the cell, then these unfolded proteins can start to aggregate together and form clumps inside the cell and essentially clog it up and it’s really quite toxic. Clumpiness equals tiredness!
But when you get sleep, a group of cleaner-uppers have gone through your cells and removed the misshapen proteins so that, in effect, sleep is the best housemaid you’ve ever had, in the hotel of you.
The importance of chronic sleep insufficiency is under-recognized as a public health problem, despite being associated with numerous physical and mental health problems, injury, loss of productivity, and mortality. Health-care providers should consider adding an assessment of chronic rest or sleep insufficiency to routine office visits so they can make needed interventions or referrals to sleep specialists.