The best thing to take for sleep depends on why you’re not sleeping well, but for most people, melatonin at a low dose (1 to 3 milligrams) is the most effective and well-studied over-the-counter option. It works best when your sleep trouble is about timing, like falling asleep too late, adjusting to jet lag, or dealing with shift work. Magnesium is a strong second choice, especially if stress or restlessness keeps you awake. Beyond those two, several other options are worth knowing about.
Melatonin: Best for Falling Asleep Faster
Melatonin is a hormone your brain already produces. When darkness falls, your pineal gland releases it, telling your body’s internal clock that it’s time to wind down. Supplemental melatonin works the same way: it binds to the same receptors that regulate your sleep-wake cycle and nudges your body toward sleepiness.
Here’s where most people get the dosage wrong. Melatonin is commonly sold in 5 and 10 milligram tablets, but research shows that doses as low as 0.3 to 1 milligram can restore nighttime melatonin to normal levels. Johns Hopkins Medicine recommends 1 to 3 milligrams, taken two hours before bedtime. Higher doses don’t necessarily work better and can cause grogginess the next morning.
Timing matters more than dose. Taking melatonin right before bed is a common mistake. Because it works by shifting your circadian clock rather than sedating you, it needs a runway. Two hours before your target bedtime is the sweet spot. For jet lag, start taking it two hours before bedtime at your destination a few days before you travel.
Melatonin does have some interactions worth knowing about. It can increase bleeding risk if you take blood thinners and may affect blood sugar levels in people on diabetes medications.
Magnesium: Best for Stress-Related Sleeplessness
If your problem is less about your sleep schedule and more about a racing mind or tense body, magnesium may be the better fit. It works through a completely different pathway than melatonin. Magnesium helps regulate GABA, the neurotransmitter responsible for calming your nervous system. By supporting GABA signaling, magnesium promotes physical relaxation and reduces the kind of mental chatter that keeps you staring at the ceiling.
Many people are mildly deficient in magnesium without realizing it, since modern diets often fall short. Forms marketed for sleep include magnesium glycinate and magnesium threonate, both of which are better absorbed and less likely to cause digestive issues than magnesium oxide. Taking it 30 to 60 minutes before bed is a reasonable starting point. Unlike melatonin, magnesium offers additional benefits for muscle cramps, headaches, and general stress management, making it a practical daily supplement even beyond sleep.
Antihistamine Sleep Aids: Quick but Limited
The active ingredient in most drugstore sleep aids (like ZzzQuil, Unisom SleepTabs, and store-brand versions) is either diphenhydramine or doxylamine. These are antihistamines that cause drowsiness as a side effect, and they do work for knocking you out in the short term.
The problem is tolerance. Your body adjusts to antihistamines relatively quickly, so they stop working after regular use. They also carry anticholinergic effects, meaning they block a neurotransmitter involved in memory and cognition. In older adults, this can cause confusion and increase fall risk. For the occasional rough night, they’re fine. As a regular sleep strategy, they’re a poor choice.
CBD: Promising but Still Unclear
CBD has gained popularity as a sleep aid, and there is some logic behind it. Its effects on sleep appear to be linked to anxiety reduction rather than direct sedation. Current clinical trials are testing doses between 50 and 150 milligrams per day, gradually increasing from a morning dose to a bedtime dose. Researchers are measuring sleep quality using standardized questionnaires rather than brain-wave monitoring, which means we don’t yet have detailed data on how CBD affects sleep stages like deep sleep or REM.
The practical challenge with CBD is consistency. Product quality varies enormously, and the dose that works for one person may not work for another. If you try it, look for third-party tested products and start at the lower end of the dosing range.
Tart Cherry Juice: A Food-Based Option
Tart cherry juice is one of the few foods with meaningful natural melatonin content. Montmorency tart cherries contain more than six times the melatonin of other tart cherry varieties and also provide tryptophan, the amino acid your body converts into both serotonin and melatonin. The Cleveland Clinic suggests starting with 4 ounces of juice or half a cup of fruit. It won’t hit as hard as a supplement, but for someone who prefers a dietary approach or only needs a mild nudge toward sleepiness, it’s a reasonable option. Just watch for the sugar content in commercial juice brands.
Prescription Sleep Medications
Prescription options like eszopiclone, zolpidem, and zopiclone are significantly more effective at improving sleep quality than melatonin in clinical comparisons. A large network meta-analysis published in The Lancet found that these drugs, along with benzodiazepines, consistently outperformed melatonin for acute insomnia treatment. That gap in effectiveness is real, but so are the tradeoffs: dependence, next-day impairment, and rebound insomnia when you stop.
These medications are designed for diagnosed insomnia disorder, not for the person who has a few bad nights a week. If over-the-counter options aren’t cutting it after several weeks of consistent use and good sleep habits, that’s the point where a prescription conversation makes sense.
What Actually Works Best Long-Term
No supplement replaces the basics. Keeping a consistent wake time (even on weekends), avoiding screens for an hour before bed, keeping your room cool and dark, and cutting caffeine by early afternoon will do more for your sleep than any pill. Supplements work best as one piece of a larger routine, not as a standalone fix.
For choosing between options: melatonin if your sleep timing is off, magnesium if you’re wired and restless, and antihistamines only for the rare terrible night. If anxiety is the root cause, CBD is worth exploring, though the evidence is still catching up to the hype. And if nothing over the counter is helping after a few weeks of genuine effort, the issue may be something a sleep specialist can identify, like sleep apnea or a circadian rhythm disorder, rather than a supplement deficiency.