If you’re asking how much melatonin to take, start with the number Harvard Health’s Dr. John Winkelman gives for jet lag: 1 to 3 mg about an hour before bedtime, with 2 mg or less for older adults. Yale Medicine’s Dr. Brienne Miner says generally no one should need more than 5 to 10 mg unless they have REM sleep behavior disorder. Those numbers frame the rest of this page, and the medicines you take every day matter as much as the dose.

Is 1 mg enough, and how much is too much?
A 1 mg dose sits at the low end of the range Dr. Winkelman gives for jet lag.
The ceiling is where the experts differ most. Dr. Winkelman says melatonin generally doesn’t produce side effects as long as you don’t take more than 5 to 6 mg. Dr. Miner says the brain releases about 0.3 mg in 24 hours, that over-the-counter products range from 1 mg to more than 10 mg per dose, and that generally no one should need more than 5 to 10 mg unless they have REM sleep behavior disorder. A 2022 review in Neurologia says the most suitable dose ranges are yet to be clearly defined.
| Expert | What they say about dose |
|---|---|
| Harvard Health (Dr. John Winkelman) | 1 to 3 mg about an hour before bedtime for jet lag; 2 mg or less for older adults; generally no side effects below 5 to 6 mg |
| Yale Medicine (Dr. Brienne Miner) | The body makes about 0.3 mg a day; generally no more than 5 to 10 mg unless REM sleep behavior disorder; take about an hour before bedtime |
Think of these as a sensible range to start from. The right amount for you is your call to make, with good information in hand.
Can you trust the number on the label?
A dose only matters if the bottle contains what it says. Yale Medicine reports that a 2023 study in the Journal of the American Medical Association found melatonin content in tested products ranged from 74% to 347% of the label amount. Harvard Health cites a 2023 Harvard study that found 22 of 25 brands of melatonin gummies had higher or lower doses than listed, and one brand had more than three times the labeled dose.
Look for a seal from the U.S. Pharmacopeia or NSF. Harvard Health says these independent testing groups can give you some assurance about quality. Yale Medicine adds that the FDA does not approve supplements for safety or effectiveness before they’re sold.
What can melatonin help with?
Melatonin is a hormone your brain makes to set your sleep-wake rhythm, and the supplement is a synthetic version of it. Dr. Miner says it is mostly involved with sleep initiation, which is why it’s most often discussed for trouble falling asleep. Harvard Health’s melatonin and magnesium article says small studies suggest melatonin can help people who have difficulty falling asleep at bedtime and waking up in the morning (delayed sleep-wake phase disorder, a body clock that runs late). It also cites a 2022 analysis suggesting melatonin may reduce the time it takes to fall asleep in people with insomnia.
For jet lag, Harvard Health says melatonin appears to relieve it, especially after eastbound flights. Taken in the morning for westward travel, it adjusts your internal clock later; taken in the evening for eastward travel, it resets it earlier. Harvard Health also says there is no solid proof that either melatonin or magnesium helps you stay asleep once you’ve dozed off.
Is it safe to take melatonin every day?
Harvard Health says the safety of long-term melatonin use hasn’t been adequately studied, and that the hormone is generally considered safe in low doses for the short term. Yale Medicine says research on long-term effects is limited. A 2015 review on melatonin in humans says larger trials are needed to confirm how well it works and that it is safe over the long term.
Dr. Miner says small doses can serve as a short-term or even long-term fix for some sleep problems. She urges people with ongoing problems to talk with a medical provider rather than relying on the supplement. If you find you need it every night, get evaluated for an underlying sleep disorder.
Melatonin and your other medicines
If you take anything every day, read this part first. Harvard Health says melatonin can change how well many medicines work, including blood thinners, anticonvulsants, blood pressure drugs, sedating medicines, diabetes medications, contraceptives and medicines that calm the immune system. Yale Medicine notes that research suggests negative drug interactions are rare. If you take one of these medicines, speak with your doctor before you start melatonin.
Who should avoid melatonin, and what are the side effects?
Harvard Health says melatonin is not generally recommended if you are pregnant or breastfeeding, or if you have a bleeding disorder, depression or seizures. Dr. Miner cautions against doses above 10 mg if you have liver problems, because the liver clears melatonin from the blood.
| Side effect | Where it is reported |
|---|---|
| Bad dreams, grogginess or a hangover the next morning | Harvard Health (Dr. Winkelman) |
| Irritability, restlessness, headache, anxiety, nausea or constipation | Harvard Health |
| Daytime sleepiness, headaches, dizziness or mood changes | Yale Medicine |
Is there a sleeping pill I can take every night?
Prescription sleep medicines are a different category from melatonin, and they come with their own trade-offs. Dr. Miner notes that for older adults, prescription sleep aid side effects can include cognitive problems, falls and driving impairment. If you’re weighing a prescription, your clinician is the right person to talk it through with, because they know your health history.
What is the safest sleep aid to take?
Safety depends on you and on why you can’t sleep. The option the experts put first is cognitive behavioral therapy for insomnia, usually called CBT-I. Harvard Health calls it the first-line treatment for insomnia.
What is CBT-I, and what can you start tonight?
CBT-I combines work on anxious thoughts about sleep with behavior changes. Harvard Health describes these as stable bedtimes and wake times, less time spent in bed, and cutting back on caffeine and alcohol. Those are habits you can start tonight, and they don’t need a prescription.
Harvard Health’s habits start with stable bedtimes and wake times, so going to bed and getting up at similar times each day is a good place to begin. To see how your body clock fits in, read the sleep-hormone connection.
Melatonin, magnesium and everyday options side by side
Here is each option the experts and studies bring up, with what the research shows and where it stops. Prices change by brand, store and pack size, so check the shelf or label for supplements, and ask a clinician or your insurer what a therapy or prescription would cost you.
| Option | What it is | What the research shows | Who it may suit | Limits |
|---|---|---|---|---|
| CBT-I | Structured therapy, usually with a clinician | First-line treatment per Harvard Health | Ongoing trouble sleeping | Asks for steady effort on new habits |
| Prescription sleep medicines | Prescribed hypnotics | Yale Medicine notes side effects for older adults can include cognitive problems, falls and driving impairment | Chosen with a clinician | Needs a prescription and a clinician’s oversight |
| Melatonin | Over-the-counter hormone supplement | Small studies suggest help with falling asleep, delayed sleep-wake phase and jet lag; the American Academy of Sleep Medicine does not recommend it for recurrent or ongoing insomnia (Harvard Health) | Trouble falling asleep, jet lag | Label strength varies; long-term safety not well studied; medicine interactions |
| Magnesium (magnesium glycinate) | Over-the-counter mineral supplement | Harvard Health says clinical studies have not shown a consistent benefit for magnesium | People weighing magnesium for sleep | Doses above 350 mg a day for adults can cause side effects, per Harvard Health |
| Sleep habits and routine | Everyday changes, no supplement | Harvard Health describes stable bedtimes and wake times and cutting back on caffeine and alcohol | Anyone who wants to start here | Needs consistency |
What about magnesium?
Dr. Winkelman says he rarely recommends melatonin and never recommends magnesium, and that there’s no study that has compared the two head to head. Harvard Health says clinical studies have not shown a consistent benefit for magnesium, and that it appears safe for long-term use if you stay within safe limits and your kidneys are healthy.
What if melatonin doesn’t help?
If you’ve tried melatonin and still lie awake, that’s worth paying attention to. Dr. Miner says needing melatonin every night is a reason to be evaluated for an underlying sleep disorder. Harvard Health’s Dr. Winkelman advises discussing a sleep problem with a health care provider, since medications, health conditions and stress can all disrupt sleep. If pain is part of what keeps you up, see some tips for reducing pain while sleeping, and mention it to your clinician along with your sleep.
Where melatonin fits among your options
Melatonin is still sold over the counter, and Harvard Health describes it as readily available in stores. The narrower point is about recommendations: the American Academy of Sleep Medicine does not recommend melatonin for recurrent or ongoing insomnia. That’s the position to keep in mind when a news story makes melatonin sound like a routine fix.
What is still unknown
- The best dose has not been established, according to Harvard Health.
- Long-term safety has not been adequately studied (Harvard Health), and research on long-term effects is limited (Yale Medicine).
- Melatonin’s ability to keep you asleep is not solidly proven.
- The strength of store-bought products varies from the label.
- Results in older adults are inconsistent, per Harvard Health.
Before you take melatonin, check these
- Which prescriptions, supplements and over-the-counter medicines do you take now?
- Is your trouble falling asleep new, or has it gone on for weeks?
- Are you pregnant, breastfeeding, or living with a bleeding disorder, depression or seizures?
- Does the label show a U.S. Pharmacopeia or NSF seal?
By The Nerve & Joint Pain Desk Editorial Team
This article is for general information purposes only and does not constitute medical advice. Consult your doctor or qualified healthcare provider before making changes to your health routine.