Yes, if you are lying awake and frustrated, you should get up. That is the short answer, and it is the advice you will get from any sleep clinic. It comes from a well-tested part of cognitive behavioural therapy for insomnia (CBT-I) called stimulus control, and it is usually summarised as "the 20-minute rule".

The longer answer has some important nuance. The rule is about frustrated wakefulness, not calm rest. It has sensible exceptions. And it works by retraining an association over days, not by producing sleep on the spot. This guide explains all of that in plain English, so you can apply it without turning it into one more thing to get anxious about.

Where the rule comes from

Stimulus control was developed by the psychologist Richard Bootzin in the 1970s and has been part of insomnia treatment ever since. The idea is simple. For a good sleeper, the bed is a strong cue for sleep: lie down, and the body knows what comes next. For someone who has spent weeks lying awake, the bed has become a cue for something else: alertness, frustration, clock-watching, worrying about tomorrow. The bedroom itself has started to wake them up.

Stimulus control breaks that association and rebuilds the right one. In its full form it has a handful of instructions:

  1. Go to bed only when you feel sleepy, not merely tired.
  2. Use the bed only for sleep (and sex): no working, scrolling, eating or worrying in it.
  3. If you cannot sleep, get up and go to another room until you feel sleepy, then return.
  4. Repeat as often as necessary through the night.
  5. Get up at the same time every morning, whatever the night was like.
  6. Avoid daytime naps.

The "20 minutes" is a rule of thumb for step 3, and it is there to stop people lying awake for two hours out of stubbornness. It is not meant to be measured. In fact, checking the clock is one of the things that keeps you awake, so the instruction is really: when you notice you are awake and frustrated rather than drowsy, get up.

In short: Bed should mean sleep. Every long stretch of tense wakefulness in bed weakens that link, and every return to bed when genuinely sleepy strengthens it.

Why getting up helps

Three things happen when you get up.

First, you stop reinforcing the wrong association. Twenty minutes of lying tense in the dark teaches your brain "this is where we do that". Getting up interrupts the lesson.

Second, you break the spiral. Frustration raises alertness, alertness makes sleep less likely, and less sleep makes you more frustrated. Changing rooms, changing posture and doing something mildly absorbing all take the pressure off.

Third, you let sleep pressure catch up. If you went to bed before you were sleepy, or woke in the lighter part of the night, you may simply not be ready. Half an hour up allows drowsiness to build, so that when you return, sleep comes more easily and the bed gets the credit.

The evidence for this is good. Stimulus control is one of the core components of CBT-I, which NICE and the NHS recommend as the first-line treatment for persistent insomnia, and it holds up as a treatment on its own as well as within the full programme.

The exceptions

The rule is not a punishment, and it is not for every waking.

Calm, drowsy rest counts as rest. If you are lying quietly with your eyes closed, not especially bothered, drifting in and out, stay there. That is a good state, and sleep often returns from it. The rule is for the other state: tense, alert, annoyed.

If the night is nearly over, use judgement. If it is within an hour of your normal wake time, either rest calmly until then or get up and start the day. Getting up to sit in the dark for 40 minutes and then going back to bed for 20 has little to recommend it.

If getting up is unsafe or impractical, because of mobility, a shared room, a baby, or a bedsit with nowhere to go, sit up in bed with the light low instead. The change of posture and activity matters more than the change of room.

If you are unwell, in pain or genuinely exhausted from something else, this is not the night to be strict. The rule works over weeks, so a night off does not undo it.

If you are very cold, put a jumper and socks on first. Getting up into a freezing hallway is a good way to be more awake, not less.

What to do while you're up

The point is low stimulation, not entertainment and not productivity. You are trying to be gently bored in dim light until drowsiness returns.

Good choices: a paperback you have read before, a crossword or puzzle book, folding laundry, a warm, caffeine-free drink, sitting with slow breathing or a body scan, listening to something calm and familiar at low volume.

Poor choices: your phone, the television, email, work, a crime novel you cannot put down, tidying the kitchen, and anything with a bright screen or a decision in it.

Keep the lights as low as you can manage. Bright light in the small hours tells your body clock it is morning, and that undoes the work.

Return to bed when you feel sleepy: heavy eyelids, yawning, losing the thread of what you were reading. Not when you are merely bored, and not because you have decided enough time has passed. If you get back into bed and the tension returns, get up again. The first few nights this can mean several trips, and it can feel worse before it feels better. Stick with it for a week or two; the payoff is that wakings become shorter and, eventually, rarer.

The other half: a fixed wake time

Getting up in the night only works well alongside the last two instructions on the list: get up at the same time every morning, and do not nap. A consistent wake time is what makes sure sleep pressure builds properly for the next night, so that the bed gets a fair chance to become a cue for sleep again. A lie-in after a bad night feels like repair, but it pushes the next night's sleepiness later and keeps the cycle going.

If the rule is making you anxious

Some people take the 20-minute rule and turn it into a source of pressure: watching for the 20-minute mark, worrying about whether they are "sleepy enough" to return, treating each trip as a failure. If that is happening, loosen it. The rule is a tool for breaking the bed-equals-awake association, not a test. Worry about sleep is itself one of the main things keeping people awake, and there is a guide to sleep anxiety if that sounds familiar.

For the practical in-the-moment sequence, from hiding the clock to what to do in the chair, see what to do when you can't get back to sleep. If your trouble is at the start of the night rather than the middle, the same principles are laid out for that in what to do when you can't sleep. The reasons the middle of the night is such a vulnerable point are covered in the guide to waking up at 3am.

When to get more help

If you are lying awake most nights for more than a few weeks and it is affecting your days, stimulus control alone may not be enough, and the full CBT-I programme is worth asking about. Your GP can tell you how to access it, and there are digital versions available through the NHS in some areas. There is a plain guide to when to see a GP about sleep, and the wider Waking at Night guides cover the specific patterns.

The short version

Drowsy and calm? Stay in bed. Awake and frustrated? Get up, keep the light low, do something dull, and return when you are sleepy. Get up at the same time tomorrow regardless. Give it two weeks.

Frequently asked questions

Is it better to stay in bed and rest or get up?

Calm, drowsy rest in bed is fine and worth keeping. Tense, frustrated wakefulness is not rest, and staying in bed for it teaches your brain that bed is where you lie awake. The rule is about the second state: if you are wound up, get up.

Does the 20-minute rule work the first night?

Usually not, and it can make the first few nights feel worse, because you are up more. Its benefit comes from repetition: over a week or two, bed becomes reliably associated with sleep again and wakings get shorter. It is one of the most effective parts of CBT-I, but it is a retraining, not a quick fix.

What if I have to get up early and getting out of bed will make me more tired?

Short-term, it might, and that is a real cost. Lying awake frustrated does not give you much usable rest either, though. If you are exhausted and the night is nearly over, calm rest in bed is a reasonable choice. Over a longer stretch, the rule tends to reduce total time awake.

Sources and further reading

  1. NHS: Insomnia
  2. NICE: Insomnia: Clinical Knowledge Summary
  3. NHS Every Mind Matters: How to fall asleep faster and sleep better

Written and reviewed by the Quiet Mind Sleep editorial team in line with our editorial policy. Spotted an error? Let us know.