What to Take for Sleep: From Melatonin to Prescriptions

The most effective sleep aid depends on why you’re not sleeping well. For occasional restlessness, over-the-counter antihistamines or melatonin work for most people in the short term. For ongoing sleep trouble, supplements like magnesium, L-theanine, and glycine offer gentler options with fewer side effects. Here’s a practical breakdown of what’s available, what actually works, and what to watch out for.

Melatonin: The Most Popular Starting Point

Melatonin is a hormone your body already produces to signal that it’s time to sleep. Supplemental melatonin works best for shifting your sleep timing rather than knocking you out. It’s particularly useful for jet lag, shift work, or a sleep schedule that’s drifted late. Most people take far more than they need. Doses of 0.5 to 3 mg taken 30 to 60 minutes before bed are typically enough. Higher doses don’t work better and can leave you groggy the next morning.

Melatonin is safe for short-term use but isn’t well studied beyond a few months. It also won’t do much if your problem is staying asleep rather than falling asleep.

Over-the-Counter Antihistamines

The two most common OTC sleep aids, diphenhydramine (the active ingredient in Benadryl and ZzzQuil) and doxylamine (found in Unisom SleepTabs), both work by blocking a brain chemical that promotes wakefulness. They’re sedating and widely available, which makes them a go-to for many people. Diphenhydramine has a half-life of about 9 hours, meaning it lingers in your system well into the next morning and can cause grogginess, dry mouth, and brain fog.

The bigger concern is long-term use. These drugs have anticholinergic effects, meaning they interfere with a neurotransmitter involved in memory and cognition. A large study found that taking anticholinergic drugs for the equivalent of three years or more was associated with a 54% higher risk of dementia compared to minimal use. That doesn’t mean one pill causes harm, but these are not meant for nightly use over months or years. Your body also builds tolerance quickly, often within a week or two, so they stop working as well.

Magnesium for Relaxation and Sleep

Magnesium helps balance excitatory and calming neurotransmitters in the brain, and it plays a role in your body’s production of melatonin. Many people are mildly deficient without knowing it, especially if their diet is low in leafy greens, nuts, and seeds. Supplementing can genuinely improve sleep quality for those people.

The form matters. Magnesium citrate has the most research behind it as a sleep aid, but it also has a strong laxative effect. Unless constipation is part of your problem, magnesium glycinate is a better choice. It’s easier on the gut and well absorbed. Magnesium oxide is the cheapest option and still useful, though your body absorbs less of it. A typical dose is 200 to 400 mg taken in the evening. Effects tend to build over days to weeks rather than working dramatically the first night.

L-Theanine: Calm Without Drowsiness

L-theanine is an amino acid found naturally in green tea. It doesn’t sedate you directly. Instead, it increases alpha brain waves, the same pattern your brain produces during relaxed, meditative states. Studies show doses of 50 to 200 mg shift brain activity toward this calmer pattern compared to placebo. The FDA classifies it as generally recognized as safe at up to 250 mg per serving.

For sleep specifically, 200 mg before bed is the dose most often studied. It works well for people whose main problem is a racing mind at bedtime. It won’t force you to sleep, but it lowers the mental noise that keeps you awake. Some people combine it with magnesium for a stronger calming effect.

Glycine: A Surprisingly Simple Option

Glycine is another amino acid, one your body uses in dozens of processes. At a dose of 3 grams before bed, it appears to lower core body temperature. This matters because your body naturally cools down as you fall asleep, and that temperature drop is one of the signals that triggers drowsiness. In human studies, 3 grams of glycine caused no side effects and improved subjective sleep quality. You can take it as a powder dissolved in water since the dose is too large for a single capsule to be practical.

Tart Cherry Juice

Tart cherry juice contains small amounts of naturally occurring melatonin (about 0.135 micrograms per 100 grams of cherries) along with tryptophan, an amino acid your body converts into both serotonin and melatonin. Studies suggest it leads to modestly better and longer sleep. The amounts of melatonin are tiny compared to a supplement, so the benefit likely comes from the combination of compounds rather than melatonin alone. Drinking 8 ounces about an hour before bed is the typical approach. It’s a reasonable option if you prefer getting sleep support from food rather than pills.

CBD and CBN: What the Evidence Actually Shows

Cannabinoid products are heavily marketed for sleep, but the research is still catching up to the hype. A randomized, placebo-controlled study tested 20 mg of CBN (cannabinol, a different compound than CBD) over seven nights. CBN significantly reduced the number of nighttime awakenings and overall sleep disturbance, but it did not help people fall asleep faster. Interestingly, adding CBD to CBN at various doses (10, 20, or 100 mg) did not improve results. CBD on its own may help with anxiety-driven sleep problems, but there’s limited clinical evidence that it directly improves sleep quality in people without anxiety.

If you try cannabinoid products, start with a low dose and be aware that quality varies wildly between brands. Look for products with third-party lab testing.

Prescription Options: What’s Changed

If over-the-counter options haven’t worked, prescription sleep medications have improved significantly in recent years. Older drugs like benzodiazepines (Valium, Halcion) stay in your system for hours, with half-lives of 3 to 8 hours depending on the drug. They carry real risks of dependence, morning grogginess, and next-day impairment. Valium at a 6 to 8 hour half-life, for example, means the drug is still quite active when your alarm goes off.

Newer non-benzodiazepine options were designed to clear faster. Ambien has a half-life under two and a half hours, while Sonata clears in just 30 to 60 minutes, making it useful for middle-of-the-night waking. Lunesta sits at about six hours, so morning grogginess is more likely with that one.

The newest class targets your brain’s wakefulness system directly rather than broadly sedating you. These drugs, called orexin receptor antagonists, block the signals that keep you alert. In meta-analyses, they were highly effective at helping people fall and stay asleep without impairing cognition the next day. At low and medium doses, they actually reduced driving accidents compared to placebo, while medium and high doses of older sleep drugs like zolpidem (Ambien) significantly increased them. This class represents a meaningful improvement in safety for people who need ongoing prescription help.

Combining Approaches

Many people get the best results by stacking a few gentle interventions rather than relying on one strong one. A common combination is magnesium glycinate (300 mg) plus L-theanine (200 mg) taken 30 to 60 minutes before bed. Adding glycine (3 grams) rounds out the stack if you want something more. These supplements work through different mechanisms, so they complement rather than compete with each other.

Timing also matters more than most people realize. Taking anything for sleep works better when paired with a consistent bedtime, dimmed lights in the hour before bed, and a cool bedroom (around 65 to 68°F). No supplement can fully override a bright screen two inches from your face at midnight. The supplements lower the threshold for sleep; your habits determine whether you cross it.