By Marcello Cherchi, MD PhD

For patients

Most people have heard of melatonin as a “sleeping pill,” but it has other uses as well. Some researchers believe that melatonin may help patients who have migraines. Melatonin is usually easy to take and has low risk.

For clinicians

Practical summary

Melatonin is produced primarily by the pineal gland, and is minimally available from dietary sources. It is widely known that melatonin plays a role in sleep-wake cycles, but it has numerous other biochemical effects as well, including as an analgesic. It has been observed that circulating melatonin levels are sometimes abnormal in patients with migraine. Emerging evidence suggests that melatonin may play a role in the management of migraine, though this needs to be verified by additional studies. Overall, melatonin appears safe and well-tolerated. Melatonin is available over-the-counter in the United States.

Introduction

The molecule N-acetyl-5-methoxytryptamine, an indoleamine more commonly known as melatonin, is synthesized primarily in the pituitary gland (Ahmad et al. 2023; Zhao et al. 2019). Melatonin serves multiple biological functions, including regulation of sleep-wake cycles. Minimal amounts are available from dietary sources (Ahmad et al. 2023).

Pharmacology

Melatonin binds to several receptors (MT1, MT2, MT3) (Ahmad et al. 2023; Zhao et al. 2019), but also appears to have effects independent of its activity at receptors (Ahmad et al. 2023). Melatonin is hepatically catabolized.

Serum levels of melatonin may be altered in migraine patients (Zielonka 2021), though the reason for this is unclear (Peres 2005; Toglia 1986, 2001; Tseng et al. 2020; Vogler et al. 2006). Melatonin appears to have some analgesic properties (Wilhelmsen et al. 2011). Taking these observations together suggests that exogenous administration may have some role in the management of migraine (Gagnier 2001; Gelfand and Goadsby 2016; Lyon and Langner 2017; Peres 2011; Peres et al. 2006), though the mechanism by which this may help remains to be elucidated (Song et al. 2020; Wilhelmsen et al. 2011; Zielonka 2021).

Adverse effects

Although melatonin is an endogenously-produced hormone and is thus frequently viewed by patients as “natural” and “safe,” exogenously administered melatonin is not risk-free (Tuft et al. 2023). A meta-analysis of placebo-controlled trials of melatonin (when used in the management of sleep disorders) reported that daytime sleepiness occurred in 1.66% of patients, headache occurred in 0.74% of patients, and dizziness occurred in 0.74% of patients (Besag et al. 2019). Overall the rate of adverse effects is low, and the risk also appears low. Generally, melatonin is well-tolerated (Rosenberg 2016).

Cautions and contraindications

Melatonin appears to be safe in pregnancy and lactation (Vine et al. 2022).

Relevance in otoneurology

The main relevance of melatonin in otoneurology is probably in the management of migraine associated vertigo, extrapolating from the literature regarding melatonin for migraine headaches.  Melatonin has been studied in randomized controlled trials versus placebo (Alstadhaug et al. 2010; Ebrahimi-Monfared et al. 2017) and versus other medications (Gonçalves et al. 2016).  While some reviews describe these trials as demonstrating a “positive trend” (Moreno-Ajona et al. 2021), earlier systematic reviews and meta-analyses conclude that the evidence is still emerging (Leite Pacheco et al. 2018; Liampas et al. 2020; Long et al. 2019; Puliappadamb et al. 2022; Yamanaka et al. 2021).  A more recent meta-analysis of 9 randomized controlled trials (788 patients) concluded that melatonin is superior to placebo in terms of reducing migraine attack duration, reducing the number of headache days, reducing headache severity, and reducing the need for analgesics; furthermore, melatonin was generally well-tolerated (Abouelmagd et al. 2026).

Other notes

Melatonin is currently available over-the-counter in the United States. The most commonly used dose for migraine prophylaxis is 3 mg per night (Peres et al. 2004).

References

Abouelmagd ME, Aldemerdash MA, Khatatbeh AA, Osman ASA, Abbas A, Allam S, AlEdani EM, Aldemerdash A, Monteith TS (2026) Efficacy and Safety of Melatonin in Migraine Prophylaxis: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Curr Pain Headache Rep 30: 25. doi: 10.1007/s11916-025-01461-5

Ahmad SB, Ali A, Bilal M, Rashid SM, Wani AB, Bhat RR, Rehman MU (2023) Melatonin and Health: Insights of Melatonin Action, Biological Functions, and Associated Disorders. Cell Mol Neurobiol 43: 2437-2458. doi: 10.1007/s10571-023-01324-w

Alstadhaug KB, Odeh F, Salvesen R, Bekkelund SI (2010) Prophylaxis of migraine with melatonin: a randomized controlled trial. Neurology 75: 1527-32. doi: 10.1212/WNL.0b013e3181f9618c

Besag FMC, Vasey MJ, Lao KSJ, Wong ICK (2019) Adverse Events Associated with Melatonin for the Treatment of Primary or Secondary Sleep Disorders: A Systematic Review. CNS Drugs 33: 1167-1186. doi: 10.1007/s40263-019-00680-w

Ebrahimi-Monfared M, Sharafkhah M, Abdolrazaghnejad A, Mohammadbeigi A, Faraji F (2017) Use of melatonin versus valproic acid in prophylaxis of migraine patients: A double-blind randomized clinical trial. Restor Neurol Neurosci 35: 385-393. doi: 10.3233/rnn-160704

Gagnier JJ (2001) The therapeutic potential of melatonin in migraines and other headache types. Altern Med Rev 6: 383-9.

Gelfand AA, Goadsby PJ (2016) The Role of Melatonin in the Treatment of Primary Headache Disorders. Headache 56: 1257-66. doi: 10.1111/head.12862

Gonçalves AL, Martini Ferreira A, Ribeiro RT, Zukerman E, Cipolla-Neto J, Peres MF (2016) Randomised clinical trial comparing melatonin 3 mg, amitriptyline 25 mg and placebo for migraine prevention. J Neurol Neurosurg Psychiatry 87: 1127-32. doi: 10.1136/jnnp-2016-313458

Leite Pacheco R, de Oliveira Cruz Latorraca C, Adriano Leal Freitas da Costa A, Luiza Cabrera Martimbianco A, Vianna Pachito D, Riera R (2018) Melatonin for preventing primary headache: A systematic review. Int J Clin Pract 72: e13203. doi: 10.1111/ijcp.13203

Liampas I, Siokas V, Brotis A, Vikelis M, Dardiotis E (2020) Endogenous Melatonin Levels and Therapeutic Use of Exogenous Melatonin in Migraine: Systematic Review and Meta-Analysis. Headache 60: 1273-1299. doi: 10.1111/head.13828

Long R, Zhu Y, Zhou S (2019) Therapeutic role of melatonin in migraine prophylaxis: A systematic review. Medicine (Baltimore) 98: e14099. doi: 10.1097/md.0000000000014099

Lyon C, Langner S (2017) PURLs: Consider melatonin for migraine prevention. J Fam Pract 66: 320-322.

Moreno-Ajona D, Villar-Martínez MD, Goadsby PJ (2021) Emerging Targets for Migraine Treatment. Neurol India 69: S98-s104. doi: 10.4103/0028-3886.315989

Peres MF (2005) Melatonin, the pineal gland and their implications for headache disorders. Cephalalgia 25: 403-11. doi: 10.1111/j.1468-2982.2005.00889.x

Peres MF (2011) Melatonin for migraine prevention. Curr Pain Headache Rep 15: 334-5. doi: 10.1007/s11916-011-0219-x

Peres MF, Masruha MR, Zukerman E, Moreira-Filho CA, Cavalheiro EA (2006) Potential therapeutic use of melatonin in migraine and other headache disorders. Expert Opin Investig Drugs 15: 367-75. doi: 10.1517/13543784.15.4.367

Peres MF, Zukerman E, da Cunha Tanuri F, Moreira FR, Cipolla-Neto J (2004) Melatonin, 3 mg, is effective for migraine prevention. Neurology 63: 757. doi: 10.1212/01.wnl.0000134653.35587.24

Puliappadamb HM, Maiti R, Mishra A, Jena M, Mishra BR (2022) Efficacy and Safety of Melatonin as Prophylaxis for Migraine in Adults: A Meta-analysis. J Oral Facial Pain Headache 36: 207–219. doi: 10.11607/ofph.3211

Rosenberg K (2016) Melatonin: Safe And Effective for the Prevention of Migraine Headache. Am J Nurs 116: 69. doi: 10.1097/01.NAJ.0000494704.01488.c1

Song TJ, Kim BS, Chu MK (2020) Therapeutic role of melatonin in migraine prophylaxis: Is there a link between sleep and migraine? Prog Brain Res 255: 343-369. doi: 10.1016/bs.pbr.2020.05.014

Toglia JU (1986) Is migraine due to a deficiency of pineal melatonin? Ital J Neurol Sci 7: 319-23. doi: 10.1007/bf02340869

Toglia JU (2001) Melatonin: a significant contributor to the pathogenesis of migraine. Med Hypotheses 57: 432-4. doi: 10.1054/mehy.2001.1337

Tseng PT, Yang CP, Su KP, Chen TY, Wu YC, Tu YK, Lin PY, Stubbs B, Carvalho AF, Matsuoka YJ, Li DJ, Liang CS, Hsu CW, Chen YW, Shiue YL (2020) The association between melatonin and episodic migraine: A pilot network meta-analysis of randomized controlled trials to compare the prophylactic effects with exogenous melatonin supplementation and pharmacotherapy. J Pineal Res 69: e12663. doi: 10.1111/jpi.12663

Tuft C, Matar E, Menczel Schrire Z, Grunstein RR, Yee BJ, Hoyos CM (2023) Current Insights into the Risks of Using Melatonin as a Treatment for Sleep Disorders in Older Adults. Clin Interv Aging 18: 49-59. doi: 10.2147/CIA.S361519

Vine T, Brown GM, Frey BN (2022) Melatonin use during pregnancy and lactation: A scoping review of human studies. Braz J Psychiatry 44: 342-348. doi: 10.1590/1516-4446-2021-2156

Vogler B, Rapoport AM, Tepper SJ, Sheftell F, Bigal ME (2006) Role of melatonin in the pathophysiology of migraine: implications for treatment. CNS Drugs 20: 343-50. doi: 10.2165/00023210-200620050-00001

Wilhelmsen M, Amirian I, Reiter RJ, Rosenberg J, Gögenur I (2011) Analgesic effects of melatonin: a review of current evidence from experimental and clinical studies. J Pineal Res 51: 270-7. doi: 10.1111/j.1600-079X.2011.00895.x

Yamanaka G, Kanou K, Takamatsu T, Takeshita M, Morichi S, Suzuki S, Ishida Y, Watanabe Y, Go S, Oana S, Kawashima H (2021) Complementary and Integrative Medicines as Prophylactic Agents for Pediatric Migraine: A Narrative Literature Review. J Clin Med 10. doi: 10.3390/jcm10010138

Zhao D, Yu Y, Shen Y, Liu Q, Zhao Z, Sharma R, Reiter RJ (2019) Melatonin Synthesis and Function: Evolutionary History in Animals and Plants. Front Endocrinol (Lausanne) 10: 249. doi: 10.3389/fendo.2019.00249

Zielonka D (2021) Melatonin secretion in migraine patients: the current state of knowledge. Neurol Neurochir Pol 55: 5-7. doi: 10.5603/PJNNS.a2021.0002

Page first published on April 18, 2024. Page last updated on March 7, 2026

Loading