VitMode

Melatonin and Migraine in Children: Can a Supplement Replace Preventive Medication?

Migraine in children can seriously disrupt school, sleep, and daily life, and parents looking for a gentler alternative to prescription drugs increasingly come across melatonin as a preventive option. A carefully designed, randomized, placebo-controlled trial from the University of California, San Francisco, however, tells a much less clear-cut story than popular articles suggesting a ready-made solution.

JWJulia WiśniewskaSeptember 2, 202611 min read
Table of contents

Pediatric migraine isn't just a "stronger headache"

Migraine in children is often dismissed as an ordinary headache, but it's actually a distinct neurological condition that can knock a child out of school, play, and sleep for hours at a time, and in more severe cases recur several times a month for years. In children, nausea, vomiting, and sensitivity to light and sound accompany it more often than in adults, and the attacks themselves tend to be shorter, which sometimes makes diagnosis and differentiation from other causes of headache harder.

When attacks are frequent or significantly disrupt functioning, doctors consider preventive treatment — a medication taken daily meant to reduce the frequency and severity of future attacks, as opposed to acute medications taken during an attack itself. Classic preventive drugs used in children, such as amitriptyline or topiramate, can be effective, but they also carry side effects — drowsiness, weight gain, difficulty concentrating — which are a particularly important factor for parents and doctors when choosing therapy for a developing child.

In this context, melatonin, the hormone that regulates the circadian rhythm and which we cover in more depth in our entry on melatonin, seems like a tempting alternative — it's available without a prescription, has an established reputation as a relatively mild agent, and is associated more with safe sleep support than with a neurological drug. The question is whether that reputation holds up under rigorously designed clinical trials in children, rather than resting on extrapolation from adult studies or informal observations.

Where the idea that melatonin might prevent migraine even comes from

The hypothesis about melatonin's role in migraine didn't come out of nowhere. Migraine has a strong link to the circadian rhythm — in many patients attacks occur at characteristic times of day, and sleep disturbances are simultaneously a common trigger for an attack and a common consequence of the disease itself. Melatonin, as the main hormone regulating the biological clock, also has anti-inflammatory and antioxidant properties that could theoretically influence the mechanisms underlying migraine, independent of its effect on sleep alone.

In adults, earlier studies had suggested that melatonin taken every evening might reduce migraine attack frequency — and it was exactly these results that directly inspired the research team at the University of California, San Francisco (UCSF) to test whether a similar effect could be reproduced in a carefully designed trial in children and adolescents, where this kind of evidence had previously been lacking.

The UCSF trial: a rigorous design that ran into a real problem

Melatonin for migraine prevention in children and adolescents: A randomized, double-blind, placebo-controlled trial after single-blind placebo lead-in

Early-stage evidence

Gelfand AA, Allen IE, Grimes B et al. · Headache · 2023

A randomized, double-blind, placebo-controlled trial in children and adolescents aged 10-17 with migraine confirmed by a headache specialist, having 4-28 headache days out of 28 at baseline. After an 8-week single-blind placebo lead-in period, participants who met the randomization criteria were randomly assigned 1:1:1 to placebo, melatonin 3 mg, or melatonin 6 mg nightly for 8 weeks. The trial was planned for 210 participants but was closed early due to slow enrollment — ultimately 42 people were randomized (14 per arm). Median migraine days in weeks 5-8 of treatment were 2 (interquartile range 1-7) in the placebo group versus 2 (1-12) in the combined melatonin groups — a difference in medians of 0 days (95% CI -9 to 3), with no statistically significant advantage for melatonin. There were no differences in adverse event rates between groups.

View study

Why this trial is still valuable despite the negative result

The authors themselves emphasize that because of the substantial amount of missing data — only participants with at least 21 of 28 diary entries were analyzed, covering 50% of the placebo group and 71% of the melatonin groups — and the inadequate sample size after the trial's early closure, the result shouldn't be interpreted as proof that melatonin doesn't work. This trial shows more about how hard it is to run a rigorous clinical trial in this population than it definitively answers the efficacy question.

What an earlier trial comparing melatonin to a prescription drug found

Before the UCSF trial, an Iranian team from Shahid Sadoughi University of Medical Sciences in Yazd published a smaller, single-blind randomized trial that directly compared melatonin with amitriptyline — one of the standard preventive drugs used in pediatric migraine. The trial enrolled 80 children aged 5-15, who received amitriptyline (1 mg/kg) or melatonin (0.3 mg/kg) for three months.

A good response to treatment was seen in 82.5% of children on amitriptyline versus 62.5% on melatonin — a statistically significant difference favoring amitriptyline (p=0.04). Both substances significantly reduced headache severity, duration, and the PedMIDAS score, which assesses how much migraine disrupts a child's daily functioning, but amitriptyline's effect was more pronounced across nearly every dimension. At the same time, melatonin proved clearly better tolerated: daytime sleepiness was reported by 7.5% of children on melatonin versus a 22.5% combined adverse event rate in the amitriptyline group (sleepiness, constipation, fatigue), a statistically significant difference (p=0.04).

Two trials, two different questions, neither gives a complete answer

Early-stage evidence

The Iranian trial suggests melatonin may work, though less well than a prescription drug — but it had no placebo arm, so some of the observed improvement could reflect the disease's natural course or an expectation effect. The UCSF trial had a placebo arm, but was too small to detect a moderate difference even if one actually existed. Neither trial alone settles the question — only together do they show how incomplete the current state of knowledge is.

Why the single-blind placebo lead-in period matters so much here

One of the more interesting elements of the UCSF trial's methodology was the 8-week lead-in period, during which all participants — before actual randomization — received placebo, knowing they might, but wouldn't necessarily, later be assigned to real treatment. The purpose of such a design is to screen out people in whom clinical attention itself, keeping a headache diary, and regular contact with the research team already produce improvement unrelated to any active substance — a well-known phenomenon in pediatric headache research.

In the UCSF trial, as many as 21% of participants failed to meet the criteria for randomization after this lead-in period, mainly because their headache-day count dropped below the inclusion threshold even before receiving any active treatment. This shows how strong the effect of mere observation can be, and how easily uncontrolled parental reports of a "miraculous" effect of any supplement on a child's migraine might reflect the disease's natural variability rather than a real pharmacological effect.

Myth vs. fact

Myth

Since melatonin is a natural hormone and helps adults with migraine, it will surely safely and effectively prevent migraine in my child too.

Fact

The best placebo-controlled trial to date in children and adolescents found no significant advantage of melatonin over placebo — though because of the small sample size and missing data, this result also doesn't prove melatonin doesn't work. Extrapolating results from adult studies directly onto children, without separate, solid evidence in this specific age group, is generally risky in medicine, and pediatric migraine has its own distinct course and response to treatment.

It's also worth remembering that "natural" doesn't mean "free of side effects or interactions" — melatonin affects the circadian rhythm and in some children can cause excessive daytime sleepiness, paradoxically worsened morning headaches, or mood changes, especially with uncontrolled dosing without medical consultation.

What to consider instead of experimenting on your own

Practical steps for parents considering melatonin for a child's migraine

  • A child's migraine first needs a proper diagnosis — from a pediatrician or pediatric neurologist, not just a home assessment of symptoms
  • It's worth discussing the full range of preventive options with a doctor, including non-pharmacological ones (regular sleep, hydration, avoiding known triggers), before reaching for any supplement
  • If a doctor approves a trial of melatonin, it's worth agreeing on a specific dose and trial duration with them, rather than dosing by feel based on the pharmacy label
  • Keeping a headache diary for several weeks before and after introducing any intervention helps distinguish a real effect from the disease's natural variability
  • Daytime sleepiness, mood changes, or lack of improvement after a reasonable trial period are a signal to go back to the doctor and consider other options, not to increase the dose on your own

Limitations of this evidence

What these trials don't prove

The UCSF trial was closed early with only 42 of the planned 210 participants, drastically limiting its statistical power — a lack of significant difference in such a small sample doesn't equate to proof of no effect. The Iranian trial had no placebo arm and was single-blind rather than double-blind, which limits confidence about the causality of the observed improvement. Neither trial was large or long enough to assess melatonin's safety with many months or years of preventive use in children during a period of intensive development, including its potential effect on hormonal maturation, which remains the subject of separate, still incomplete research.

QuestionShort answer
Does melatonin prevent migraine in children?Unclear — the best available placebo-controlled trial found no advantage, but was too small to settle the question
Is it worse than prescription drugs?In one smaller trial without a placebo arm, amitriptyline was more effective, but melatonin was better tolerated
Is it a safe alternative without a doctor's input?Automatic safety shouldn't be assumed — a trial should be discussed with a pediatrician or pediatric neurologist
Is more research needed?Yes — current evidence in children is too limited for a clear-cut recommendation
Should melatonin be dismissed entirely as an option?No — a negative result in a small trial isn't proof of no effect; the topic needs larger trials, not a final verdict

Melatonin and pediatric migraine at a glance

Our editorial recommendation

It's rare to find such an honest example of how difficult research into pediatric migraine can be: the UCSF team designed a trial to the highest methodological standards, and yet practical recruitment difficulties prevented a clear-cut answer. This isn't a failure of science but exactly what science is supposed to be — admitting uncertainty instead of stretching conclusions from insufficient data.

A negative result in a trial that's too small isn't the same as proof of no effect — it's a reminder that in pediatric medicine, reliable answers sometimes take more time and more participants than have been gathered so far. Until then, any decision about melatonin for a child with migraine should be made together with a doctor, not based on a headline.

Julia Wiśniewska, VitMode editorial team

Frequently asked questions

No. The trial was closed early with 42 of the planned 210 participants due to slow enrollment, which drastically limited its ability to detect a real difference between melatonin and placebo, even if one existed. The authors explicitly state the result shouldn't be interpreted as proof of no effect.

The UCSF trial tested two doses — 3 mg and 6 mg nightly — for 8 weeks, after an earlier 8-week single-blind placebo lead-in period. The Iranian trial used a weight-based dose (0.3 mg/kg) for three months. Dosing for a child should always be determined with a doctor, not based on a supplement label.

In the Iranian trial, melatonin was associated with fewer adverse events (drowsiness in 7.5% of children) than amitriptyline (22.5% combined adverse events, including sleepiness, constipation, and fatigue), but it was also less effective at reducing migraine symptoms. The choice between drugs is always a trade-off between efficacy and tolerability, best assessed together with the child's doctor.

As many as 21% of participants failed to meet the criteria to continue after the 8-week single-blind placebo lead-in period — mainly because their headache-day count dropped below the inclusion threshold even before receiving any active treatment. This shows how strong the effect of mere clinical observation and symptom-diary keeping can be, independent of any active substance.

This isn't recommended. Current evidence in children is too limited and inconclusive to treat melatonin as a proven, stand-alone way to prevent migraine, and incorrect dosing can cause daytime sleepiness or disrupt sleep rhythm. The decision is best made together with a pediatrician or pediatric neurologist after a proper diagnosis.

Earlier studies suggesting a beneficial effect of melatonin on migraine were mostly in adults, and those results were exactly what inspired the trial in children and adolescents. That doesn't automatically mean the adult effect translates directly to the pediatric population — pediatric migraine has its own distinct features, and the UCSF trial didn't clearly confirm such a transfer of effect.

Regular sleep, adequate hydration, avoiding known individual triggers (such as certain foods, long screen time, or irregular meals), and stress-coping techniques are often the first line of action doctors recommend before considering any supplementation or prescription drugs. These approaches usually have a more favorable safety profile than pharmacological interventions.

Sources

JW

Julia Wiśniewska

MSc in Cognitive Neuroscience, host of a sleep-optimization podcast

Julia writes about nootropics, chronobiology and recovery protocols.

Related articles

Related knowledge base entries

Comments (2)

  • KW

    Kasia W. 2 weeks ago

    Very clearly explained, especially the interactions section — I hadn't seen it laid out this well anywhere else.

  • MT

    Marek T. a month ago

    Are you planning to update this with the newest study from this year? I saw an interesting meta-analysis.