How to Build Better Sleep Habits. A Practical Guide
sleep is upstream of nearly every form of mental and physical health. it is also one of the more fixable parts of your life, often without medication, if you target the right levers in the right order.
By Omar Rantisi, Founder of Therma8 min read
In this article
what the research actually shows works
cognitive behavioral therapy for insomnia, abbreviated cbt-i, has the strongest evidence base of any insomnia treatment. 2, corresponding to approximately a 50 percent post-treatment reduction in insomnia symptoms. 9 percent in comparison conditions. critically, cbt-i works better than sleep medications for long-term outcomes, with effects sustained six months and beyond after treatment ends. cbt-i is a multicomponent intervention with several distinct techniques. stimulus control therapy, developed by richard bootzin, retrains the bed-sleep association by restricting bed use to sleep and sex, getting up if not asleep within 20 minutes, and maintaining consistent wake times. sleep restriction therapy temporarily limits time in bed to actual sleep time, increasing sleep drive and consolidating fragmented sleep.
cognitive therapy targets unhelpful thoughts about sleep (i need eight hours or i will fail, i cannot function without good sleep, this insomnia will never end). relaxation training addresses the physiological arousal that maintains insomnia. sleep hygiene (caffeine timing, screen use, room conditions) is a component but, used alone, has the weakest evidence. studies consistently show sleep hygiene alone helps but is significantly outperformed by full cbt-i. the practical implication: if you have been doing sleep hygiene and your sleep has not improved much, you are probably missing the higher-yield components. and crucially, sleep medications, while sometimes useful short-term, do not address the underlying conditioning and often produce rebound insomnia when discontinued. cbt-i targets the conditioning directly, which is why effects persist.
“good sleep is built. it is not summoned. the levers that work are uncomfortable in the short term and predictable in the long term.”
why most sleep advice does not move the needle
the most common failure mode is the kitchen-sink approach. someone with bad sleep reads a list of twenty tips and tries to do all of them. they last four days, then quit and conclude nothing works. the research is clear that a few targeted components, done consistently, produce most of the benefit. you do not need to optimize everything. you need to do a few key things reliably. the second failure mode is the sleep-hygiene-alone trap. cool dark room, no caffeine after noon, no screens before bed. these are reasonable but they are the weakest component of cbt-i and often insufficient on their own. the higher-yield interventions are stimulus control and sleep restriction, both of which are uncomfortable in the short term and produce significant change in the medium term. people who skip the uncomfortable parts often stay stuck.
the third failure mode is the worry loop. lying awake worrying about how badly you will function tomorrow if you do not sleep is itself one of the major maintaining factors for insomnia. the cognitive component of cbt-i directly targets this. learning to view sleep with less catastrophic framing measurably improves sleep, partly because lower arousal makes sleep more accessible. the fourth failure mode is treating all insomnia as one thing. there is sleep-onset insomnia (cannot fall asleep), sleep-maintenance insomnia (waking in the middle of the night), and early-morning awakening (waking too early and unable to return to sleep). each has somewhat different drivers and respond to somewhat different interventions. the fifth failure mode is medications as a first or only line. sleep medications often work in the short term and produce dependency, tolerance, or rebound effects over time. they also do not address the underlying conditioning. if you are using them, that is fine, but pairing them with cbt-i or behavioral work usually produces better long-term outcomes.
the protocol that actually fixes sleep
this is structured around cbt-i components, ordered by leverage. step one: set a fixed wake time. seven days a week, including weekends. this is non-negotiable for two to four weeks while you fix the system. weekends with longer sleep ins are the single most common saboteur of weekday sleep. step two: stimulus control. use bed only for sleep and sex. no scrolling, no working, no reading in bed if reading wakes you up. if you are awake in bed for more than 20 minutes (estimate, do not check the clock), get up, do something calm and dim, return when sleepy. this retrains the brain to associate bed with sleep. it is uncomfortable for the first week. it produces measurable change within two to three weeks. step three: limit total time in bed to actual sleep time plus a small margin. if you are averaging six hours of actual sleep, limit time in bed to about six and a half hours. this increases sleep drive and consolidates sleep. as quality improves, gradually extend. this is the most uncomfortable step. it works. step four: address the cognitive component. when you find yourself catastrophizing about sleep loss (i will be ruined tomorrow), write the thought down, then write a more accurate version. you will function. it will not be a disaster.
one bad night is information, not catastrophe. step five: selective sleep hygiene. caffeine cutoff by early afternoon. alcohol limited and not within three hours of bed (it fragments sleep). cool room (60-68 degrees f works for most). dark room. no bright screens for an hour before bed (or use blue-light reduction). step six: relaxation work. ten minutes of paced breathing, body scan, or gentle stretching before bed. not on the bed. before getting into it. this is preparation, not bedtime. step seven: address daytime variables. light exposure in the morning (ideally outdoor), regular exercise (not within three hours of bed), regular meal timing. these support circadian regularity. step eight: realistic timelines. mild insomnia responds in two to four weeks. moderate-to-severe insomnia typically takes four to eight weeks with consistent cbt-i. expect setbacks. expect to feel worse before better, particularly during sleep restriction. step nine: if self-administered cbt-i has not produced improvement after two months, see a sleep specialist or use a structured digital cbt-i program. apps like sleepio and somryst (the latter fda-cleared) deliver structured cbt-i with strong evidence.
How to do it
- 1fix the wake time first
same wake time seven days a week, including weekends, for at least two to four weeks. weekend sleep ins are the single most common saboteur of weekday sleep. consistency in waking is what stabilizes circadian rhythm, which is what stabilizes everything else.
- 2stimulus control: bed is for sleep
no scrolling, working, or reading in bed if reading wakes you up. if you are awake more than 20 minutes (estimate, do not check), get up, do something calm and dim, return when sleepy. retrains the brain to associate bed with sleep. uncomfortable for the first week. produces measurable change within two to three weeks.
- 3limit time in bed to actual sleep time
sleep restriction: if you are averaging six hours of sleep, limit time in bed to about six and a half hours. increases sleep drive, consolidates fragmented sleep. most uncomfortable step. most effective. extend gradually as quality improves. do not skip this if mild interventions have not worked.
Journal prompts to sit with
- 01what is the actual pattern of my sleep this week (bed time, wake time, awakenings)?
- 02what thoughts run through my head when i cannot sleep, and how accurate are they?
- 03what would change in my day if i woke at the same time every day for a month?
- 04what is one variable (caffeine, screens, alcohol, exercise) i could adjust this week?
- 05what would i tell a close friend who described my exact sleep pattern?
Common questions
is sleep hygiene enough to fix bad sleep?
usually not. sleep hygiene (caffeine timing, screen use, room conditions) is a component of cbt-i but research consistently shows it is significantly outperformed by full cbt-i. if you have been doing sleep hygiene and your sleep has not improved much, you are likely missing the higher-yield components: stimulus control, sleep restriction, and cognitive work on sleep-related thoughts. these are uncomfortable in the short term and produce significant change in the medium term.
how long does cbt-i take to work?
mild insomnia often responds within two to four weeks. moderate-to-severe insomnia typically takes four to eight weeks of consistent practice. expect setbacks. expect to feel temporarily worse during sleep restriction. the trajectory is not linear. after the protocol is complete, effects are generally sustained for six months and longer, often better than medications.
should i take sleep medication?
sometimes, with caveats. short-term use of prescription sleep medication is sometimes appropriate, particularly for severe acute insomnia or during high-stress periods. long-term use is more complicated: most sleep medications produce dependence, tolerance, and rebound insomnia when discontinued. they also do not address the underlying conditioning. cbt-i works better long-term in most studies. if you are using sleep medication, consider pairing it with behavioral work or transitioning toward cbt-i with medical guidance.
is eight hours of sleep necessary for everyone?
no. individual sleep needs vary, generally between seven and nine hours for adults, with some genetic variation outside this range. fixating on eight hours can itself be a maintaining factor for insomnia (catastrophizing if you got less). a better target is how you feel and function during the day. if you are getting seven hours and functioning well, you are likely getting enough. if you are getting nine and feel exhausted, the issue is sleep quality, not quantity.
why do i wake up at 3am every night?
middle-of-the-night awakenings have several common causes. cortisol patterns (rising too early). alcohol metabolism (the rebound effect a few hours after drinking). worry that activates threat circuits. obstructive sleep apnea (often unrecognized, especially in non-stereotypical demographics). hormonal shifts. if it is consistent and persistent, worth investigating. addressing the underlying cause is more effective than just trying to fall back asleep.
when should i see a sleep doctor?
if insomnia has persisted more than three months despite consistent self-help. if you snore heavily, gasp during sleep, or have witnessed apneas (sleep apnea). if you experience unusual phenomena (sleepwalking, sleep paralysis frequently, vivid hallucinations at sleep onset). if symptoms suggest a circadian rhythm disorder (extreme night owl or early bird patterns that disrupt life). sleep specialists can run sleep studies and diagnose conditions that self-help cannot address.
Related guides
Sources
- 01
- 02
- 03
Omar Rantisi
Founder of Therma. UCLA Math + Sociology. Building tools for the space between silence and therapy. Not a therapist. Just someone who needed this to exist.
Therma · Emotional Wellness
A place to put what you’re carrying
Daily check-ins. Guided reflection. A companion that meets you where you are. Therma is built for the moments between therapy sessions, between good days and hard ones.