Several effective options exist for insomnia, ranging from behavioral therapy and natural supplements to over-the-counter antihistamines and prescription medications. The American Academy of Sleep Medicine recommends cognitive behavioral therapy for insomnia (CBT-I) as the most effective first-line treatment, but supplements like melatonin and magnesium, OTC sleep aids, and newer prescription drugs can all play a role depending on the type and severity of your sleep problems.
Behavioral Therapy: The Most Effective Starting Point
CBT-I is a structured program, typically lasting four to eight weeks, that helps you identify and replace thoughts and habits that fuel insomnia. It includes techniques like sleep restriction (limiting time in bed to match actual sleep time), stimulus control (using your bed only for sleep), and relaxation training. Unlike medications, CBT-I produces lasting improvements that persist after you stop treatment. The AASM’s clinical guidelines suggest that CBT-I alone often produces durable results without the risks that come with medications.
You can access CBT-I through a sleep specialist, a trained therapist, or digital programs. It requires more effort than taking a pill, but the payoff is that you’re fixing the underlying problem rather than masking it.
Melatonin
Melatonin is one of the most widely used sleep supplements, and it works best for people whose internal clock is out of sync with their schedule. It doesn’t sedate you the way a sleeping pill does. Instead, it signals your brain that it’s time for sleep. The NHS recommends a starting dose of 2 mg in a slow-release form, taken one to two hours before bedtime for short-term insomnia. For longer-term sleep problems, the same 2 mg dose taken 30 minutes to one hour before bed is typical.
Many people take far more than they need. Higher doses don’t necessarily work better and can cause morning grogginess or vivid dreams. Starting low and adjusting is the smarter approach.
Magnesium
Magnesium helps regulate the chemical messengers in your brain that are directly involved in sleep. If you’re deficient (and many adults are), supplementing may improve your ability to fall and stay asleep. The form matters: magnesium glycinate and magnesium citrate are the ones to look for. Magnesium oxide, which is commonly sold, is primarily a stool softener and probably won’t help your insomnia.
Magnesium is unlikely to be a dramatic fix on its own, but it’s safe for most people and can be a useful piece of the puzzle, especially alongside good sleep habits.
Valerian Root and Chamomile
Valerian root, a flowering plant that’s been used as a sleep remedy for centuries, has some clinical support. Multiple studies indicate it may reduce the time it takes to fall asleep and improve overall sleep quality. That said, the evidence is mixed. Not all studies have found it effective, and because dosages have varied widely across research, there’s no consensus on the ideal amount or duration of use.
Chamomile tea is one of the most popular bedtime rituals, and while the warmth and routine likely contribute to relaxation, the clinical evidence for chamomile as a standalone insomnia treatment is limited. It’s safe and pleasant, but don’t expect it to resolve persistent sleep problems on its own.
Over-the-Counter Sleep Aids
The two main OTC sleep medications are diphenhydramine (the active ingredient in Benadryl and many “PM” products) and doxylamine (found in Unisom SleepTabs). Both are antihistamines that cause drowsiness as a side effect, which is why they’re marketed for sleep.
They work, but with caveats. You need to plan for seven to eight hours of sleep after taking doxylamine, because getting up too soon will leave you genuinely drowsy. Next-day grogginess is common with both drugs. Your body also builds tolerance quickly, meaning they become less effective within a few days to weeks of regular use. These are best reserved for occasional sleepless nights, not ongoing insomnia.
Prescription Medications
When behavioral approaches and OTC options aren’t enough, doctors can prescribe sleep medications. The newer class worth knowing about is called orexin receptor antagonists. These work by blocking the brain’s wakefulness signals rather than sedating the entire nervous system. This is a fundamentally different approach from older sleep medications, which amplify the brain’s braking system to broadly suppress activity.
The practical difference matters. In research, older sedatives like zolpidem caused significant impairment in motor coordination at sleep-promoting doses and made the effects of alcohol much worse. Orexin receptor antagonists, at equally effective sleep-promoting doses, did not impair motor performance and did not amplify the effects of alcohol in the same way. That translates to a lower risk of falls, next-day impairment, and dangerous interactions.
Older prescription options like zolpidem are still commonly used, but they carry real dependency risks. Withdrawal symptoms can include headaches, irritability, tremors, sweating, anxiety, and in severe cases, seizures. There’s no standardized protocol for tapering off these drugs, which makes stopping them more complicated than starting them. If your doctor prescribes one, it’s worth having a clear plan for how long you’ll take it and how you’ll stop.
CBD
CBD products are increasingly marketed for sleep, but the clinical evidence is still catching up to the hype. A recent double-blind, placebo-controlled trial tested 300 mg of CBD taken one hour before bedtime over four weeks, measuring its effects on deep sleep and REM sleep. Results were published in the Journal of Clinical Sleep Medicine in early 2025. While this is a step toward rigorous evidence, CBD for insomnia remains an area where marketing has outpaced science. Quality and dosing also vary enormously between products, since CBD supplements aren’t regulated the way medications are.
What to Avoid When Taking Sleep Aids
Alcohol is the biggest risk multiplier. Combining alcohol with any sleep aid, whether it’s an OTC antihistamine, a prescription sedative, or even an herbal preparation like kava, intensifies drowsiness and impairs coordination far beyond what either substance does alone. This combination increases the risk of falls, breathing problems, overdose, and dangerous memory lapses. Even small amounts of alcohol can make this interaction serious.
Many cold, flu, and allergy medications already contain sedating antihistamines. If you’re taking a “PM” version of a pain reliever or cold medicine, you may be doubling up on sleep-inducing ingredients without realizing it. Check labels for diphenhydramine or doxylamine before adding a separate sleep aid.
Combining Approaches
The AASM’s guidelines suggest that combining CBT-I with medication works better than medication alone, with meaningful improvements in key sleep measures for some patients. However, CBT-I alone often works well enough that adding a drug isn’t necessary. The guideline specifically recommends against choosing combination therapy over CBT-I alone, since the behavioral approach frequently produces lasting improvement without the added risks of medication.
In practice, this means the strongest strategy is to start with CBT-I and good sleep habits, layer in a low-risk supplement like melatonin or magnesium if helpful, and reserve OTC or prescription medications for short-term use when you need more support. The goal is always to build sleep skills that work without chemical assistance, then use medications as a bridge rather than a permanent solution.

