Health and Fitness

Sleep Diary for Insomnia: Sleep Efficiency and CBT-I Explained

How a sleep diary works, how to calculate sleep efficiency, what CBT-I sleep restriction is, and how to use your diary to set a better sleep window.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
Sleep Diary for Insomnia: Sleep Efficiency and CBT-I Explained

Sleep Diary for Insomnia: Sleep Efficiency and CBT-I Explained

If you lie awake for hours, wake up repeatedly or feel unrefreshed, you are not alone: about one adult in ten has long-term insomnia. The most effective treatment is not a pill but cognitive behavioural therapy for insomnia, CBT-I, and it begins with a simple sleep diary. The Sleep Diary and Insomnia Log does the calculations for you.

What goes in a sleep diary

Each morning, write down:

  • when you got into bed,
  • roughly how long it took to fall asleep,
  • how many times you woke and for how long in total,
  • when you finally woke,
  • when you got out of bed,
  • naps, caffeine after early afternoon, alcohol and how well you slept.

Estimates are fine. Do not watch the clock at night; that tends to make insomnia worse.

Three numbers that matter

Time in bed runs from getting into bed to getting out of bed.

Total sleep time is time in bed minus the time taken to fall asleep, the time awake during the night and the time lying in bed after your final wake-up.

Sleep efficiency is total sleep time divided by time in bed, as a percentage. A healthy sleeper is asleep for most of the time in bed. CBT-I usually aims for 85% or more.

For example, eight hours in bed with six hours of sleep is 75% efficiency: two hours of lying awake every night.

Why people with insomnia spend too long in bed

It feels logical to go to bed earlier or lie in to catch up. But spending extra time in bed spreads sleep thinly, adds wakeful time and teaches the brain that bed is a place for lying awake. That is why CBT-I often does the opposite.

Sleep restriction

Sleep restriction, more accurately called sleep scheduling, sets a fixed window in bed close to the amount you actually sleep, usually never below about five to five and a half hours. You keep the same wake-up time every day and go to bed later. Sleep pressure builds, you fall asleep faster and wake less. Each week, if efficiency is 90% or more, the window grows by about 15 minutes; if it is below 85%, it stays close to your actual sleep.

The diary's suggestion follows this logic using your last seven nights and your chosen wake time.

Other CBT-I techniques

  • Stimulus control: go to bed only when sleepy, and get up if you cannot sleep after about 20 minutes.
  • Sleep hygiene: limit caffeine after early afternoon, avoid alcohol close to bedtime and keep the bedroom dark and cool.
  • Cognitive techniques: challenge worrying thoughts about sleep, such as "I can't function without eight hours".
  • Relaxation: breathing exercises or progressive muscle relaxation before bed.

Be careful

Sleep restriction makes you sleepier for the first week or two. Avoid driving or dangerous tasks when drowsy. People with bipolar disorder, epilepsy or certain other conditions should only use it with a clinician.

A worked example

Over a week, someone spends an average of 8 hours in bed but sleeps 6 hours 10 minutes, an efficiency of 77%. With a 07:00 wake-up, the diary suggests a 6 hour 15 minute window, going to bed at 00:45. Two weeks later efficiency is 91%, and the window widens to 6 hours 30 minutes.

Limits

The diary supports self-help and clinical treatment but is not a diagnosis. Loud snoring, gasping or severe daytime sleepiness need medical assessment. Entries stay in your browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages