Melatonin and Sleep: How It Works, Dosage, and Side Effects

Melatonin is often called the "sleep hormone," but it does not actually make you sleep. Produced by the pineal gland in response to darkness, melatonin serves as a biological signal that tells your body night has arrived and it is time to prepare for rest. This guide covers how melatonin works, how much to take, when to take it, and what the research says about supplements, side effects, and natural alternatives.

Key Takeaways
  • Melatonin is produced naturally by your pineal gland starting about 2 hours before your habitual bedtime (dim light melatonin onset)
  • Supplement dosing is controversial — research supports 0.3-1mg, yet most commercial products contain 3-10mg, far exceeding physiological levels
  • Timing matters more than dose — taking melatonin at the wrong time can shift your circadian rhythm in the wrong direction
  • Melatonin is not a sleeping pill — it is a circadian rhythm regulator, best suited for jet lag, shift work, and delayed sleep phase disorder
  • Light exposure is the primary controller — blue light from screens suppresses melatonin by up to 50%, making evening screen habits more impactful than any supplement
$1.5B
US melatonin supplement market (2023)
27.4%
Annual market growth rate
50M+
Americans who have tried melatonin

What Is Melatonin?

Melatonin (N-acetyl-5-methoxytryptamine) is a hormone produced primarily by the pineal gland, a pea-sized structure deep in the center of your brain. Unlike hormones that are regulated by other glands, melatonin production is controlled almost entirely by light and darkness detected by your eyes. According to the Sleep Foundation, melatonin serves as your body's internal timekeeper, signaling when darkness arrives and sleep should begin.

The synthesis pathway begins with the amino acid tryptophan, which your body obtains from food. Tryptophan is converted to serotonin during the day, and then when darkness falls, an enzyme called AANAT (arylalkylamine N-acetyltransferase) converts serotonin into melatonin. This process is why serotonin levels tend to be higher during the day and melatonin levels rise at night — they share the same precursor molecule.

A critical concept in melatonin science is dim light melatonin onset (DLMO). This is the point in the evening when melatonin begins to rise, typically about 2 hours before your habitual bedtime. DLMO is considered the most reliable marker of your circadian rhythm timing and is used in clinical sleep research to determine whether someone's internal clock is properly aligned. According to a comprehensive review published in the Journal of Clinical Endocrinology & Metabolism, DLMO typically occurs between 8:00 and 10:00 PM for adults on conventional schedules.

What makes melatonin unique: Unlike most hormones that operate on feedback loops, melatonin production is controlled almost exclusively by light. The Johns Hopkins Medicine explains that this direct light-hormone connection is why managing light exposure is often more effective than taking supplements.

0.1-0.3mg
Amount your body naturally produces per night
2-4 AM
Peak melatonin levels in most adults
~12 hrs
Duration of elevated melatonin in a typical night

How Melatonin Regulates Your Sleep-Wake Cycle

Your sleep-wake cycle is governed by the suprachiasmatic nucleus (SCN), a tiny cluster of about 20,000 neurons in the hypothalamus. Often called the "master clock," the SCN receives direct light input from specialized cells in the retina called intrinsically photosensitive retinal ganglion cells (ipRGCs). These cells are particularly sensitive to blue light wavelengths around 480nm. Research from the National Institutes of Health has mapped exactly how this light-brain pathway controls your internal clock.

When light hits these cells during the day, the SCN suppresses melatonin production, keeping you alert. As evening approaches and light levels drop, the SCN signals the pineal gland to begin releasing melatonin. This is why melatonin is sometimes called the "hormone of darkness" — it does not cause sleep directly but opens what researchers call the "sleep gate," a window during which your body is physiologically prepared for sleep.

The National Sleep Foundation explains that melatonin lowers core body temperature, reduces alertness, and promotes a state of quiet wakefulness that precedes sleep. If you fight this window by staying up with bright lights or screens, you push your melatonin onset later, effectively telling your brain it is still daytime. Use our bedtime calculator to find the optimal time to start winding down based on your required wake time.

Melatonin Levels Across 24 Hours

The chart below shows how melatonin concentration changes throughout a typical day for someone sleeping from 10:30 PM to 6:30 AM. Levels are measured in picograms per milliliter (pg/mL) of blood plasma.

6:00 AM
15 pg/mL
9:00 AM
3
12:00 PM
2
3:00 PM
2
6:00 PM
3
9:00 PM (DLMO)
12 pg/mL
10:30 PM
25 pg/mL
12:00 AM
40 pg/mL
2:00 AM
55 pg/mL
4:00 AM (Peak)
60 pg/mL

DLMO = Dim Light Melatonin Onset. Purple bars indicate rising/elevated melatonin; dark blue bars indicate peak nocturnal levels. Values are approximate for a healthy young adult.

The Science of Melatonin Synthesis

Understanding how your body creates melatonin helps explain why certain supplements, foods, and lifestyle factors affect sleep. The NIH's StatPearls provides detailed biochemistry of this four-step pathway:

1

Tryptophan Absorption

The essential amino acid tryptophan enters your bloodstream from protein-rich foods. It must cross the blood-brain barrier, competing with other amino acids for transport.

2

Serotonin Production

In the pineal gland, tryptophan is converted to 5-HTP, then to serotonin. This step requires vitamin B6 as a cofactor, explaining why B6 deficiency can impair melatonin production.

3

N-Acetylation

When darkness falls, the enzyme AANAT (arylalkylamine N-acetyltransferase) activates and converts serotonin to N-acetylserotonin. This is the rate-limiting step controlled by light.

4

Melatonin Release

The enzyme ASMT (acetylserotonin O-methyltransferase) completes the conversion to melatonin, which is immediately released into the bloodstream and cerebrospinal fluid.

Factors That Affect Melatonin Synthesis

Evening light exposure
-50% production
Alcohol consumption
-19% production
Late caffeine (6pm+)
-40 min delay
Aging (70+ vs 20s)
-75% production
Beta-blockers
-80% production
Morning sunlight
+Earlier DLMO
Tryptophan-rich dinner
+Modest boost

Learn more about caffeine's effects in our caffeine and sleep guide.

Natural Melatonin Production by Age

One of the most significant findings in melatonin research is that natural production decreases substantially with age. According to the Cleveland Clinic, infants produce very little melatonin in the first few months, production peaks in childhood, and then gradually declines throughout adulthood. By age 70, many people produce only a fraction of what they produced at age 10. This decline may partially explain why older adults often have difficulty falling and staying asleep.

Age GroupRelative Melatonin ProductionPeak Nocturnal LevelSleep Impact
Newborns (0-3 months)Very low (developing)~5 pg/mLNo established circadian rhythm yet
Infants (3-12 months)Rising rapidly~30 pg/mLCircadian pattern begins to emerge
Children (1-8 years)Highest lifetime levels~80-120 pg/mLDeep sleep is abundant; falls asleep easily
Adolescents (9-17 years)Beginning to decline~60-80 pg/mLDLMO shifts later (biological night owl tendency)
Young Adults (18-35)Moderate~50-70 pg/mLStable circadian rhythm with adequate darkness
Middle-Aged (36-55)Declining~30-50 pg/mLMay begin experiencing lighter, more fragmented sleep
Older Adults (56-70)Significantly reduced~15-30 pg/mLIncreased sleep onset difficulty; earlier wake times
Elderly (70+)Minimal in many individuals~5-20 pg/mLMay benefit most from low-dose supplementation

Melatonin Production Decline by Decade

Age 1-10
100% (peak)
Age 11-20
85%
Age 21-30
70%
Age 31-40
55%
Age 41-50
45%
Age 51-60
35%
Age 61-70
25%
Age 70+
15%

Use our sleep by age calculator to check how much sleep is recommended for your specific age group and adjust your bedtime accordingly.

Melatonin Supplements: Dosage Guide

The melatonin supplement market has grown into a multi-billion-dollar industry, but there is a fundamental disconnect between what research supports and what most products contain. Your body naturally produces about 0.1 to 0.3mg of melatonin per night. Yet the most popular supplements contain 5 to 10mg — roughly 30 to 100 times the physiological amount.

A landmark study from Harvard Medical School researcher Dr. Richard Wurtman found that doses as low as 0.3mg were effective for improving sleep, while higher doses (3mg+) often caused plasma melatonin levels to remain elevated into the next day, leading to daytime grogginess. The National Center for Complementary and Integrative Health (NCCIH) notes that melatonin supplements are "possibly effective" for sleep, but that more is not better.

0.3-1mg
Evidence-based dose range
5-10mg
Typical commercial dose
30-100x
How much supplements exceed natural levels
DoseRelative to Natural ProductionBest Use CaseNotes
0.3mg1x natural levelMild sleep onset difficulty; elderly patientsPhysiologically appropriate; most studied dose
0.5mg2x natural levelGeneral sleep support; circadian fine-tuningGood starting dose for most adults
1mg3-5x natural levelJet lag; mild DSPD; shift work adjustmentUpper end of evidence-based dosing
3mg10-15x natural levelModerate jet lag (crossing 5+ time zones)Common commercial dose; exceeds physiological range
5mg20-30x natural levelSometimes used short-term; limited evidence of added benefitMay cause next-day drowsiness and vivid dreams
10mg50-100x natural levelNo evidence of benefit over lower doses for sleepHigher side effect risk; not recommended by most sleep researchers

Warning: Commercial overdosing is the norm. A 2017 study published in the Journal of Clinical Sleep Medicine found that the actual melatonin content in supplements varied from -83% to +478% of the labeled dose. Additionally, 26% of supplements contained serotonin, an unlabeled controlled substance. Because melatonin is classified as a dietary supplement by the FDA, it is not subject to the same quality controls as prescription medications. Look for products with USP or NSF certification.

Clinical Effectiveness Research

What does the research actually say about melatonin's effectiveness? The American Academy of Sleep Medicine (AASM) has reviewed hundreds of studies to develop evidence-based recommendations. Their findings show that melatonin's effectiveness varies dramatically depending on the sleep problem being treated.

Melatonin Effectiveness by Condition

Jet lag (eastward)
Strong evidence
Delayed Sleep Phase
Strong evidence
Shift work disorder
Moderate evidence
Sleep in elderly
Moderate evidence
ADHD-related sleep issues
Moderate evidence
General insomnia
Weak evidence
Sleep maintenance
Little evidence
7 min
Average sleep onset reduction (meta-analysis)
8 min
Average total sleep increase
3.9%
Sleep efficiency improvement

These modest improvements should be weighed against expectations. If you are looking for dramatic sleep improvements, melatonin alone is unlikely to provide them. The CDC's sleep guidelines emphasize that behavioral changes — consistent schedules, sleep-friendly environments, and proper sleep hygiene — typically produce larger and more sustainable improvements than any supplement.

When to Take Melatonin

The timing of melatonin supplementation is arguably more important than the dose. Taking melatonin at the wrong time can shift your circadian rhythm in the wrong direction, making sleep problems worse. The general principle is: melatonin taken in the evening advances your clock (makes you sleepy earlier), while melatonin taken in the morning delays it (makes you sleepy later).

PurposeWhen to TakeRecommended DoseDuration
General sleep onset30-60 minutes before desired bedtime0.3-1mgShort-term (2-4 weeks)
Jet lag (traveling east)At destination bedtime, starting 2-3 days before travel0.5-3mgUntil adjusted (3-5 days)
Jet lag (traveling west)During the second half of the night at destination, if waking too early0.5mgUntil adjusted (2-4 days)
Shift work30 minutes before desired daytime sleep0.5-3mgOngoing during night shift rotation
Delayed Sleep Phase Disorder5-7 hours before current sleep onset (early evening)0.3-0.5mgOngoing with clinical guidance

Optimal Timing Window by Goal

General Sleep (10:30 PM bedtime)
9:30
9:30-10:00 PM (optimal)
10:00
DSPD (current sleep 2 AM)
6 PM
7-9 PM (optimal)
Do not take at 2 AM
Jet Lag East (NYC to London)
Pre
10 PM London time
Start 2 days before
Shift Work (day sleep)
Post-shift
30 min before sleep
Blackout room

Key insight: For Delayed Sleep Phase Disorder (DSPD), the counterintuitive recommendation is to take a very low dose of melatonin in the early evening — not right before bed. A person who cannot fall asleep until 2 AM might take 0.3mg at 7 PM to gradually advance their clock. This requires patience and consistency over several weeks. Use our bedtime calculator to track your target bedtime as it shifts earlier, and our wake-up calculator to ensure you are maintaining appropriate sleep duration.

Melatonin Side Effects

Melatonin is generally well-tolerated, especially at lower doses. However, it is not free of side effects, particularly at the high doses found in most commercial supplements. The Mayo Clinic lists the following potential adverse effects.

10-20%
Experience daytime drowsiness
5-15%
Report headaches
5-10%
Experience vivid dreams
<5%
Report mood changes
Side EffectFrequencySeverityNotes
Daytime drowsinessCommon (10-20%)MildMore likely with doses above 1mg; avoid driving if affected
HeadacheCommon (5-15%)MildUsually resolves within a few days of use
DizzinessOccasional (5-10%)MildMore common in elderly patients
NauseaOccasional (3-8%)MildTaking with a small snack may help
Vivid dreams or nightmaresOccasional (5-10%)Mild to moderateDose-dependent; reduce dose if bothersome
Irritability or mood changesUncommon (2-5%)MildMore reported in children than adults
Hormonal interactionsRare at low dosesPotentially moderateMay affect reproductive hormones at high doses; consult doctor
Drug interactionsVariesModerateInteracts with blood thinners, diabetes meds, immunosuppressants, and contraceptives

Side Effect Risk by Dose Level

0.3mg dose
Low risk
0.5mg dose
Low risk
1mg dose
Low-moderate
3mg dose
Moderate
5mg dose
Moderate-high
10mg dose
High

Melatonin vs Prescription Sleep Aids

Understanding how melatonin compares to other sleep aids helps you make an informed choice. Melatonin works fundamentally differently from sedative medications — it adjusts your circadian clock rather than forcing unconsciousness. Here is how the major categories compare, based on data from the National Institutes of Health and the Sleep Foundation.

Melatonin

Mechanism: Circadian rhythm signal (not sedation)

Effectiveness: Moderate for timing issues; mild for general insomnia

Dependency risk: None established

Prescription: OTC in most countries

Antihistamines (Benadryl, ZzzQuil)

Mechanism: Block histamine receptors (sedation as side effect)

Effectiveness: Mild sedation; tolerance develops in 3-7 days

Dependency risk: Low, but rebound insomnia common

Prescription: OTC

Benzodiazepines (Valium, Ativan)

Mechanism: Enhance GABA activity (strong sedation)

Effectiveness: High for short-term use

Dependency risk: High; withdrawal can be dangerous

Prescription: Prescription only

Z-Drugs (Ambien, Lunesta)

Mechanism: Selective GABA-A agonists (targeted sedation)

Effectiveness: High; reduces sleep onset by 10-20 min

Dependency risk: Moderate; complex sleep behaviors reported

Prescription: Prescription only

Orexin Antagonists (Belsomra, Quviviq)

Mechanism: Block wake-promoting orexin signals

Effectiveness: Moderate to high; maintains natural sleep architecture

Dependency risk: Low based on current data

Prescription: Prescription only

CBT-I (Cognitive Behavioral Therapy)

Mechanism: Addresses underlying behavioral and cognitive causes

Effectiveness: High; effects are durable and long-lasting

Dependency risk: None (non-pharmacological)

Prescription: Requires trained therapist

Effectiveness Comparison (Sleep Onset Reduction)

CBT-I
30-60 min faster
Z-Drugs (Ambien)
10-20 min faster
Benzodiazepines
15-20 min faster
Orexin Antagonists
10-15 min faster
Melatonin
7-10 min faster
Antihistamines
5-10 min faster

Bottom line: If your sleep problems are related to timing (jet lag, shift work, delayed sleep phase), melatonin is a reasonable first choice. If your problem is inability to sleep despite being tired (insomnia), melatonin is unlikely to help significantly, and you should explore cognitive behavioral therapy for insomnia (CBT-I) or consult a sleep specialist. The WebMD guide to CBT-I provides an overview of this evidence-based treatment. See our sleep disorders guide for more on when to seek professional help.

Foods That Boost Natural Melatonin

While no food contains melatonin in amounts comparable to supplements, certain foods contain meaningful amounts that may support your natural production, especially when consumed in the evening. Additionally, foods rich in tryptophan (melatonin's precursor) can support the synthesis pathway. Research published on PubMed has documented the melatonin content of various foods.

FoodMelatonin ContentServing SizeAdditional Sleep Benefits
Tart cherries (Montmorency)13.5 ng/g (highest known food source)1 cup juice or 1/2 cup driedAlso contain procyanidins that inhibit tryptophan breakdown
Pistachios233 ng/g (exceptionally high)1 oz (about 49 kernels)Also high in magnesium and vitamin B6
Walnuts3.5 ng/g1 oz (about 14 halves)Rich in omega-3s and tryptophan
Milk14 ng/L (higher in night-milked cows)1 cup (240 mL)Contains tryptophan and calcium; traditional sleep remedy
Eggs6.1 ng/g (in yolk)2 large eggsHigh in tryptophan and vitamin D
Fatty fish (salmon)3.7 ng/g3 oz servingOmega-3 fatty acids and vitamin D support circadian function
Grapes (red/purple)8-12 ng/g (skin contains most)1 cupResveratrol may have additional sleep benefits

Relative Melatonin Content in Foods

Pistachios
233 ng/g
Tart cherries
13.5 ng/g
Red grapes
8-12 ng/g
Eggs (yolk)
6.1 ng/g
Salmon
3.7 ng/g
Walnuts
3.5 ng/g

Note: ng/g = nanograms per gram. For context, a 1mg supplement contains 1,000,000 nanograms, so food sources provide vastly smaller amounts. Their benefit likely comes from supporting the natural synthesis pathway rather than directly raising melatonin levels. For more dietary tips, see our sleep quality tips.

Blue Light and Melatonin Suppression

Of all the factors that affect melatonin production, artificial light exposure — particularly blue light from screens — is the most disruptive and the most controllable. Research from Harvard Medical School found that blue light suppresses melatonin production twice as much as green light and shifts circadian rhythms by twice as much (3 hours vs. 1.5 hours).

A 2014 study published in the Proceedings of the National Academy of Sciences compared people reading an e-book to those reading a printed book before bed. The e-book readers showed suppressed melatonin, delayed sleep onset by an average of 10 minutes, reduced evening sleepiness, and less REM sleep. These effects persisted even after the devices were put away.

50%
Melatonin suppression from 2 hours of screen use before bed
90 min
Delay in melatonin onset from evening blue light exposure
480nm
Wavelength most suppressive to melatonin (blue-cyan light)

Light Source Impact on Melatonin

Smartphone (max brightness)
90% suppression potential
Laptop screen
80% suppression
LED TV (6 feet away)
50% suppression
Cool white LED bulb
45% suppression
Warm white bulb (2700K)
20%
Candlelight
~5%

Strategies to Protect Your Melatonin Production

1

Screen Curfew

Put all screens away 60-90 minutes before bed. This is the single most effective strategy. Replace with reading, stretching, or conversation.

2

Night Mode / Blue Light Filters

Use built-in night shift (iOS), night light (Windows), or f.lux. These reduce blue emission by 50-80% but do not eliminate the problem entirely.

3

Blue-Light-Blocking Glasses

Amber or orange-tinted glasses block 90%+ of blue light. Studies show they can preserve melatonin levels even during screen use, though quality varies.

4

Dim Your Environment

Switch to warm-toned bulbs (2700K or lower) in the evening. Even overhead room lighting can suppress melatonin if it is bright and cool-toned.

5

Morning Light Exposure

Get 10-30 minutes of bright light within an hour of waking. This advances your DLMO and makes evening melatonin release stronger and more consistent.

6

Distance from Screens

If you must use screens, increase viewing distance. Light intensity decreases with the square of distance, so sitting farther away significantly reduces exposure.

For a comprehensive look at optimizing your bedroom for sleep, including lighting, temperature, and noise, read our sleep environment tips guide.

Melatonin and Sleep Architecture

Beyond simply helping you fall asleep, melatonin influences the structure of your sleep — the proportion of time spent in each sleep stage. Research from the American Academy of Sleep Medicine shows that exogenous melatonin can affect sleep architecture in complex ways that depend on dose and timing.

+12%
REM sleep increase (some studies)
-5%
Light sleep reduction
0%
Change in deep sleep (at low doses)

Understanding sleep stages is essential for interpreting these effects. Unlike sedative medications that often suppress REM sleep, melatonin appears to preserve or even enhance the natural sleep cycle. Use our sleep cycle calculator to time your sleep for complete cycles.

Special Populations

Certain groups may have unique considerations when it comes to melatonin use. The Cleveland Clinic provides guidance for these special populations:

Elderly Adults (65+)

May benefit: Natural melatonin declines significantly with age

Recommended dose: 0.3-0.5mg (start very low)

Special consideration: Increased sensitivity to side effects; check drug interactions

Pregnant Women

Safety: Limited research; not generally recommended

Alternative: Focus on sleep hygiene and light management

Consult: OB/GYN before any supplement use

Nursing Mothers

Transfer: Melatonin passes into breast milk

Timing: May affect infant circadian development

Recommendation: Avoid unless specifically prescribed

Frequent Travelers

Evidence: Strong support for jet lag management

Protocol: Start 2-3 days before travel for eastward trips

Dose: 0.5-3mg at destination bedtime

Shift Workers

Challenge: Must override light-based circadian signals

Protocol: Combine with blackout environment for day sleep

See: Our shift work sleep guide

Those with Depression

Consideration: Melatonin may interact with antidepressants

Timing: Circadian disruption is linked to depression

Consult: Psychiatrist before starting melatonin

Melatonin for Children: What Parents Should Know

Melatonin use in children has skyrocketed in recent years, with a 2022 CDC report finding that pediatric melatonin ingestions increased 530% between 2012 and 2021. While melatonin can be helpful for certain pediatric populations, it requires careful consideration.

530%
Increase in pediatric melatonin exposures (2012-2021)
260K+
Pediatric ingestion cases reported
4,000+
Hospitalizations from melatonin

The American Academy of Pediatrics (AAP) recommends that parents should:

  • Try behavioral strategies first — consistent bedtime routine, screen curfew, dark and cool bedroom
  • Consult a pediatrician before giving melatonin to any child
  • Use the lowest effective dose — typically 0.5mg to 1mg for children, up to 3mg for adolescents with clinical guidance
  • Choose quality products — given the labeling inaccuracies found in supplements, select USP-verified products
  • Consider it temporary — melatonin should not be a permanent solution for childhood sleep difficulties

Melatonin has the strongest evidence for children with ADHD, autism spectrum disorder (ASD), and delayed sleep phase disorder. A meta-analysis published in the Journal of Child Neurology found that melatonin reduced sleep onset latency by an average of 28 minutes in children with ASD. For neurotypical children with occasional sleep difficulties, behavioral approaches remain the first-line recommendation.

Safety alert: Keep melatonin supplements out of reach of children. Many products, particularly gummies, look and taste like candy. The CDC reported over 260,000 pediatric melatonin ingestion cases from 2012-2021, with over 4,000 hospitalizations. Always use child-resistant packaging and store supplements as you would medications. For age-specific sleep recommendations, use our sleep by age calculator.

Drug Interactions

Melatonin can interact with numerous medications. The WebMD drug interaction checker and Mayo Clinic identify the following significant interactions:

Medication ClassInteraction TypeEffectRecommendation
Blood thinners (Warfarin)MajorMay increase bleeding riskAvoid or use only under medical supervision
Diabetes medicationsModerateMay affect blood sugar controlMonitor glucose closely
ImmunosuppressantsModerateMelatonin may stimulate immune functionConsult transplant team
Birth control pillsModerateContraceptives increase melatonin levelsMay need lower supplemental dose
Sedatives/CNS depressantsModerateAdditive drowsiness effectsReduce doses; avoid combining
Antidepressants (SSRIs)Minor-ModerateBoth affect serotonin pathwayMonitor for serotonin effects
CaffeineMinorCaffeine may reduce melatonin effectivenessAvoid late-day caffeine
Beta-blockersMinorBeta-blockers suppress natural melatoninMay need supplementation

Always consult your healthcare provider before starting melatonin if you take any prescription medications. This is especially important for blood thinners, diabetes medications, immunosuppressants, and any sedating medications. If you are managing sleep debt while on medications, work with your doctor to find safe approaches.

Frequently Asked Questions

Short-term use (up to 3 months) appears safe for most adults. However, long-term nightly use has not been extensively studied. The American Academy of Sleep Medicine recommends using melatonin for specific purposes like jet lag or shift work rather than as a permanent nightly sleep aid. Consult your doctor if you plan to use it for more than a few weeks.

Research suggests 0.3mg to 1mg is the physiologically appropriate dose for most adults. This mimics natural melatonin levels. Most commercial supplements contain 3-10mg, which is far more than your body produces naturally. Higher doses can cause next-day grogginess and may actually disrupt sleep architecture. Start with the lowest available dose and increase only if needed.

For general sleep onset, take melatonin 30-60 minutes before your desired bedtime. For jet lag traveling eastbound, take it at the destination bedtime starting 2-3 days before travel. Timing matters more than dosage — taking melatonin at the wrong time can actually shift your circadian rhythm in the wrong direction. Use our bedtime calculator to determine your target sleep time.

No. Melatonin is not a sedative. It signals to your brain that it is time to prepare for sleep but does not force unconsciousness the way prescription sleep aids do. It is most effective for circadian rhythm issues like jet lag and shift work, not for general insomnia. If you cannot sleep despite feeling tired, you likely need a different approach. See our sleep disorders guide for information about insomnia treatments, including CBT-I.

The American Academy of Pediatrics says melatonin may be appropriate for some children, particularly those with ADHD or autism spectrum disorder, but only under pediatric guidance and after behavioral strategies have been tried. Typical pediatric doses range from 0.5mg to 3mg. Long-term safety data in children is limited, so it should be treated as a short-term tool, not a permanent solution. Use our sleep by age calculator for pediatric sleep recommendations.

Melatonin can increase REM sleep duration and intensity, which is the sleep stage associated with vivid dreaming. Higher doses (3mg+) are more likely to cause this effect. If vivid dreams are bothersome, try reducing your dose to 0.3-0.5mg. The vivid dreams are not harmful but can feel unsettling. If nightmares persist, discontinue use and consult your doctor. Learn more about sleep stages in our guide.

Yes. Research shows that blue light (wavelengths around 460-480nm) from phones, tablets, and computers can suppress melatonin production by up to 50% and delay melatonin onset by up to 90 minutes. Even 2 hours of screen use in the evening significantly reduces melatonin levels. Using night mode or blue-light-blocking glasses helps but does not fully eliminate the effect. A screen-free hour before bed remains the most effective strategy.

Tart cherries (especially Montmorency cherries) are the richest food source, with pistachios being exceptionally high as well. Other sources include walnuts, grapes, milk, eggs, and fatty fish like salmon. While food sources provide much smaller amounts than supplements, regularly eating melatonin-rich foods in the evening may support your natural production. Read more in our sleep hygiene tips guide.

Calculate My Ideal Bedtime →

Related Guides

Medical disclaimer: This article is for educational purposes only and is not a substitute for professional medical advice. Always consult a qualified healthcare provider before starting any supplement, including melatonin. If you have persistent sleep problems, see a board-certified sleep medicine specialist. Information sourced from the NIH, Sleep Foundation, Mayo Clinic, and peer-reviewed research on PubMed.