
Both CBD and melatonin are widely used as sleep supplements, and both are often shelved next to each other in pharmacies and health stores, implying a rough equivalence. But they work through entirely different mechanisms, have different evidence bases for different types of sleep problems, and suit different people in different situations.
How Melatonin Works
Melatonin is a hormone naturally produced by the pineal gland in response to darkness. It is the primary signal the brain uses to regulate the body’s circadian rhythm, the internal 24-hour clock that determines when we feel sleepy and when we feel alert. Taking supplemental melatonin does not sedate you in the way a sleeping pill does; it works by providing or reinforcing the brain’s timing signal that it is time to sleep. This is why melatonin is most effective for sleep timing problems rather than sleep quality problems. It works well for jet lag (where the timing signal is misaligned with local time), for shift workers trying to sleep at an atypical hour, for people who have a delayed sleep phase (naturally falling asleep much later than they want to), and for helping people fall asleep when they cannot maintain a consistent sleep schedule.
How CBD Relates to Sleep
As discussed in detail in our piece on CBD and sleep architecture, CBD does not work through the melatonin or circadian timing pathway. CBD interacts with the endocannabinoid system and the serotonin 5-HT1A receptor. Its most supported mechanism for sleep benefit is indirect, through anxiety reduction rather than direct sleep promotion. The clinical evidence finding that CBD reduced anxiety in a significant proportion of users aligns with the observation that anxiety-driven sleep disruption (lying awake with racing thoughts, difficulty settling) is the specific type of sleep problem where CBD shows the most consistent benefit. For primary insomnia (difficulty sleeping without an obvious anxiety driver), the evidence is weaker. A 2025 meta-analysis found that cannabinoid formulations containing THC and CBN were associated with improved sleep quality, while CBD alone did not show a statistically significant effect on sleep quality across studies.
Who Each Suits Best
Melatonin is likely the better choice if your sleep problem is primarily one of timing, specifically difficulty falling asleep because you simply are not sleepy early enough, jet lag, shift work sleep disruption, or irregular sleep schedules. It is also generally the better starting point for children’s sleep timing issues under paediatric guidance, given that it is a naturally occurring hormone the body already produces. CBD is more likely to help if your sleep difficulty is driven by anxiety, restlessness, or an overactive mind at bedtime, and if you do not have a significant timing mismatch (if you feel tired but cannot settle). CBD may also be more relevant if you have ongoing pain that disrupts sleep, given its potential analgesic properties discussed in our pain piece.
What the Evidence Says About Combining Them
Several CBD products are specifically formulated with melatonin added, and this combination is logical for people whose sleep difficulties involve both timing and anxiety components. The two mechanisms are complementary rather than redundant: melatonin addresses the circadian signal while CBD may address the anxiety or restlessness component. No large clinical trials have specifically examined the CBD plus melatonin combination in an appropriately powered study, so the combination’s specific efficacy cannot be confirmed beyond the theoretical logic of combining their individual mechanisms. That said, there is no known concern with taking both, and anecdotally many people find the combination more helpful than either alone.
Dosing and Timing
Melatonin is effective at much lower doses than most supplements suggest. Research consistently finds that 0.5 to 1 mg is as effective as or more effective than the 5 to 10 mg doses commonly sold, for most adults. Higher doses do not produce proportionally better sleep and can cause grogginess the following morning. Timing matters: 30 to 60 minutes before the desired sleep time, or up to two hours before for delayed sleep phase issues. For CBD, 25 to 75 mg taken 30 to 60 minutes before bed is a commonly used range for sleep, though optimal dosing is highly individual. As discussed in our CBD dosage piece, the 2025 research suggested higher doses above 100 mg may be more relevant for sleep disruption associated with significant anxiety, though these higher doses approach the upper limits of the general population reference range.
Frequently Asked Questions
Which is better for sleep, CBD or melatonin?
Neither is universally better; they suit different types of sleep problems. Melatonin is better for sleep timing issues, jet lag, shift work, and irregular schedules. CBD is more likely to help if anxiety or restlessness is driving your sleep difficulty. If you are unsure which applies to you, consider whether you feel tired but unable to settle (suggests anxiety, which points to CBD) or whether you simply do not feel sleepy at the right time (suggests a timing issue, which points to melatonin).
Can I take CBD and melatonin together?
Yes. There is no known concern with taking both, and their mechanisms are complementary rather than conflicting. CBD-plus-melatonin products are commercially available and used by people whose sleep problems involve both components. If combining them, start with the lower end of each dose range initially, both to manage cost and to understand which is contributing what to your experience before committing to a regular combined routine.
Does melatonin affect sleep quality or just timing?
Melatonin primarily affects sleep timing rather than sleep architecture. It makes you feel sleepy earlier and helps shift your sleep window, but it does not significantly change the depth of sleep or the proportion of REM versus deep sleep within the sleep period. For people whose sleep problem is poor quality sleep within a normal timing window (waking frequently, not feeling rested), melatonin is less likely to be helpful than approaches addressing sleep architecture directly, which is where some of the CBN research discussed in our sleep architecture piece becomes relevant.
Is melatonin safe to take every night?
For short-term use, melatonin has a good safety profile. For longer-term nightly use, the evidence on habituation or dependence is generally reassuring in that melatonin does not appear to lose effectiveness over time in the way some sleep medications can, and stopping it does not typically produce rebound insomnia. However, for ongoing, chronic sleep difficulties, investigating and addressing the underlying cause with professional guidance is more appropriate than indefinite supplement use, whether melatonin, CBD, or any other product.
Why do higher doses of melatonin seem to work at first but then feel groggy?
This is a well-documented effect. Higher melatonin doses (5 to 10 mg) can cause melatonin levels to remain elevated into the morning hours when they should be declining (rising melatonin signals sleep time; falling melatonin signals wake time). This mismatch between the elevated melatonin level and the time of day produces morning grogginess or a hung-over feeling. Reducing the dose to 0.5 to 1 mg typically preserves the sleep-onset benefit while allowing levels to clear more naturally by morning. Most people using 5 or 10 mg doses are taking more than necessary and could achieve equivalent benefit at a fraction of the dose.
What about CBN as a sleep aid compared to CBD and melatonin?
As covered in our CBG and CBN piece, CBN has more directly relevant sleep research than CBD alone, including a 2025 animal polysomnography study finding increased total sleep time comparable to a pharmaceutical sleep aid, and a human meta-analysis finding CBN-containing cannabinoid formulations (typically with THC) associated with improved sleep quality where CBD alone did not show a significant effect. CBN works through different mechanisms than melatonin and potentially complements it similarly to how CBD does, though with more direct sleep-specific evidence. For people specifically interested in cannabinoid-based sleep support, a CBN-dominant product may be more appropriate than a CBD-dominant one based on current evidence.

