Melatonin has become the default answer to every sleep problem. Cannot fall asleep? Take melatonin. Waking up at 3 AM? More melatonin. Jet lagged? Melatonin gummies. It is sold as a universal fix, and it is everywhere.
But melatonin is not a sleeping pill. It is a timing signal. It tells your brain when to sleep, not how to sleep. For most cases of chronic insomnia, supplementing melatonin is like adjusting the hands on a broken clock. The display changes, but the mechanism is still broken.
The real fixes for insomnia are behavioral, environmental, and physiological. Most of them are free. None of them come in a bottle. Here are seven that are supported by actual sleep research.
1. Understand Sleep Pressure (and Stop Sabotaging It)
Sleep is governed by two independent systems. The first is your circadian rhythm, the roughly 24-hour internal clock that determines when your body wants to sleep and wake. The second is sleep pressure, also called homeostatic sleep drive, and this is the one most people do not understand.
Sleep pressure is the accumulation of a molecule called adenosine in the brain. From the moment you wake up, adenosine starts building. The longer you are awake, the more adenosine accumulates, and the stronger the pressure to sleep becomes. After about 16 hours of wakefulness, sleep pressure is usually high enough to initiate sleep relatively quickly.
Two things sabotage this process. The first is napping. A 90-minute afternoon nap clears a significant chunk of adenosine, which means you arrive at bedtime with substantially less sleep pressure. If you struggle to fall asleep at night, eliminating daytime naps is often the single most effective change. If you must nap, keep it under 20 minutes and before 2 PM.
The second saboteur is caffeine. Caffeine does not give you energy. It blocks adenosine receptors, preventing your brain from detecting the sleep pressure that has accumulated. The adenosine is still there; you just cannot feel it. Caffeine has a half-life of five to six hours, meaning half the caffeine from a 2 PM coffee is still active at 8 PM. A quarter is still active at 2 AM. If you are having trouble sleeping, move your caffeine cutoff to noon.
2. Fix Your Circadian Rhythm with Light, Not Supplements
Your circadian rhythm is primarily set by light exposure. Morning light tells your brain that the day has started and begins the countdown to melatonin release, which naturally occurs about 14 to 16 hours later. This is why morning light exposure is one of the most effective interventions for sleep problems: it does not fix the night; it fixes the clock that governs the night.
Conversely, bright light in the evening delays melatonin onset. This is not just about screens. Overhead room lights, especially LEDs, deliver enough blue-spectrum light to shift your circadian rhythm later. Dimming lights in the last two hours before bed, switching to warm-toned side lamps, and keeping overhead lights off sends the signal that evening has arrived.
If you do one thing from this article: get 10 to 30 minutes of outdoor light in the first hour after waking. This single change often improves sleep onset by 20 to 40 minutes within a week.
3. The Blue Light Thing Is Overblown (But Screens Still Matter)
The narrative around blue light and sleep has been dramatically oversimplified. Yes, blue light from screens suppresses melatonin. But the magnitude of the effect is surprisingly small. A 2019 study in Lighting Research and Technology found that typical phone use in the evening delayed melatonin onset by about five to ten minutes. That is real, but it is not the reason you are lying awake until 1 AM.
The real problem with screens before bed is not the light. It is the content. Scrolling social media activates your sympathetic nervous system. Checking work email triggers stress responses. Reading news elevates cortisol. Reading an inflammatory comment thread fires up your amygdala. The cognitive and emotional stimulation from screen content is a far more powerful sleep disruptor than the photons from the screen.
Blue light blocking glasses, the darling of the sleep optimization industry, address the smaller problem while ignoring the larger one. If you must use screens before bed, the content matters more than the color temperature. A Kindle displaying a novel is vastly different from Twitter displaying an argument, even if the lux output is identical.
The ideal approach: screens off 30 to 60 minutes before bed. Not because of the light, but because your brain needs a transition period from stimulation to rest. Reading a physical book, light stretching, or quiet conversation gives your nervous system time to downshift.
4. Cool Your Bedroom Down
Your core body temperature needs to drop by approximately one degree Celsius to initiate sleep. This is not optional. It is a prerequisite for the cascade of neurochemical changes that transition you from wakefulness to sleep. If your bedroom is too warm, this drop either does not happen or happens too slowly.
The research is remarkably consistent on the optimal range: 18 to 19 degrees Celsius (roughly 65 to 67 degrees Fahrenheit). A 2012 study published in the Journal of Physiological Anthropology found that bedroom temperatures above 24 degrees Celsius significantly increased wakefulness and reduced slow-wave (deep) sleep.
Practical strategies: lower the thermostat, sleep with lighter bedding, keep a window cracked if the outdoor temperature allows it. A warm bath or shower 60 to 90 minutes before bed is also paradoxically helpful: it draws blood to the skin's surface, accelerating heat dissipation, which causes a faster core temperature drop once you get into a cool bed. The bath is not warming you up for sleep. It is cooling you down.
5. Stop Lying in Bed Awake
This is one of the most counterintuitive and most effective principles from Cognitive Behavioral Therapy for Insomnia (CBT-I), the gold-standard treatment for chronic insomnia. It is called stimulus control.
The principle: your bed should be associated with sleep and nothing else (intimacy excepted). When you lie in bed scrolling your phone, watching television, working, or simply lying awake frustrated, you are training your brain to associate the bed with wakefulness. Over weeks and months, the bed becomes a cue for alertness rather than sleep. This is classical conditioning, the same mechanism Pavlov demonstrated with dogs.
The rule is simple but hard to follow: if you have been in bed for approximately 20 minutes and are not asleep, get up. Go to another room. Do something boring in dim light: read a dull book, fold laundry, sit quietly. Return to bed only when you feel genuinely sleepy. Repeat as many times as necessary.
The first week of this practice is often terrible. You might get less sleep, not more. But over two to four weeks, the bed-sleep association strengthens, and most people find they fall asleep faster and wake less during the night. The research on this is robust: a 2015 meta-analysis in Annals of Internal Medicine found that CBT-I was more effective than medication for chronic insomnia, with effects that persisted long after treatment ended.
6. Build a Consistent Schedule (Even on Weekends)
The single most important sleep hygiene variable is consistency. Waking up at the same time every day, including weekends, is more impactful than any supplement, gadget, or sleep hack. Your circadian rhythm is a clock, and clocks work best when they are not constantly being reset.
"Social jet lag" is the term researchers use for the discrepancy between weekday and weekend sleep schedules. Going to bed at midnight and waking at 8 AM on weekends, then switching to 11 PM and 6:30 AM on Monday, creates the biological equivalent of flying across two time zones. A 2017 study in Sleep found that each hour of social jet lag was associated with an 11 percent increase in the likelihood of cardiovascular disease, independent of sleep duration.
The practical advice: pick a wake-up time that works seven days a week. If you need to catch up on sleep, go to bed earlier rather than sleeping in later. This preserves the morning anchor of your circadian rhythm while still allowing more total sleep time.
7. Address the Actual Problem: Racing Thoughts
For many people, the primary barrier to sleep is not physiological. It is cognitive. You lie down, the lights go off, and suddenly every unresolved problem, every incomplete task, and every anxious thought competes for attention. The quiet of the bedroom becomes an amplifier for mental noise.
Two evidence-based approaches work well here. The first is a "worry dump" or brain dump: spend five minutes before bed writing down everything on your mind. Not journaling. Not reflecting. Just getting it out of your head and onto paper. A 2018 study in the Journal of Experimental Psychology found that writing a specific to-do list for the next day (not a general journal entry) helped participants fall asleep an average of nine minutes faster. The specificity matters. Vague entries like "work stuff" do not help. Specific entries like "email Sarah about Q2 budget" do.
The second approach is controlled breathing. Two to five minutes of a slow breathing technique, such as box breathing (inhale 4, hold 4, exhale 4, hold 4) or the 4-7-8 technique, activates the parasympathetic nervous system and directly counteracts the sympathetic arousal that keeps you alert. This is not a mindfulness exercise or a meditation practice. It is a physiological intervention that mechanically shifts your nervous system from "alert" to "rest."
If you struggle with racing thoughts specifically, these two practices together, brain dump then breathing, are worth trying for two weeks before exploring anything else. They are free, they take ten minutes, and the evidence behind both is strong.
Why Not Melatonin?
Melatonin is not useless. It has clear evidence for jet lag and shift work, where the circadian rhythm genuinely needs resetting. It may also help older adults whose natural melatonin production has declined. But for the general population taking 5 or 10 milligram gummies for chronic insomnia, the evidence is weak and the approach is misguided.
The physiological dose of melatonin is 0.3 to 0.5 milligrams. Most commercial melatonin products contain 10 to 20 times this amount. At these supraphysiological doses, melatonin can actually disrupt normal sleep architecture, suppress natural melatonin production over time, and cause next-day grogginess. A 2022 study in JAMA found that the actual melatonin content of commercially available supplements varied by up to 478 percent from what was stated on the label. You do not really know what you are taking.
The behavioral fixes in this article address the causes of poor sleep. Melatonin, at best, masks the symptoms. Start with the behaviors. If they are not enough after four to six weeks, talk to a doctor about a CBT-I program. Melatonin should be a last-resort, short-term tool, not a nightly habit.
Frequently Asked Questions
Why doesn't melatonin work well for most insomnia?
Melatonin is a timing signal, not a sedative. It tells your brain when to sleep, not how to sleep. For most people with insomnia, the problem is not insufficient melatonin but rather behavioral and cognitive factors -- such as irregular schedules, screen use, and anxiety -- that melatonin does not address.
What is sleep pressure and how does it affect falling asleep?
Sleep pressure is the accumulation of adenosine in the brain during waking hours. The longer you are awake, the more adenosine builds up, creating a stronger drive to sleep. Napping clears adenosine and caffeine blocks its receptors, both of which weaken sleep pressure at bedtime.
Does blue light from screens actually ruin your sleep?
Blue light from screens does suppress melatonin, but the effect is modest -- about a 5-10 minute delay in sleep onset. The bigger issue is the cognitive stimulation from screen content (social media, news, work email), which activates your stress response and delays sleep far more than the light itself.
What is the ideal bedroom temperature for sleep?
Research consistently points to 18-19 degrees Celsius (65-67 degrees Fahrenheit) as the optimal range. Your core body temperature needs to drop by about 1 degree Celsius to initiate sleep. A cool room facilitates this thermoregulatory process.
What is CBT-I and is it better than sleeping pills?
CBT-I (Cognitive Behavioral Therapy for Insomnia) is a structured program that addresses the thoughts and behaviors causing insomnia. Multiple meta-analyses show it is more effective than medication long-term, with effects that persist after treatment ends. The American College of Physicians recommends it as first-line treatment for chronic insomnia.
How long before bed should I stop drinking caffeine?
Caffeine has a half-life of 5-6 hours, meaning half the caffeine from a 2 PM coffee is still in your system at 8 PM. Most sleep researchers recommend a hard cutoff of 12-2 PM, or at minimum 8-10 hours before your target bedtime.
References
- Mitchell MD, et al. (2012). Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review. BMC Family Practice, 13, 40.
- Wittmann M, et al. (2006). Social jetlag: Misalignment of biological and social time. Chronobiology International, 23(1-2), 497-509.
- Scullin MK, et al. (2018). The effects of bedtime writing on difficulty falling asleep. Journal of Experimental Psychology: General, 147(1), 139-146.
- Erland LA, Bhavana PS. (2016). Melatonin Natural Health Products and Supplements: Presence of Serotonin and Significant Variability of Melatonin Content. Journal of Clinical Sleep Medicine, 13(2), 275-281.
- Okamoto-Mizuno K, Mizuno K. (2012). Effects of thermal environment on sleep and circadian rhythm. Journal of Physiological Anthropology, 31(1), 14.